]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: Change rfc822_parse_content_param() API to allow NULs in value
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 21 Apr 2018 09:47:22 +0000 (12:47 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Aug 2018 08:12:56 +0000 (11:12 +0300)
commit6cc952b1a7a09bd56fd60af90e3ef0a90581bbf8
tree39b36375ca95a2b6fc31ec9a556c641afaedb3cc
parent888cfdcd96938b9fce40872fc911b9fdf082a267
lib-mail: Change rfc822_parse_content_param() API to allow NULs in value

This was the only function in rfc822-parser.h that wasn't NUL-safe.
This won't fix anything, but it makes the rfc822-parser.h API fully
consistent with the NUL handling.

Normally rfc2231_parse() should be called instead of calling
rfc822_parse_content_param() directly, so this shouldn't break any plugins.
src/lib-mail/rfc2231-parser.c
src/lib-mail/rfc822-parser.c
src/lib-mail/rfc822-parser.h
src/lib-mail/test-rfc822-parser.c