Fix arbitrary escaping in quoted strings

This commit is contained in:
Raphael Coeffic
2021-12-30 14:21:02 +01:00
parent 587e64f76a
commit 81d7768498
+3 -3
View File
@@ -237,9 +237,9 @@ YamlParser::parse(const char* buffer, unsigned int size)
state = ps_ValEsc2;
break;
}
//TODO: more escapes needed???
TRACE_YAML("unknown escape char '%c'",*c);
return DONE_PARSING;
CONCAT_STR(scratch_buf, scratch_len, *c);
state = ps_ValQuo;
break;
case ps_ValEsc2:
if(scratch_len >= MAX_STR) {