]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: Fixed potential crash when indexing mails.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 19 Nov 2016 02:04:02 +0000 (04:04 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 21 Nov 2016 10:35:52 +0000 (12:35 +0200)
Normally it seems like compilers had built code that had added a NULL
after the array, but there was no guarantee for that.

src/plugins/fts/fts-parser.c

index 9c52e4eda41c410ae26aabad70df44ebb4edfd61..a5271f82f6c983bc0aa85b8a3efff4d43f2d575f 100644 (file)
@@ -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,