summaryrefslogtreecommitdiff
path: root/www/nginx/files/extra-patch-naxsi-libinjection__sqli_c
diff options
context:
space:
mode:
authorJochen Neumeister <joneum@FreeBSD.org>2024-06-15 09:12:03 +0200
committerJochen Neumeister <joneum@FreeBSD.org>2024-06-15 09:14:52 +0200
commitf054a3856d6ba8527d2544f1a7d06eada1314987 (patch)
treeaf29bfb8256c704e0ff9f0e1f5aab7ddcdc5088d /www/nginx/files/extra-patch-naxsi-libinjection__sqli_c
parentdevel/py-jsonrpclib-pelix: Update to 0.4.3.3 (diff)
www/nginx: Update to 1.26.0
Adoption of the changes of nginx-devel during the devel phase 1.25.x Changelogs: https://nginx.org/en/CHANGES-1.26 Sponsored by: Netzkommund GmbH
Diffstat (limited to 'www/nginx/files/extra-patch-naxsi-libinjection__sqli_c')
-rw-r--r--www/nginx/files/extra-patch-naxsi-libinjection__sqli_c13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/nginx/files/extra-patch-naxsi-libinjection__sqli_c b/www/nginx/files/extra-patch-naxsi-libinjection__sqli_c
new file mode 100644
index 000000000000..bdd074b620dd
--- /dev/null
+++ b/www/nginx/files/extra-patch-naxsi-libinjection__sqli_c
@@ -0,0 +1,13 @@
+--- ../libinjection-4aa3894/src/libinjection_sqli.c.orig 2023-05-30 15:47:57.333208000 -0400
++++ ../libinjection-4aa3894/src/libinjection_sqli.c 2023-05-30 15:49:52.273873000 -0400
+@@ -305,8 +303,8 @@
+ static void st_assign(stoken_t * st, const char stype,
+ size_t pos, size_t len, const char* value)
+ {
+- const size_t MSIZE = LIBINJECTION_SQLI_TOKEN_SIZE;
+- size_t last = len < MSIZE ? len : (MSIZE - 1);
++ const size_t NAXSI_MSIZE = LIBINJECTION_SQLI_TOKEN_SIZE;
++ size_t last = len < NAXSI_MSIZE ? len : (NAXSI_MSIZE - 1);
+ st->type = (char) stype;
+ st->pos = pos;
+ st->len = last;