Mercurial > dovecot > core-2.2
changeset 21175:6a062a3335e8
fts: Fixed potential crash when indexing mails.
Normally it seems like compilers had built code that had added a NULL
after the array, but there was no guarantee for that.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 19 Nov 2016 04:04:02 +0200 |
parents | e48aa279058a |
children | eb5e99ab03d9 |
files | src/plugins/fts/fts-parser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts/fts-parser.c Fri Nov 18 16:03:00 2016 +0200 +++ b/src/plugins/fts/fts-parser.c Sat Nov 19 04:04:02 2016 +0200 @@ -16,7 +16,8 @@ "text/plain", "message/delivery-status", "message/disposition-notification", - "application/pgp-signature" + "application/pgp-signature", + NULL }; bool fts_parser_init(struct mail_user *user,