summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorPeter Hawkins <phawkins@google.com>2022-12-13 20:23:57 +0000
committerPeter Hawkins <phawkins@google.com>2022-12-13 20:25:26 +0000
commit5940b4277a8212da9d802860430bdbf35855dddf (patch)
tree91c69a0b5aea71de707c47e7eff9f76e24e24a07 /numpy/array_api/_manipulation_functions.py
parent3139a881346ff7ad4326ecd296e6eeddf6c268a0 (diff)
downloadnumpy-5940b4277a8212da9d802860430bdbf35855dddf.tar.gz
Change argument to npy_floatstatus_..._barrier() functions to ensure it
is in bounds. The argument is dereferenced, even if the value is thrown away. AddressSanitizer reports an error on the dereference for these functions when running the NumPy test suite. It's unclear to me whether this is a legal fix or not, or whether we need to work harder to find a valid pointer that points within one of the arrays. This depends deeply on the semantics of `volatile` in C and I'm not 100% sure.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions