[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24272] An out-of-bounds read occured in pex64_xdata_print_
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/24272] An out-of-bounds read occured in pex64_xdata_print_uwd_codes() |
Date: |
Fri, 01 Mar 2019 03:02:15 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24272
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b24cc4146e4de9f3b66e2e2fb8379db46eff89c9
commit b24cc4146e4de9f3b66e2e2fb8379db46eff89c9
Author: Alan Modra <address@hidden>
Date: Fri Mar 1 09:28:47 2019 +1030
PR24272, out-of-bounds read in pex64_xdata_print_uwd_codes
The fix here is to use an unsigned comparison for
if (a->NumberOfRvaAndSizes > IMAGE_NUMBEROF_DIRECTORY_ENTRIES)
include/
PR 24272
* coff/internal.h (struct internal_extra_pe_aouthdr): Change type
of SizeOfCode, SizeOfInitializedData, and SizeOfUninitializedData
to bfd_vma. Change type of SectionAlignment, FileAlignment,
Reserved1, SizeOfImage, SizeOfHeaders, CheckSum, LoaderFlags,
and NumberOfRvaAndSizes to uint32_t.
bfd/
PR 24272
* peXXigen.c (_bfd_XXi_swap_aouthdr_in): Use unsigned index.
(_bfd_XX_print_private_bfd_data_common): Adjust for type changes.
--
You are receiving this mail because:
You are on the CC list for the bug.