From 8744ec708d0b25537dd32b15c0df29e1d784ad86 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 19 Nov 2022 15:50:47 +0100 Subject: [PATCH] :bug: fix tmpl_info security --- src/lib/tmpl_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tmpl_info.c b/src/lib/tmpl_info.c index 4e8e34b7..4a0121c8 100644 --- a/src/lib/tmpl_info.c +++ b/src/lib/tmpl_info.c @@ -101,7 +101,7 @@ ANN bool tmpl_global(const Env env, Type_List tl) { for(uint32_t i = 0; i < tl->len; i++) { Type_Decl *td = *mp_vector_at(tl, Type_Decl*, i); const Type t = known_type(env, td); - if(!t && !type_global(env, t)) + if(!t || !type_global(env, t)) return false; } return true; -- 2.43.0