This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/67410] [5/6/7 Regression] c/c-typeck.c references out of bounds array


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 12 16:04:33 2016
New Revision: 239419

URL: https://gcc.gnu.org/viewcvs?rev=239419&root=gcc&view=rev
Log:
        PR c/67410
        * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
        % to determine val element to change.  Assert that
        wchar_bytes * charwidth fits into val array.

        * gcc.dg/pr67410.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr67410.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]