1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Fix failure to detect unterminated string literals in json_valid() in the

previous check-in.

FossilOrigin-Name: 5d725644621cf640fb743d59ccf89dac777540410e67501eb00b83638c8c857f
This commit is contained in:
drh
2024-01-31 14:44:59 +00:00
parent c24f53635c
commit 9486178f39
3 changed files with 11 additions and 7 deletions

View File

@@ -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;