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

Another corruption detection case in the sqlite3BtreeIndexMoveto()

last page optimization.

FossilOrigin-Name: 531e6ad0389c6c820bb8c64db5049fb6b0bffd30bd394fd8ee7412959b1752e2
This commit is contained in:
drh
2022-03-10 23:37:58 +00:00
parent 463edb6275
commit 3946561a7f
3 changed files with 8 additions and 7 deletions

View File

@@ -5839,6 +5839,7 @@ int sqlite3BtreeIndexMoveto(
&& (c = indexCellCompare(pCur, 0, pIdxKey, xRecordCompare))<=0
){
pCur->curFlags &= ~BTCF_ValidOvfl;
if( pIdxKey->errCode ){ *pRes = 0; return SQLITE_CORRUPT_BKPT; }
goto bypass_moveto_root; /* Start search on the current page */
}
}