From 7f7251d57f457436741e035b32e2d6064dc46c7b Mon Sep 17 00:00:00 2001 From: James Stanley Date: Wed, 16 Oct 2019 01:21:40 +0000 Subject: [PATCH] Fix buffer overrun in shell emulator (#51) --- tools/emul/shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/emul/shell/shell.c b/tools/emul/shell/shell.c index 97d8714..6def224 100644 --- a/tools/emul/shell/shell.c +++ b/tools/emul/shell/shell.c @@ -40,7 +40,7 @@ #define FS_ADDR_PORT 0x02 static Z80Context cpu; -static uint8_t mem[0xffff] = {0}; +static uint8_t mem[0x10000] = {0}; static uint8_t fsdev[MAX_FSDEV_SIZE] = {0}; static uint32_t fsdev_size = 0; static uint32_t fsdev_ptr = 0;