Mercurial > dovecot > core-2.2
changeset 20753:5e25d263dcf0
lib: Assert if i_stream_create_seekable_path(temp_path_prefix==NULL)
If the stream becomes large enough it would crash then in a callback
function, which makes debugging more difficult.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 19 Sep 2016 16:20:14 +0300 |
parents | 1194ca07a620 |
children | 117d25f8c9c4 |
files | src/lib/istream-seekable.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream-seekable.c Mon Sep 19 12:27:16 2016 +0300 +++ b/src/lib/istream-seekable.c Mon Sep 19 16:20:14 2016 +0300 @@ -477,6 +477,7 @@ struct seekable_istream *sstream; struct istream *stream; + i_assert(temp_path_prefix != NULL); i_assert(max_buffer_size > 0); if (inputs_are_seekable(input))