> But I don't know every way you could be messing up the
> stack.  Maybe someone with more compiler knowledge
> would like to comment.  (Ben?)

The easiest way to kill your return address on the stack is to overrun
the bounds of an array you have as a local variable.  Saying

char foo[4];
strcpy(foo, "test");

can kill your return address, since you write one character too many.
This could also kill the saved frame pointer, making the function
returned to malfunction.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to