mirror of https://git.musl-libc.org/git/musl
Browse Source
it's essential to decrement the stack pointer before writing to new stack space, rather than afterwards. otherwise there is a race condition during which asynchronous code (signals) could clobber the data being stored. it may be possible to optimize the code further using stwu, but I wanted to avoid making any changes to the actual stack layout in this commit. further improvements can be made separately if desired.rs-1.0
2 changed files with 12 additions and 12 deletions
Loading…
Reference in new issue