]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Prevent address violation when attempting to disassemble a corrupt score binary.
authorNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 13:15:57 +0000 (14:15 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 13:15:57 +0000 (14:15 +0100)
PR binutils/21614
* score-dis.c (score_opcodes): Add sentinel.

opcodes/ChangeLog
opcodes/score-dis.c

index e6578d0f5f8dfc0debf4d6db883c7079e7b5482d..b484e5be6a7e4729cf63bff6afde4f77d3f83cf1 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-19  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/21614
+       * score-dis.c (score_opcodes): Add sentinel.
+
 2017-06-16  Alan Modra  <amodra@gmail.com>
 
        * rx-decode.c: Regenerate.
index fdfc4a082cfb16d9044c4a9fb649be8c7a93919a..d68e2b907df69a16ee3ce3ce549bd51b45637887 100644 (file)
@@ -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}
 };
 \f