[hackers] [scc] [cc1] Fix NULL pointer dereference || Alexander Krotov

From: <git_AT_suckless.org>
Date: Wed, 13 Apr 2016 08:11:39 +0200 (CEST)

commit 54f95598858aa76b912be8dc0b980070724f31f2
Author: Alexander Krotov <ilabdsf_AT_yandex.ru>
AuthorDate: Mon Apr 11 23:31:11 2016 +0300
Commit: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
CommitDate: Wed Apr 13 08:11:18 2016 +0200

    [cc1] Fix NULL pointer dereference

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) {
Received on Wed Apr 13 2016 - 08:11:39 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 13 2016 - 08:12:31 CEST