diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-11-11 15:54:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 15:54:53 -0700 |
commit | 85c7f3e81f9a432f589043d4be2f3368ec71f1bd (patch) | |
tree | da938398ab1ff0169c715c052a927e85b6a70da6 | |
parent | 9ced08e8c1378f8af2664ef6147408ef0a2be09f (diff) | |
parent | 3fe941ef3a2203316c39a1d7e8c8d11a5f08f6e1 (diff) | |
download | numpy-85c7f3e81f9a432f589043d4be2f3368ec71f1bd.tar.gz |
Merge pull request #17756 from charris/backport-17751
BUG: Fix segfault due to out of bound pointer in floatstatus check
-rw-r--r-- | numpy/core/src/umath/simd.inc.src | 2 |
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 b28c63930..548344bb5 100644 --- a/numpy/core/src/umath/simd.inc.src +++ b/numpy/core/src/umath/simd.inc.src @@ -3009,7 +3009,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 |