mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
The R-tree module should not assume that its shadow tables are consistent.
If a problem is found in a shadow table, return SQLITE_CORRUPT. FossilOrigin-Name: 7f2f71cc9e3c39093f09231f448576cff6afb5fe
This commit is contained in:
@ -438,8 +438,11 @@ nodeAcquire(
|
||||
pRtree->iDepth = readInt16(pNode->zData);
|
||||
}
|
||||
|
||||
assert( (rc==SQLITE_OK && pNode) || (pNode==0 && rc!=SQLITE_OK) );
|
||||
nodeHashInsert(pRtree, pNode);
|
||||
if( pNode!=0 ){
|
||||
nodeHashInsert(pRtree, pNode);
|
||||
}else if( rc==SQLITE_OK ){
|
||||
rc = SQLITE_CORRUPT;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user