[Bug c/89495] [9 Regression] gcc/c-family/c-format.c:1272:20: runtime error: signed integer overflow: 214748365 * 10 cannot be represented in type 'int'

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 23:44:00 GMT 2019


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 25 23:43:51 2019
New Revision: 269198

URL: https://gcc.gnu.org/viewcvs?rev=269198&root=gcc&view=rev
Log:
        PR c/89495
        * c-format.c (maybe_read_dollar_number): Compute nargnum in
        HOST_WIDE_INT type to avoid overflows and change overflow_flag
        checking.

Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.c


More information about the Gcc-bugs mailing list