Skip to content

Commit

Permalink
Update src/module.c
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
gbaraldi and vtjnash authored Jun 4, 2024
1 parent 7e7bb5e commit 776ff41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ static uint_t bindingkey_hash(size_t idx, jl_value_t *data)

static int bindingkey_eq(size_t idx, const void *var, jl_value_t *data, uint_t hv)
{
if ((idx >= ((jl_svec_t*)data)->length || idx < 0))
if (idx >= jl_svec_len(data))
return 0; // We got a OOB access, probably due to a data race
jl_binding_t *b = (jl_binding_t*)jl_svecref(data, idx);
jl_sym_t *name = b->globalref->name;
Expand Down

0 comments on commit 776ff41

Please sign in to comment.