2 ms·
One could argue that the main problem here was writing from argv into env^1 , so if one wants to break userland APIs to secure this the best start would be to h
by josefx 5y ago
One could argue that the main problem here was writing from argv into env^1 , so if one wants to break userland APIs to secure this the best start would be to hit the memory region argv resides in with write protection.
^1 We all know that buffer overflows in C are extremely common so fixing argv[0] alone would be insufficient to fix the majority of bugs.