]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: Fix potential crash with SEARCH MIMEPART FILENAME
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 14:59:36 +0000 (17:59 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Oct 2025 12:22:20 +0000 (12:22 +0000)
commit954c1db0e64e742b29fdd438f8ed5bc86c0a2c3e
tree9d82ab8b2c7e2ef8a23bc2587245797997ee535c
parent6f0a9f097017b1941b9f2ea6f781637f1b3c7572
lib-mail: Fix potential crash with SEARCH MIMEPART FILENAME

If the message contained "Content-Disposition: attachment" without
filename or name parameter, it crashed. Fix by using empty string
as the filename so callers don't need to handle NULL separately.

Broken by bdff009cb37eb51aa7a00e17e1b346df18f95bec
src/lib-mail/message-part-data.c
src/lib-mail/test-message-part-data.c