Skip to content

[-Wunsafe-buffer-usage] Allow passing anything to void *__single #11167

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

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

patrykstefanski
Copy link

BoundsSafety assumes that void *__single cannot be dereferenced and allows assigning anything to void *__single. This commit ports this behavior to C++ interop.

rdar://156007256

@patrykstefanski patrykstefanski self-assigned this Aug 13, 2025
@patrykstefanski patrykstefanski added the clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang label Aug 13, 2025
BoundsSafety assumes that `void *__single` cannot be dereferenced and
allows assigning anything to `void *__single`. This commit ports this
behavior to C++ interop.

rdar://156007256
@patrykstefanski patrykstefanski force-pushed the eng/pstefanski/PR-156007256 branch from 52102bf to 1974862 Compare August 15, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant