Zero-fill the memory where we're placing the xex

This commit is contained in:
Dr. Chat 2015-05-18 00:50:58 -05:00
parent f2ac2af8cd
commit 88733bf8ba
1 changed files with 1 additions and 0 deletions

View File

@ -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);