-
Notifications
You must be signed in to change notification settings - Fork 330
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
[🍒][-Wunsafe-buffer-usage] Warning unsafe libc calls #9287
base: stable/20240723
Are you sure you want to change the base?
[🍒][-Wunsafe-buffer-usage] Warning unsafe libc calls #9287
Conversation
@swift-ci test |
I somehow can't find @jkorous-apple in the reviewer list. |
Doesn't work for me either hmm. |
Weird, I am here 🤷 |
yeah, that works the best. |
[-Wunsafe-buffer-usage] Add warn on unsafe calls to libc functions Warning about calls to libc functions involving buffer access. Warned functions are hardcoded by names. (rdar://117182250) (cherry picked from commit 0fffdeb)
…n libc warnings (llvm#108308) For `snprintf(a, sizeof a, ...)`, the first two arguments form a safe pattern if `a` is a constant array. In such a case, this commit will suppress the warning. (rdar://117182250) (cherry picked from commit ebf25d9)
… Warning Libc functions (llvm#101583)" StringLiteral::getString() is not applicable to strings of wide characters. Added handling for that. (rdar://117182250) (cherry picked from commit 48498ec)
12700fe
to
9ddbe6a
Compare
Rebased, and @swift-ci test |
cherry-picked from
swiftlang/llvm-project/next