[Bug general/22976] global-buffer-overflow in ebl_dynamic_tag_name (libebl/ebldynamictagname.c)

mark at klomp dot org sourceware-bugzilla@sourceware.org
Fri Mar 16 18:45:00 GMT 2018


Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-03-16
                 CC|                            |mark at klomp dot org
     Ever confirmed|0                           |1

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Thanks. The issue is that there is a new standard SYMTAB_SHNDX which we got
through the new elf.h, but didn't handle in ebldynamictagname.c.

To fix this, and to prevent this from happening in the future I proposed the
following patch:

commit 92581d7eb483cb039e60112b0a03a04c2ffa4df4
Author: Mark Wielaard <mark@klomp.org>
Date:   Fri Mar 16 19:42:17 2018 +0100

    libebl: Handle SYMTAB_SHNDX in ebl_dynamic_tag_name.

    SYMTAB_SHNDX was introduced when elf.h was imported, but not yet handled
    in ebl_dynamic_tag_name. Handle it and add an eu_static_assert to make
    sure stdtags always contains DT_NUM entries.


    Signed-off-by: Mark Wielaard <mark@klomp.org>


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

More information about the Elfutils-devel mailing list