summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/oidc-agent/files/oidc-agent-3.3.1_test-suite-buffer-overflows.patch')
-rw-r--r--net-misc/oidc-agent/files/oidc-agent-3.3.1_test-suite-buffer-overflows.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/oidc-agent/files/oidc-agent-3.3.1_test-suite-buffer-overflows.patch b/net-misc/oidc-agent/files/oidc-agent-3.3.1_test-suite-buffer-overflows.patch
new file mode 100644
index 00000000000..b43f20c0686
--- /dev/null
+++ b/net-misc/oidc-agent/files/oidc-agent-3.3.1_test-suite-buffer-overflows.patch
@@ -0,0 +1,51 @@
+--- a/test/src/utils/stringUtils/tc_strelim.c
++++ b/test/src/utils/stringUtils/tc_strelim.c
+@@ -7,7 +7,7 @@
+
+ START_TEST(test_noFound) {
+ const char* const str = "abcdeffedcba";
+- char s[strlen(str)];
++ char s[strlen(str) + 1];
+ strcpy(s, str);
+ ck_assert_str_eq(strelim(s, 'x'), str);
+ }
+--- a/test/src/utils/stringUtils/tc_strelimIfAfter.c
++++ b/test/src/utils/stringUtils/tc_strelimIfAfter.c
+@@ -7,7 +7,7 @@
+
+ START_TEST(test_noElim) {
+ const char* const str = "abcdeffedcba";
+- char s[strlen(str)];
++ char s[strlen(str) + 1];
+ strcpy(s, str);
+ ck_assert_str_eq(strelimIfAfter(s, 'b', 'x'), str);
+ }
+@@ -15,7 +15,7 @@
+
+ START_TEST(test_noFound) {
+ const char* const str = "abcdeffedcba";
+- char s[strlen(str)];
++ char s[strlen(str) + 1];
+ strcpy(s, str);
+ ck_assert_str_eq(strelimIfAfter(s, 'x', 'a'), str);
+ }
+--- a/test/src/utils/stringUtils/tc_strelimIfFollowed.c
++++ b/test/src/utils/stringUtils/tc_strelimIfFollowed.c
+@@ -7,7 +7,7 @@
+
+ START_TEST(test_noElim) {
+ const char* const str = "abcdeffedcba";
+- char s[strlen(str)];
++ char s[strlen(str) + 1];
+ strcpy(s, str);
+ ck_assert_str_eq(strelimIfFollowed(s, 'b', 'x'), str);
+ }
+@@ -15,7 +15,7 @@
+
+ START_TEST(test_noFound) {
+ const char* const str = "abcdeffedcba";
+- char s[strlen(str)];
++ char s[strlen(str) + 1];
+ strcpy(s, str);
+ ck_assert_str_eq(strelimIfFollowed(s, 'x', 'a'), str);
+ }