Wireshark-commits: [Wireshark-commits] master 94e97e4: packetbb: Prevent divide by 0.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 2 Jul 2016 13:47:21 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=94e97e45cf614c7bb8fe90c23df52910246b2c95
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

94e97e4 by Michael Mann (mmann78@xxxxxxxxxxxx):

    packetbb: Prevent divide by 0.
    
    Bug: 12577
    Change-Id: Ibfa605597b786d8dbf1e256ef2ca6dc691498974
    Reviewed-on: https://code.wireshark.org/review/16241
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  b78dd09   proto.c: allow calling get_hfi_length() with a 0 byte tvb and length=-1
    adds  94e97e4   packetbb: Prevent divide by 0.


Summary of changes:
 epan/dissectors/packet-packetbb.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)