Wireshark-commits: [Wireshark-commits] master f07fb6c: Clean up EOF/short read/hard error handling

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 24 Apr 2018 21:20:55 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f07fb6cdfc0904905627707b88450054e921f092
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

f07fb6c by Guy Harris (guy@xxxxxxxxxxxx):

    Clean up EOF/short read/hard error handling in heuristics.
    
    Do all the per-record processing in a libpcap_try_record() routine.  EOF
    on the header is OK, but a short read on the header *might* be due to
    the format being tested not being the format of the file rather than due
    to the file having been cut short.
    
    Change-Id: I5748ed550fa1079dc9c746fd93ee5c59187b80a1
    Reviewed-on: https://code.wireshark.org/review/27135
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  ecb04e4   vg-suppressions: suppress more GLib-related memleaks
    adds  f07fb6c   Clean up EOF/short read/hard error handling in heuristics.


Summary of changes:
 wiretap/libpcap.c | 165 ++++++++++++++++++++++++------------------------------
 1 file changed, 72 insertions(+), 93 deletions(-)