[hackers] [scc][PATCH] Fix NULL pointer dereference

From: Alexander Krotov <ilabdsf_AT_yandex.ru>
Date: Mon, 11 Apr 2016 23:31:11 +0300

---
 cc1/decl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc1/decl.c b/cc1/decl.c
index 1a22c44..f82e996 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -216,7 +216,7 @@ krfun(Type *tp, Type *types[], Symbol *syms[], int *ntypes, int *nsyms)
 			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) {
-- 
2.8.1
Received on Mon Apr 11 2016 - 22:31:11 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 11 2016 - 22:36:15 CEST