freebsd-ports/www/freenginx/files/extra-patch-naxsi-libinjection__sqli_c
Jochen Neumeister 8ac09f0e85 www/freenginx: Update to 1.26.0
Changelog: freenginx-1.26.0 stable version has been released, incorporating new
features and bug fixes from the 1.25.x mainline branch  — including
experimental HTTP/3 support, improved mitigation of various DoS attacks,
fixes in AIO handling, and more.

Adoption of the changes from www/nginx

Sponsored by:	Netzkommune GmbH
2024-06-18 11:26:47 +02:00

13 lines
631 B
Text

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