Wireshark mailing list archives

Re: Possible misuse of match_strval_idx


From: Evan Huus <eapache () gmail com>
Date: Sat, 23 Mar 2013 19:57:24 -0400

On Sat, Mar 23, 2013 at 6:39 PM, Jaap Keuter <jaap.keuter () xs4all nl> 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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: