From 3038bca0a4d944523574d218d7aaf9ba45c2ad28 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 23 Feb 2014 04:36:26 +0100 Subject: [PATCH] JitBackpatch: initialize InstructionInfo to 0 DisassembleMov() doesn't always initialize all fields of 'info'. --- Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp b/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp index f99bfc65a5..e65d614187 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp @@ -173,7 +173,8 @@ const u8 *Jitx86Base::BackPatch(u8 *codePtr, u32 emAddress, void *ctx_void) if (!jit->IsInCodeSpace(codePtr)) return 0; // this will become a regular crash real soon after this - InstructionInfo info; + InstructionInfo info = {}; + if (!DisassembleMov(codePtr, &info)) { BackPatchError("BackPatch - failed to disassemble MOV instruction", codePtr, emAddress); return 0;