bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:


From: cvs-commit at gcc dot gnu.org
Subject: [Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:
Date: Thu, 25 Mar 2021 16:34:09 +0000

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

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nick Alcock <nix@sourceware.org>:

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

commit 0bd65ce30a869559251a34da105fbe45df5a85b3
Author: Nick Alcock <nick.alcock@oracle.com>
Date:   Thu Mar 25 16:32:46 2021 +0000

    libctf: don't dereference out-of-bounds locations in the qualifier hashtab

    isqualifier, which is used by ctf_lookup_by_name to figure out if a
    given word in a type name is a qualifier, takes the address of a
    possibly out-of-bounds location before checking its bounds.

    In any reasonable compiler this will just lead to a harmless address
    computation that is then discarded if out-of-bounds, but it's still
    undefined behaviour and the sanitizer rightly complains.

    libctf/ChangeLog
    2021-03-25  Nick Alcock  <nick.alcock@oracle.com>

            PR libctf/27628
            * ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
            qhash values.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]