Branch: Tag:

2016-02-24

2016-02-24 10:17:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed potential NULL-deref on broken cast.

Fixes [CID 742529].

3358:    /* FALL_THROUGH */    case F_CAST:    /* Type-field is correct by definition. */ +  if (old_type) {    copy_pike_type(n->type, old_type); -  +  } else { +  yyerror("Cast to invalid type."); +  copy_pike_type(n->type, mixed_type_string); +  }    break;       case F_LAND: