mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
* dwarf2-frame.c (read_signed_leb128): Handle values that do not
fit in 32 bits. * dwarf2read.c (read_signed_leb128): Likewise.
This commit is contained in:
@@ -1105,8 +1105,8 @@ read_signed_leb128 (bfd *abfd, gdb_byte *buf, unsigned int *bytes_read_ptr)
|
||||
}
|
||||
while (byte & 0x80);
|
||||
|
||||
if ((shift < 32) && (byte & 0x40))
|
||||
result |= -(1 << shift);
|
||||
if (shift < 8 * sizeof (result) && (byte & 0x40))
|
||||
result |= -(((LONGEST)1) << shift);
|
||||
|
||||
*bytes_read_ptr = num_read;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user