From 5f1f968e215ebe4b64513ffbcdbf8b2de9d4eed0 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Mon, 29 Dec 2008 02:02:35 +0000 Subject: [PATCH] This is an ugly hack, but increase the size of the buffer... I managed to overflow it while experimenting with the JIT. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1709 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/JitWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Core/DebuggerWX/Src/JitWindow.cpp b/Source/Core/DebuggerWX/Src/JitWindow.cpp index 17c83854b6..df59ca7291 100644 --- a/Source/Core/DebuggerWX/Src/JitWindow.cpp +++ b/Source/Core/DebuggerWX/Src/JitWindow.cpp @@ -132,8 +132,8 @@ void CJitWindow::ViewAddr(u32 em_address) void CJitWindow::Compare(u32 em_address) { - u8 *xDis = new u8[65536]; - memset(xDis, 0, 65536); + u8 *xDis = new u8[1<<18]; + memset(xDis, 0, 1<<18); disassembler x64disasm; x64disasm.set_syntax_intel(); @@ -163,7 +163,6 @@ void CJitWindow::Compare(u32 em_address) // 800031f0 // == Fill in x86 box - memset(xDis, 0, 65536); const u8 *code = (const u8 *)jit.GetBlockCache()->GetCompiledCodeFromBlock(block_num); u64 disasmPtr = (u64)code; int size = block->codeSize;