Wireshark-commits: [Wireshark-commits] master 1592587: LWAPP: define a recursion depth limit
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 07 Mar 2018 19:30:11 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1592587e6f9fd8c8aa8fc7f67989690d0c6882c4
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

1592587 by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    LWAPP: define a recursion depth limit
    
    Altough the dissection consumes a few ytes each time it is called,
    it can trigger a stack overflow for big packets.
    Let's limmit the number of allowed encapsulation for a given packet.
    
    Bug: 14467
    Change-Id: I73e82e01810b63a4f603907e69b20f3715a4ad55
    Reviewed-on: https://code.wireshark.org/review/26338
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  7dd7a05   [NAS-5GS] Dissect more IEs
    adds  1592587   LWAPP: define a recursion depth limit


Summary of changes:
 epan/dissectors/packet-lwapp.c | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)