ref: d34385129759c3dee491244cde354859450efa81
parent: 6da9ccc28f4f38116d98d6e602dbe5dafda110e0
author: Alexander Krotov <[email protected]>
date: Mon Apr 11 19:31:11 EDT 2016
[cc1] Fix NULL pointer dereference
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -216,7 +216,7 @@
sym->flags |= ISAUTO;
if ((sym = install(NS_IDEN, sym)) == NULL) {
errorp("redefinition of parameter '%s'",
- sym->name);
+ yylval.sym->name);
continue;
}
if (n < NR_FUNPARAM) {