commit e955595: [Fix] Fix UCL parsing of the multiline strings

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Apr 25 11:35:17 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-25 12:23:14 +0100
URL: https://github.com/rspamd/rspamd/commit/e9555957fd913d928c6dc4b6ca8373f2c4691848 (HEAD -> master)

[Fix] Fix UCL parsing of the multiline strings

---
 contrib/libucl/ucl_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c
index 6a53fe805..7313b28a3 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 ++;


More information about the Commits mailing list