pike.git/
src/
las.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-02-24
2016-02-24 10:19:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a69dcf5ab013103373a2d09680c032ebf49bb5f5 (
8
lines) (+
7
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Compiler: Fixed potential NULL-deref on broken cast.
Fixes [CID 742529].
3206:
/* 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: