Mercurial > dovecot > core-2.2
changeset 13145:a77d53d40ea3
imap: FETCH BODY[HEADER.FIELDS (..)] may have tried to fetch garbage field names.
Such situations were quite likely to cause a crash though.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 28 Jul 2011 12:08:10 +0300 |
parents | b383271890fe |
children | 0e64f0217feb |
files | src/imap/imap-fetch-body.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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]);