aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-03-07 17:19:40 +0000
committerdrh <>2022-03-07 17:19:40 +0000
commit42bb09c41289e9ed4196643c97f9fb458826503c (patch)
tree13961a52124c0b4356e10e97c48b0a54dc741d0e /src
parent4c460bbffdd0e51fad6b1ff61a6e15ecc795a748 (diff)
downloadsqlite-42bb09c41289e9ed4196643c97f9fb458826503c.tar.gz
sqlite-42bb09c41289e9ed4196643c97f9fb458826503c.zip
In the stay-on-last-page optimization for sqlite3BtreeIndexMoveto()
(check-in [0057bbb508e7662b] about 16 hours ago), be sure to clear the BTCF_ValidOvfl flag, since the overflow cache is invalidated by the search on the last page. OSSFuzz issue 45329. FossilOrigin-Name: 0021bebc162e001b788786703ce634e7b8fcd3976f7047a5956e82140791e765
Diffstat (limited to 'src')
-rw-r--r--src/btree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/btree.c b/src/btree.c
index 0acfad38c..d6aec1af3 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -5837,6 +5837,7 @@ int sqlite3BtreeIndexMoveto(
if( pCur->iPage>0
&& (c = indexCellCompare(pCur, 0, pIdxKey, xRecordCompare))<=0
){
+ pCur->curFlags &= ~BTCF_ValidOvfl;
goto bypass_moveto_root; /* Start search on the current page */
}
}