From: fennecdjay Date: Sat, 19 Nov 2022 14:50:47 +0000 (+0100) Subject: :bug: fix tmpl_info security X-Git-Tag: nightly~207^2~74 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8744ec708d0b25537dd32b15c0df29e1d784ad86;p=gwion.git :bug: fix tmpl_info security --- 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;