]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util/mime: enable debug validation check
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 4 May 2023 16:01:23 +0000 (21:31 +0530)
committerVictor Julien <vjulien@oisf.net>
Fri, 5 May 2023 08:22:11 +0000 (10:22 +0200)
src/util-decode-mime.c

index 77e5ef83284f1680db0914c5d4d5fddea6155347..78ec786ae7a80b243268e2b05ed3e99f97848cda 100644 (file)
@@ -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) {