diff options
author | Alan Modra <amodra@gmail.com> | 2021-06-19 10:25:35 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-06-19 11:08:56 +0930 |
commit | 47399e9c455b0a634e4c3597c8d9a292cc4b1b0c (patch) | |
tree | def9d106bf045cd945c8cea5ba82828144d24bce /opcodes/vax-dis.c | |
parent | 03e689aaac95da0b22f7689a2c307e8ddd99ae2c (diff) | |
download | gdb-47399e9c455b0a634e4c3597c8d9a292cc4b1b0c.zip gdb-47399e9c455b0a634e4c3597c8d9a292cc4b1b0c.tar.gz gdb-47399e9c455b0a634e4c3597c8d9a292cc4b1b0c.tar.bz2 |
ubsan: vax: pointer overflow
"VAX export class call relocation test" fails with ubsan on a 32-bit
host.
* vax-dis.c (print_insn_vax): Avoid pointer overflow.
Diffstat (limited to 'opcodes/vax-dis.c')
-rw-r--r-- | opcodes/vax-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/vax-dis.c b/opcodes/vax-dis.c index e218d49..ed4610b 100644 --- a/opcodes/vax-dis.c +++ b/opcodes/vax-dis.c @@ -490,7 +490,7 @@ print_insn_vax (bfd_vma memaddr, disassemble_info *info) while (*argp) { - arg += print_insn_arg (argp, arg, memaddr + arg - buffer, info); + arg += print_insn_arg (argp, arg, memaddr + (arg - buffer), info); argp += 2; if (*argp) (*info->fprintf_func) (info->stream, ","); |