4 ms·
IMHO you're converting your heap buffer overflows into stack buffer overflows which are even easier to exploit.
by pilif 10y ago
IMHO you're converting your heap buffer overflows into stack buffer overflows which are even easier to exploit.
- thenewwazoo 10y agoStack usage is also much, much, much easier to characterize. In systems where stack depth is well-controlled (i.e. most embedded systems that don't have dynamic process/thread creation), very simple analysis will suffice to identify places where you blow your stack.
- usefulcat 10y agoNot using the heap != everything is allocated on the stack. In situations where you want to avoid dynamic allocation, memory for most things that would otherwise have been dynamically allocated ends up being statically allocated at compile time.
- revelation 10y agoExploiting systems without dynamic memory is pretty meh.. that's some NSA level Stuxnet bespoke shit. But no, judging from the code, you just give it one big fat I/O buffer that will usually come from .bss
- nwmcsween 10y agoIt depends, does malloc have some form of hardening? does the compiler insert stack canaries?