Fix arbitrary escaping in quoted strings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user