From 17466c748183b19f7775374ce6afbd7bf62d479d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Sep 2016 16:20:14 +0300 Subject: [PATCH] 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. --- src/lib/istream-seekable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/istream-seekable.c b/src/lib/istream-seekable.c index f6340be5f9..f051fcc257 100644 --- a/src/lib/istream-seekable.c +++ b/src/lib/istream-seekable.c @@ -477,6 +477,7 @@ i_stream_create_seekable_path(struct istream *input[], struct seekable_istream *sstream; struct istream *stream; + i_assert(temp_path_prefix != NULL); i_assert(max_buffer_size > 0); if (inputs_are_seekable(input))