[dovecot/core] 6bc001: lib: Fixed potential crash in i_stream_stat() fail...

GitHub noreply at github.com
Fri May 13 18:00:14 UTC 2016


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 6bc001ee9dc03cb3107239861867cd674fd321d7
      https://github.com/dovecot/core/commit/6bc001ee9dc03cb3107239861867cd674fd321d7
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-13 (Fri, 13 May 2016)

  Changed paths:
    M src/lib/istream.c

  Log Message:
  -----------
  lib: Fixed potential crash in i_stream_stat() failures.

We shouldn't have been copying parent's stream_errno here. Especially
because the parent can be NULL.


  Commit: 4132ed5a3b2350d78188bb184d98ee6659ee5e1d
      https://github.com/dovecot/core/commit/4132ed5a3b2350d78188bb184d98ee6659ee5e1d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-13 (Fri, 13 May 2016)

  Changed paths:
    M src/lib-fs/istream-metawrap.c

  Log Message:
  -----------
  lib-fs: If fs-metawrap sees truncated header, it should return error.


  Commit: aae505b6151745fdc60e46969b6ddf45d5b3f6be
      https://github.com/dovecot/core/commit/aae505b6151745fdc60e46969b6ddf45d5b3f6be
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-13 (Fri, 13 May 2016)

  Changed paths:
    M src/lib-fs/fs-metawrap.c

  Log Message:
  -----------
  lib-fs: Make sure fs-metawrap catches all write errors.

The full istream may not have been written in case ostream only partially
wrote the data (e.g. out of disk space?)


  Commit: a0b127aa8a84e5106d8848bca0db0b09544290fb
      https://github.com/dovecot/core/commit/a0b127aa8a84e5106d8848bca0db0b09544290fb
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-13 (Fri, 13 May 2016)

  Changed paths:
    M src/lib/istream-seekable.c

  Log Message:
  -----------
  lib: Fixed istream_seekable.stat() to return correct size.

It was supposed to read until end of the stream, but it did it only when
stat() was called while stream was still fully in memory.


Compare: https://github.com/dovecot/core/compare/f5f2a7a7f225...a0b127aa8a84


More information about the dovecot-cvs mailing list