Mail Archives: djgpp-workers/1999/08/22/05:57:28
Hans-Bernhard said:
> Same problem as with the guard page approach: if the stack is overflown,
> if will often happen in one large step, without touching all addresses in
> between. Think of someone using a double a[200000]; local variable.
> Stack corruption happens, but your guard value will only be hit if
> that array is actually modified.
I'm aware of that, but this one is very cheap to implement. And it
will catch too deep function nesting, I think.
Does anybody know why cc1 or whatever programs must have a larger
stack? It surely isn't because it declares huge arrays locally without
trying to use them, right?
What do you people think, will this be useful enough to warrant
implementation?
By the way, what data is first overwritten by a stack overrun?
Diamanda Galas, The Divine Punishment,
MartinS
- Raw text -