mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fixed array out-of-bounds accesses and uninitialized members in src/mess/audio/upd1771.c (nw)
This commit is contained in:
parent
d2405e2145
commit
da88cbfabd
@ -292,6 +292,12 @@ void upd1771c_device::device_reset()
|
||||
m_index = 0;
|
||||
m_expected_bytes = 0;
|
||||
m_pc3 = 0;
|
||||
m_t_tpos = 0;
|
||||
m_t_ppos = 0;
|
||||
m_state = 0;
|
||||
m_nw_tpos = 0;
|
||||
memset(m_n_value, 0x00, sizeof(m_n_value));
|
||||
memset(m_n_ppos, 0x00, sizeof(m_n_ppos));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user