malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

Stack checking for AVR #9

Closed malsyned closed 6 years ago

malsyned commented 6 years ago

Both for end users and for my education, put guard bytes at the top of the stack and verify that they're still there at the end of testing.

malsyned commented 6 years ago

Implemented by filling the entire heap, up to the stack pointer, with the repeating sentinel string "EMTY" on start-up, then searching for a span of at least four of them to identify the space between the stack and the heap.