From 8aca328246ee2ad6df2181cd205f4456d8ad6949 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 2 Oct 2019 21:22:34 +0200 Subject: [PATCH] :bug: Ptr must check is assigned --- src/lib/ptr.c | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.43.0