mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +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:
@@ -42,7 +42,7 @@ public:
|
||||
SimpleRegion(u32 base, u32 size)
|
||||
: Region(base, size)
|
||||
{
|
||||
m_data = (u8*)malloc(size);
|
||||
m_data = (u8*)calloc(1, size);
|
||||
}
|
||||
|
||||
~SimpleRegion()
|
||||
|
||||
Reference in New Issue
Block a user