[binutils-gdb] ubsan: alpha-vms: undefined shift
Alan Modra
amodra@sourceware.org
Sun Oct 31 02:24:31 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9216910ed82b2b64ced4b2031730f6a659c2034c
commit 9216910ed82b2b64ced4b2031730f6a659c2034c
Author: Alan Modra <amodra@gmail.com>
Date: Sat Oct 30 18:54:53 2021 +1030
ubsan: alpha-vms: undefined shift
* vms-alpha.c (evax_bfd_print_image): Shift left 1u.
Diff:
---
bfd/vms-alpha.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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))
More information about the Binutils-cvs
mailing list