diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-12 17:33:02 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-12 19:31:44 +0300 |
commit | 4017f5a3ed9043e1c9329a3cc91f47be3fee710e (patch) | |
tree | 90bc5c4c51f900829963f505433cc73c20326ca6 /src/microhttpd/postprocessor.c | |
parent | bf6be24be37beceecd6c279047f4376c42e120c6 (diff) | |
download | libmicrohttpd-4017f5a3ed9043e1c9329a3cc91f47be3fee710e.tar.gz libmicrohttpd-4017f5a3ed9043e1c9329a3cc91f47be3fee710e.zip |
postprocessor: added asserts in process_value()
Diffstat (limited to 'src/microhttpd/postprocessor.c')
-rw-r--r-- | src/microhttpd/postprocessor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c index 3a19af02..74f50af5 100644 --- a/src/microhttpd/postprocessor.c +++ b/src/microhttpd/postprocessor.c | |||
@@ -355,6 +355,10 @@ process_value (struct MHD_PostProcessor *pp, | |||
355 | size_t xoff; | 355 | size_t xoff; |
356 | 356 | ||
357 | mhd_assert (pp->xbuf_pos < sizeof (xbuf)); | 357 | mhd_assert (pp->xbuf_pos < sizeof (xbuf)); |
358 | /* 'value_start' and 'value_end' must be either both non-NULL or both NULL */ | ||
359 | mhd_assert ( (NULL == value_start) || (NULL != value_end) ); | ||
360 | mhd_assert ( (NULL != value_start) || (NULL == value_end) ); | ||
361 | mhd_assert ( (NULL == last_escape) || (NULL != value_start) ); | ||
358 | /* move remaining input from previous round into processing buffer */ | 362 | /* move remaining input from previous round into processing buffer */ |
359 | memcpy (xbuf, | 363 | memcpy (xbuf, |
360 | pp->xbuf, | 364 | pp->xbuf, |