1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a NEVER() that can sometimes be true.

dbsqlfuzz 9a86fb3830977e216fde061bfbe1c1e5c2e9bfc4

FossilOrigin-Name: f39666e64d6d32420170c54f874d8314eb8c6f91df625f7b28f9ccffb9474dc0
This commit is contained in:
drh
2021-05-11 10:47:41 +00:00
parent 8d889afc0d
commit ccb897c70a
3 changed files with 9 additions and 9 deletions

View File

@@ -7168,8 +7168,8 @@ static int pageFreeArray(
}
pFree = pCell;
szFree = sz;
if( NEVER(pFree+sz>pEnd) ){
return 0; /* Corruption - should be previously detected */
if( pFree+sz>pEnd ){
return 0;
}
}else{
pFree = pCell;