]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: istream-error - Set max_buffer_size
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 7 Dec 2020 11:07:35 +0000 (13:07 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 7 Dec 2020 12:30:36 +0000 (12:30 +0000)
commit103cb028e3843c147967ad722080bc66aea34809
tree6a4ef06d8ed417e9a198381057b4e4876cb4aaa1
parent200eb973c28554d8b0718e0ef57859e471124401
lib: istream-error - Set max_buffer_size

Although nothing is actually read from the stream, some filter istreams
don't behave properly with max_buffer_size=0. Currently at least
istream-decrypt returns -2 for reads instead of -1.

Fixes:
Panic: file istream.c: line 320 (i_stream_read_memarea): assertion failed: (_stream->skip != _stream->pos)
src/lib/istream.c