mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 15:15:08 +00:00
UserspaceEmulator: Make sure ELF data segments are zero-initialized
(And all other memory, too.) This will mutate later when we add shadow memory etc, but for now just zero-initialize it since that's expected by the emulated program.
This commit is contained in:
parent
7f394435da
commit
ce51cf90c6
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ public:
|
||||||
SimpleRegion(u32 base, u32 size)
|
SimpleRegion(u32 base, u32 size)
|
||||||
: Region(base, size)
|
: Region(base, size)
|
||||||
{
|
{
|
||||||
m_data = (u8*)malloc(size);
|
m_data = (u8*)calloc(1, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
~SimpleRegion()
|
~SimpleRegion()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue