This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] objc-lang.c, classes_info, avoid string overrun
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 01 Mar 2011 07:30:54 -0700
- Subject: Re: [commit] objc-lang.c, classes_info, avoid string overrun
- References: <4D6C4FDB.1030201@vmware.com>
>>>>> "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