ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Possible misuse of match_strval_idx

From: Evan Huus <eapache@xxxxxxxxx>
Date: Sat, 23 Mar 2013 19:57:24 -0400
On Sat, Mar 23, 2013 at 6:39 PM, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
> On 03/23/2013 10:07 PM, Evan Huus wrote:
>> Am I correct in thinking that in packet-gsm_a_dtap.c around line 6432,
>> if match_strval_idx doesn't find a match then we will access invalid
>> memory because idx will be used as an array index with value -1?
>>
>> Evan
>
> Unless gsm_a_dtap_msg_cc_strings contains 64 entries it seems so yes.

Filed as bug #8517.