]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/67410 (c/c-typeck.c references out of bounds array)
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Aug 2016 16:04:33 +0000 (18:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Aug 2016 16:04:33 +0000 (18:04 +0200)
commit2f1364c2b325eec008bf461a0d77264618a9afe8
tree2e00735b63167cdb3d3b63e5b6d1ae320e43c34a
parentd186f41d35f7dd1190bf175b9224fa6f941ffbc0
re PR c/67410 (c/c-typeck.c references out of bounds array)

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.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r239419
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67410.c [new file with mode: 0644]