[BUG] config-parser.c: line 89 - crash on comma in namespace mailbox

Timo Sirainen tss at iki.fi
Fri Apr 21 10:44:16 EEST 2017


On 17 Apr 2017, at 15.45, Alek <finalek at ya.ru> wrote:
> 
> Hi!
> On the latest versions (2.2.28, 2.2.29.x) we get crash on dovecot config parse.
> Error in config parser when checking namespace mailbox name. 
> Reason: comma in mailbox name.
> Worked well in versions < 2.2.22. Do not know if it was working on 2.2.23-2.2.27, skipped this versions.
> 
> Example:
> namespace inbox {
>  mailbox "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-" {
>    special_use = \Sent
>  }
> }
> 
> doveconf: Panic: file config-parser.c: line 89 (config_add_type): assertion failed: (ret > 0)

Crash isn't good, but you're not supposed to be using mUTF-7 names in here (or anywhere in Dovecot configs). Did it ever really even work?

> Info:
> &BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1- - is a valid mailbox name for russian Outlook folder "Отправленные".

You should be using this name as UTF-8 directly.



More information about the dovecot mailing list