Fix Clang vs CONFIG_FORTIFY_SOURCE #77
Labels
bug
Something isn't working
[Compiler] Clang
An issue in Clang itself needs to be addressed
[Feature] FORTIFY_SOURCE
Involves buffer overflow detection
Uh oh!
There was an error while loading. Please reload this page.
This is the KSPP bug to track this same issue from ClangBuiltLinux:
ClangBuiltLinux#1002
Basically, CONFIG_FORTIFY_SOURCE does nothing under Clang.
__builtin_constant_p(end[] - start[])
https://bugs.llvm.org/show_bug.cgi?id=41459__builtin_mem*()
and__builtin_str*()
: bug and possible fix?__builtin_object_size()
does not reliably work within inlined functions: bugThese bugs can be worked around by reorganizing the fortify macros in the kernel, which is underway.
The text was updated successfully, but these errors were encountered: