Re:C99 doesn't need function bodies, or 'VLAs are Turing com...
by remexre on Thursday August 04, 2022 @06:51PM
(#32349324)
> Though I do wonder why there can't be a form of malloc that allocates in a stack like fashion in real time
I think that's basically what the LLVM SafeStack pass does -- stack variables that might be written out of bounds are moved to a separate stack so they can't smash the return address.
I think that's basically what the LLVM SafeStack pass does -- stack variables that might be written out of bounds are moved to a separate stack so they can't smash the return address.