commit 9d7f00791381217ccaa4d2da58a5c135ef4773b9
parent ca2ede3b63b0b3c12a4059f282c86fd66024dbb7
Author: q66 <q66@chimera-linux.org>
Date: Sat, 16 Dec 2023 02:03:16 +0100
Disable strchr tests since strchr hardening is disabled
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/test_strchr_dynamic_read.c b/tests/test_strchr_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";
strchr(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_strchr_static_read.c b/tests/test_strchr_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";
strchr(buffer, (int)'4');
@@ -14,4 +15,7 @@ int main(int argc, char** argv) {
puts(buffer);
return ret;
+#else
+ return 0;
+#endif
}