summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-11-10 16:41:26 -0700
committerGitHub <noreply@github.com>2020-11-10 16:41:26 -0700
commitd6ecc97f55fd7ce3a5f3d4709938e7cc066900b8 (patch)
tree14ad3c018ac2f8e65e132dd955888061b2651549
parent36181419fd32becd79819e132f04342c0d6a31e6 (diff)
parent6defecc1f5b0ea4cb7621d42055d6b0145e6eb38 (diff)
downloadnumpy-d6ecc97f55fd7ce3a5f3d4709938e7cc066900b8.tar.gz
Merge pull request #17751 from seberg/fix-ci-segfaults
BUG: Fix segfault due to out of bound pointer in floatstatus check
-rw-r--r--numpy/core/src/umath/simd.inc.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/simd.inc.src b/numpy/core/src/umath/simd.inc.src
index fb4c84c9e..012f7c076 100644
--- a/numpy/core/src/umath/simd.inc.src
+++ b/numpy/core/src/umath/simd.inc.src
@@ -3497,7 +3497,7 @@ AVX512F_absolute_@TYPE@(@type@ * op,
ip += 2*@num_lanes@*stride_ip1;
num_remaining_elements -= 2*@num_lanes@;
}
- npy_clear_floatstatus_barrier((char*)op);
+ npy_clear_floatstatus_barrier((char*)&num_remaining_elements);
}
#endif