URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3f3f7424e4f00764244a70b99966e82d2dc15159
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark
Commits:
3f3f742 by Peter Wu (peter@xxxxxxxxxxxxx):
tcp: fix memleak in Follow TCP tap in error cases
If this not the first data segment and the data is somehow empty
(overlap?) or if the packet is out-of-order, the whole data fragment and
follow_record_t structure was leaked. Found by Clang Static Analyzer.
Change-Id: I81dc7749c738938b14d2cf4ad41e624b15099da6
Fixes: v2.3.0rc0-1449-g66fa31415f ("tcp: Fix Follow TCP tap data and when its tapped.")
Reviewed-on: https://code.wireshark.org/review/27348
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@xxxxxxxxx>
(cherry picked from commit 4c14ac075403e3f5ea5709501918c08e45272439)
Reviewed-on: https://code.wireshark.org/review/27369
Actions performed:
from dc3a662 nettrace_3gpp_32_423: fix memleak and copy of uninitialized memory
adds 3f3f742 tcp: fix memleak in Follow TCP tap in error cases
Summary of changes:
epan/dissectors/packet-tcp.c | 6 ++++++
1 file changed, 6 insertions(+)