]> 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>
Fri, 4 Dec 2020 11:13:31 +0000 (13:13 +0200)
commit090bad0fa941d0eeeaf19903aea3755821dcda9b
treec4229c01b673aa9f588a8b7288e51818e7f898a0
parent6b9c86377b7aa9692e2e1d138feda127c72051d6
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