diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-07 17:10:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-07 17:32:25 +0930 |
commit | 69464d2267c47e91f9ba77726c745d82b8864c88 (patch) | |
tree | d29006051fce81a4d5d5d959bbe831da289ed997 /gdb/rust-lang.c | |
parent | 5a91f93b983184c64b3a9332f5f4339d17941d76 (diff) | |
download | gdb-69464d2267c47e91f9ba77726c745d82b8864c88.zip gdb-69464d2267c47e91f9ba77726c745d82b8864c88.tar.gz gdb-69464d2267c47e91f9ba77726c745d82b8864c88.tar.bz2 |
Fix multiple ubsan warnings in i386-dis.c
Commit 39fb369834a3 "opcodes: Make i386-dis.c thread-safe" introduced
a number of casts to bfd_signed_vma that cause undefined behaviour
with a 32-bit libbfd. Revert those changes.
* i386-dis.c (OP_E_memory): Do not cast disp to bfd_signed_vma
for negation.
(get32, get32s): Don't use bfd_signed_vma here.
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions