Wireshark-commits: [Wireshark-commits] lts-1.12.1 2f51a73: Check *how many* fields sscanf() found.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 5 Feb 2016 20:38:57 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2f51a73556bbab0fc60cb2a0c458792c315c97e2
Submitter: Balint Reczey (balint@xxxxxxxxxxxxxxx)
Changed: branch: lts-1.12.1
Repository: wireshark

Commits:

2f51a73 by Guy Harris (guy@xxxxxxxxxxxx):

    Check *how many* fields sscanf() found.
    
    In the code that parses a GeneralizedTime field, don't assume that all
    fields were found; check the return value from sscanf().
    
    This should clean up a fuzz failure on the 2.0 buildbot:
    
    https://buildbot.wireshark.org/wireshark-2.0/builders/Fuzz%20Test/builds/13/steps/valgrind-wireshark/logs/stdio
    
    Change-Id: I431d7ed69ac1697bd42c22a37ca1451cfc85c94e
    Reviewed-on: https://code.wireshark.org/review/12083
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 921bb07115fbffc081ec56a5022b4a9d58db6d39)
    Reviewed-on: https://code.wireshark.org/review/12085
    (cherry picked from commit 2c5997060c1cc91dc3ba964d4494751b50f25470)
    Reviewed-on: https://code.wireshark.org/review/13758
    Reviewed-by: Balint Reczey <balint@xxxxxxxxxxxxxxx>
    

Actions performed:

    from  9039c2b   DNS: Ignore Client Subnet option's data length when > 16
    adds  2f51a73   Check *how many* fields sscanf() found.


Summary of changes:
 epan/dissectors/packet-ber.c |  113 ++++++++++++++++++++++++++++++------------
 1 file changed, 82 insertions(+), 31 deletions(-)