From: Jérémie Astor Date: Sun, 15 Dec 2019 11:50:53 +0000 (+0100) Subject: :art: Check for NULL in UsrUgenTick X-Git-Tag: nightly~1987 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0b19a125bbcf2fe322c56c1c4e2af3a8d9c6f351;p=gwion.git :art: Check for NULL in UsrUgenTick --- diff --git a/src/lib/modules.c b/src/lib/modules.c index 5c75eaa1..ff897dfa 100644 --- a/src/lib/modules.c +++ b/src/lib/modules.c @@ -248,6 +248,8 @@ static INSTR(UsrUGenTick) { const m_uint offset = !instr->m_val ? SZ_INT : 0; shred->reg -= SZ_INT*2 - offset; const M_Object o = *(M_Object*)(shred->reg + SZ_INT - offset); + if(!o) + Except(shred, "[NullPtrException]"); struct UUGen_ *uu = UGEN(o)->module.gen.data; if(uu->shred) free_vm_shred(uu->shred);