Wireshark-commits: [Wireshark-commits] master efe920a: netscaler: fix crash when reading malformed
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 20 Feb 2019 04:17:36 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=efe920af3a9f4d7a35c427ceaf4f95e31050f4d3
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

efe920a 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>
    

Actions performed:

    from  22330a8   F1AP: upgrade dissector to v15.4.1
     add  efe920a   netscaler: fix crash when reading malformed packets.


Summary of changes:
 wiretap/netscaler.c | 6 ++++++
 1 file changed, 6 insertions(+)