gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 02/03: fix PP bug discovered by MD


From: gnunet
Subject: [libmicrohttpd] 02/03: fix PP bug discovered by MD
Date: Wed, 10 Jun 2020 21:51:15 +0200

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit a019057377ee1b67d49264d1029ac615089b2422
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jun 10 21:45:23 2020 +0200

    fix PP bug discovered by MD
---
 ChangeLog                      | 4 ++++
 src/microhttpd/postprocessor.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9fede6ae..a8940d51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed 10 Jun 2020 09:44:29 PM CEST
+    Fixed PostProcessor bug discovered by MD, which given certain parser
+    boundaries caused the returned values to be wrong. -CG/MD
+
 Wed 08 Apr 2020 10:53:01 PM CEST
     Introduce `enum MHD_Result` for #MHD_YES/#MHD_NO to avoid using 'int' so 
much.
     Note that this change WILL cause compiler warnings until (most) MHD 
callbacks
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 9c464152..8848b306 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -541,6 +541,7 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
           pp->buffer_pos = 0;
           pp->value_offset = 0;
           pp->state = PP_Init;
+          start_value = NULL;
         }
         continue;
       case '\n':

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