[dovecot/core] 28f799: imap-hibernate: Fix "DONE" handling.

GitHub noreply at github.com
Fri Oct 21 09:00:09 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 28f7995610134e3d3be1d493d4ce6328b204182b
      https://github.com/dovecot/core/commit/28f7995610134e3d3be1d493d4ce6328b204182b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-10-21 (Fri, 21 Oct 2016)

  Changed paths:
    M src/imap-hibernate/imap-client.c

  Log Message:
  -----------
  imap-hibernate: Fix "DONE" handling.

1. If only "DONE\r\n" was sent, it randomly failed with BAD because of
out-of-bounds buffer read.

2. If "DONE\r\n" was followed by a command tag but no space afterwards, we
kept waiting for the input to continue. But since the DONE was already sent,
we should break the IDLE already at that point without any further waiting.




More information about the dovecot-cvs mailing list