[dovecot/core] cb1e7c: lib-storage: Fix crash in mail_get_header_stream()...

GitHub noreply at github.com
Thu Jun 8 15:00:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: cb1e7cb6766cfb18900e600961fb8b45a4dffaf8
      https://github.com/dovecot/core/commit/cb1e7cb6766cfb18900e600961fb8b45a4dffaf8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

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

  Log Message:
  -----------
  lib-storage: Fix crash in mail_get_header_stream() when its previous stream wasn't at EOF

At least this could have happened when indexes were disabled and running:

FETCH 1 (envelope body.peek[header.fields (foo)] bodystructure)

Fixes:
Panic: file index-mail-headers.c: line 198 (index_mail_parse_header_init): assertion failed: (!mail->data.header_parser_initialized)




More information about the dovecot-cvs mailing list