From 0f6d864de2469af4223391993b430b0d45573dcb Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 19 Jun 2017 14:15:57 +0100 Subject: [PATCH] Prevent address violation when attempting to disassemble a corrupt score binary. PR binutils/21614 * score-dis.c (score_opcodes): Add sentinel. --- opcodes/ChangeLog | 5 +++++ opcodes/score-dis.c | 1 + 2 files changed, 6 insertions(+) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e6578d0f5f8..b484e5be6a7 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2017-06-19 Nick Clifton + + PR binutils/21614 + * score-dis.c (score_opcodes): Add sentinel. + 2017-06-16 Alan Modra * rx-decode.c: Regenerate. diff --git a/opcodes/score-dis.c b/opcodes/score-dis.c index fdfc4a082cf..d68e2b907df 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} }; -- 2.30.2