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
Next Next commit
Add missing semicolon
  • Loading branch information
Hood committed Apr 15, 2021
commit 2426e959cdc87256052f7b849c191a2e1fbcc2e1
6 changes: 3 additions & 3 deletions packages/numpy/patches/0001-temp.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From b7b632d279e1d75d22f00031891449e035dd4d6a Mon Sep 17 00:00:00 2001
From 3f777056afeac1802badb1ed475e6e898b331327 Mon Sep 17 00:00:00 2001
From: Hood <hood@mit.edu>
Date: Fri, 2 Apr 2021 14:24:24 -0700
Subject: [PATCH] temp
Expand Down Expand Up @@ -33,7 +33,7 @@ index 52cb58726..5467f4d78 100644
}
return nd;
diff --git a/numpy/core/src/multiarray/iterators.c b/numpy/core/src/multiarray/iterators.c
index 9da811f69..ee9aa4b1c 100644
index 9da811f69..3e81aee91 100644
--- a/numpy/core/src/multiarray/iterators.c
+++ b/numpy/core/src/multiarray/iterators.c
@@ -1153,6 +1153,17 @@ NPY_NO_EXPORT PyTypeObject PyArrayIter_Type = {
Expand All @@ -48,7 +48,7 @@ index 9da811f69..ee9aa4b1c 100644
+ for (i = 0, nd = 0; i < mit->numiter; i++) {
+ nd = PyArray_MAX(nd, PyArray_NDIM(mit->iters[i]->ao));
+ }
+ return nd
+ return nd;
+}
+
/* Adjust dimensionality and strides for index object iterators
Expand Down