stack-protect equivalent in clang compiler? -
most of mature compilers appear have support stack variable clobbers.
- gcc: -fstack-protector
- xlc: -qstackprotect
- intel: -fstackprotector
- windows: /rtc
for clang i've found -fsanitize=safe-stack, doesn't support shared libraries, makes pretty useless me.
it looks sanitizer implemented add-on? know if clang has sort of alternate (built-in?) anti stack-smashing support doesn't have no shared library restriction, or if there plans generalize existing limited safe-stack implementation catch other compilers?
do want find hidden memory bugs in app or harden production use? former can go -fsanitize=address
available both in gcc , in clang, provides excellent buffer overflow detection , can applied parts of program (you won't detect errors in case). it's not suitable production use though has 2x performance penalty , makes program more vulnerable external attacks.
Comments
Post a Comment