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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils