From: Timo Sirainen Date: Fri, 9 Apr 2021 11:09:17 +0000 (+0300) Subject: lib-imap: fuzz-imap-bodystructure - Change failures to i_panic() instead of i_fatal() X-Git-Tag: 2.3.15~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=826f06cc43b22c9c97ac2545f4bf9603f837c16a;p=thirdparty%2Fdovecot%2Fcore.git lib-imap: fuzz-imap-bodystructure - Change failures to i_panic() instead of i_fatal() --- diff --git a/src/lib-imap/fuzz-imap-bodystructure.c b/src/lib-imap/fuzz-imap-bodystructure.c index c8c7d5296b..65a3be54ee 100644 --- a/src/lib-imap/fuzz-imap-bodystructure.c +++ b/src/lib-imap/fuzz-imap-bodystructure.c @@ -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))); }