From 88733bf8baefff1ab926f6ceadcd4a862f744425 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Mon, 18 May 2015 00:50:58 -0500 Subject: [PATCH] Zero-fill the memory where we're placing the xex --- src/xenia/kernel/util/xex2.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/kernel/util/xex2.cc b/src/xenia/kernel/util/xex2.cc index 7a38b57e8..557d3fb0a 100644 --- a/src/xenia/kernel/util/xex2.cc +++ b/src/xenia/kernel/util/xex2.cc @@ -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);