This is an archive of the discontinued LLVM Phabricator instance.

[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.
Somehow it acquired UnknownVal as the sole std::string constructor parameter, causing a crash in the castAs<Loc>().

This patch addresses this.

Diff Detail

Event Timeline

steakhal created this revision.Oct 26 2021, 8:34 AM
steakhal requested review of this revision.Oct 26 2021, 8:34 AM
martong accepted this revision.Oct 26 2021, 8:59 AM

Thanks! Looks good!

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
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 9:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript