mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-09 14:21:03 +03:00
Fix a problem in the JSONB parser that comes up following an OOM.
FossilOrigin-Name: 355acfb18897254f6b6444a21d781b5e10e930b81952850dd2a40d88bbf2f3db
This commit is contained in:
@@ -3495,7 +3495,7 @@ static int jsonParseValueFromBlob(JsonParse *pParse, u32 i){
|
||||
while( j<i+x+sz ){
|
||||
int r = jsonParseValueFromBlob(pParse, j);
|
||||
if( r<=0 ) return -1;
|
||||
if( (k++&1)==0 ){
|
||||
if( (k++&1)==0 && !pParse->oom ){
|
||||
pParse->aNode[pParse->nNode-1].jnFlags |= JNODE_LABEL;
|
||||
}
|
||||
j = (u32)r;
|
||||
|
||||
Reference in New Issue
Block a user