* buffer overflow in _bfd_XX_print_ce_compressed_pdata
@ 2022-10-26 7:27 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-10-26 7:27 UTC (permalink / raw)
To: binutils
More fuzzed fun.
* peXXigen.c (_bfd_XX_print_ce_compressed_pdata): Use smaller of
virt_size and bfd section size as limit of function table.
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index c5a7f7bf7ac..0232a63d558 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -2026,6 +2026,8 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile)
}
start = 0;
+ if (stop > datasize)
+ stop = datasize;
for (i = start; i < stop; i += onaline)
{
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-26 7:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 7:27 buffer overflow in _bfd_XX_print_ce_compressed_pdata 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).