Do not try to eliminate No-ops at the end of VDBE program as this can cause

problems for some DISTINCT handling algorithms, and does not improve
performance.  This also fixes an assertion fault found by libFuzzer.

FossilOrigin-Name: 19d9f9ce691963310fa73ac5ff728ea8dea9d2b2
This commit is contained in:
drh
2015-11-24 00:49:44 +00:00
parent 8836cbbcb4
commit 3d4143a38a
3 changed files with 8 additions and 9 deletions
-1
View File
@@ -837,7 +837,6 @@ void sqlite3VdbeChangeToNoop(Vdbe *p, int addr){
freeP4(db, pOp->p4type, pOp->p4.p);
memset(pOp, 0, sizeof(pOp[0]));
pOp->opcode = OP_Noop;
if( addr==p->nOp-1 ) p->nOp--;
}
}