fortify-headers: standalone portable header-based implementation of FORTIFY_SOURCE=3

phrack.org13 min read

The authors present fortify-headers, a standalone and portable header-based implementation of FORTIFY_SOURCE=3 designed for C libraries that do not natively implement it. By utilizing compiler extensions like extern inline, wrapper headers, and attribute annotations, the implementation provides compile-time and runtime buffer overflow checks across different compilers including GCC and Clang. Open article →