bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/26493] UBSAN error: elfnn-riscv.c:3465:7:


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/26493] UBSAN error: elfnn-riscv.c:3465:7:
Date: Mon, 31 Aug 2020 10:59:43 +0000

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

--- 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=1174d92070a85a8ad25e9b9686dd1b4921e96702

commit 1174d92070a85a8ad25e9b9686dd1b4921e96702
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Aug 31 13:17:06 2020 +0930

    PR26493 UBSAN: elfnn-riscv.c left shift of negative value

    include/
            PR 26493
            * opcode/riscv.h (OP_MASK_CSR, OP_MASK_CUSTOM_IMM)
            (OP_MASK_FUNCT7, OP_MASK_RS3): Make unsigned.
    bfd/
            PR 26493
            * elfnn-riscv.c (riscv_make_plt_header): Cast PLT_HEADER_SIZE to
            unsigned when using with RISCV_ITYPE.
            (_bfd_riscv_relax_call): Use an unsigned foff.

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