diff options
author | drh <drh@noemail.net> | 2015-04-29 16:50:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-29 16:50:28 +0000 |
commit | f3cdcdccbeedd4de04d74eb95ecc244eb90e4082 (patch) | |
tree | f79e86511e5347f496fb87be780a37e125f29e15 /src/test_stat.c | |
parent | b4a91a9a8859fc021ec4d3de08eb49a257d62a14 (diff) | |
download | sqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.tar.gz sqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.zip |
Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
Diffstat (limited to 'src/test_stat.c')
-rw-r--r-- | src/test_stat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test_stat.c b/src/test_stat.c index ff107ac79..51831a45a 100644 --- a/src/test_stat.c +++ b/src/test_stat.c @@ -145,7 +145,7 @@ static int statConnect( rc = sqlite3_declare_vtab(db, VTAB_SCHEMA); if( rc==SQLITE_OK ){ - pTab = (StatTable *)sqlite3_malloc(sizeof(StatTable)); + pTab = (StatTable *)sqlite3_malloc64(sizeof(StatTable)); if( pTab==0 ) rc = SQLITE_NOMEM; } @@ -203,7 +203,7 @@ static int statOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){ StatCursor *pCsr; int rc; - pCsr = (StatCursor *)sqlite3_malloc(sizeof(StatCursor)); + pCsr = (StatCursor *)sqlite3_malloc64(sizeof(StatCursor)); if( pCsr==0 ){ rc = SQLITE_NOMEM; }else{ @@ -320,7 +320,7 @@ static int statDecodePage(Btree *pBt, StatPage *p){ sqlite3BtreeEnter(pBt); nUsable = szPage - sqlite3BtreeGetReserveNoMutex(pBt); sqlite3BtreeLeave(pBt); - p->aCell = sqlite3_malloc((p->nCell+1) * sizeof(StatCell)); + p->aCell = sqlite3_malloc64((p->nCell+1) * sizeof(StatCell)); if( p->aCell==0 ) return SQLITE_NOMEM; memset(p->aCell, 0, (p->nCell+1) * sizeof(StatCell)); @@ -353,7 +353,7 @@ static int statDecodePage(Btree *pBt, StatPage *p){ int nOvfl = ((nPayload - nLocal) + nUsable-4 - 1) / (nUsable - 4); pCell->nLastOvfl = (nPayload-nLocal) - (nOvfl-1) * (nUsable-4); pCell->nOvfl = nOvfl; - pCell->aOvfl = sqlite3_malloc(sizeof(u32)*nOvfl); + pCell->aOvfl = sqlite3_malloc64(sizeof(u32)*nOvfl); if( pCell->aOvfl==0 ) return SQLITE_NOMEM; pCell->aOvfl[0] = sqlite3Get4byte(&aData[iOff+nLocal]); for(j=1; j<nOvfl; j++){ |