ia64: Fix left shift overflow.
PATCH 1/1 ia64: Fix left shift overflow.
* grub-core/kern/ia64/dl_helper.c (grub_ia64_set_immu64): Make constant unsigned. This change was also done in Binutils, where this code originates from, in commit 108f6f97bd862e969f898c1347903ae1cf38ead4.
Signed-off-by Collin Funk <[email protected]>
--- grub-core/kern/ia64/dl_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/kern/ia64/dl_helper.c +1 -1
@@ -46,7 +46,7 @@ grub_ia64_set_immu64 (grub_addr_t addr, grub_uint64_t val)slot 2: bits 23..63 in t1 */ /* First, clear the bits that form the 64 bit constant. */ - t0 &= ~(0x3ffffLL <<46 ); + t0 &= ~(0x3ffffULL <<46 ); t1 &= ~(0x7fffffLL | (( (0x07fLL << 13) | (0x1ffLL << 27) | (0x01fLL << 22) | (0x001LL << 21)
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel