Wireshark-commits: [Wireshark-commits] master cb95951: tvbuff_zlib: Check if the given offset and c

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 5 Oct 2016 03:28:54 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cb959510d2d25a41a142b01659d62f19b6b1c1ac
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

cb95951 by PHO (pho@xxxxxxxxxxxxxx):

    tvbuff_zlib: Check if the given offset and compressed length are indeed valid before trying to allocate memory
    
    g_malloc() may abort(3) the program when the comprlen is insanely large so use tvb_memdup() instead.
    
    Change-Id: I23fbdc2362900030c41da1c297ab0c787de7c5ca
    Reviewed-on: https://code.wireshark.org/review/18043
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  257abd9   spnego: fix indent (use 2 spaces) and modelines
    adds  cb95951   tvbuff_zlib: Check if the given offset and compressed length are indeed valid before trying to allocate memory


Summary of changes:
 epan/tvbuff_zlib.c |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)