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:
@@ -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++){
|
||||
|
||||
Reference in New Issue
Block a user