[–] pmoriarty 11y ago ↗ 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? [–] ucho 11y ago ↗ Of course it is. AFAIRF Valgrind works by replacing malloc() and free() that way. [–] pmoriarty 11y ago ↗ I meant: it's not possible to statically link programs on Linux anymore, is it? [–] danellis 11y ago ↗ Yes, it's possible. Just pass -static to gcc, for example.
[–] ucho 11y ago ↗ Of course it is. AFAIRF Valgrind works by replacing malloc() and free() that way. [–] pmoriarty 11y ago ↗ I meant: it's not possible to statically link programs on Linux anymore, is it? [–] danellis 11y ago ↗ Yes, it's possible. Just pass -static to gcc, for example.
[–] pmoriarty 11y ago ↗ I meant: it's not possible to statically link programs on Linux anymore, is it? [–] danellis 11y ago ↗ Yes, it's possible. Just pass -static to gcc, for example.
[–] TheCams 11y ago ↗ 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.
5 comments
[ 2.9 ms ] story [ 21.9 ms ] threadThat's not really possible on Linux anymore, is it?