From: Vsevolod Stakhov Date: Thu, 25 Apr 2019 11:23:14 +0000 (+0100) Subject: [Fix] Fix UCL parsing of the multiline strings X-Git-Tag: 1.9.3~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9555957fd913d928c6dc4b6ca8373f2c4691848;p=thirdparty%2Frspamd.git [Fix] Fix UCL parsing of the multiline strings --- diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c index 6a53fe805f..7313b28a37 100644 --- a/contrib/libucl/ucl_parser.c +++ b/contrib/libucl/ucl_parser.c @@ -1810,8 +1810,8 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk) } if (*p =='\n') { /* Set chunk positions and start multiline parsing */ + chunk->remain -= p - c + 1; c += 2; - chunk->remain -= p - c; chunk->pos = p + 1; chunk->column = 0; chunk->line ++;