Fix invalid size with GNU designated initializers
commit9e429dbef0a1a5f5f093343a012d8dc3db973871
authorMichael Matz <matz@suse.de>
Sun, 21 Jul 2019 19:14:58 +0000 (21 21:14 +0200)
committerMichael Matz <matz@suse.de>
Sun, 21 Jul 2019 19:14:58 +0000 (21 21:14 +0200)
treeca8ad8326972d84ca3e3825bb0fe96b2c47a080b
parentce1ef5b8fc534bf7f2c36b07494aaf7099fbc5b1
Fix invalid size with GNU designated initializers

the uninitialized cumofs was leading to random sizes for
the memset when initializing local structures, potentially
leading to segfaults from it.  Only a problem with GNU
designated initializers, which we didn't test very well.
See testcase.
tccgen.c
tests/tests2/90_struct-init.c
tests/tests2/90_struct-init.expect