mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
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:
parent
b8d9fa12e5
commit
d6b92d9399
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user