Skip to content

[-Wunsafe-buffer-usage] Suppress warning for multi-dimensional constant arrays (#118249) #9738

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
Dec 13, 2024

Conversation

malavikasamak
Copy link

Do not warn about unsafe buffer access, when multi-dimensional constant arrays are accessed and their indices are within the bounds of the buffer. Warning in such cases would be a false positive. Such a suppression already exists for 1-d
arrays and it is now extended to multi-dimensional arrays.

(rdar://137926311)
(rdar://140320139)

Co-authored-by: MalavikaSamak [email protected]
(cherry picked from commit 9c50182)

…nt arrays (llvm#118249)

Do not warn about unsafe buffer access, when multi-dimensional constant
arrays are accessed and their indices are within the bounds of the
buffer. Warning in such cases would be a false positive. Such a
suppression already exists for 1-d
arrays and it is now extended to multi-dimensional arrays.

(rdar://137926311)
(rdar://140320139)

Co-authored-by: MalavikaSamak <[email protected]>
(cherry picked from commit 9c50182)
@malavikasamak malavikasamak requested a review from a team as a code owner December 13, 2024 10:06
@malavikasamak
Copy link
Author

@swift-ci test

@malavikasamak malavikasamak merged commit 2db41f9 into stable/20240723 Dec 13, 2024
3 checks passed
@malavikasamak malavikasamak deleted the msamak-cherry-pick-fp-mulitd-array branch December 13, 2024 21:25
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.

1 participant