diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2020-11-10 16:41:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 16:41:26 -0700 |
| commit | d6ecc97f55fd7ce3a5f3d4709938e7cc066900b8 (patch) | |
| tree | 14ad3c018ac2f8e65e132dd955888061b2651549 | |
| parent | 36181419fd32becd79819e132f04342c0d6a31e6 (diff) | |
| parent | 6defecc1f5b0ea4cb7621d42055d6b0145e6eb38 (diff) | |
| download | numpy-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.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 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 |
