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

--- Comment #2 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=8fd04a4255376036e85c4e80d430b44ec4b06c64

commit 8fd04a4255376036e85c4e80d430b44ec4b06c64
Author: Alan Modra <amo...@gmail.com>
Date:   Mon Dec 31 17:06:25 2018 +1030

    PR24042, Global-buffer-overflow problem in output_rel_find

    place_orphan handled ELF SHT_REL/SHT_RELA specially, output_rel_find
    didn't.  This mismatch was a bug and also meant it was possible to
    craft an object where ld accessed section->name out of bounds.

        PR 24042
        * emultempl/elf32.em (output_rel_find): Drop "sec" param.  Add
        "rela".
        (gld${EMULATION_NAME}_place_orphan): Use sh_type to calculate
        "rela" param of output_rel_find when ELF.  Tidy uses of elfinput.

-- 
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