diff options
author | drh <drh@noemail.net> | 2009-03-01 19:42:11 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-03-01 19:42:11 +0000 |
commit | b45f65db8fc74f0d9aeb4e3c04839e3bf172607d (patch) | |
tree | 592e0f0fbb3e1d5624b77c2cf32f4fbb3fbd4460 /src | |
parent | 2f886d1d534ae2fabca3e3bcb5af259c38b3cb23 (diff) | |
download | sqlite-b45f65db8fc74f0d9aeb4e3c04839e3bf172607d.tar.gz sqlite-b45f65db8fc74f0d9aeb4e3c04839e3bf172607d.zip |
Fix a critical bug in the VDBE opcode array resizer introduced by
check-in (6307). Bug detected by regression testing. (CVS 6330)
FossilOrigin-Name: ec3b18acaecabae6eb04eda006870e602faacb8c
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index a44e5987b..06699c4e1 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -14,7 +14,7 @@ ** to version 2.8.7, all this code was combined into the vdbe.c source file. ** But that file was getting too big so this subroutines were split out. ** -** $Id: vdbeaux.c,v 1.438 2009/02/20 10:58:42 danielk1977 Exp $ +** $Id: vdbeaux.c,v 1.439 2009/03/01 19:42:11 drh Exp $ */ #include "sqliteInt.h" #include "vdbeInt.h" @@ -114,7 +114,7 @@ static int growOpArray(Vdbe *p){ int nNew = (p->nOpAlloc ? p->nOpAlloc*2 : (int)(1024/sizeof(Op))); pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op)); if( pNew ){ - p->nOpAlloc = sqlite3MallocSize(pNew)/sizeof(Op); + p->nOpAlloc = sqlite3DbMallocSize(p->db, pNew)/sizeof(Op); p->aOp = pNew; } return (pNew ? SQLITE_OK : SQLITE_NOMEM); |