Wireshark-commits: [Wireshark-commits] master-2.0 0469e81: packetbb: Prevent divide by 0.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 2 Jul 2016 14:55:13 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0469e81d887f706e3bc829349eb3cfac18fd45dc
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

0469e81 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>
    (cherry picked from commit 94e97e45cf614c7bb8fe90c23df52910246b2c95)
    Reviewed-on: https://code.wireshark.org/review/16243
    

Actions performed:

    from  20ac0e1   proto.c: allow calling get_hfi_length() with a 0 byte tvb and length=-1
    adds  0469e81   packetbb: Prevent divide by 0.


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