llvm-project/clang/unittests
Tom Eccles 225b91e6cb Fix crash getting name of a template decl
NamedDecl::getIdentifier can return a nullptr when
DeclarationName::isIdentifier is false, which leads to a null pointer
dereference when TypePrinter::printTemplateId calls ->getName().

NamedDecl::getName does the same thing in the successful case and
returns an empty string in the failure case.

This crash affects the llvm 14 packages on llvm.org.
2022-04-22 13:03:28 -04:00
..
AST Fix crash getting name of a template decl 2022-04-22 13:03:28 -04:00
ASTMatchers [Testing] Drop clangTesting from clang's public library interface 2022-04-20 13:28:44 +02:00
Analysis Treat `std::move`, `forward`, etc. as builtins. 2022-04-20 17:58:31 -07:00
Basic [clang] NFCI: Use FileEntryRef in FileManagerTest 2022-04-15 15:16:17 +02:00
CodeGen [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00
CrossTU [analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file 2022-03-22 10:28:42 +08:00
DirectoryWatcher Revert "Re-Revert "DirectoryWatcher: add an implementation for Windows"" 2021-06-19 09:19:52 -07:00
Driver Blind stab in the dark to fix a bot failure 2022-04-15 20:12:59 -05:00
Format [clang-format] Fix a crash on AllowShortFunctionsOnASingleLine 2022-04-21 14:56:30 -07:00
Frontend [test][clang] Use -clear-ast-before-backend instead of -flegacy-pass-manager in CommandLineTest 2022-04-11 14:06:40 -07:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
Interpreter [clang-repl][NFC] Fix calling convention mismatch in test 2021-11-30 13:26:10 -08:00
Introspection [IntrospectionTest] Replace "return" with "GTEST_SKIP" 2022-02-04 12:35:44 -08:00
Lex [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
Rename Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Rewrite
Sema [Testing] Drop clangTesting from clang's public library interface 2022-04-20 13:28:44 +02:00
Serialization [Frontend] Only compile modules if not already finalized 2021-07-15 18:27:08 -07:00
StaticAnalyzer [Testing] Drop clangTesting from clang's public library interface 2022-04-20 13:28:44 +02:00
Tooling [Testing] TestAST, a helper for writing straight-line AST tests 2022-04-21 21:46:45 +02:00
libclang
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00