[Bug tree-optimization/82491] UBSAN in gcc/gimple-fold.c:6187:6: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int'

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 19 18:31:00 GMT 2018


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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Feb 19 18:29:52 2018
New Revision: 257816

URL: https://gcc.gnu.org/viewcvs?rev=257816&root=gcc&view=rev
Log:
Fix ubsan in gimple-fold.c (PR tree-optimization/82491).

2018-02-19  Martin Liska  <mliska@suse.cz>
            Richard Sandiford  <richard.sandiford@linaro.org>

        PR tree-optimization/82491
        * gimple-fold.c (get_base_constructor): Make earlier bail out
        to prevent ubsan.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c


More information about the Gcc-bugs mailing list