mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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
This commit is contained in:
4
Externals/Bochs_disasm/PowerPCDisasm.cpp
vendored
4
Externals/Bochs_disasm/PowerPCDisasm.cpp
vendored
@ -2210,7 +2210,7 @@ namespace PPCDisasm
|
|||||||
|
|
||||||
const char *DisassembleGekko(unsigned int opcode, unsigned int curInstAddr)
|
const char *DisassembleGekko(unsigned int opcode, unsigned int curInstAddr)
|
||||||
{
|
{
|
||||||
char opcodeStr[32], operandStr[32];
|
char opcodeStr[64], operandStr[64];
|
||||||
PPCDisasm::DisasmPara_PPC dp;
|
PPCDisasm::DisasmPara_PPC dp;
|
||||||
static char buf[128];
|
static char buf[128];
|
||||||
static unsigned int opc, adr;
|
static unsigned int opc, adr;
|
||||||
@ -2244,4 +2244,4 @@ const char *GetGRPName(unsigned int index)
|
|||||||
if (index < 32)
|
if (index < 32)
|
||||||
return gprnames[index];
|
return gprnames[index];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user