Wireshark-commits: [Wireshark-commits] master 49cf42c: localtime() can return NULL, even if it's un

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 22 Oct 2016 00:09:08 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=49cf42c571f3f94632957371ccd99533e71764ff
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

49cf42c 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>
    

Actions performed:

    from  b3363fb   ISAKMP: update protocol parameters
    adds  49cf42c   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(-)