Re: upwards growing stacks ??

(no name) ((no email))
04 Oct 1999 10:39:54 -0400


>>>>> "Linas" == Linas Vepstas <linas@linas.org> writes:
> The only other benefit is that it makes buffer overruns not clobber the
> stack, and thus provides some stack-smashing safety. Other than security,

This is only true if you're lucky enough that the top stack frame is
the same as the one in which the buffer was allocated. Typical overrun
look like

char array[80];
gets(array);

in which case the overrun can happily overwrite the return address for `gets'.

Stefan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/