OSDN Git Service

llvm-undname: Fix an assert-on-invalid, found by oss-fuzz
authorNico Weber <nicolasweber@gmx.de>
Wed, 22 May 2019 15:53:23 +0000 (15:53 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 22 May 2019 15:53:23 +0000 (15:53 +0000)
commitc53aaaaaacc3cb4902cb86e9c03b22d76b268d57
tree0cc43309a25841ce764f745460e4e15a57c30671
parentae08dcb6ee2340f75dad19b0da31a0ad5b48c121
llvm-undname: Fix an assert-on-invalid, found by oss-fuzz

If a template parameter refers to a pointer to member, but the mangling
of that was a string literal instead of a real symbol, llvm-undname used
to crash instead of rejecting the input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361402 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Demangle/MicrosoftDemangle.cpp
test/Demangle/invalid-manglings.test