logoalt Hacker News

LegionMammal97804/23/20251 replyview on HN

This bug wasn't caused by a read beyond the current bounds of the stack, but a stale value from a prior call to the same function at the exact same location on the stack. Buffer-overflow protections like you describe wouldn't help here.


Replies

cadamsdotcom04/27/2025

I’m not sure - it seems like said function returns before the next call is made.

I’m proposing the memory of the fresh stack frame initially reads as zeroes until written to.