mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix the coredump. There are still problems in the test suite though. (CVS 402)
FossilOrigin-Name: 6af10cc53acc1ffa60de3f0d5880a6b72815404c
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
** But other routines are also provided to help in building up
|
||||
** a program instruction by instruction.
|
||||
**
|
||||
** $Id: vdbe.c,v 1.126 2002/02/28 00:41:11 drh Exp $
|
||||
** $Id: vdbe.c,v 1.127 2002/02/28 01:46:13 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -4432,7 +4432,7 @@ case OP_AggFunc: {
|
||||
Mem *pMem;
|
||||
sqlite_func ctx;
|
||||
|
||||
VERIFY( if( n<=0 ) goto bad_instruction; )
|
||||
VERIFY( if( n<0 ) goto bad_instruction; )
|
||||
VERIFY( if( p->tos+1<n ) goto not_enough_stack; )
|
||||
VERIFY( if( aStack[p->tos].flags!=STK_Int ) goto bad_instruction; )
|
||||
for(i=p->tos-n; i<p->tos; i++){
|
||||
@@ -4612,7 +4612,6 @@ case OP_AggNext: {
|
||||
int freeCtx;
|
||||
if( p->agg.apFunc[i]==0 ) continue;
|
||||
if( p->agg.apFunc[i]->xFinalize==0 ) continue;
|
||||
if( (aMem[i].s.flags & STK_AggCtx)==0 ) continue;
|
||||
ctx.s.flags = STK_Null;
|
||||
ctx.z = 0;
|
||||
ctx.pAgg = (void*)aMem[i].z;
|
||||
|
Reference in New Issue
Block a user