bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27289] Undefined negation/ Negation Overflow in _bfd_doprn


From: amodra at gmail dot com
Subject: [Bug binutils/27289] Undefined negation/ Negation Overflow in _bfd_doprnt_scan() potentially crashing on some systems
Date: Wed, 10 Feb 2021 23:43:14 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTABUG
             Status|UNCONFIRMED                 |RESOLVED
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
-1u is parsed as -(1u).  This is *not* negation of 1 as claimed by the usban
error but negation of an unsigned int.  Negation of an unsigned int is
perfectly well defined.  Looks like a bug in ubsan to me.

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