commit 41b139afea16af9250a7f9ebe2e4e662d9584f25
parent 73c37e06b137bc9440e703d2b7c7bafcf622ece8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 6 Sep 2021 10:39:43 +0300
Revert 73c37e06b137bc9440e703d2b7c7bafcf622ece8
It does not solve the problem with sanitizer
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
@@ -821,9 +821,7 @@ MHD_str_remove_tokens_caseless_ (char *str,
}
/* s1 should point to the next token in the input string or beyond
* the end of the input string */
- /* The next comparison is modified version of
- * ((str + *str_len) < (s1 + tkn_len)) to silent analyzer error */
- if (*str_len < ((size_t) (s1 - str) + tkn_len))
+ if ((str + *str_len) < (s1 + tkn_len))
{ /* The rest of the 's1' is too small to match 'tkn' */
if ((str + *str_len) > s1)
{ /* Copy the rest of the string */