Zero-fill the memory where we're placing the xex
This commit is contained in:
@@ -610,6 +610,7 @@ int xe_xex2_read_image_basic_compressed(const xe_xex2_header_t *header,
|
||||
return 1;
|
||||
}
|
||||
uint8_t *buffer = memory->TranslateVirtual(header->exe_address);
|
||||
std::memset(buffer, 0, total_size); // Quickly zero the contents.
|
||||
uint8_t *d = buffer;
|
||||
std::memset(buffer, 0, uncompressed_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user