]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util/mime: disable assertion check until resolution 8794/head
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 2 May 2023 06:36:11 +0000 (12:06 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 2 May 2023 06:36:11 +0000 (12:06 +0530)
src/util-decode-mime.c

index 6bb7e9d93495448ff404f3800a9a2686262bb76b..77e5ef83284f1680db0914c5d4d5fddea6155347 100644 (file)
@@ -1674,9 +1674,12 @@ 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) {