3 ms·
If the stack buffer is allocated in any frame except the leaf frame, just as easy. void outer() { char buff[64]; read_data(buff); p
by haileys 4y ago
If the stack buffer is allocated in any frame except the leaf frame, just as easy.
void outer() {
char buff[64];
read_data(buff);
process_data(buff);
}
void process_data(char* buff) {
// buffer overflow here is just as bad, even if stack grows up
}