summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormagumagu9 <magumagu9@gmail.com>2008-12-29 02:02:35 +0000
committermagumagu9 <magumagu9@gmail.com>2008-12-29 02:02:35 +0000
commit5f1f968e215ebe4b64513ffbcdbf8b2de9d4eed0 (patch)
tree12acd1c5b55ae7496904bbf59d8ca5a92211b85b
parent9786786c7eee679d534b9de832f98f1422dd0c41 (diff)
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
-rw-r--r--Source/Core/DebuggerWX/Src/JitWindow.cpp5
1 files 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;