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 out of bounds access in anderson2021_test_apps_autoscheduler #7771

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

aekul
Copy link
Contributor

@aekul aekul commented Aug 17, 2023

This fixes #7606. If an update stage has fewer pure vars than the pure definition, it can end up reading out of bounds. When reading the size of the update stage's loop, instead of using the corresponding pure dimension, it should just use its index within the update stage's loops.

@steven-johnson steven-johnson merged commit f11e80d into halide:main Aug 21, 2023
18 of 19 checks passed
@steven-johnson
Copy link
Contributor

Thanks for the fix!

ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
…ide#7771)

* Fix out of bounds access in anderson2021_test_apps_autoscheduler

* clang-format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASAN reports out-of-bounds read error in anderson2021_test_apps_autoscheduler
2 participants