stack-protect equivalent in clang compiler? -


most of mature compilers appear have support stack variable clobbers.

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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -