]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: After MAIL_INDEX_OPEN_FLAG_SAVEONLY access cache's read_buf wasn't always...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 2 Mar 2016 22:15:30 +0000 (00:15 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 2 Mar 2016 22:19:30 +0000 (00:19 +0200)
commit5bd1c1d4fe3265d5e6b6054044fd6d78e42c9d0a
tree55f3806f26fa83ebe59d13ef47eba987336e0d90
parentd6d9ee111d3b31a366c19391eabb377a3d2d66e8
lib-index: After MAIL_INDEX_OPEN_FLAG_SAVEONLY access cache's read_buf wasn't always reset.

This could have caused at least errors like:

Corrupted index cache file .../dovecot.index.cache: File too small

I'm not sure if it might have also returned stale data sometimes.

Easy way to reproduce this bug was:
imaptest copy=100 copybox=Trash &
imaptest box=Trash append=0
src/lib-index/mail-cache.c