diff options
author | Peter Hawkins <phawkins@google.com> | 2022-12-13 20:23:57 +0000 |
---|---|---|
committer | Peter Hawkins <phawkins@google.com> | 2022-12-13 20:25:26 +0000 |
commit | 5940b4277a8212da9d802860430bdbf35855dddf (patch) | |
tree | 91c69a0b5aea71de707c47e7eff9f76e24e24a07 /numpy/array_api/_statistical_functions.py | |
parent | 3139a881346ff7ad4326ecd296e6eeddf6c268a0 (diff) | |
download | numpy-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/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions