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: [commit] objc-lang.c, classes_info, avoid string overrun


>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> 2011-02-28  Michael Snyder  <msnyder@vmware.com>
Michael> 	* objc-lang.c (selectors_info): Add a small safety margin to 
Michael> 	avoid overflow.
Michael> 	(classes_info): Error out on too long REGEXP.

I don't really mind this kind of cleanup, but it seems like it would
simpler to just fix the underlying bug entirely, say by using malloc and
a cleanup.

Tom


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