1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Detect database corruption in the modifyPagePointer() routine and abort.

FossilOrigin-Name: 4f0bba42f904e505900be67b00179ebb1f24ed03
This commit is contained in:
drh
2015-05-24 10:18:12 +00:00
parent 82110da971
commit a1f75d96fd
3 changed files with 10 additions and 8 deletions

View File

@@ -3084,8 +3084,10 @@ static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
u8 isInitOrig = pPage->isInit;
int i;
int nCell;
int rc;
btreeInitPage(pPage);
rc = btreeInitPage(pPage);
if( rc ) return rc;
nCell = pPage->nCell;
for(i=0; i<nCell; i++){