* ubsan: alpha-vms: undefined shift
@ 2021-10-31 2:22 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-10-31 2:22 UTC (permalink / raw)
To: binutils
* vms-alpha.c (evax_bfd_print_image): Shift left 1u.
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 10758d56e00..aed2e26d503 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))
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-31 2:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 2:22 ubsan: alpha-vms: undefined shift Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).