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 <amo...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b24cc4146e4de9f3b66e2e2fb8379db46eff89c9

commit b24cc4146e4de9f3b66e2e2fb8379db46eff89c9
Author: Alan Modra <amo...@gmail.com>
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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to