Prevent address violation when attempting to disassemble a corrupt score binary.

PR binutils/21614
	* score-dis.c (score_opcodes): Add sentinel.
This commit is contained in:
Nick Clifton 2017-06-19 14:15:57 +01:00
parent acb56a8301
commit 0f6d864de2
2 changed files with 6 additions and 0 deletions

View 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.

View 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}
};