mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
fixed uninitialized memory in src/mame/video/cidelsa.c (fixes array out-of-bounds accesses) (nw)
This commit is contained in:
parent
a0bce530f3
commit
1f2fd69115
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user