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; state = ps_ValEsc2;
break; break;
} }
//TODO: more escapes needed??? CONCAT_STR(scratch_buf, scratch_len, *c);
TRACE_YAML("unknown escape char '%c'",*c); state = ps_ValQuo;
return DONE_PARSING; break;
case ps_ValEsc2: case ps_ValEsc2:
if(scratch_len >= MAX_STR) { if(scratch_len >= MAX_STR) {