summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-12-27Don't check for overlapping in strncpy/stpncpy for nowjvoisin
They check overlap across the whole range of the given length, but the given length is not what will actually be copied, rather it's the maximum length (if src is shorter, only length of src will be copied). This triggers false positives and traps where it shouldn't (e.g. in ICU tests). Reported-by: q66
2023-12-18fix typo for __builtin_memcpypsykose
2023-12-16Ditto for strrchrq66
2023-12-16Disable strchr tests since strchr hardening is disabledq66
2023-12-16Also handle SIGTRAP in testsq66
SIGILL is not the only possible trap handler. On non-x86 archs this is not the case for instance.
2023-12-16Bump to 2.12.1q66
2023-12-16Disable str(r)chr hardeningq66
It's UB to subtract null pointers, which these potentially may be. It also makes python test suite fail.
2023-12-15Rename some macros to be more namespace-friendlyq66
2023-12-15Fix missing } for extern "C" when using clangq66
2023-12-15Move wctomb to stdlib.h and disable it for nowq66
2023-12-15Guard some conditional stdio APIs with the right macrosq66
Fixes https://github.com/jvoisin/fortify-headers/issues/34
2023-12-15Do not use static inline for C++ to avoid ODR violationsq66
Fixes https://github.com/jvoisin/fortify-headers/issues/31
2023-12-15Add missing include in select.hq66
2023-12-15Remove superfluous includesJulien Voisin
2023-12-15Remove superfluous includesjvoisin
This should fix #32
2023-12-12Bump to 2.02.0jvoisin
2023-12-10Add gcc 13 to the CIjvoisin
2023-12-08Add a check in the CI to keep the readme up to datejvoisin
2023-12-08Update the readme to point to upstream git repojvoisin
2023-12-07Add qsortjvoisin
2023-12-07Add a global test to ensure that all headers are compilingjvoisin
2023-12-06Work around an erroneous `-Wformat-nonliteral` bug in gccjvoisin
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110834 Reported-by: ksperling-apple
2023-12-05Update the READMEjvoisin
2023-11-16Add hardening for select()Julien Voisin
2023-11-16Add hardening for select()jvoisin
This is unlikely to be used, since fd_set is usually manipulated by macros, but it doesn't hurt to add a simple comparison.
2023-11-01Add support for FD_ISSETjvoisin
2023-10-16Add a check about redefined macrosjvoisin
2023-10-01Add vfprintf`jvoisin
2023-10-01Add `fprintf`jvoisin
2023-09-30Add `vprintf`jvoisin
2023-09-30Fix a typojvoisin
2023-09-30Add `strlen`jvoisin
2023-09-29Make use of the native _chk variants for realjvoisin
2023-09-28Add `printf` hardeningjvoisin
2023-09-27Add support for more builtin compiler provided _chk variantsjvoisin
2023-09-27Add an option to make use of compiler-provided _chk builtinsjvoisin
2023-09-22Add more __diagnose_as_builtin annotationsjvoisin
2023-09-21Properly enable diagnose_as_builtin attributejvoisin
2023-09-21Add clang 15 to the CIjvoisin
2023-09-20Add tests for compile-time errorsjvoisin
2023-09-20Replace a strlen+condition with strnlenjvoisin
2023-09-17Make use of the buffers in the wide-chars testsjvoisin
Just in case the compiler tries to optimize some things away.
2023-09-17Fix compilation under clang for bsd-specific functionsjvoisin
2023-09-17Add more dynamic testsjvoisin
2023-09-17Add dynamic tests for strcpy and strncatjvoisin
2023-09-17Add a test for stpcpyjvoisin
2023-09-11Factorize overlap checks into a macrojvoisin
2023-09-11Fix a warningjvoisin
2023-09-11Add a warning for _FORTIFY_SOURCE>3jvoisin
2023-09-11Add a warning if realpath is called with path set to NULLjvoisin