Wireshark-commits: [Wireshark-commits] master-3.0 d55127c: Replace another tvb_new_subset_length_ca

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 04 Mar 2019 21:01:43 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d55127ca2ce52f42a5931ba50d7b962460a2633b
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark

Commits:

d55127c by Guy Harris (guy@xxxxxxxxxxxx):

    Replace another tvb_new_subset_length_caplen() call.
    
    tvb_new_subset_length() is sufficient, and correctly calculates the
    captured length of the tvbuff, rather than possibly setting it too large
    by setting it based on the length of the TLV header.
    
    Change-Id: I510ee6742fcbc08ae7331585a65c768e98e6b3d9
    Reviewed-on: https://code.wireshark.org/review/32271
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 7bf2fbf85a083a2530901cfdf2eede1512e8529b)
    Reviewed-on: https://code.wireshark.org/review/32322
    

Actions performed:

    from  3c5eaa1   Replace a tvb_new_subset_length_caplen() call with tvb_new_subset_remaining().
     add  d55127c   Replace another tvb_new_subset_length_caplen() call.


Summary of changes:
 epan/dissectors/packet-ieee802154.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)