]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-imap: Add IMAP_ARG_EOL parameter also for unfinished lists
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 8 Nov 2019 08:57:01 +0000 (10:57 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 11 Nov 2019 08:31:43 +0000 (10:31 +0200)
commit6beb5339f163eaa470974ced2bcdf193f130d8a7
tree28ef179148b285bcb59fdebf8fa048ed15a85e79
parent0b40e87e01cf0115dd9c91409c4a527b63b4d7c0
lib-imap: Add IMAP_ARG_EOL parameter also for unfinished lists

If list parsing was stopped due to IMAP_ARG_LITERAL_SIZE* the list didn't
have IMAP_ARG_EOL added. However, imap_arg_get_list() could still have
been used for it, which assumes that the IMAP_ARG_EOL exists.

This didn't seem to cause any actual bugs so far, but the following commits
require this.

The IMAP_ARG_EOL is appended and deleted immediately. This way it's seen by
imap_arg_get_list(), but it won't change any other behavior unexpectedly.
src/lib-imap/imap-arg.c
src/lib-imap/imap-parser.c