Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Ensure arguments to npy_floatstatus_..._barrier() can be dereferenced #22795

Merged
merged 1 commit into from Dec 14, 2022

Commits on Dec 13, 2022

  1. 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.
    hawkinsp authored and charris committed Dec 13, 2022
    Copy the full SHA
    0904c01 View commit details
    Browse the repository at this point in the history