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

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

commit e9cf3691bfa140469d52815a2307b00eecf7917c
Author: Alan Modra <amo...@gmail.com>
Date:   Mon Jan 4 10:19:14 2021 +1030

    PR26741, benign use after free in riscv_parse_prefixed_ext

    ISO/IEC 9899:1999 C standard "J.2 Undefined behavior" says the
    following is undefined behaviour:

    "The value of a pointer that refers to space deallocated by a call to
    the free or realloc function is used (7.20.3)."

            PR 26741
            * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
            calculating subset version length.

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

Reply via email to