Skip to content

Commit

Permalink
Fix possible out-of-bounds access
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder authored May 11, 2024
1 parent 90e638f commit 30729e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ static jl_value_t *do_invoke(jl_value_t **args, size_t nargs, interpreter_state
jl_method_instance_t *meth = (jl_method_instance_t*)args[0];
assert(jl_is_method_instance(meth));
jl_value_t *result = jl_invoke(argv[0], &argv[1], nargs - 2, meth);
jl_value_t *result = jl_invoke(argv[0], nargs == 2 ? NULL : &argv[1], nargs - 2, meth);
JL_GC_POP();
return result;
}
Expand Down

0 comments on commit 30729e9

Please sign in to comment.