aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-11-18 11:29:13 +1030
committerAlan Modra <amodra@gmail.com>2022-11-18 11:31:17 +1030
commit69bfd1759db41c8d369f9dcc98a135c5a5d97299 (patch)
treefe67b4a1db43d5f414f7bb361d63ea3c8ae2b346
parent7828dfa93b210b6bbc6596e6e096cc150a9f8aa4 (diff)
downloadgdb-69bfd1759db41c8d369f9dcc98a135c5a5d97299.zip
gdb-69bfd1759db41c8d369f9dcc98a135c5a5d97299.tar.gz
gdb-69bfd1759db41c8d369f9dcc98a135c5a5d97299.tar.bz2
PR29799 heap buffer overflow in display_gdb_index dwarf.c:10548
PR 29799 * dwarf.c (display_gdb_index): Typo fix.
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 7730293..4bba8df 100644
--- 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);