Branch: Tag:

2016-02-24

2016-02-24 15:07:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed potential NULL-deref.

Fixes [CID 742541] and [CID 742542].

2758:    }    }    if (!elem_on_stack) { +  if (t) {    push_finished_type(t); -  +  } else { +  push_type(T_ZERO); +  } +  } else if (!t) { +  /* No need to do anything. */    } else if ((top = peek_type_stack())->type != t->type) {    if (zero_implied && (top->type == T_ZERO)) {    Pike_compiler->type_stackp--;