aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-10-29 19:54:44 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-10-29 19:54:44 +0300
commit7c0a88870b57845f72e107814c271b75f58765e9 (patch)
tree7efaad04ab8b6c63cd941d2609bca5d6f2d9bf29
parenta3b6d06f3270b3a237250f8e35abd862adf11e4a (diff)
downloadlibmicrohttpd-7c0a88870b57845f72e107814c271b75f58765e9.tar.gz
libmicrohttpd-7c0a88870b57845f72e107814c271b75f58765e9.zip
postprocessor.c: added assert, muted analyzer warning
-rw-r--r--src/microhttpd/postprocessor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index b9e93b8c..e6f0a9a7 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -26,6 +26,7 @@
26#include "internal.h" 26#include "internal.h"
27#include "mhd_str.h" 27#include "mhd_str.h"
28#include "mhd_compat.h" 28#include "mhd_compat.h"
29#include "mhd_assert.h"
29 30
30/** 31/**
31 * Size of on-stack buffer that we use for un-escaping of the value. 32 * Size of on-stack buffer that we use for un-escaping of the value.
@@ -509,6 +510,8 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
509 const char *end_value = NULL; 510 const char *end_value = NULL;
510 const char *last_escape = NULL; 511 const char *last_escape = NULL;
511 512
513 mhd_assert (PP_Callback != pp->state);
514
512 poff = 0; 515 poff = 0;
513 while ( ( (poff < post_data_len) || 516 while ( ( (poff < post_data_len) ||
514 (pp->state == PP_Callback) ) && 517 (pp->state == PP_Callback) ) &&