projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8ed65
)
ubsan: alpha-vms: undefined shift
author
Alan Modra
<amodra@gmail.com>
Sat, 30 Oct 2021 08:24:53 +0000
(18:54 +1030)
committer
Alan Modra
<amodra@gmail.com>
Sun, 31 Oct 2021 01:11:39 +0000
(11:41 +1030)
* vms-alpha.c (evax_bfd_print_image): Shift left 1u.
bfd/vms-alpha.c
patch
|
blob
|
history
diff --git
a/bfd/vms-alpha.c
b/bfd/vms-alpha.c
index 10758d56e00b29ad8568535bac7284eab4fc3de9..aed2e26d5034e24e2f8ba8b14510e98bf298a736 100644
(file)
--- 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 & (1
u
<< j))
{
struct vms_eihvn_subversion ver;
if (bfd_bread (&ver, sizeof (ver), abfd) != sizeof (ver))