diff options
author | drh <drh@noemail.net> | 2019-01-08 20:02:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-01-08 20:02:48 +0000 |
commit | 2d77d80a65a2da89d58c04f91aa282d432d5c919 (patch) | |
tree | 8a793c3cfd1f4ce2adf7df3e78be038ad48469d6 /ext/misc/memstat.c | |
parent | c930b405f0717d5f8626dd846f3ab1d2a7243195 (diff) | |
download | sqlite-2d77d80a65a2da89d58c04f91aa282d432d5c919.tar.gz sqlite-2d77d80a65a2da89d58c04f91aa282d432d5c919.zip |
Use 64-bit math to compute the sizes of memory allocations in extensions.
FossilOrigin-Name: ca67f2ec0e294384c397db438605df1b47aae5f348a8de94f97286997625d169
Diffstat (limited to 'ext/misc/memstat.c')
-rw-r--r-- | ext/misc/memstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/memstat.c b/ext/misc/memstat.c index dcd5742fd..800a86e7a 100644 --- a/ext/misc/memstat.c +++ b/ext/misc/memstat.c @@ -143,7 +143,7 @@ static int memstatFindSchemas(memstat_cursor *pCur){ } while( sqlite3_step(pStmt)==SQLITE_ROW ){ char **az, *z; - az = sqlite3_realloc(pCur->azDb, sizeof(char*)*(pCur->nDb+1)); + az = sqlite3_realloc64(pCur->azDb, sizeof(char*)*(pCur->nDb+1)); if( az==0 ){ memstatClearSchema(pCur); return SQLITE_NOMEM; |