]> 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)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 5 May 2021 13:24:51 +0000 (16:24 +0300)
commit06b333a5634742431d27a8c0d699fe01448a5167
tree47dee76b498b0ac9ab80530947f14c643dadef3b
parentc018b37b8169e12c39378cd8b88eea5a4aa717d9
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