From: fennecdjay Date: Wed, 2 Oct 2019 19:22:34 +0000 (+0200) Subject: :bug: Ptr must check is assigned X-Git-Tag: nightly~2198^2~171 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8aca328246ee2ad6df2181cd205f4456d8ad6949;p=gwion.git :bug: Ptr must check is assigned --- diff --git a/src/lib/ptr.c b/src/lib/ptr.c index 2de8082a..f79123a4 100644 --- a/src/lib/ptr.c +++ b/src/lib/ptr.c @@ -75,6 +75,8 @@ static OP_CHECK(opck_implicit_ptr) { static INSTR(instr_ptr_deref) { const M_Object o = *(M_Object*)REG(-SZ_INT); + if(!*(m_bit**)o->data) + Except(shred, _("EmptyPointerExecption")); if(instr->m_val2) memcpy(REG(-SZ_INT), o->data, SZ_INT); else {