[dovecot/core] 9dadff: lib-compression: Fix assert in i_stream_zlib_seek

GitHub noreply at github.com
Thu Aug 31 11:00:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 9dadffcd2545eab4b251e83b60cee78ceb1e8362
      https://github.com/dovecot/core/commit/9dadffcd2545eab4b251e83b60cee78ceb1e8362
  Author: Anton Yuzhaninov <citrin at citrin.ru>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

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

  Log Message:
  -----------
  lib-compression: Fix assert in i_stream_zlib_seek

Also fix same bug in i_stream_bzlib_seek, i_stream_lz4_seek, i_stream_lzma_seek.


  Commit: 0dac2f5f0a0f25d8f6b789ba089f1a2d01c529a6
      https://github.com/dovecot/core/commit/0dac2f5f0a0f25d8f6b789ba089f1a2d01c529a6
  Author: Josef 'Jeff' Sipek <jeff.sipek at dovecot.fi>
  Date:   2017-08-31 (Thu, 31 Aug 2017)

  Changed paths:
    M src/lib/bits.c
    M src/lib/bits.h

  Log Message:
  -----------
  lib: optimize nearest_power

Instead of looping over each bit of a size_t, we can use a closed form
expression.


Compare: https://github.com/dovecot/core/compare/820f4f32cb83...0dac2f5f0a0f


More information about the dovecot-cvs mailing list