From 9350bf90ca70fe89b07dd7e976e33d8e021d7eef Mon Sep 17 00:00:00 2001 From: James Stanley <james@incoherency.co.uk> Date: Tue, 15 Oct 2019 22:26:01 +0100 Subject: [PATCH] Fix buffer overrun in shell emulator --- 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;