diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-11-10 14:09:57 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-11-10 14:09:57 -0600 |
commit | a6c81a4e66a28eeeeb1848b36924f1ae3ea79159 (patch) | |
tree | 184fa7d10c3566249fb6f5465d5a157f3c9f9242 /numpy/core | |
parent | 17cd07f11fdbc6826c2ac5ae566012473ae94278 (diff) | |
download | numpy-a6c81a4e66a28eeeeb1848b36924f1ae3ea79159.tar.gz |
BUG: Fix segfault due to out of bound pointer in floatstatus check
Diffstat (limited to 'numpy/core')
-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 40bb76914..014b41a2e 100644 --- a/numpy/core/src/umath/simd.inc.src +++ b/numpy/core/src/umath/simd.inc.src @@ -3583,7 +3583,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*)(op - @num_lanes@)); } #endif |