trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Move stack to the start of the address space

Open matejcik opened this issue 3 years ago • 0 comments
trafficstars

To avoid memory corruption when our stack overflows into the GC arena -- or anywhere, for that matter -- we can move the stack to the start of the address space. Then when something overflows the stack, we will see a crash immediately, and will have a much easier time tracing what code caused it.

matejcik avatar Aug 01 '22 12:08 matejcik