Skip to content

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.

@aekul aekul requested a review from steven-johnson August 17, 2023 05:24
@steven-johnson steven-johnson merged commit f11e80d into halide:main Aug 21, 2023
@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