aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m32c-dis.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-05-03 13:43:44 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-05-18 22:22:49 +0100
commit3b889a787863d22694bb53eb08160c94ab52c58d (patch)
tree3daf3579bfc29fe642bf90aa804a06dd452c416d /opcodes/m32c-dis.c
parent45f4ed92d14ddf891be1470556f53de6c94c8dc2 (diff)
downloadgdb-3b889a787863d22694bb53eb08160c94ab52c58d.zip
gdb-3b889a787863d22694bb53eb08160c94ab52c58d.tar.gz
gdb-3b889a787863d22694bb53eb08160c94ab52c58d.tar.bz2
gas/arc: Add guard against operand array overflow.
Currently supplying an input file with too many operands to an instruction will cause the assembler to overflow and array and trigger undefined behaviour. This change checks that we don't access outside the limits of the operand array. gas/ChangeLog: * config/tc-arc.c (tokenize_arguments): Add checks for array overflow. * testsuite/gas/arc/asm-errors.s: Addition test line added. * testsuite/gas/arc/asm-errors.err: Update expected results.
Diffstat (limited to 'opcodes/m32c-dis.c')
0 files changed, 0 insertions, 0 deletions