mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-12-22 01:30:18 +00:00
6502: fix buffer overrun in disassembler
Change-Id: I12e27eb0d54d81ad98def46cf79d437376b4cc60
This commit is contained in:
parent
0a339fee2a
commit
8a384bcc19
@ -170,7 +170,7 @@ static const unsigned char dopaddr[256] PROGMEM =
|
|||||||
addr_t disassemble(addr_t addr)
|
addr_t disassemble(addr_t addr)
|
||||||
{
|
{
|
||||||
|
|
||||||
char buffer[32];
|
char buffer[40];
|
||||||
uint8_t temp;
|
uint8_t temp;
|
||||||
data_t op = readMemByteInc();
|
data_t op = readMemByteInc();
|
||||||
data_t p1 = 0;
|
data_t p1 = 0;
|
||||||
|
@ -190,7 +190,7 @@ static const unsigned char dopaddr[256] PROGMEM =
|
|||||||
addr_t disassemble(addr_t addr)
|
addr_t disassemble(addr_t addr)
|
||||||
{
|
{
|
||||||
|
|
||||||
char buffer[32];
|
char buffer[40];
|
||||||
uint8_t temp;
|
uint8_t temp;
|
||||||
data_t op = readMemByteInc();
|
data_t op = readMemByteInc();
|
||||||
data_t p1 = 0;
|
data_t p1 = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user