dovecot-2.2: imap: Fixed crashes on some FETCH commands
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 5 10:52:11 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/2ab4aa784474
changeset: 14708:2ab4aa784474
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 05 10:51:42 2012 +0300
description:
imap: Fixed crashes on some FETCH commands
diffstat:
src/lib-imap-storage/imap-msgpart.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r dfd3f9135017 -r 2ab4aa784474 src/lib-imap-storage/imap-msgpart.c
--- a/src/lib-imap-storage/imap-msgpart.c Wed Jul 04 13:13:56 2012 +0300
+++ b/src/lib-imap-storage/imap-msgpart.c Thu Jul 05 10:51:42 2012 +0300
@@ -55,6 +55,7 @@
msgpart->pool = pool;
msgpart->partial_size = (uoff_t)-1;
msgpart->fetch_type = fetch_type;
+ msgpart->section_number = "";
if (fetch_type == FETCH_HEADER || fetch_type == FETCH_FULL)
msgpart->wanted_fields |= MAIL_FETCH_STREAM_HEADER;
if (fetch_type == FETCH_BODY || fetch_type == FETCH_FULL)
@@ -190,7 +191,7 @@
bool next_digit;
int ret;
- pool = pool_alloconly_create("imap msgpart", 512);
+ pool = pool_alloconly_create("imap msgpart", 1024);
msgpart = *msgpart_r = p_new(pool, struct imap_msgpart, 1);
msgpart->pool = pool;
msgpart->partial_size = (uoff_t)-1;
More information about the dovecot-cvs
mailing list