Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I did something stupid!

Name: Anonymous 2009-02-18 12:02

Know what it was? It was compiling C++ code on a single-user system without knowing barely anything about the language, then running running that code on a multi-user system far later and finding out, hey, I'm segfaulting!

Any way I can try to patch up any possible memory leaks in my normal computer?

Name: Anonymous 2009-02-18 13:42

Make all virtual addresses accessible for rw. This will make segfaults impossible.

Since the kernel will likely reserve some memory in the upper half of your address space, mask every pointer with 0x7FFF... for extra security (if you don't know how to do that, cast it to an int and use abs() on it, then cast it back).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List