Skip to content

Commit 5b38984

Browse files
committed
Add assertion for multipart boundary in multipart_complete
To satisfy Quality Gate in CI. #3483 (comment)
1 parent 0bfb828 commit 5b38984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apache2/msc_multipart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,8 @@ int multipart_complete(modsec_rec *msr, char **error_msg) {
10231023
* processed yet) in the buffer.
10241024
*/
10251025
if (msr->mpd->buf_contains_line) {
1026+
assert(msr->mpd->boundary != NULL);
1027+
10261028
/*
10271029
* Note that the buffer may end with the final boundary followed by only CR,
10281030
* coming from the [CRLF epilogue], when allow_process_partial == 1 (which is

0 commit comments

Comments
 (0)