This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR gdb/11092: Fix index overflow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]