From 0b00eeaf01c35a7b5d74347dce1cf7e492430774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 25 Sep 2015 13:41:47 +0200 Subject: [PATCH] Type-checker: Fixed typo in handling of NOT-types. This could cause incremental writes (and likely core-dumps) anywhere in the 32-bit address space, but was unlikely to be triggered in practice due to NOT-types not being available at Pike level. --- src/pike_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pike_types.c b/src/pike_types.c index 6185092f7e..3089192291 100644 --- a/src/pike_types.c +++ b/src/pike_types.c @@ -7092,7 +7092,7 @@ struct pike_type *new_get_return_type(struct pike_type *fun_type, case T_NOT: if (!(res = new_get_return_type(fun_type->car, flags))) { copy_pike_type(res, mixed_type_string); - } else if (res->type == T_INT) { + } else if (res->type == T_NOT) { tmp = res; copy_pike_type(res, tmp->car); free_type(tmp); -- GitLab