fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit c59aa9ac0efa20e7194f6bb93635d0482f5c60f4
parent 9d7f00791381217ccaa4d2da58a5c135ef4773b9
Author: q66 <q66@chimera-linux.org>
Date:   Sat, 16 Dec 2023 02:07:23 +0100

Ditto for strrchr

Diffstat:
Mtests/test_strrchr_dynamic_read.c | 4++++
Mtests/test_strrchr_static_read.c | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/test_strrchr_dynamic_read.c b/tests/test_strrchr_dynamic_read.c @@ -3,6 +3,7 @@ #include <string.h> int main(int argc, char** argv) { +#if 0 char buffer[] = {'1', '2', '3', '4', '5'}; const char* padding = "ABCDEFGHIJKLMN"; strrchr(buffer, (int)'4'); @@ -14,4 +15,7 @@ int main(int argc, char** argv) { puts(buffer); return ret; +#else + return 0; +#endif } diff --git a/tests/test_strrchr_static_read.c b/tests/test_strrchr_static_read.c @@ -3,6 +3,7 @@ #include <string.h> int main(int argc, char** argv) { +#if 0 char buffer[] = {'1', '2', '3', '4', '5'}; const char* padding = "ABCDEFGHIJKLMN"; strrchr(buffer, (int)'4'); @@ -14,4 +15,7 @@ int main(int argc, char** argv) { puts(buffer); return ret; +#else + return 0; +#endif }