]> git.ipfire.org Git - thirdparty/shadow.git/commit
Fix crash with large timestamps
authorAlejandro Colomar <alx@kernel.org>
Sun, 12 Mar 2023 23:05:04 +0000 (00:05 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 28 Mar 2023 11:00:38 +0000 (13:00 +0200)
commit03af2940f75db47cb8619e4852a47d637d624ac4
tree533dd4bb3c5e41bf961687c80525cc287736cfe1
parentea3d49506fb144348be10eba6f6fe1250b875a48
Fix crash with large timestamps

*  libmisc/date_to_str.c (date_to_str): Do not crash if gmtime(3)
   returns NULL because the timestamp is far in the future.

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Co-developed-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
libmisc/date_to_str.c