Skip to content

[-Wunsafe-buffer-usage]Fix for crash introduced by the DataInvocation Gadget #8018

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

Conversation

malavikasamak
Copy link

Radar: 121223051

malavikasamak and others added 2 commits January 22, 2024 14:12
…tion of span::data warning (llvm#78815)

The patch fixes the crash introduced by the DataInvocation warning
gadget designed to warn against unsafe invocations of span::data method.

It also now considers the invocation of span::data method inside
parenthesis.

Radar: 121223051

---------

Co-authored-by: MalavikaSamak <[email protected]>
(cherry picked from commit 414df70)
This patch fixes:

  clang/lib/Sema/AnalysisBasedWarnings.cpp:2269:21: error: unused
  variable 'subExpr' [-Werror,-Wunused-variable]

(cherry picked from commit 73ff017)
@malavikasamak
Copy link
Author

@swift-ci test

@malavikasamak malavikasamak merged commit 543497c into swiftlang:stable/20230725 Jan 23, 2024
@malavikasamak malavikasamak deleted the unsafe-buffer-usage-data-inv-crash-fix-cherrypick branch July 22, 2024 20:19
@malavikasamak malavikasamak restored the unsafe-buffer-usage-data-inv-crash-fix-cherrypick branch July 22, 2024 20:19
@malavikasamak malavikasamak deleted the unsafe-buffer-usage-data-inv-crash-fix-cherrypick branch July 22, 2024 20:46
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