Wireshark-commits: [Wireshark-commits] master 07bb974: netscaler: fix multiple out-of-bounds reads.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=07bb974bcd99467381dddae134f11a6f21cf6ca5
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
07bb974 by Dario Lombardo (lomato@xxxxxxxxx):
netscaler: fix multiple out-of-bounds reads.
Multiple bugs have been found in the provided bug. Some of them have
been fixed in gefe920a, others here. The main problem is when malformed
files give wrong lenghts to the code, that casts and dereference it
without checking, causing oob reads. The fix introduces a check function
that prevents to go beyond the limits, early returning with a malformed
file message.
Other bugs have been fixed by forcing the string terminator that allows
the use of strlen() and MIN() that prevent wrong reads.
Bug: 15497
Change-Id: I8411208b5ea0f1a0720a17b882f704d03296d1c4
Reviewed-on: https://code.wireshark.org/review/32194
Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
Actions performed:
from a4068a9 sbus: Add multi-media telegram dissection
add 07bb974 netscaler: fix multiple out-of-bounds reads.
Summary of changes:
wiretap/netscaler.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 60 insertions(+), 6 deletions(-)