This commit is contained in:
Xavier Beaudouin
2024-03-19 08:50:30 +01:00
parent 44eacace6a
commit b6c3f20423
46 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ../libinjection-51f3a96/src/libinjection_sqli.c.orig 2023-05-30 15:47:57.333208000 -0400
+++ ../libinjection-51f3a96/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;