Fix seg-fault when trying to disassemble a corrupt score binary.

PR binutils/21576
	* score7-dis.c (score_opcodes): Add sentinel.
This commit is contained in:
Nick Clifton
2017-06-14 17:10:28 +01:00
parent f461bbd847
commit e64519d1ed
2 changed files with 7 additions and 1 deletions

View File

@@ -513,7 +513,8 @@ static struct score_opcode score_opcodes[] =
{0x00000d05, 0x00007f0f, "tvc!"},
{0x00000026, 0x3e0003ff, "xor\t\t%20-24r, %15-19r, %10-14r"},
{0x00000027, 0x3e0003ff, "xor.c\t\t%20-24r, %15-19r, %10-14r"},
{0x00002007, 0x0000700f, "xor!\t\t%8-11r, %4-7r"}
{0x00002007, 0x0000700f, "xor!\t\t%8-11r, %4-7r"},
{ 0, 0, NULL }
};
typedef struct