Altera_Forum
Honored Contributor
11 years agoStack, heap overflow detection in NIOS2/Eclipse
Hello, all.
I need a solid method to track down potential stack, heap corruption. Looking at this document: n2cpu_nii5v1.pdf There is a section called "Overlapping Regions" which states: BEGIN QUOTE "To detect stack/heap overflows, you can define a small region between the stack and heap with no access permissions and assign it a higher priority than the larger region. Any access attempts to the hole region trigger an exception informing system software about the stack/heap overflow." END QUOTE So, seems like a good method. Now looking for details how to implement. Does anybody know of any examples or documentation illustrating/implementing this? Thank-you, Cos