summaryrefslogtreecommitdiff
path: root/gcc/c/c-convert.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2016-02-12 01:38:06 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2016-02-12 01:38:06 +0000
commit74a4140fabf2cbfc7adfb545468e07a427243690 (patch)
tree91eedf26ad1b6621eed02ddc3ccecc0614c40a1a /gcc/c/c-convert.c
parent9ddb20d61efab00d2e84255959e283aefd31f5e0 (diff)
downloadgcc-74a4140fabf2cbfc7adfb545468e07a427243690.tar.gz
Fix obstack use-after-free problems in C frontend, PR69522
c/ PR c/69522 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All callers changed. If nested_p is true, use it to call finish_implicit_inits. * c-tree.h (finish_implicit_inits): Declare. * c-typeck.c (finish_implicit_inits): New function. Move code from ... (push_init_level): ... here. (set_designator, process_init_element): Call finish_implicit_inits. testsuite/ PR c/69522 gcc.dg/pr69522.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233366 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c/c-convert.c')
0 files changed, 0 insertions, 0 deletions