Commit: Fix array overruns in v850 disassembler

Nick Clifton nickc@redhat.com
Mon Nov 4 12:02:00 GMT 2019


Hi Guys,

  I am applying the attached patch to fix potential array overruns when
  disassembling corrupt v850 binaries.

Cheers
  Nick

opcodes/ChangeLog
2019-11-04  Nick Clifton  <nickc@redhat.com>

	* v850-dis.c (get_v850_sreg_name): New function.  Returns the name
	of a v850 system register.  Move the v850_sreg_names array into
	this function.
	(get_v850_reg_name): Likewise for ordinary register names.
	(get_v850_vreg_name): Likewise for vector register names.
	(get_v850_cc_name): Likewise for condition codes.
	* get_v850_float_cc_name): Likewise for floating point condition
	codes.
	(get_v850_cacheop_name): Likewise for cache-ops.
	(get_v850_prefop_name): Likewise for pref-ops.
	(disassemble): Use the new accessor functions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v850.dis.patch
Type: text/x-patch
Size: 8284 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20191104/ed57061f/attachment.bin>


More information about the Binutils mailing list