Background
We enhance the stack protector at D139254
From then, tack protector will check the stack before return and call no-return function.
(Before, we only check before return, this give attack space in our user's code, and uses
hope we can fix it.)
In D139254 smeenai hope to use a option come back
to the previous action (only check for return) by consider the code size in their project. So I
implemented this patch.
To encourage users to use strict stack protect (both check for return and no-return call), I only
implement the option as a LLVM option first. If we have more requirements as smeenai do. We
will consider add a standard FE option.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo