Wireshark-commits: [Wireshark-commits] master c96b56d: frame: fix crash when dissectors add the max
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c96b56d384391b1fe18da468548e2fcf3c8c4eeb
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
c96b56d by Dario Lombardo (lomato@xxxxxxxxx):
frame: fix crash when dissectors add the maximum number of tree items.
When underlying dissectors exceed MAX_TREE_ITEMS, the frame dissector
will fail when adding more items. We make room for the following items
by decrementing the count for the current tree before adding them.
This change will fix all errors where underlying dissectors add MAX_TREE_ITEMS
items to the tree.
Bug: 15448
Change-Id: I03f3191cf1b737ac9ab569fbe5bf77f3a30e2401
Reviewed-on: https://code.wireshark.org/review/31975
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@xxxxxxxxx>
Tested-by: Dario Lombardo <lomato@xxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from e4a6f87 CMake: disable relocatable builds when dumpcap is being built
add c96b56d frame: fix crash when dissectors add the maximum number of tree items.
Summary of changes:
epan/dissectors/packet-frame.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)