diff options
author | drh <> | 2024-03-08 19:03:30 +0000 |
---|---|---|
committer | drh <> | 2024-03-08 19:03:30 +0000 |
commit | 96f5ae6bd74a43f0ada92bdc40d3b23257116291 (patch) | |
tree | 9cb8c3475b5167d9e7ea7874f2de1796daa6f67e /src | |
parent | 744e5672bff25eb4c83a568566c7168ff60d731e (diff) | |
download | sqlite-96f5ae6bd74a43f0ada92bdc40d3b23257116291.tar.gz sqlite-96f5ae6bd74a43f0ada92bdc40d3b23257116291.zip |
One of the assert()s added by the previous check-in was not quite correct.
This commit fixes it.
FossilOrigin-Name: d401358329f5a70f9a0b9b033609a4db2af89b83c6b40242be0c76f3d6474def
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeaux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 6519bc965..e5c830343 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -946,7 +946,8 @@ static void resolveP2Values(Vdbe *p, int *pMaxFuncArgs){ || (sqlite3OpcodeProperty[pOp->opcode] & OPFLG_JUMP0)!=0 ); /* Jumps never go off the end of the bytecode array */ - assert( pOp->p2<p->nOp ); + assert( pOp->p2<p->nOp + || (sqlite3OpcodeProperty[pOp->opcode] & OPFLG_JUMP)==0 ); break; } } |