Skip to content

Fix UB in MallocBench/gs/interp.c #234

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

Merged
merged 1 commit into from
Apr 18, 2025
Merged

Fix UB in MallocBench/gs/interp.c #234

merged 1 commit into from
Apr 18, 2025

Conversation

vonosmas
Copy link
Contributor

It is undefined behaviour to construct a pointer that is out-of-bounds, not just to use it.

This is a follow-up to commit 9391cd9 which fixed the same problem (detected by -fsanitize=array-bounds) in MallocBench/cfrac.

It is undefined behaviour to construct a pointer that is out-of-bounds,
not just to use it.

This is a follow-up to commit 9391cd9
which fixed the same problem (detected by -fsanitize=array-bounds)
in MallocBench/cfrac.
@vonosmas vonosmas requested review from fmayer and vitalybuka April 17, 2025 23:58
@vonosmas vonosmas merged commit 0bda000 into llvm:main Apr 18, 2025
1 check passed
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.

2 participants