charset_to_utf8 assertion of remaining src_size
Timo Sirainen
tss at iki.fi
Fri May 22 22:55:38 UTC 2015
On 22 May 2015, at 17:44, Xin Li <delphij at delphij.net> wrote:
>
> On 05/22/15 13:18, Cassidy Larson wrote:
>> We're using FreeBSD 10.1
>
> I see. Yes that's the same problem I have seen.
>
> There is a behavioral difference (I think it's a FreeBSD bug) between
> FreeBSD's iconv(3) and GNU implementation, and there is arguably a bug
> with Dovecot that iconv(3) state should be reset for each multipart
> part. The two together would trigger the problem when the previous part
> was ended with UTF-7 shift sequence. Timo have applied a fix (hg:
> 18721:9809f68aaa36) for Dovecot which should mitigates this issue at
> Dovecot side a few days ago.
Could you or somebody help with getting this included as a unit test to Dovecot? I've attached a patch that I guess might cause the crash.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charset-test.diff
Type: application/octet-stream
Size: 1215 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20150522/fc5db6e7/attachment.obj>
-------------- next part --------------
More information about the dovecot
mailing list