diff options
author | Alan Modra <amodra@gmail.com> | 2021-10-30 18:54:53 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-10-31 11:41:39 +1030 |
commit | 9216910ed82b2b64ced4b2031730f6a659c2034c (patch) | |
tree | 23e5244ead94eb5ede9e04d4fc012e82a6c2c251 /bfd | |
parent | 3c8ed65a5d9d754c79fa34741c51db187b56485c (diff) | |
download | gdb-9216910ed82b2b64ced4b2031730f6a659c2034c.zip gdb-9216910ed82b2b64ced4b2031730f6a659c2034c.tar.gz gdb-9216910ed82b2b64ced4b2031730f6a659c2034c.tar.bz2 |
ubsan: alpha-vms: undefined shift
* vms-alpha.c (evax_bfd_print_image): Shift left 1u.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/vms-alpha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 10758d5..aed2e26 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -7845,7 +7845,7 @@ evax_bfd_print_image (bfd *abfd, FILE *file) } mask = bfd_getl32 (eihvn.subsystem_mask); for (j = 0; j < 32; j++) - if (mask & (1 << j)) + if (mask & (1u << j)) { struct vms_eihvn_subversion ver; if (bfd_bread (&ver, sizeof (ver), abfd) != sizeof (ver)) |