[PATCH] Protection against stack-based memory corruption errors using SafeStack: Clang command line option and function attribute
vova.kuznetsov at epfl.ch
Mon Nov 3 09:42:07 PST 2014
This patch adds the -fsafe-stack command line argument for clang, which enables the Safe Stack protection (see [[ http://reviews.llvm.org/D6094 | http://reviews.llvm.org/D6094 ]] for the detailed description of the Safe Stack).
This patch is our implementation of the safe stack on top of the current SVN HEAD of Clang (r221154). The patches make the following changes:
-- Add -fsafe-stack and -fno-safe-stack options to clang to control safe stack usage (the safe stack is disabled by default).
-- Add __attribute__((no_safe_stack)) attribute to clang that can be used to disable the safe stack for individual functions even when enabled globally.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12258 bytes
Desc: not available
More information about the cfe-commits