This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Fix uninitialized scalar variable found by Coverity static analyzer tool
AbandonedPublic

Authored by Manna on May 19 2023, 4:26 AM.

Details

Summary

Reported by Coverity Static Analyzer Tool:

Inside "MicrosoftDemangle.cpp" file, in llvm::​ms_demangle::​Demangler::​demangleTemplateInstantiationName(std::​basic_string_view<char, std::​char_traits<char>> &, llvm::​ms_demangle::​NameBackrefBehavior): Use of an uninitialized value OuterContext. Field OuterContext.FunctionParams is uninitialized when calling swap in the function.

Diff Detail

Event Timeline

Manna created this revision.May 19 2023, 4:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2023, 4:26 AM
Manna requested review of this revision.May 19 2023, 4:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2023, 4:26 AM
Manna added a comment.EditedMay 19 2023, 4:36 AM

I am looking into more details. Closing the PR

Manna abandoned this revision.May 19 2023, 4:36 AM
Manna updated this revision to Diff 523735.May 19 2023, 5:04 AM
Manna abandoned this revision.May 19 2023, 5:06 AM