3 ms·
The code in question strikes me as being a proof of concept. Obviously, a more complete implementation would be more complex. In the real world you'd create a
by mtanski 12y ago
The code in question strikes me as being a proof of concept. Obviously, a more complete implementation would be more complex.
In the real world you'd create a stack with mmap with the MMAP_STACK flag. You would ensure the stack is property aligned and make sure there's a guard page at the end of it.