summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq662023-12-16 02:03:16 +0100
committerq662023-12-16 02:03:16 +0100
commit9d7f00791381217ccaa4d2da58a5c135ef4773b9 (patch)
tree9c5645ca362d76708493fbe9aac48bed42f43b02
parentca2ede3b63b0b3c12a4059f282c86fd66024dbb7 (diff)
Disable strchr tests since strchr hardening is disabled
-rw-r--r--tests/test_strchr_dynamic_read.c4
-rw-r--r--tests/test_strchr_static_read.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_strchr_dynamic_read.c b/tests/test_strchr_dynamic_read.c
index fdd69df..b155f36 100644
--- a/tests/test_strchr_dynamic_read.c
+++ b/tests/test_strchr_dynamic_read.c
@@ -3,6 +3,7 @@
3#include <string.h> 3#include <string.h>
4 4
5int main(int argc, char** argv) { 5int main(int argc, char** argv) {
6#if 0
6 char buffer[] = {'1', '2', '3', '4', '5'}; 7 char buffer[] = {'1', '2', '3', '4', '5'};
7 const char* padding = "ABCDEFGHIJKLMN"; 8 const char* padding = "ABCDEFGHIJKLMN";
8 strchr(buffer, (int)'4'); 9 strchr(buffer, (int)'4');
@@ -14,4 +15,7 @@ int main(int argc, char** argv) {
14 15
15 puts(buffer); 16 puts(buffer);
16 return ret; 17 return ret;
18#else
19 return 0;
20#endif
17} 21}
diff --git a/tests/test_strchr_static_read.c b/tests/test_strchr_static_read.c
index fdd69df..b155f36 100644
--- a/tests/test_strchr_static_read.c
+++ b/tests/test_strchr_static_read.c
@@ -3,6 +3,7 @@
3#include <string.h> 3#include <string.h>
4 4
5int main(int argc, char** argv) { 5int main(int argc, char** argv) {
6#if 0
6 char buffer[] = {'1', '2', '3', '4', '5'}; 7 char buffer[] = {'1', '2', '3', '4', '5'};
7 const char* padding = "ABCDEFGHIJKLMN"; 8 const char* padding = "ABCDEFGHIJKLMN";
8 strchr(buffer, (int)'4'); 9 strchr(buffer, (int)'4');
@@ -14,4 +15,7 @@ int main(int argc, char** argv) {
14 15
15 puts(buffer); 16 puts(buffer);
16 return ret; 17 return ret;
18#else
19 return 0;
20#endif
17} 21}