Wireshark-commits: [Wireshark-commits] master-2.6 bf63e7a: Back up to the beginning of the file if

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 05 Dec 2019 06:51:05 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=bf63e7a7367660327f3564ed61e6c6a93dc59974
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

bf63e7a by Guy Harris (guy@xxxxxxxxxxxx):

    Back up to the beginning of the file if we don't have a gzip header.
    
    If the first byte of the file is 31, and we advance to the next byte but
    find it's not 139, back up to the first byte before falling through and
    treating the file as uncompressed.
    
    Add/expand some comments while we're at it.
    
    Bug: 16252
    Change-Id: I292b51f9cc04173482a43b26b0ce73c9e7aee570
    Reviewed-on: https://code.wireshark.org/review/35315
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit ffabb74e2c75fd9cf314c28a89552f5b40cb18d1)
    Reviewed-on: https://code.wireshark.org/review/35318
    

Actions performed:

    from  fe2b7bb   2.6.13 → 2.6.14.
     add  bf63e7a   Back up to the beginning of the file if we don't have a gzip header.


Summary of changes:
 wiretap/file_wrappers.c | 201 ++++++++++++++++++++++++++++++------------------
 1 file changed, 126 insertions(+), 75 deletions(-)