gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/04: Revert 73c37e06b137bc9440e703d2b7c7bafcf622ece8


From: gnunet
Subject: [libmicrohttpd] 01/04: Revert 73c37e06b137bc9440e703d2b7c7bafcf622ece8
Date: Tue, 07 Sep 2021 11:27:53 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 41b139afea16af9250a7f9ebe2e4e662d9584f25
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Sep 6 10:39:43 2021 +0300

    Revert 73c37e06b137bc9440e703d2b7c7bafcf622ece8
    
    It does not solve the problem with sanitizer
---
 src/microhttpd/mhd_str.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c
index 615fbe3b..1c77a46d 100644
--- 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 */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]