Wireshark-commits: [Wireshark-commits] master 91d1c3c: reassembly: fix when fragment cut off by sna
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 25 Sep 2014 12:41:39 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=91d1c3c5ec9b5292497c0367e2dd963ffb0e56db
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

91d1c3c by Evan Huus (eapache@xxxxxxxxx):

    reassembly: fix when fragment cut off by snapshot
    
    Also add an assertion to tvb_generic_clone_offset_len so that it throws an
    error *before* allocating memory, as otherwise that memory is leaked.
    
    Bug: 10474
    Change-Id: I5036cefac16841914a59670c64979cf599bf7969
    Reviewed-on: https://code.wireshark.org/review/4234
    Petri-Dish: Evan Huus <eapache@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    

Actions performed:

    from  d094eab   The length of the pktap header isn't fixed, it's a field in the header.
    adds  91d1c3c   reassembly: fix when fragment cut off by snapshot


Summary of changes:
 epan/reassemble.c |    9 +++++++--
 epan/tvbuff.c     |    5 ++++-
 2 files changed, 11 insertions(+), 3 deletions(-)