13fc4d6d28f05076ffe6f5a925e8f6269e4b548e |
|
19-May-2017 |
Phil Carmody <phil@dovecot.fi> |
lib: istream-concat - make cur_input always match input[cur_idx]
We're deliberately not stepping into the NULL stream, don't let the
cur_idx indicate that we have moved into it, that's confusing.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
65d8efa66dca27db85f74ee2574188b51569a4c2 |
|
21-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Avoid assert-crash in istream-concat at close.
If stream was seeked to EOF, cur_input=NULL and closing the stream would cause
i_stream_concat_skip() to crash. Fixed this by making sure cur_input is never NULL.
This also adds a check to not allow seeking past EOF, but this shouldn't happen anyway. |