[dovecot-cvs] dovecot/src/lib-mail message-decoder.c,1.6,1.7
tss at dovecot.org
tss at dovecot.org
Mon Mar 26 02:45:51 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv14603
Modified Files:
message-decoder.c
Log Message:
fixes
Index: message-decoder.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-decoder.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- message-decoder.c 25 Mar 2007 18:26:53 -0000 1.6
+++ message-decoder.c 25 Mar 2007 23:45:49 -0000 1.7
@@ -242,7 +242,7 @@
quoted_printable_decode(new_buf,
ctx->encoding_size + skip,
&pos, ctx->buf);
- i_assert(pos > ctx->encoding_size);
+ i_assert(pos >= ctx->encoding_size);
skip = pos - ctx->encoding_size;
}
@@ -261,7 +261,7 @@
the rest of it */
return FALSE;
}
- i_assert(pos > ctx->encoding_size);
+ i_assert(pos >= ctx->encoding_size);
skip = pos - ctx->encoding_size;
}
if (base64_decode(input->data + skip, input->size - skip,
@@ -288,6 +288,8 @@
i_assert(ctx->encoding_size <= sizeof(ctx->encoding_buf));
memcpy(ctx->encoding_buf, input->data + pos,
ctx->encoding_size);
+ } else {
+ ctx->encoding_size = 0;
}
if (ctx->charset_utf8 || ctx->charset_trans == NULL) {
More information about the dovecot-cvs
mailing list