diff options
author | Nick Clifton <nickc@redhat.com> | 2017-06-19 14:15:57 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-06-19 14:15:57 +0100 |
commit | 0f6d864de2469af4223391993b430b0d45573dcb (patch) | |
tree | 10c83689d8c5de93354a4c9b5e3350a263df3441 /opcodes/score-dis.c | |
parent | acb56a83016611bcb5f0a32368fddc8c213f7dd0 (diff) | |
download | fsf-binutils-gdb-0f6d864de2469af4223391993b430b0d45573dcb.zip fsf-binutils-gdb-0f6d864de2469af4223391993b430b0d45573dcb.tar.gz fsf-binutils-gdb-0f6d864de2469af4223391993b430b0d45573dcb.tar.bz2 |
Prevent address violation when attempting to disassemble a corrupt score binary.
PR binutils/21614
* score-dis.c (score_opcodes): Add sentinel.
Diffstat (limited to 'opcodes/score-dis.c')
-rw-r--r-- | opcodes/score-dis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opcodes/score-dis.c b/opcodes/score-dis.c index fdfc4a0..d68e2b9 100644 --- a/opcodes/score-dis.c +++ b/opcodes/score-dis.c @@ -473,6 +473,7 @@ static struct score_opcode score_opcodes[] = {0x00003454, 0x3e007fff, "tvc"}, {0x00000026, 0x3e0003ff, "xor\t\t%20-24r, %15-19r, %10-14r"}, {0x00000027, 0x3e0003ff, "xor.c\t\t%20-24r, %15-19r, %10-14r"}, + {0,0,NULL} }; |