From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Meissner To: Nick Duffek Cc: gdb@sources.redhat.com Subject: Re: alloca is bad? Date: Mon, 13 Nov 2000 12:21:00 -0000 Message-id: <20001113152141.07868@cse.cygnus.com> References: <20001112200034.53469@cse.cygnus.com> <200011132020.eADKKNZ16954@rtl.cygnus.com> X-SW-Source: 2000-11/msg00131.html On Mon, Nov 13, 2000 at 03:20:23PM -0500, Nick Duffek wrote: > On 12-Nov-2000, Michael Meissner wrote: > > >For malloc overruns, I typically just link in with -lefence or other > >tools, and it is fairly obvious where the bug is. > > For alloca overruns, one could get similar results by recompiling with > libiberty's alloca and linking with -lefence. That won't work, since alloca is a builtin provided by GCC. If GCC is detected as the compiler at configuration time, then alloca is not even built into libiberty. On systems like Linux and *BSD, there is typically no other compiler except GCC. -- Michael Meissner, Red Hat, Inc. PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA Work: meissner@redhat.com phone: +1 978-486-9304 Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482