This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: alloca is bad?
Nick Duffek <nsd@redhat.com> writes:
>
> 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.
Usually, by the time I've discovered the problem is related to alloca
at all, I've found the bug anyway.
I guess I could just always build with the malloc-based alloca and
-lefence, but...