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

Modify the clearCell function to use SQLITE_CORRUPT_BKPT in the one place it was not.

FossilOrigin-Name: 472beb306a4fa7103837d4417aef7d66eef49993
This commit is contained in:
mistachkin
2012-09-28 18:13:35 +00:00
parent f784c1ede9
commit 70a1b71fb6
3 changed files with 9 additions and 9 deletions

View File

@@ -5256,7 +5256,7 @@ static int clearCell(MemPage *pPage, unsigned char *pCell){
return SQLITE_OK; /* No overflow pages. Return without doing anything */
}
if( pCell+info.iOverflow+3 > pPage->aData+pPage->maskPage ){
return SQLITE_CORRUPT; /* Cell extends past end of page */
return SQLITE_CORRUPT_BKPT; /* Cell extends past end of page */
}
ovflPgno = get4byte(&pCell[info.iOverflow]);
assert( pBt->usableSize > 4 );