gas/arc: Add guard against operand array overflow.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 3 May 2016 12:43:44 +0000 (13:43 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 18 May 2016 21:22:49 +0000 (22:22 +0100)
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.


No differences found
This page took 0.025372 seconds and 4 git commands to generate.