-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects #152751
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
Changes from 11 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7d1c700
[clang-analyzer] Add regression test for PR60896
ivanmurashko f6d1a05
[clang-analizer] MallocChecker: fix false positive leak for unique_pt…
ivanmurashko 650b0f7
[clang-analyzer] MallocChecker: extend false positive leak fix to sup…
ivanmurashko 0cc838f
[clang-analyzer] Apply clang-format
ivanmurashko 333e5ba
[analyzer][test] Refactor smart pointer leak suppression and combine …
ivanmurashko 07cfed9
[analyzer] MallocChecker: Address minor style and review comments
ivanmurashko 66bf4e6
[analyzer] MallocChecker: Factor out smart pointer name check
ivanmurashko 2dc6776
[clang-analyzer] Fix addTransition misuse - consolidate state updates
ivanmurashko 83173d0
[analyzer][test] Add multiple owning arguments test case
ivanmurashko fddc1b4
[analyzer] Simplify MallocChecker::checkPostCall
ivanmurashko 617a02a
[analyzer] scanReachableSymbols is expensive, so we use a single visi…
ivanmurashko c007afd
[analyzer] Fix overly broad escape logic in MallocChecker for mixed o…
ivanmurashko bb5eacc
[analyzer] Refactor MallocChecker::checkPostCall to improve readability
ivanmurashko db60663
[analyzer][test] Reorganize NewDeleteLeaks-PR60896 test into unified …
ivanmurashko 7df1f75
[analyzer] Extract isSmartPtrName helper, add comments, and improve r…
ivanmurashko bb0d4f1
[analyzer] Fix addTransition API misuse in MallocChecker::checkPostCall
ivanmurashko a166bb3
[analyzer] Rename function and use set semantics in MallocChecker
ivanmurashko b4b9062
[analyzer] Fix out-of-bounds access in handleSmartPointerConstructorA…
ivanmurashko b8f4620
Update clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
ivanmurashko 08a24ef
[analyzer] Refactor smart pointer detection and fix naming consistency
ivanmurashko f35ac73
Update clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
ivanmurashko d01533e
Update clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
ivanmurashko 10569b6
Update clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
ivanmurashko f41c0bc
Update clang/test/Analysis/NewDeleteLeaks-PR60896.cpp
ivanmurashko c955216
Update clang/test/Analysis/NewDeleteLeaks-PR60896.cpp
ivanmurashko 7c6ffa8
[analyzer] Eliminate duplicate traversal logic in MallocChecker smart…
ivanmurashko 64d3aef
[analyzer] Make EscapeTrackedCallback::VisitSymbol public
ivanmurashko ee1c3ab
LIT tests updates to reflect the heuristic behaviour in the tests (sh…
ivanmurashko 692db9e
[analyzer] Refactoring (name change): SmartOwningPtr -> SmartPtr
ivanmurashko 49b7d31
[analyzer] Rename Base variables in MallocChecker to avoid confusion …
ivanmurashko d472fc4
[analyzer] Move variadic constructor test to separate namespace and u…
ivanmurashko 6dd7671
Update clang/test/Analysis/NewDeleteLeaks-PR60896.cpp
ivanmurashko 196abdb
[analyzer] Document dual behavior of hasSmartPtrField function
ivanmurashko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.