diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-07-22 10:36:16 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-07-22 10:36:16 +0000 |
commit | 1f2fd69115617af88e7b71ffad4a04a70151a31a (patch) | |
tree | 02986a190730db12b5df1c2e58ff8c71865878e0 | |
parent | a0bce530f382f352590a4324b0e5998f732962c9 (diff) |
fixed uninitialized memory in src/mame/video/cidelsa.c (fixes array out-of-bounds accesses) (nw)
-rw-r--r-- | src/mame/video/cidelsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mame/video/cidelsa.c b/src/mame/video/cidelsa.c index b9797efba6f..46fb401396e 100644 --- a/src/mame/video/cidelsa.c +++ b/src/mame/video/cidelsa.c @@ -164,7 +164,9 @@ void cidelsa_state::video_start() { // allocate memory m_pcbram = auto_alloc_array(machine(), UINT8, CIDELSA_CHARRAM_SIZE); + memset(m_pcbram, 0x00, CIDELSA_CHARRAM_SIZE * sizeof(UINT8)); m_charram = auto_alloc_array(machine(), UINT8, CIDELSA_CHARRAM_SIZE); + memset(m_charram, 0x00, CIDELSA_CHARRAM_SIZE * sizeof(UINT8)); // register for state saving save_item(NAME(m_cdp1869_pcb)); |