From 645f621481c7aa843618b6e3698494485772a37e Mon Sep 17 00:00:00 2001 From: "fires.gc" Date: Mon, 27 Oct 2008 22:01:21 +0000 Subject: [PATCH] fixes small memory overwrite of gekko disasm all this sprintf stuff is unsafe :( dunno if there are other places with similar problems... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@982 8ced0084-cf51-0410-be5f-012b33b47a6e --- Externals/Bochs_disasm/PowerPCDisasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Externals/Bochs_disasm/PowerPCDisasm.cpp b/Externals/Bochs_disasm/PowerPCDisasm.cpp index beb27b1ed4..62de0995a8 100644 --- a/Externals/Bochs_disasm/PowerPCDisasm.cpp +++ b/Externals/Bochs_disasm/PowerPCDisasm.cpp @@ -2210,7 +2210,7 @@ namespace PPCDisasm const char *DisassembleGekko(unsigned int opcode, unsigned int curInstAddr) { - char opcodeStr[32], operandStr[32]; + char opcodeStr[64], operandStr[64]; PPCDisasm::DisasmPara_PPC dp; static char buf[128]; static unsigned int opc, adr; @@ -2244,4 +2244,4 @@ const char *GetGRPName(unsigned int index) if (index < 32) return gprnames[index]; return 0; -} +}