Branch: Tag:

2014-12-09

2014-12-09 17:28:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed some NULL-dereferences.

expr4 nonterminals can be NULL for eg undeclared variables.

Thanks to Jakub Krajewski <jkrajewski@opera.com> for the report.

Fixes [Pike mailinglist 14323].

3166:    struct pike_type *type_a, *type_b;    struct pike_type *old_type;    -  if (n->type && !(n->node_info & OPT_TYPE_NOT_FIXED)) +  if (!n || (n->type && !(n->node_info & OPT_TYPE_NOT_FIXED)))    return; /* assume it is correct */       old_type = n->type;