Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory access out of bounds in numpy + chrome 89 #1474

Merged
merged 23 commits into from
Apr 17, 2021
Merged
Prev Previous commit
Fix ReferenceError
  • Loading branch information
Hood committed Apr 16, 2021
commit c26d66fdffe5a8773ce67d2878744387c707010e
2 changes: 1 addition & 1 deletion src/core/numpy_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ EM_JS_NUM(int, PyArray_Broadcast_part1, (void* mit), {
let mit_dim_i = MultiIter_dimension(mit, i);
if (mit_dim_i == 1) {
MultiIter_dimension(mit, i) = tmp;
} else if (mit_dim_i != it_dims_k) {
} else if (mit_dim_i != tmp) {
_set_shape_mismatch_err();
return -1;
}
Expand Down