]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: fuzz-imap-bodystructure - Change failures to i_panic() instead of i_fatal()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 9 Apr 2021 11:09:17 +0000 (14:09 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 May 2021 13:24:51 +0000 (16:24 +0300)
src/lib-imap/fuzz-imap-bodystructure.c

index c8c7d5296ba8abe4b59e9fccd031a175bf305df4..65a3be54eef602db619aeb5c3bd3bdfb3f5e5bec 100644 (file)
@@ -32,14 +32,14 @@ FUZZ_BEGIN_STR(const char *str)
                /* The written bodystructure must be parseable *and*
                   it must come out exactly the same again */
                if (imap_bodystructure_parse(str_c(dest), pool, &parts, &error) != 0) {
-                       i_fatal("Failed to reparse bodystructure '%s'",
+                       i_panic("Failed to reparse bodystructure '%s'",
                                str_sanitize_binary(str_c(dest)));
                } else {
                        const char *new_str = t_strdup(str_c(dest));
                        str_truncate(dest, 0);
                        imap_bodystructure_write(&parts, dest, TRUE);
                        if (strcmp(str_c(dest), new_str) != 0) {
-                               i_fatal("Parsed bodystructure '%s' does not match '%s'",
+                               i_panic("Parsed bodystructure '%s' does not match '%s'",
                                        str_sanitize_binary(new_str),
                                        str_sanitize_binary(str_c(dest)));
                        }