public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR29799 heap buffer overflow in display_gdb_index dwarf.c:10548
@ 2022-11-18  1:03 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-11-18  1:03 UTC (permalink / raw)
  To: binutils

	PR 29799
	* dwarf.c (display_gdb_index): Typo fix.

diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 7730293326a..4bba8dfb81a 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);

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-18  1:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-18  1:03 PR29799 heap buffer overflow in display_gdb_index dwarf.c:10548 Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).