gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: postprocessor: fixed incomplete p


From: gnunet
Subject: [libmicrohttpd] branch master updated: postprocessor: fixed incomplete processing of hex-encoding values
Date: Wed, 15 Sep 2021 20:44:09 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new e9096b7c postprocessor: fixed incomplete processing of hex-encoding 
values
e9096b7c is described below

commit e9096b7c8dfec379c95b171edf83d895ef777635
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 15 21:43:51 2021 +0300

    postprocessor: fixed incomplete processing of hex-encoding values
    
    Under certain conditions, the final part of the last value can be left
    unprocessed.
---
 src/microhttpd/postprocessor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 9b87554a..21007e75 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -604,7 +604,8 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
         /* Case: 'value\n' or 'value\r' */
         end_value = &post_data[poff];
         poff++;
-        if (pp->must_ikvi)
+        if (pp->must_ikvi ||
+            (start_value != end_value) )
           pp->state = PP_Callback;
         else
           pp->state = PP_Done;

-- 
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]