diff options
author | Peter Ferrie <peter.ferrie@gmail.com> | 2017-07-03 10:39:45 -0700 |
---|---|---|
committer | Peter Ferrie <peter.ferrie@gmail.com> | 2017-07-03 10:39:45 -0700 |
commit | 2c9203583924562b6608ba85258c5a11e0a6d57f (patch) | |
tree | fd4af4567aa406a981fd72df51cdcbad69e3264d | |
parent | 0d6e3703a1921416c5815252b99dce73901fa3c7 (diff) |
satops.hxx: stricter bounds checking [nw]
-rw-r--r-- | src/devices/cpu/saturn/satops.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/saturn/satops.hxx b/src/devices/cpu/saturn/satops.hxx index 28e94ae8dfa..a42d9745cd2 100644 --- a/src/devices/cpu/saturn/satops.hxx +++ b/src/devices/cpu/saturn/satops.hxx @@ -506,7 +506,7 @@ void saturn_device::saturn_equals_zero(int reg, int begin, int count) { int i, t; saturn_assert(reg>=0 && reg<9); - saturn_assert(begin>=0 && count>0 && begin+count<=16); + saturn_assert(begin>=0 && begin<16 && count>0 && begin+count<=16); m_carry=1; for (i=0; i<count; i++) { t=m_reg[reg][begin+i]; |