[all-commits] [llvm/llvm-project] 414df7: [-Wunsafe-buffer-usage] Fix the crash introduced b...
Malavika Samak via All-commits
all-commits at lists.llvm.org
Mon Jan 22 10:47:11 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 414df7051ac90f186fac9d3d8968aa827eceb697
https://github.com/llvm/llvm-project/commit/414df7051ac90f186fac9d3d8968aa827eceb697
Author: Malavika Samak <malavika.samak at gmail.com>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/lib/Sema/AnalysisBasedWarnings.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Fix the crash introduced by the unsafe invocation of span::data warning (#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 <malavika2 at apple.com>
More information about the All-commits
mailing list