mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
+1 byterun check
This commit is contained in:
parent
b52a7fcb29
commit
2cd7afe0c5
1 changed files with 3 additions and 0 deletions
|
|
@ -302,6 +302,9 @@ void run(bytefile *bf, int argc, char **argv) {
|
||||||
var_by_category(to_var_category(l), ip_read_int(&s.ip));
|
var_by_category(to_var_category(l), ip_read_int(&s.ip));
|
||||||
s_push(*var_ptr);
|
s_push(*var_ptr);
|
||||||
}
|
}
|
||||||
|
if (call_offset >= bf->code_size) {
|
||||||
|
s_failure(&s, "jump out of file");
|
||||||
|
}
|
||||||
s_push(bf->code_ptr + call_offset);
|
s_push(bf->code_ptr + call_offset);
|
||||||
|
|
||||||
void *closure = Bclosure((aint *)__gc_stack_top, args_count);
|
void *closure = Bclosure((aint *)__gc_stack_top, args_count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue