[PATCH] PR gdb/11092: Fix index overflow

Tom Tromey tromey@redhat.com
Mon May 17 16:50:00 GMT 2010


>>>>> "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



More information about the Gdb-patches mailing list