From 90f5269535cc302d7f0f282deb5b81077424d190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 8 May 2014 18:32:13 +0000 Subject: [PATCH] fixed usage of uninitialized member and heap-buffer-overflow in cosmac_device (nw) --- src/emu/cpu/cosmac/cosmac.c | 1 + 1 file changed, 1 insertion(+) 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)); }