It seems like protobuf crashed the std::string checker.
Somehow it acquired UnknownVal as the sole std::string constructor parameter, causing a crash in the castAs<Loc>().
This patch addresses this.
Paths
| Differential D112551
[analyzer] Fix StringChecker for Unknown params ClosedPublic Authored by steakhal on Oct 26 2021, 8:34 AM.
Details Summary It seems like protobuf crashed the std::string checker. This patch addresses this.
Diff Detail Event TimelineHerald added subscribers: manas, dkrupp, donat.nagy and 7 others. · View Herald TranscriptOct 26 2021, 8:34 AM This revision is now accepted and ready to land.Oct 26 2021, 8:59 AM This revision was landed with ongoing or failed builds.Oct 26 2021, 9:15 AM Closed by commit rGc18407217e91: [analyzer] Fix StringChecker for Unknown params (authored by steakhal). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 382343 clang/lib/StaticAnalyzer/Checkers/StringChecker.cpp
clang/test/Analysis/std-string.cpp
|