Zeroing heap memory.
This commit is contained in:
parent
0dac9f3f02
commit
6d821df3a9
|
@ -380,6 +380,7 @@ uint32_t Memory::SystemHeapAlloc(uint32_t size, uint32_t alignment,
|
||||||
kMemoryProtectRead | kMemoryProtectWrite, false, &address)) {
|
kMemoryProtectRead | kMemoryProtectWrite, false, &address)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Zero(address, size);
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue