dovecot-2.0: imap: FETCH BODY[HEADER.FIELDS (..)] may have tried...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 28 12:08:28 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/a77d53d40ea3
changeset: 12870:a77d53d40ea3
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 28 12:08:10 2011 +0300
description:
imap: FETCH BODY[HEADER.FIELDS (..)] may have tried to fetch garbage field names.
Such situations were quite likely to cause a crash though.
diffstat:
src/imap/imap-fetch-body.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b383271890fe -r a77d53d40ea3 src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c Wed Jul 27 19:46:01 2011 +0300
+++ b/src/imap/imap-fetch-body.c Thu Jul 28 12:08:10 2011 +0300
@@ -773,7 +773,7 @@
if (i != 0)
str_append_c(str, ' ');
- arr[i] = t_str_ucase(value);
+ arr[i] = p_strdup(ctx->cmd->pool, t_str_ucase(value));
if (args[i].type == IMAP_ARG_ATOM)
str_append(str, arr[i]);
More information about the dovecot-cvs
mailing list