From: Shivani Bhardwaj Date: Thu, 4 May 2023 16:01:23 +0000 (+0530) Subject: util/mime: enable debug validation check X-Git-Tag: suricata-7.0.0-rc2~289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe13885a2c3c7de4262ce0337143088510c1bbd;p=thirdparty%2Fsuricata.git util/mime: enable debug validation check --- diff --git a/src/util-decode-mime.c b/src/util-decode-mime.c index 77e5ef8328..78ec786ae7 100644 --- a/src/util-decode-mime.c +++ b/src/util-decode-mime.c @@ -1674,12 +1674,8 @@ static int FindMimeHeader(const uint8_t *buf, uint32_t blen, int finish_header = 0, new_header = 0; MimeDecConfig *mdcfg = MimeDecGetConfig(); -/* TODO enable the following check once https://redmine.openinfosecfoundation.org/issues/6019 is - * resolved */ -#if 0 - /* should not get here with incomplete lines */ DEBUG_VALIDATE_BUG_ON(state->current_line_delimiter_len == 0 && blen < SMTP_LINE_BUFFER_LIMIT); -#endif + /* Find first header */ hname = FindMimeHeaderStart(buf, blen, &hlen); if (hname != NULL) {