Wireshark-commits: [Wireshark-commits] master 73f48a0: dont't manually throw a ReportedBoundsError

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 4 Dec 2014 22:05:43 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=73f48a0916c64739e39c27203883ccb13b33aabc
Submitter: Martin Kaiser (wireshark@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

73f48a0 by Martin Kaiser (wireshark@xxxxxxxxx):

    dont't manually throw a ReportedBoundsError if the packet is empty
    use tvb_captured_length() instead of tvb_length()
    
    Change-Id: I7e7efd69515fc3e30c986ac5d9a56b4db1931c10
    Reviewed-on: https://code.wireshark.org/review/5624
    Reviewed-by: Martin Kaiser <wireshark@xxxxxxxxx>
    Tested-by: Martin Kaiser <wireshark@xxxxxxxxx>
    

Actions performed:

    from  70ca52c   3GPP: upgrade 2G/3G NAS dissector to v12.7.0 and NAS EPS dissector to v12.6.0
    adds  73f48a0   dont't manually throw a ReportedBoundsError if the packet is empty use tvb_captured_length() instead of tvb_length()


Summary of changes:
 epan/dissectors/packet-i2c.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)