Since there are only 4 bnd registers, return "(bad)" for register
number > 3.
PR binutils/21594
* i386-dis.c (OP_E_register): Check valid bnd register.
(OP_G): Likewise.
+2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/21594
+ * i386-dis.c (OP_E_register): Check valid bnd register.
+ (OP_G): Likewise.
+
2017-06-15 Nick Clifton <nickc@redhat.com>
PR binutils/21595
2017-06-15 Nick Clifton <nickc@redhat.com>
PR binutils/21595
names = address_mode == mode_64bit ? names64 : names32;
break;
case bnd_mode:
names = address_mode == mode_64bit ? names64 : names32;
break;
case bnd_mode:
+ if (reg > 0x3)
+ {
+ oappend ("(bad)");
+ return;
+ }
names = names_bnd;
break;
case indir_v_mode:
names = names_bnd;
break;
case indir_v_mode:
oappend (names64[modrm.reg + add]);
break;
case bnd_mode:
oappend (names64[modrm.reg + add]);
break;
case bnd_mode:
+ if (modrm.reg > 0x3)
+ {
+ oappend ("(bad)");
+ return;
+ }
oappend (names_bnd[modrm.reg]);
break;
case v_mode:
oappend (names_bnd[modrm.reg]);
break;
case v_mode: