hanchenye-llvm-project/llvm/lib/Demangle
Nico Weber 64041d7b90 llvm-undname: Fix nullptr deref on invalid conversion operator names in template args
A ConversionOperatorIdentifierNode has a TargetType which is read when
printing it, but if the ConversionOperatorIdentifierNode appears in a
template argument there's nothing that can provide the TargetType.
Normally the COIN is a symbol (leaf) name and takes its TargetType from the
symbol's type, but in a template argument context the COIN can only be
either a non-leaf name piece or a type, and must hence be invalid.

Similar to the COIN check in demangleDeclarator().

Found by oss-fuzz.

llvm-svn: 358421
2019-04-15 16:42:44 +00:00
..
CMakeLists.txt Move demangling function from llvm-objdump to Demangle library 2019-01-17 15:18:44 +00:00
Demangle.cpp Add missing include (cstdlib) to Demangle.h 2019-01-22 19:18:18 +00:00
ItaniumDemangle.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MicrosoftDemangle.cpp llvm-undname: Fix nullptr deref on invalid conversion operator names in template args 2019-04-15 16:42:44 +00:00
MicrosoftDemangleNodes.cpp Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00