[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/17765] New: Bad bit shift operation
From: |
sourceware-bugs at internot dot info |
Subject: |
[Bug binutils/17765] New: Bad bit shift operation |
Date: |
Sun, 28 Dec 2014 00:08:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17765
Bug ID: 17765
Summary: Bad bit shift operation
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: sourceware-bugs at internot dot info
Hi,
In /elflink.c, there is a possible invalid bitshift operation in the put_value
function.
In expression x >>= chunksz * 8UL, right shifting by more than 63 bits has
undefined behavior. The shift amount, chunksz * 8, is 64.
7806 for (; size; size -= chunksz, location -= chunksz, x >>= (chunksz * 8))
7807 {
Thanks,
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/17765] New: Bad bit shift operation,
sourceware-bugs at internot dot info <=