Wireshark-commits: [Wireshark-commits] master-1.12 c43f94f: ber: fix buffer overrun when handling e

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 20 Feb 2016 15:07:56 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c43f94f03a46cd5778e807aa3454dbbb48dfaed9
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark

Commits:

c43f94f by Peter Wu (peter@xxxxxxxxxxxxx):

    ber: fix buffer overrun when handling empty sets
    
    When a set is empty, only a terminator (ber_sequence_t with NULL func)
    is present. In that case, do not try to find more values as that will
    never succeed.
    
    Bug: 12106
    Change-Id: I26cd4ba84a9580e92d5921592a27c2af17c0bebf
    Reviewed-on: https://code.wireshark.org/review/14028
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    (cherry picked from commit 55b5b7caf3ec4856838b0416d5a91d3a3ff67ec8)
    Reviewed-on: https://code.wireshark.org/review/14036
    

Actions performed:

    from  1d5f600   gsm_abis_oml: fix buffer overrun
    adds  c43f94f   ber: fix buffer overrun when handling empty sets


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