[dovecot/core] 55c880: lib-storage: Try harder to rename a corrupted mail...

GitHub noreply at github.com
Thu Nov 24 21:30:08 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 55c88023635062105849a2cbab78232f483b2c02
      https://github.com/dovecot/core/commit/55c88023635062105849a2cbab78232f483b2c02
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-storage/list/mailbox-list-index-backend.c

  Log Message:
  -----------
  lib-storage: Try harder to rename a corrupted mailbox name to its old name.

If the old name exists, use it as a prefix for the new name. This is
especially useful when restoring autocreated mailboxes. A new mailbox
could have already been autocreated, but it's still useful to have
the broken one renamed with the same prefix, so it'll be clear that
these mailboxes should be merged.


  Commit: b66a207ddcfc72a634186ec7e9a82df28ffc1d4e
      https://github.com/dovecot/core/commit/b66a207ddcfc72a634186ec7e9a82df28ffc1d4e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-index/mail-index-private.h
    M src/lib-index/mail-index.c
    M src/lib-index/mail-index.h
    M src/lib-index/mail-transaction-log-private.h
    M src/lib-index/mail-transaction-log.c

  Log Message:
  -----------
  lib-index: Add mail_index_set_log_rotation()


  Commit: ec4beaa760f0c42bf40cc61eb091c85650edd87b
      https://github.com/dovecot/core/commit/ec4beaa760f0c42bf40cc61eb091c85650edd87b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-storage/list/mailbox-list-index.c

  Log Message:
  -----------
  lib-storage: Rotate dovecot.list.index.log* more often.

The history in these files isn't as important as in mailbox indexes.
Reduce disk space usage by rotating them more often and deleting the
.log.2 more quickly.


  Commit: 80528a9510a2b2182466a77aa58b6e6f2bab310c
      https://github.com/dovecot/core/commit/80528a9510a2b2182466a77aa58b6e6f2bab310c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-index/mail-transaction-log.c

  Log Message:
  -----------
  lib-index: Compiler warning fix.


  Commit: 08b888317593761402ffb2635290de24b53d7980
      https://github.com/dovecot/core/commit/08b888317593761402ffb2635290de24b53d7980
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib/macros.h

  Log Message:
  -----------
  lib: Add ATTR_UNSIGNED_WRAPS for disabling clang -fsanitize=integer


  Commit: 2c488bf1ca9194cf36597959f1316b7e12102fd9
      https://github.com/dovecot/core/commit/2c488bf1ca9194cf36597959f1316b7e12102fd9
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-index/mail-index-map.c

  Log Message:
  -----------
  lib-index: mail_index_map_register_ext(ext_offset=-1) now sets hdr_offset=-1

It shouldn't make any difference, but this is a less confusing value.


  Commit: 21484e16293b2fb12f026d2ad533fa32ebebf641
      https://github.com/dovecot/core/commit/21484e16293b2fb12f026d2ad533fa32ebebf641
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib/md4.c
    M src/lib/md5.c
    M src/lib/sha1.c
    M src/lib/sha2.c

  Log Message:
  -----------
  lib: Mark md4/md5/sha1/sha2 code with ATTR_UNSIGNED_WRAPS


  Commit: a05819736f348d0c5ac8b4966ac6b04c21e1a391
      https://github.com/dovecot/core/commit/a05819736f348d0c5ac8b4966ac6b04c21e1a391
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-mail/message-address.c
    M src/lib-mail/message-snippet.c
    M src/lib/sha3.c

  Log Message:
  -----------
  global: Avoid loops unnecessarily decreasing below zero.

Avoids complains from clang -fsanitize=integer


  Commit: fced91d6314b7c934650b6ee2c540abc520efd74
      https://github.com/dovecot/core/commit/fced91d6314b7c934650b6ee2c540abc520efd74
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/indexer/master-connection.c
    M src/lib-mail/test-istream-header-filter.c
    M src/lib-storage/index/mbox/istream-raw-mbox.c

  Log Message:
  -----------
  global: Avoid unnecessary unsigned integer wraps.

Avoids complains from clang -fsanitize=integer


  Commit: 6d404348751c19ac37cfb42375abdd3c5f298e30
      https://github.com/dovecot/core/commit/6d404348751c19ac37cfb42375abdd3c5f298e30
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-dcrypt/test-stream.c
    M src/lib-index/mail-cache-lookup.c
    M src/lib-storage/index/dbox-multi/mdbox-storage.c
    M src/lib-storage/index/index-mailbox-size.c
    M src/lib/buffer.c
    M src/lib/istream.c

  Log Message:
  -----------
  global: Code cleanup - avoid passing NULL to functions with non-null parameter


  Commit: a44866b012a59906a592a8847ca43230c020fe2b
      https://github.com/dovecot/core/commit/a44866b012a59906a592a8847ca43230c020fe2b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib/buffer.h
    M src/lib/test-buffer.c

  Log Message:
  -----------
  lib: Clarify that buffer_write() zero-fills buffer when writing past its size


  Commit: e61d5a4bad247e62a257bb1ed6c483923d10c2a8
      https://github.com/dovecot/core/commit/e61d5a4bad247e62a257bb1ed6c483923d10c2a8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-mail/mail-html2text.c
    M src/lib-mail/test-mail-html2text.c

  Log Message:
  -----------
  lib-mail: Fix assert-crash in mail_html2text_more() with invalid input.

parse_data() continues forward thinking that it might have valid input,
until it has enough data and realizes that there's nothing valid. This
triggers:

Panic: file mail-html2text.c: line 312 (mail_html2text_more): assertion failed: (pos >= buf_orig_size)


  Commit: 0bbddb0182685d0bb12973d8263bdb66415ae37a
      https://github.com/dovecot/core/commit/0bbddb0182685d0bb12973d8263bdb66415ae37a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-11-24 (Thu, 24 Nov 2016)

  Changed paths:
    M src/lib-mail/test-mail-html2text.c

  Log Message:
  -----------
  lib-mail: Add randomness test to test-mail-html2text


Compare: https://github.com/dovecot/core/compare/b78c41586816...0bbddb018268


More information about the dovecot-cvs mailing list