bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/26448] UBSAN error: gas/symbols.c:1586:31:


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/26448] UBSAN error: gas/symbols.c:1586:31:
Date: Wed, 26 Aug 2020 13:54:47 +0000

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

--- 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 <amodra@sourceware.org>:

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

commit d8d6da137d7ececcd0e10c575aa187bb8c9b24e0
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Aug 26 17:39:58 2020 +0930

    PR26448 UBSAN: symbols.c:1586 left shift of negative value

    Besides avoiding the UB, this also makes right shifts inside
    expression symbols unsigned, consistent with the way gas evaluates
    expressions in source.

            PR 26448
            * symbols.c: Include limits.h.
            (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
            unsigned shift.  Warn if shift count larger than valueT size.

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