| Previous | 199869 Revisions | Next |
| r31451 Monday 28th July, 2014 at 08:02:02 UTC by Oliver Stöneberg |
|---|
| added assert for index out-of-bounds access with tecnbras (nw) |
| [src/mess/drivers] | tecnbras.c |
| r31450 | r31451 | |
|---|---|---|
| 75 | 75 | { |
| 76 | 76 | int x = m_xcoord + offset; |
| 77 | 77 | for (int i=0; i<7; i++){ |
| 78 | assert((x/5) < ARRAY_LENGTH(m_digit)); | |
| 78 | 79 | m_digit[x/5][i] &= ~(1 << (x%5)); |
| 79 | 80 | m_digit[x/5][i] |= BIT(data, 7-i) ? (1 << (x%5)) : 0; |
| 80 | 81 | output_set_indexed_value("dmd_", (x/5)*7 + i, 0x1F & m_digit[x/5][i]); |
| Previous | 199869 Revisions | Next |