5 comments

[ 2.9 ms ] story [ 21.9 ms ] thread
So if you didn’t want your program to be attacked like this, you could: statically link your program..."

That's not really possible on Linux anymore, is it?

Of course it is. AFAIRF Valgrind works by replacing malloc() and free() that way.
I meant: it's not possible to statically link programs on Linux anymore, is it?
Yes, it's possible. Just pass -static to gcc, for example.
One of the funniest class I had when I was a student was to rewrite malloc and replace it using LD_PRELOAD then try to run Firefox for example.