dovecot-1.1: lf-istream: Don't assert-crash if last character in...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 14 20:21:13 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/d3246f9fbfcf
changeset: 8344:d3246f9fbfcf
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 14 13:21:08 2009 -0400
description:
lf-istream: Don't assert-crash if last character in buffer is CR, not followed by LF.

diffstat:

1 file changed, 1 insertion(+)
src/lib/istream-crlf.c |    1 +

diffs (11 lines):

diff -r 0596612675b5 -r d3246f9fbfcf src/lib/istream-crlf.c
--- a/src/lib/istream-crlf.c	Thu Aug 13 20:45:09 2009 -0400
+++ b/src/lib/istream-crlf.c	Fri Aug 14 13:21:08 2009 -0400
@@ -115,6 +115,7 @@ static ssize_t i_stream_crlf_read_lf(str
 			/* CR without LF */
 			stream->w_buffer[dest++] = '\r';
 			if (dest == stream->buffer_size) {
+				stream->pos++;
 				cstream->pending_cr = FALSE;
 				return 1;
 			}


More information about the dovecot-cvs mailing list