Wireshark-commits: [Wireshark-commits] master-3.0 490b381: netscaler: fix crash when reading malfor
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=490b381729091339d18a8e2fd359b321e12e104b
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark
Commits:
490b381 by Dario Lombardo (lomato@xxxxxxxxx):
netscaler: fix crash when reading malformed packets.
When reading a malformed packet, it can occur that we go close to
the end of the buffer. We need to check if we have 2 bytes before
reading a uint16.
Bug: 15497
Change-Id: I2b00f44933ca11b925ffbf05b9855684feebcda5
Reviewed-on: https://code.wireshark.org/review/32028
Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
(cherry picked from commit efe920af3a9f4d7a35c427ceaf4f95e31050f4d3)
Reviewed-on: https://code.wireshark.org/review/32195
Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
Actions performed:
from bfa2abf Do a better job describing what the switch to Npcap means to users.
add 490b381 netscaler: fix crash when reading malformed packets.
Summary of changes:
wiretap/netscaler.c | 6 ++++++
1 file changed, 6 insertions(+)