This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] PR gdb/11092: Fix index overflow
- From: Tom Tromey <tromey at redhat dot com>
- To: Andreas Schwab <schwab at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 May 2010 10:37:28 -0600
- Subject: Re: [PATCH] PR gdb/11092: Fix index overflow
- References: <m3eiha7bsa.fsf@hase.home>
- Reply-to: tromey at redhat dot com
>>>>> "Andreas" == Andreas Schwab <schwab@redhat.com> writes:
Andreas> The length parameter of c_printstr can be -1 meaning NUL terminated.
Andreas> Compute real length before its first use as an index.
Andreas> 2010-05-17 Andreas Schwab <schwab@redhat.com>
Andreas> PR gdb/11092
Andreas> * c-lang.c (c_printstr): Compute real length of NUL terminated
Andreas> string at first.
This is ok. Thanks for fixing this.
Tom