+1 byterun check

This commit is contained in:
ProgramSnail 2024-11-22 17:10:40 +03:00
parent b52a7fcb29
commit 2cd7afe0c5

View file

@ -302,6 +302,9 @@ void run(bytefile *bf, int argc, char **argv) {
var_by_category(to_var_category(l), ip_read_int(&s.ip));
s_push(*var_ptr);
}
if (call_offset >= bf->code_size) {
s_failure(&s, "jump out of file");
}
s_push(bf->code_ptr + call_offset);
void *closure = Bclosure((aint *)__gc_stack_top, args_count);