plum-umd / the-838e-compiler

Compiler for CMSC 838E
2 stars 0 forks source link

Working heap overflow detection. #61

Open jeprinz opened 3 years ago

jeprinz commented 3 years ago

Stores pointer to end of heap in r15 and compares using check-heap-ptr command sequence.

I tested the heap overflow detection by making the heap size 5, and the running with and without overflow detection. Without, it segfaulted. With, it failed by returning the error code but didn't segfault.