Wireshark-commits: [Wireshark-commits] master c31425f: gsm_abis_oml: fix buffer overrun

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

Commits:

c31425f by Peter Wu (peter@xxxxxxxxxxxxx):

    gsm_abis_oml: fix buffer overrun
    
    Do not read outside boundaries when tag is exactly 0xff.
    
        tag = tvb_get_guint8(tvb, offset);
        tdef = find_tlv_tag(tag);
            ...
            return &nm_att_tlvdef_base.def[tag];
    
    Bug: 11825
    Change-Id: I42e624185abb2166aa0f8d0dbd71a2a86fc0b18e
    Reviewed-on: https://code.wireshark.org/review/14030
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  071dfd7   sober: fix cannot optimize loops warning [-Wunsafe-loop-optimizations]
    adds  c31425f   gsm_abis_oml: fix buffer overrun


Summary of changes:
 epan/dissectors/packet-gsm_abis_oml.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)