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