URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d0ec59c1aaeffcf3a92a9f5606834e1936a341d4
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark
Commits:
d0ec59c by Guy Harris (guy@xxxxxxxxxxxx):
localtime() can return NULL, even if it's unlikely.
ANSI C says it can return NULL - and, at least on Windows with the MSVC
library, it *will* return null for dates prior to the Epoch. Check for
a null return and handle it.
Fixes CID 1374109.
Change-Id: Ib18566d1a75e4109adb21834b157e87532fcac10
Reviewed-on: https://code.wireshark.org/review/18365
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit 49cf42c571f3f94632957371ccd99533e71764ff)
Reviewed-on: https://code.wireshark.org/review/18366
Actions performed:
from 0cf4731 gmtime() can return NULL, even if it's unlikely.
adds d0ec59c localtime() can return NULL, even if it's unlikely.
Summary of changes:
ui/qt/import_text_dialog.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)