aenachescu / PhiOS

GNU General Public License v3.0
6 stars 1 forks source link

Implement stack smashing protector #79

Closed JustBeYou closed 7 years ago

JustBeYou commented 7 years ago

The Stack Smashing Protector (SSP) compiler feature helps detect stack buffer overrun by aborting if a secret value on the stack is changed. This serves a dual purpose in making the occurrence of such bugs visible and as exploit mitigation against return-oriented programming. SSP merely detects stack buffer overruns, they are not prevented. The detection can be beaten by preparing the input such that the stack canary is overwritten with the correct value and thus does not offer perfect protection.

aenachescu commented 7 years ago

0f479d3 5a89c35