Wireshark-commits: [Wireshark-commits] master 362b83f: gmtime() can return NULL, even if it's unlik

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

Commits:

362b83f by Guy Harris (guy@xxxxxxxxxxxx):

    gmtime() 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 1374110.
    
    Change-Id: I78bf92cfbb94a86544442269cc3b53338eb19778
    Reviewed-on: https://code.wireshark.org/review/18361
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  1b9d46a   tests: do not invoke missing unit tests
    adds  362b83f   gmtime() can return NULL, even if it's unlikely.


Summary of changes:
 epan/dissectors/packet-cip.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)