Fix address violation when disassembling a corrupt RL78 binary.

PR binutils/21588
	* rl78-decode.opc (OP_BUF_LEN): Define.
	(GETBYTE): Check for the index exceeding OP_BUF_LEN.
	(rl78_decode_opcode): Use OP_BUF_LEN as the length of the op_buf
	array.
	* rl78-decode.c: Regenerate.
This commit is contained in:
Nick Clifton 2017-06-15 12:37:01 +01:00
parent 76800cba59
commit 63323b5b23
3 changed files with 424 additions and 411 deletions

File diff suppressed because it is too large Load diff