fixed uninitialized memory in src/mame/video/cidelsa.c (fixes array out-of-bounds accesses) (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-22 10:36:16 +00:00
parent a0bce530f3
commit 1f2fd69115

View File

@ -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));