[Bug c/67410] [5/6/7 Regression] c/c-typeck.c references out of bounds array
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 12 16:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67410
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 12 16:05:53 2016
New Revision: 239420
URL: https://gcc.gnu.org/viewcvs?rev=239420&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:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr67410.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-typeck.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list