Skip to content

Commit 9e5109d

Browse files
authored
Fix type check in INMSGPARAM (#1652)
1 parent 5a86f0a commit 9e5109d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crypto/vm/tonops.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ int exec_get_in_msg_param(VmState* st, unsigned idx, const char* name) {
166166
VM_LOG(st) << "execute " << name;
167167
}
168168
Ref<Tuple> t = get_param(st, inmsgparams_idx).as_tuple();
169+
if (t.is_null()) {
170+
throw VmError{Excno::type_chk, "intermediate value is not a tuple"};
171+
}
169172
st->get_stack().push(tuple_index(t, idx));
170173
return 0;
171174
}

0 commit comments

Comments
 (0)