Wireshark-commits: [Wireshark-commits] master-2.4 13270b1: LWAPP: define a recursion depth limit
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 07 Mar 2018 21:34:45 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=13270b1bc0a29f9c31358ae1461c8eb9253cc08e
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark

Commits:

13270b1 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>
    (cherry picked from commit 1592587e6f9fd8c8aa8fc7f67989690d0c6882c4)
    Reviewed-on: https://code.wireshark.org/review/26343
    

Actions performed:

    from  03e55eb   bluetooth: Update Assigned Numbers
    adds  13270b1   LWAPP: define a recursion depth limit


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