diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index d0c338a0f6d..890931e6b8a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2023-04-21 Tom Tromey <tromey@adacore.com> + + * i386-dis.c (OP_J): Check result of get16. + 2023-04-12 Claudiu Zissulescu <claziss@synopsys.com> * arc-tbl.h: Remove vadds2, vadds2h, vadds4h, vaddsubs, diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 46ba01fe093..f021bdaa3e7 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -12701,7 +12701,8 @@ OP_J (instr_info *ins, int bytemode, int sizeflag) { int val; - get16 (ins, &val); + if (!get16 (ins, &val)) + return false; disp = val & 0x8000 ? val - 0x10000 : val; /* In 16bit mode, address is wrapped around at 64k within the same segment. Otherwise, a data16 prefix on a jump |