[dovecot/core] 421973: lib: Small code cleanup to istream-concat - don't ...
GitHub
noreply at github.com
Mon Mar 21 12:54:08 UTC 2016
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: 421973339968d444d4433cb4d47d1f150e4ab288
https://github.com/dovecot/core/commit/421973339968d444d4433cb4d47d1f150e4ab288
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-03-21 (Mon, 21 Mar 2016)
Changed paths:
M src/lib/istream-concat.c
Log Message:
-----------
lib: Small code cleanup to istream-concat - don't use a magic UINT_MAX value as error code
Commit: 65d8efa66dca27db85f74ee2574188b51569a4c2
https://github.com/dovecot/core/commit/65d8efa66dca27db85f74ee2574188b51569a4c2
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-03-21 (Mon, 21 Mar 2016)
Changed paths:
M src/lib/istream-concat.c
Log Message:
-----------
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.
Compare: https://github.com/dovecot/core/compare/25866546f1e8...65d8efa66dca
More information about the dovecot-cvs
mailing list