Re: Stack Overflow Detection



On May 30, 3:51�pm, "Richard Phillips" <raphill...@xxxxxxxxxxxx>
wrote:
Hello all,

I'm thinking about implementing the above in a system I'm working on, does
anyone have a good strategy for doing this?
One possibility is having an area of RAM (beyond the stack "area") filled
with known data, if any of that data gets trashed then assume the stack has
overflowed. �What are the pros and cons of this?
Another idea is to actually watch the SP, but one drawback is if I check
this at a predefined point in the code, then it's possible the worst case
scenario will occur between checks?
Any better ideas?

Regards,
Richard.

What for? What processor? It's not really possible to give any
sensible answer without this information.
.



Relevant Pages

  • Re: Help a beginner - simple lowercase to uppercase and so on
    ...  > borrows your watch to tell you the time, ... The value of the address is on the stack. ... the subroutine do its wicked will, and then moving it back. ... by reference calling in a programming language is SUPPORTED ...
    (comp.lang.c)
  • Re: 100 tube tails behind stunt kites
    ... most of the time I find them a little dull to watch (I mean, pull this ... : public to watch. ... don't seem to give a damn -- but put up a small stack with tails (I have ... Tails and stacks do attract a lot of attention. ...
    (rec.kites)
  • Re: Hey MIssT !
    ... On Nov 7 2006 2:47 AM, jofo wrote: ... I did not stay around to watch, I never do unless a friend is in it. ... As the CL, no matter what kind of stack he has, he's basically offering 5K ...
    (rec.gambling.poker)
  • Re: **Stack It Up Game**
    ... agentQ wrote: ... c'mon guys stack it up is fun... ... watch my 'unispin tutorial' ...
    (rec.sport.unicycling)
  • Stack Overflow Detection
    ... One possibility is having an area of RAM (beyond the stack "area") filled ... Another idea is to actually watch the SP, but one drawback is if I check ... scenario will occur between checks? ... Richard. ...
    (comp.arch.embedded)