search for: fortify_source_requirements

Displaying 2 results from an estimated 2 matches for "fortify_source_requirements".

2019 Dec 03
5
clang and -D_FORTIFY_SOURCE=1
...o this fedora thread where clang/llvm -D_FORTIFY_SOURCE support is claimed to be only partial: https://pagure.io/fesco/issue/2020 I dig into the glibc headers in order to have a better understanding of what's going on, and wrote my notes here: https://sergesanspaille.fedorapeople.org/fortify_source_requirements.rst TL;DR: clang does provide a similar compile-time checking as gcc, but no runtime checking. To assert that I wrote a small test suite: https://github.com/serge-sans-paille/fortify-test-suite And indeed, clang doesn't pass it, mostly because it turns call to __builtin__(.*)_chk into ca...
2019 Dec 04
2
[cfe-dev] clang and -D_FORTIFY_SOURCE=1
...d to be only partial: > > > > https://pagure.io/fesco/issue/2020 > > > > I dig into the glibc headers in order to have a better understanding of > what's > > going on, and wrote my notes here: > > > > > https://sergesanspaille.fedorapeople.org/fortify_source_requirements.rst > > > > TL;DR: clang does provide a similar compile-time checking as gcc, but no > > runtime > > checking. To assert that I wrote a small test suite: > > > > https://github.com/serge-sans-paille/fortify-test-suite > > > > And indeed, clang doe...