fix(core): Allow decoding of ASCII control characters in JSON strings

Otherwise fuzzing complains that it can write JSON output that is not
parseable.
This commit is contained in:
Julius Pfrommer 2022-03-11 01:13:26 +01:00 committed by Julius Pfrommer
parent b8d9fa12e5
commit d6b92d9399

View File

@ -1955,8 +1955,8 @@ DECODE_JSON(String) {
/* No escaping */
if(*p != '\\') {
/* In the ASCII range, but not a printable character */
if(*p < 32 || *p == 127)
goto cleanup;
/* if(*p < 32 || *p == 127) */
/* goto cleanup; */
*(pos++) = *(p++);
continue;