From 8483fb834e84a5653ace7d122ace645ac9296015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 29 Jul 2013 09:25:34 +0000 Subject: [PATCH] fixed array out-of-bounds access in nmk16_state::tharrier_mcu_r() (nw) --- src/mame/drivers/nmk16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/drivers/nmk16.c b/src/mame/drivers/nmk16.c index b31e164bcac..ad838aa01bb 100644 --- a/src/mame/drivers/nmk16.c +++ b/src/mame/drivers/nmk16.c @@ -249,7 +249,7 @@ READ16_MEMBER(nmk16_state::tharrier_mcu_r) else { res = to_main[m_prot_count++]; - if (m_prot_count > sizeof(to_main)) + if (m_prot_count == sizeof(to_main)) m_prot_count = 0; }