3 ms·
I don't do much C, or any at all. What would happen? Would the allocation fail and you'd end up with prefix pointing to NULL? Or would it overwrite something el
by ua16s1 8y ago
I don't do much C, or any at all. What would happen? Would the allocation fail and you'd end up with prefix pointing to NULL? Or would it overwrite something else on the stack?
- rambojazz 8y agoAs far as I know if there is not enough space it should trigger a page fault, which in turn triggers an exception, which should probably result in a segmentation fault.
- pjmlp 8y agoNot necessarily, it might just corrupt neighbouring data, changing the behaviour of the exploited function.