mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Improved detection of database corrupting when moving pages on an
autovacuumed database when creating a new btree. dbsqlfuzz 9a55397eae13cec64aebf1fd35489c3a90bdaac5 FossilOrigin-Name: 327965bc71023d9380a9d6805062659108dab4bfcd386b7aba813754f270d33a
This commit is contained in:
@@ -3743,6 +3743,9 @@ static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if( pCell+4 > pPage->aData+pPage->pBt->usableSize ){
|
||||
return SQLITE_CORRUPT_PAGE(pPage);
|
||||
}
|
||||
if( get4byte(pCell)==iFrom ){
|
||||
put4byte(pCell, iTo);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user