Skip to content

Commit

Permalink
lib: Assert if i_stream_create_seekable_path(temp_path_prefix==NULL)
Browse files Browse the repository at this point in the history
If the stream becomes large enough it would crash then in a callback
function, which makes debugging more difficult.
  • Loading branch information
sirainen committed Sep 19, 2016
1 parent ea091ce commit ec50efe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/istream-seekable.c
Expand Up @@ -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))
Expand Down

0 comments on commit ec50efe

Please sign in to comment.