diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/expr.c | 1 | ||||
-rw-r--r-- | src/shell.c.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index 86c966683..8c118d077 100644 --- a/src/expr.c +++ b/src/expr.c @@ -3285,6 +3285,7 @@ int sqlite3FindInIndex( if( aiMap ) aiMap[i] = j; } + assert( nExpr<BMS ); assert( i==nExpr || colUsed!=(MASKBIT(nExpr)-1) ); if( colUsed==(MASKBIT(nExpr)-1) ){ /* If we reach this point, that means the index pIdx is usable */ diff --git a/src/shell.c.in b/src/shell.c.in index 27028ccb0..4da92072d 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -10079,6 +10079,7 @@ static int do_meta_command(char *zLine, ShellState *p){ if( zFile==0 ){ zFile = sqlite3_mprintf("stdout"); } + shell_check_oom(zFile); if( bOnce ){ p->outCount = 2; }else{ |