From b082659f198a2419cc61946a4a992335eebc6fde Mon Sep 17 00:00:00 2001 From: matthias Date: Wed, 6 Mar 2019 18:51:13 +0100 Subject: [PATCH] fix segv in "{,}" combound literal --- tccgen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccgen.c b/tccgen.c index 0cb08324..87ec798c 100644 --- a/tccgen.c +++ b/tccgen.c @@ -6942,6 +6942,8 @@ static void decl_initializer(CType *type, Section *sec, unsigned long c, " optionally enclosed in braces"); skip('{'); no_oblock = 0; + if (tok == ',') + tcc_error("unexpected ','"); } /* only parse strings here if correct type (otherwise: handle