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:
7828dfa
)
PR29799 heap buffer overflow in display_gdb_index dwarf.c:10548
author
Alan Modra
<amodra@gmail.com>
Fri, 18 Nov 2022 00:59:13 +0000
(11:29 +1030)
committer
Alan Modra
<amodra@gmail.com>
Fri, 18 Nov 2022 01:01:17 +0000
(11:31 +1030)
PR 29799
* dwarf.c (display_gdb_index): Typo fix.
binutils/dwarf.c
patch
|
blob
|
history
diff --git
a/binutils/dwarf.c
b/binutils/dwarf.c
index 7730293326ac1049451eb4a037ac86d827030700..4bba8dfb81a6df49f5e61b3fae99dd545cc5c7dd 100644
(file)
--- a/
binutils/dwarf.c
+++ b/
binutils/dwarf.c
@@
-10545,7
+10545,7
@@
display_gdb_index (struct dwarf_section *section,
{
uint64_t low = byte_get_little_endian (address_table + i * 20, 8);
uint64_t high = byte_get_little_endian (address_table + i * 20 + 8, 8);
- uint32_t cu_index = byte_get_little_endian (address_table + i
+
20 + 16, 4);
+ uint32_t cu_index = byte_get_little_endian (address_table + i
*
20 + 16, 4);
print_hex (low, 8);
print_hex (high, 8);