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

Fix an assert() in btree.c that might not be true for a corrupt database file.

FossilOrigin-Name: dbd8e2e46cfb2de0ebdbb62cda2fe669df3eda98f5d6112d541f581995b1361d
This commit is contained in:
drh
2022-04-13 10:49:50 +00:00
parent 6625d6d873
commit 3b79f7580a
3 changed files with 9 additions and 9 deletions

View File

@@ -5967,7 +5967,7 @@ bypass_moveto_root:
assert( lwr==upr+1 || (pPage->intKey && !pPage->leaf) );
assert( pPage->isInit );
if( pPage->leaf ){
assert( pCur->ix<pCur->pPage->nCell );
assert( pCur->ix<pCur->pPage->nCell || CORRUPT_DB );
pCur->ix = (u16)idx;
*pRes = c;
rc = SQLITE_OK;