mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 11:03:09 -04:00
Fix building third-party naxsi module. <Changelog> *) Feature: virtual servers in the stream module. *) Feature: the ngx_stream_pass_module. *) Feature: the "deferred", "accept_filter", and "setfib" parameters of the "listen" directive in the stream module. *) Feature: cache line size detection for some architectures. Thanks to Piotr Sikora. *) Feature: support for Homebrew on Apple Silicon. Thanks to Piotr Sikora. *) Bugfix: Windows cross-compilation bugfixes and improvements. Thanks to Piotr Sikora. *) Bugfix: unexpected connection closure while using 0-RTT in QUIC. Thanks to Vladimir Khomutov. </Changelog>
13 lines
631 B
Text
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;
|