-fsanitize=local-bounds is very similar to `object-size` and
should also ignore volatile pointers.
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#volatile
Details
Details
- Reviewers
chandlerc rsmith - Commits
- rG04bd2c37caf4: [local-bounds] Ignore volatile operations
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Code change looks fine, and it makes sense to me to apply the same rules to both the local-bounds and the object-size sanitizer, since they're checking the same thing. Please also update the documentation you linked to, to indicate that the local-bounds sanitizer also ignores volatile accesses.
clang/docs/UndefinedBehaviorSanitizer.rst | ||
---|---|---|
176–179 | While we're here we should mention that local-bounds isn't part of undefined. |
While we're here we should mention that local-bounds isn't part of undefined.