1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

In the unix VFS, fix the heap shm allocator (used for unix-excl)

so that it works even on systems where the page size is larger than 32KB.

FossilOrigin-Name: 7fbb083c5cf0948af3624b7538ffa086f77de27a3e84a7039ae7d6574f1a3a54
This commit is contained in:
drh
2018-10-11 02:39:11 +00:00
parent a9e4be3b08
commit b6c4d59e89
4 changed files with 22 additions and 10 deletions

View File

@@ -4734,12 +4734,12 @@ static int unixShmMap(
goto shmpage_out;
}
}else{
pMem = sqlite3_malloc64(szRegion);
pMem = sqlite3_malloc64(nMap);
if( pMem==0 ){
rc = SQLITE_NOMEM_BKPT;
goto shmpage_out;
}
memset(pMem, 0, szRegion);
memset(pMem, 0, nMap);
}
for(i=0; i<nShmPerMap; i++){