[dovecot/core] 0835df: lib-dcrypt: Improved error message when istream is...

GitHub noreply at github.com
Fri Jul 22 04:30:11 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 0835df7f2caae9d276551eeb66eebc5f5d6cc6ed
      https://github.com/dovecot/core/commit/0835df7f2caae9d276551eeb66eebc5f5d6cc6ed
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-07-22 (Fri, 22 Jul 2016)

  Changed paths:
    M src/lib-dcrypt/istream-decrypt.c

  Log Message:
  -----------
  lib-dcrypt: Improved error message when istream isn't encrypted.


  Commit: f52366af688c5663f3491c63042500ac51ad7780
      https://github.com/dovecot/core/commit/f52366af688c5663f3491c63042500ac51ad7780
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-07-22 (Fri, 22 Jul 2016)

  Changed paths:
    M src/lib-dcrypt/ostream-encrypt.c

  Log Message:
  -----------
  lib-dcrypt: Allow flushing ostream multiple times.

The first time flushes the encryption and the following times just flush the
parent stream.


  Commit: e6bc5e739360377c5badf0da24208f4836722eae
      https://github.com/dovecot/core/commit/e6bc5e739360377c5badf0da24208f4836722eae
  Author: Stephan Bosch <stephan at dovecot.fi>
  Date:   2016-07-22 (Fri, 22 Jul 2016)

  Changed paths:
    M src/lib/istream.c

  Log Message:
  -----------
  Calling i_stream_next_line() on a chain stream would sometimes erroneously use the stream->w_buffer.

It used the wrong check to assess whether the w_buffer is usable.
The chain stream only uses the w_buffer when partial stream data needs to be merged. Otherwise, a parent stream's buffer is used directly. However, this does not mean that w_buffer will be NULL in that case, which is what i_stream_next_line() assumed.


Compare: https://github.com/dovecot/core/compare/cf6118fe7f4f...e6bc5e739360


More information about the dovecot-cvs mailing list