https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98151

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is another UB in it, if you try to parse the INT_MIN value there is
another signed integer overflow, because 0x80000000 is not representable in
int, while -0x7fffffff-1 is.
Better to compute the result in unsigned type and only at the end cast to int.

Reply via email to