From db46267ecb10530054009e6db25d2d39fb1cc2ab Mon Sep 17 00:00:00 2001 From: Erik Pilkington Date: Sun, 28 May 2017 23:15:50 +0000 Subject: [demangler] Fix a exponential string copying bug The problem was that if base_name() was called from a context without an actual base name, it could gulp up the entire string, which can result in recursive duplications. The fix is to be more strict as to what qualifies as a base name. Differential revision: https://reviews.llvm.org/D33637 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@304113 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/test_demangle.pass.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/test_demangle.pass.cpp b/test/test_demangle.pass.cpp index 9e4a008..451f5f9 100644 --- a/test/test_demangle.pass.cpp +++ b/test/test_demangle.pass.cpp @@ -29668,6 +29668,7 @@ const char* invalid_cases[] = "\x46\x44\x74\x70\x74\x71\x75\x32\x43\x41\x72\x4D\x6E\x65\x34\x9F\xC1\x43\x41\x72\x4D\x6E\x77\x38\x9A\x8E\x44\x6F\x64\x6C\x53\xF9\x5F\x70\x74\x70\x69\x45\x34\xD3\x73\x9E\x2A\x37\x72\x33\x8E\x3A\x29\x8E\x44\x35", "_ZcvCiIJEEDvT__FFFFT_vT_v", "Z1JIJ1_T_EE3o00EUlT_E0", + "___Z2i_D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D1D", }; const unsigned NI = sizeof(invalid_cases) / sizeof(invalid_cases[0]); -- cgit v1.2.3