Skip to content

Commit

Permalink
Merge pull request #17756 from charris/backport-17751
Browse files Browse the repository at this point in the history
BUG: Fix segfault due to out of bound pointer in floatstatus check
  • Loading branch information
charris committed Nov 11, 2020
2 parents 9ced08e + 3fe941e commit 85c7f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/umath/simd.inc.src
Expand Up @@ -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
Expand Down

0 comments on commit 85c7f3e

Please sign in to comment.