[dovecot/core] 2a6779: imapc: Fix errors when handling UIDVALIDITY change

GitHub noreply at github.com
Mon Mar 12 16:30:32 EET 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 2a67790b545a85d992b2d242474e639bf4978dd8
      https://github.com/dovecot/core/commit/2a67790b545a85d992b2d242474e639bf4978dd8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

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

  Log Message:
  -----------
  imapc: Fix errors when handling UIDVALIDITY change

This mainly happened when imapc was used with index files and the backend
IMAP server recreated the mailbox. This caused errors like:
Expunged message uid=1 reappeared - reconnecting


  Commit: 050b6ae0635033a5d858b9dd8cf78d990798adf9
      https://github.com/dovecot/core/commit/050b6ae0635033a5d858b9dd8cf78d990798adf9
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-03-12 (Mon, 12 Mar 2018)

  Changed paths:
    M src/lib-ssl-iostream/iostream-openssl.c
    M src/lib-ssl-iostream/ostream-openssl.c

  Log Message:
  -----------
  lib-ssl-iostream: Fix potential crash if istream is destroyed before ostream

This happened if o_stream_destroy() triggered flush, which attempted to read
from the ssl_io->ssl_input. If the istream-ssl was already destroyed, it was
NULL and that caused a crash.


Compare: https://github.com/dovecot/core/compare/687b901e956e...050b6ae06350


More information about the dovecot-cvs mailing list