6502: fix buffer overrun in disassembler

Change-Id: I12e27eb0d54d81ad98def46cf79d437376b4cc60
This commit is contained in:
David Banks 2019-11-15 11:36:19 +00:00
parent 0a339fee2a
commit 8a384bcc19
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ static const unsigned char dopaddr[256] PROGMEM =
addr_t disassemble(addr_t addr)
{
char buffer[32];
char buffer[40];
uint8_t temp;
data_t op = readMemByteInc();
data_t p1 = 0;

View File

@ -190,7 +190,7 @@ static const unsigned char dopaddr[256] PROGMEM =
addr_t disassemble(addr_t addr)
{
char buffer[32];
char buffer[40];
uint8_t temp;
data_t op = readMemByteInc();
data_t p1 = 0;