diff options
author | drh <> | 2021-04-21 11:58:45 +0000 |
---|---|---|
committer | drh <> | 2021-04-21 11:58:45 +0000 |
commit | f02b5ad69d6f5544a28c5dfc06d86b0687099905 (patch) | |
tree | 7436c115c0efa50771007f735fb363cf36c4645b /src/wherecode.c | |
parent | fe599b05f2d6c3700146d30efc82753951a2b482 (diff) | |
download | sqlite-f02b5ad69d6f5544a28c5dfc06d86b0687099905.tar.gz sqlite-f02b5ad69d6f5544a28c5dfc06d86b0687099905.zip |
Initialize the key registers in the skip-scan optimization to NULL, in case
the query is run on a corrupt database that causes the initialization of the
key to be bypassed.
dbsqlfuzz 62fdf2bece00d24cac8a4edf2cf562e6eeac779d
FossilOrigin-Name: 8b54102a00852b72783b5b2f336c7a093adbdc8e1b94d46b7d315ae6e5d9476b
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 9c4360732..25ba60854 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -700,6 +700,7 @@ static int codeAllEqualityTerms( if( nSkip ){ int iIdxCur = pLevel->iIdxCur; + sqlite3VdbeAddOp3(v, OP_Null, 0, regBase, nSkip); sqlite3VdbeAddOp1(v, (bRev?OP_Last:OP_Rewind), iIdxCur); VdbeCoverageIf(v, bRev==0); VdbeCoverageIf(v, bRev!=0); |