Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

SDK • Re: Stack Location

$
0
0
The default stack guards are only 32-bytes wide, so (if enabled), they will detect many stack overflows but not a galloping overflow that puts some big structure on the stack (lying over the guard region) and then doesn't actually write to all of it.
...
+1

I agree with everything arg001 has written here and I would add that placing the stack of the core that you think is more likely overflowing at the bottom of RAM makes it even easier to catch such overflows.

Statistics: Posted by adam_green — Sun Dec 10, 2023 8:49 pm



Viewing all articles
Browse latest Browse all 5251

Trending Articles