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

Fix undefined behavior reported by miri when reading or writing slices #351

Merged

Commits on Jul 10, 2023

  1. Fix undefined behavior reported by miri when reading or writing slices

    Many methods in the slice or array api take a pointer to the first
    element and then use that pointer to read or write multiple lanes.
    
    This is undefined behavior according to miri since pointer is only valid
    for a single element. The fix is to use the `as_ptr`/`as_mut_ptr`
    methods of the slice, which gives a pointer to the whole slice and also
    leads to nicer code.
    jhorstmann committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    515cc5d View commit details
    Browse the repository at this point in the history