Revisión | f84ffabbb304853a6570656200dfbd32e732386f (tree) |
---|---|
Tiempo | 2022-10-26 16:26:38 |
Autor | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
buffer overflow in _bfd_XX_print_ce_compressed_pdata
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.
@@ -2026,6 +2026,8 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile) | ||
2026 | 2026 | } |
2027 | 2027 | |
2028 | 2028 | start = 0; |
2029 | + if (stop > datasize) | |
2030 | + stop = datasize; | |
2029 | 2031 | |
2030 | 2032 | for (i = start; i < stop; i += onaline) |
2031 | 2033 | { |