Wireshark-commits: [Wireshark-commits] master-2.6 85499cd: dcerpc: ensure the length in the packet
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 05 Apr 2019 22:23:48 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=85499cde33548af10ce27aece2e9219c8cc78d42
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

85499cd by Dario Lombardo (lomato@xxxxxxxxx):

    dcerpc: ensure the length in the packet doesn't overcome the boundaries.
    
    The spoolss dissector creates a new source using the length from the packet
    data. If it overcomes the ends of the packet we hit a crash. In this case
    add an expert info and stop the dissection
    
    Bug: 15568
    Change-Id: Idfb0b54c1f41842170d3d03c80897a3b7edc9400
    Reviewed-on: https://code.wireshark.org/review/32449
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit 5aba3ed0cdebc1ec960261e3e9eda87c8408259f)
    Reviewed-on: https://code.wireshark.org/review/32749
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    

Actions performed:

    from  03273f5   Prep for 2.6.8.
     add  85499cd   dcerpc: ensure the length in the packet doesn't overcome the boundaries.


Summary of changes:
 epan/dissectors/packet-dcerpc-spoolss.c | 9 +++++++++
 1 file changed, 9 insertions(+)