Wireshark-commits: [Wireshark-commits] lts-1.12.1 27e0dac: reassembly: address a 15-year old XXX co

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 31 May 2015 18:45:52 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=27e0dac05b05b2fe780bbcb685933a714be10ef0
Submitter: Balint Reczey (balint@xxxxxxxxxxxxxxx)
Changed: branch: lts-1.12.1
Repository: wireshark

Commits:

27e0dac by Evan Huus (eapache@xxxxxxxxx):

    reassembly: address a 15-year old XXX comment
    
    Question: "what if we didn't capture the entire fragment due to a too-short
              snapshot length?"
    Answer: An assertion fails and we leak a bunch of memory.
    
    Don't do that.
    
    Bug: 11129
    Change-Id: I0adfb217f0e66ae8f5f6255a4caf7ff940826b59
    Reviewed-on: https://code.wireshark.org/review/8128
    Petri-Dish: Evan Huus <eapache@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    (cherry picked from commit c35f2ccb4433718416551cc7a85afb0860529d57)
    Reviewed-on: https://code.wireshark.org/review/8149
    (cherry picked from commit 5bbf0d2afbf31f50eed0d46a56a2a1e8f494901a)
    Reviewed-on: https://code.wireshark.org/review/8638
    Reviewed-by: Balint Reczey <balint@xxxxxxxxxxxxxxx>
    

Actions performed:

    from  479c1f5   Don't assume file_read() won't itself return WTAP_ERR_SHORT_READ.
    adds  27e0dac   reassembly: address a 15-year old XXX comment


Summary of changes:
 epan/reassemble.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)