]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Fix potential assert-crash when fetching body snippet
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 30 Nov 2020 20:10:28 +0000 (22:10 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 8 Dec 2020 09:17:16 +0000 (09:17 +0000)
commit8b750e924ed60990ddb542e78d2f77178f2a91da
treecd9c76038e67c9b892f740cd6051bf001a4dd8f0
parent67b60270287a1ca184dd45ea4c90c71307d68072
lib-storage: Fix potential assert-crash when fetching body snippet

This happened only in a rather special condition. Added unit test to
reproduce it.

Fixes:
Panic: file message-part-data.c: line 28 (message_part_data_is_plain_7bit): assertion failed: (data != NULL)
src/lib-storage/index/index-mail-headers.c
src/lib-storage/test-mail.c