diff options
author | 2014-05-08 18:32:13 +0000 | |
---|---|---|
committer | 2014-05-08 18:32:13 +0000 | |
commit | 90f5269535cc302d7f0f282deb5b81077424d190 (patch) | |
tree | 3ff233aede21c12c9fa02991d90dcdfcc091a5d6 /src/emu/cpu/cosmac/cosmac.c | |
parent | 6ee6c86c690170d210f37cbc02aa21b9c5021c95 (diff) |
fixed usage of uninitialized member and heap-buffer-overflow in cosmac_device (nw)
Diffstat (limited to 'src/emu/cpu/cosmac/cosmac.c')
-rw-r--r-- | src/emu/cpu/cosmac/cosmac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/cpu/cosmac/cosmac.c b/src/emu/cpu/cosmac/cosmac.c index 5d241b93b91..520b652ffef 100644 --- a/src/emu/cpu/cosmac/cosmac.c +++ b/src/emu/cpu/cosmac/cosmac.c @@ -401,6 +401,7 @@ void cosmac_device::device_reset() m_ie = 0; m_q = 0; m_df = 0; + m_p = 0; rand_memory(m_r, sizeof(m_r)); } |