https://sourceware.org/bugzilla/show_bug.cgi?id=28173

--- Comment #1 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=a379e7588c5e3a9750bba8c51218cce9225122f5

commit a379e7588c5e3a9750bba8c51218cce9225122f5
Author: Alan Modra <amo...@gmail.com>
Date:   Fri Aug 6 18:35:23 2021 +0930

    PR28173, nds32_elf_howto_table index out of bounds

    Indexing the howto table was seriously broken by a missing entry, and
    use of assertions about user input rather than testing the input.

            PR 28173
            * elf32-nds32.c (nds32_elf_howto_table): Add missing empty howto.
            (bfd_elf32_bfd_reloc_type_table_lookup): Replace assertions with
            range checks.  Return NULL if unsupported reloc type.  Remove
            dead code.  Take an unsigned int param.
            (nds32_info_to_howto_rel): Test for NULL howto or howto name
            return from lookup.  Remove assertion.
            (nds32_info_to_howto): Remove unnecessary ATTRIBUTE_UNUSED.
            Test for NULL howto or howto name return from lookup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to