Wireshark-commits: [Wireshark-commits] master b40beb9: tvbuff_subset.c: handle a reported_length se

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 05 Sep 2018 19:54:43 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b40beb9edfc5c09bb2374e2382871a7fc8825858
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

b40beb9 by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    tvbuff_subset.c: handle a reported_length set to -1 in tvb_new_subset_length()
    
    According to tvbuff.h, tvb_new_subset_length() should behave like
    tvb_new_subet_caplen(). Let's do so.
    
    Bug: 15112
    Change-Id: I3f05ff45246ac0d05e9bc7bd069ec864da1afae6
    Reviewed-on: https://code.wireshark.org/review/29426
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  5b533e4   gtp(v2): Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
     add  b40beb9   tvbuff_subset.c: handle a reported_length set to -1 in tvb_new_subset_length()


Summary of changes:
 epan/tvbuff_subset.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)