Mercurial > dovecot > core-2.2
view run-test-valgrind.supp @ 22989:4e9251b0435d
lib-storage: Fix bodystructure parsing crash if header is parsed twice
The second parsing will recreate the parser_ctx, discarding the old parsed
message_part.data for the header. On the second parsing
save_bodystructure_header=FALSE so the message_part.data isn't filled for
the header. Later on the bodystructure parsing assumes the data is set,
and crashes.
This only happened with mail_attachment_detection_options=add-flags-on-save
and Sieve script that first accessed a non-cached header and then used the
"body" extension.
Fixes segfault and also:
Panic: file imap-bodystructure.c: line 116 (part_write_body_multipart): assertion failed: (part->data != NULL)
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 25 Jul 2018 13:17:45 +0300 |
parents | 8e4a000eaf35 |
children |
line wrap: on
line source
{ <bash> Memcheck:Leak fun:malloc obj:*/bash } { <liblzma> Memcheck:Cond obj:/lib/x86_64-linux-gnu/liblzma.so.5.* obj:/lib/x86_64-linux-gnu/liblzma.so.5.* obj:/lib/x86_64-linux-gnu/liblzma.so.5.* obj:/lib/x86_64-linux-gnu/liblzma.so.5.* obj:/lib/x86_64-linux-gnu/liblzma.so.5.* fun:lzma_stream_encoder fun:lzma_easy_encoder } { <openssl_centos6_i386_v1_0_1_compression_methods> Memcheck:Leak fun:malloc obj:* obj:* obj:* obj:* obj:* obj:* obj:* obj:* obj:* fun:module_dir_init fun:dcrypt_initialize fun:main } { <openssl_centos6_v1_0_1_compression_methods> Memcheck:Leak fun:malloc obj:* obj:* obj:* obj:* obj:* obj:* obj:* obj:* fun:module_dir_init fun:dcrypt_initialize fun:main } { <openssl_jessie_v1_0_1_compression_methods> Memcheck:Leak fun:malloc ... fun:module_dir_init }