Re: Stack Overflow Detection
- From: cbarn24050@xxxxxxx
- Date: Sat, 31 May 2008 04:56:11 -0700 (PDT)
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.
.
- References:
- Stack Overflow Detection
- From: Richard Phillips
- Stack Overflow Detection
- Prev by Date: Re: Any recommendations for audio player microcontrollers?
- Next by Date: Re: Any recommendations for audio player microcontrollers?
- Previous by thread: Re: Stack Overflow Detection
- Next by thread: Cheap/free stuff
- Index(es):
Relevant Pages
|