From: Timo Sirainen Date: Sat, 19 Nov 2016 02:04:02 +0000 (+0200) Subject: fts: Fixed potential crash when indexing mails. X-Git-Tag: 2.2.27~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00776386fd52c8edc8a7fe7a49700061a62a08dc;p=thirdparty%2Fdovecot%2Fcore.git 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. --- diff --git a/src/plugins/fts/fts-parser.c b/src/plugins/fts/fts-parser.c index 9c52e4eda4..a5271f82f6 100644 --- a/src/plugins/fts/fts-parser.c +++ b/src/plugins/fts/fts-parser.c @@ -16,7 +16,8 @@ static const char *plaintext_content_types[] = { "text/plain", "message/delivery-status", "message/disposition-notification", - "application/pgp-signature" + "application/pgp-signature", + NULL }; bool fts_parser_init(struct mail_user *user,