diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 1 | ||||
-rw-r--r-- | src/wherecode.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c index e98cb7b05..d0be54990 100644 --- a/src/btree.c +++ b/src/btree.c @@ -7989,6 +7989,7 @@ static int balance_nonroot( while( i==cntOldNext ){ iOld++; assert( iOld<nNew || iOld<nOld ); + assert( iOld>=0 && iOld<NB ); pOld = iOld<nNew ? apNew[iOld] : apOld[iOld]; cntOldNext += pOld->nCell + pOld->nOverflow + !leafData; } diff --git a/src/wherecode.c b/src/wherecode.c index 6aadb2414..a62544845 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -2115,7 +2115,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( sqlite3VdbeGoto(v, pLevel->addrBrk); sqlite3VdbeResolveLabel(v, iLoopBody); - if( pWInfo->nLevel>1 ) sqlite3StackFree(db, pOrTab); + if( pWInfo->nLevel>1 ){ sqlite3StackFree(db, pOrTab); } if( !untestedTerms ) disableTerm(pLevel, pTerm); }else #endif /* SQLITE_OMIT_OR_OPTIMIZATION */ |