llvm-project/llvm
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
..
benchmarks
bindings [LLVM-C] Correct The Current Debug Location Accessors (Again) 2019-04-10 14:19:05 +00:00
cmake [cmake] Fix dependency issue in TableGen 2019-04-11 21:05:15 +00:00
docs Revert r358337: "[CommandLineParser] Add DefaultOption flag" 2019-04-15 14:43:50 +00:00
examples
include Revert r358337: "[CommandLineParser] Add DefaultOption flag" 2019-04-15 14:43:50 +00:00
lib llvm-undname: Fix nullptr deref on invalid conversion operator names in template args 2019-04-15 16:42:44 +00:00
projects
resources
runtimes
test llvm-undname: Fix nullptr deref on invalid conversion operator names in template args 2019-04-15 16:42:44 +00:00
tools [llvm-objdump] Simplify PrintHelpMessage() logic 2019-04-15 15:52:32 +00:00
unittests Revert r358337: "[CommandLineParser] Add DefaultOption flag" 2019-04-15 14:43:50 +00:00
utils gn build: Merge r358390 2019-04-15 11:25:23 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [CMake] Move configuration of LLVM_CXX_STD to HandleLLVMOptions.cmake 2019-04-09 08:14:32 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.