libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7c0a88870b57845f72e107814c271b75f58765e9
parent a3b6d06f3270b3a237250f8e35abd862adf11e4a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 29 Oct 2020 19:54:44 +0300

postprocessor.c: added assert, muted analyzer warning

Diffstat:
Msrc/microhttpd/postprocessor.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c @@ -26,6 +26,7 @@ #include "internal.h" #include "mhd_str.h" #include "mhd_compat.h" +#include "mhd_assert.h" /** * 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, const char *end_value = NULL; const char *last_escape = NULL; + mhd_assert (PP_Callback != pp->state); + poff = 0; while ( ( (poff < post_data_len) || (pp->state == PP_Callback) ) &&