Only suppress those cases where the null which came from the macro is relevant to the bug,
and was not overwritten in between.
rdar://41497323
Paths
| Differential D48856
[analyzer] Fix overly eager suppression of NPE when the value used is returned from a macro ClosedPublic Authored by george.karpenkov on Jul 2 2018, 3:36 PM.
Details
Summary Only suppress those cases where the null which came from the macro is relevant to the bug, rdar://41497323
Diff Detail
Event TimelineHerald added subscribers: mikhail.ramalho, a.sidorin, szepet and 3 others. · View Herald TranscriptJul 2 2018, 3:36 PM This revision is now accepted and ready to land.Jul 12 2018, 11:49 AM Closed by commit rC337213: [analyzer] Bugfix for an overly eager suppression for null pointer return from… (authored by george.karpenkov). · Explain WhyJul 16 2018, 1:38 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 155752 lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/diagnostics/macro-null-return-suppression.cpp
|