mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
The first assert() added in [0ebc65481f4a3e79] is not necessarily true in a
corrupt database file. So add a term to make it true. FossilOrigin-Name: 6b21cccdeec92db9f6ce3dd7ea5e61b8b46650cc1e550271aa51bdc619f55b11
This commit is contained in:
@@ -5144,7 +5144,9 @@ static int accessPayload(
|
||||
pCur->curFlags |= BTCF_ValidOvfl;
|
||||
}else{
|
||||
/* Sanity check the validity of the overflow page cache */
|
||||
assert( pCur->aOverflow[0]==nextPage || pCur->aOverflow[0]==0 );
|
||||
assert( pCur->aOverflow[0]==nextPage
|
||||
|| pCur->aOverflow[0]==0
|
||||
|| CORRUPT_DB );
|
||||
assert( pCur->aOverflow[0]!=0 || pCur->aOverflow[offset/ovflSize]==0 );
|
||||
|
||||
/* If the overflow page-list cache has been allocated and the
|
||||
|
Reference in New Issue
Block a user