[dovecot/core] d827cf: lib-compress: Fix assert-crash when .gz header siz...

GitHub noreply at github.com
Mon Feb 13 17:30:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: d827cffa4b59591ab2a5a710237e34839ed6a952
      https://github.com/dovecot/core/commit/d827cffa4b59591ab2a5a710237e34839ed6a952
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-13 (Mon, 13 Feb 2017)

  Changed paths:
    M src/lib-compression/istream-zlib.c
    M src/lib-compression/test-compression.c

  Log Message:
  -----------
  lib-compress: Fix assert-crash when .gz header size exceeds buffer max length

Instead treat the stream as corrupted and return EINVAL.

Fixes:
Panic: file istream.c: line 182 (i_stream_read): assertion failed: (_stream->skip != _stream->pos)


  Commit: 3715e1d5cb8a85283ef9c88850a160791cb2499d
      https://github.com/dovecot/core/commit/3715e1d5cb8a85283ef9c88850a160791cb2499d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-13 (Mon, 13 Feb 2017)

  Changed paths:
    M src/lib-compression/istream-zlib.c

  Log Message:
  -----------
  lib-compress: Fix missing .gz header error message


Compare: https://github.com/dovecot/core/compare/887c92aa9f17...3715e1d5cb8a


More information about the dovecot-cvs mailing list