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;
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user