]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-imap: imap_bodystructure_write() - Return error on corruption instead of assert...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 1 Apr 2021 17:39:27 +0000 (20:39 +0300)
committermarkus.valentin <markus.valentin@open-xchange.com>
Wed, 21 Apr 2021 06:41:27 +0000 (06:41 +0000)
commit2cd90ef78ab9e5fb7b4daf1ee684ab473f59fe67
tree890921daa6327a39e420ef25aaa72ff07d6b3cf3
parentf09b1184b365af7ed91945f4273efa6bab814936
lib-imap: imap_bodystructure_write() - Return error on corruption instead of assert-crash

This could happen if broken message_parts came from cache and
message_part->data was newly read from the mail input.
src/lib-imap-storage/imap-msgpart.c
src/lib-imap/fuzz-imap-bodystructure.c
src/lib-imap/imap-bodystructure.c
src/lib-imap/imap-bodystructure.h
src/lib-imap/test-imap-bodystructure.c
src/lib-storage/index/imapc/imapc-mail-fetch.c
src/lib-storage/index/index-mail.c