mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
ubsan: visium: left shift cannot be represented in type 'int'
* visium-dis.c (print_insn_visium): Avoid signed overflow.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2019-12-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* visium-dis.c (print_insn_visium): Avoid signed overflow.
|
||||||
|
|
||||||
2019-12-17 Alan Modra <amodra@gmail.com>
|
2019-12-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* aarch64-opc.c (value_fit_signed_field_p): Avoid signed overflow.
|
* aarch64-opc.c (value_fit_signed_field_p): Avoid signed overflow.
|
||||||
|
@ -789,7 +789,7 @@ print_insn_visium (bfd_vma addr, disassemble_info *info)
|
|||||||
|
|
||||||
/* Get 32-bit instruction word. */
|
/* Get 32-bit instruction word. */
|
||||||
FETCH_DATA (info, buffer + 4);
|
FETCH_DATA (info, buffer + 4);
|
||||||
ins = buffer[0] << 24;
|
ins = (unsigned) buffer[0] << 24;
|
||||||
ins |= buffer[1] << 16;
|
ins |= buffer[1] << 16;
|
||||||
ins |= buffer[2] << 8;
|
ins |= buffer[2] << 8;
|
||||||
ins |= buffer[3];
|
ins |= buffer[3];
|
||||||
|
Reference in New Issue
Block a user