Wireshark-commits: [Wireshark-commits] master-2.2 560a185: tvbuff_subset.c: handle a reported_lengt

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 05 Sep 2018 20:45:28 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=560a185e531d33be482895d561cb81cdb7ef6193
Submitter: "Pascal Quantin <pascal.quantin@xxxxxxxxx>"
Changed: branch: master-2.2
Repository: wireshark

Commits:

560a185 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>
    (cherry picked from commit b40beb9edfc5c09bb2374e2382871a7fc8825858)
    Conflicts:
    	epan/tvbuff_subset.c
    Reviewed-on: https://code.wireshark.org/review/29439
    (cherry picked from commit 2c91551f3143489d80f084fcfe96620b7dba87d8)
    Reviewed-on: https://code.wireshark.org/review/29441
    

Actions performed:

    from  88204f9   [Automatic update for 2018-09-02]
     add  560a185   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(-)