aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index d58518990..2d6195b79 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1719,6 +1719,10 @@ json_parse_restart:
return -1;
}
}else if( c<=0x1f ){
+ if( c==0 ){
+ pParse->iErr = j;
+ return -1;
+ }
/* Control characters are not allowed in canonical JSON string
** literals, but are allowed in JSON5 string literals. */
opcode = JSONB_TEXT5;