Wireshark-commits: [Wireshark-commits] master 8f1751c: ieee80211: check offset before using it.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 06 Mar 2019 15:15:57 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8f1751ce400de17ffad0eac3cb01ca4544141e26
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

8f1751c by Dario Lombardo (lomato@xxxxxxxxx):

    ieee80211: check offset before using it.
    
    If we go over 31, we get an invalid shift. It's due to malformed
    packets. Add an expert info and exit the loop.
    
    Bug: 14770
    Change-Id: Icc17831ee23395ed2b0d414af09d86d1d1a6444c
    Reviewed-on: https://code.wireshark.org/review/32316
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  d7a3764   Some cleanups.
     add  8f1751c   ieee80211: check offset before using it.


Summary of changes:
 epan/dissectors/packet-ieee80211.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)