S12Z: Opcodes: Fix crash when trying to decode a truncated operation.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 29 Apr 2019 14:05:54 +0000 (16:05 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 29 Apr 2019 14:10:21 +0000 (16:10 +0200)
commit4a90ce955e5bcde074b8616ff9d20f9939a9a358
treec44101f47bfff2e3b577d3e2f6ee75b3b40d6ef9
parent637d4b78c55640b9d858546a65d51024a70b5247
S12Z: Opcodes: Fix crash when trying to decode a truncated operation.

opcodes/
* s12z-opc.c (shift_discrim): Return OP_INVALID when reading fails.

gas/
* testsuite/gas/s12z/truncated.d: New file.
* testsuite/gas/s12z/truncated.s: New file.
* testsuite/gas/s12z/s12z.exp: Add new test.
gas/ChangeLog
gas/testsuite/gas/s12z/s12z.exp
gas/testsuite/gas/s12z/truncated.d [new file with mode: 0644]
gas/testsuite/gas/s12z/truncated.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/s12z-opc.c
This page took 0.024495 seconds and 4 git commands to generate.