mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
PR23147, Heap buffer overflow in pe_print_idata
PR 23147 * peXXigen.c (pe_print_idata): Bound check hint_addr.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-05-09 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 23147
|
||||||
|
* peXXigen.c (pe_print_idata): Bound check hint_addr.
|
||||||
|
|
||||||
2018-05-08 Nick Clifton <nickc@redhat.com>
|
2018-05-08 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR 22809
|
PR 22809
|
||||||
|
@ -1438,7 +1438,7 @@ pe_print_idata (bfd * abfd, void * vfile)
|
|||||||
if (hint_addr == 0)
|
if (hint_addr == 0)
|
||||||
hint_addr = first_thunk;
|
hint_addr = first_thunk;
|
||||||
|
|
||||||
if (hint_addr != 0)
|
if (hint_addr != 0 && hint_addr - adj < datasize)
|
||||||
{
|
{
|
||||||
bfd_byte *ft_data;
|
bfd_byte *ft_data;
|
||||||
asection *ft_section;
|
asection *ft_section;
|
||||||
|
Reference in New Issue
Block a user