ports/www/nginx/files/extra-patch-naxsi-libinjection__sqli_c
Jochen Neumeister f054a3856d 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
2024-06-15 09:14:52 +02:00

14 lines
631 B
Plaintext

--- ../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;