llvm-project/clang/lib/Frontend
Ilya Biryukov 2917526f29 [Frontend] Return an error on bad inputs to PrecompiledPreabmle
Summary:
Instead of failing with assertions. Fixes a crash found by oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12865

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62137

llvm-svn: 361376
2019-05-22 12:50:01 +00:00
..
Rewrite Modules: Rename MemoryBufferCache to InMemoryModuleCache 2019-03-09 17:33:56 +00:00
ASTConsumers.cpp Introduce the ability to dump the AST to JSON. 2019-05-13 21:39:55 +00:00
ASTMerge.cpp [ASTImporter] Use llvm::Expected and Error in the importer API 2019-05-15 10:29:48 +00:00
ASTUnit.cpp [Frontend] Return an error on bad inputs to PrecompiledPreabmle 2019-05-22 12:50:01 +00:00
CMakeLists.txt Move PCHContainerOperations from Frontend to Serialization 2018-12-12 02:53:59 +00:00
ChainedDiagnosticConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ChainedIncludesSource.cpp Modules: Rename MemoryBufferCache to InMemoryModuleCache 2019-03-09 17:33:56 +00:00
CompilerInstance.cpp [CodeComplete] Remove obsolete isOutputBinary(). 2019-04-18 17:35:55 +00:00
CompilerInvocation.cpp [ARM][CMSE] Add commandline option and feature macro 2019-05-21 14:21:26 +00:00
CreateInvocationFromCommandLine.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DependencyFile.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DependencyGraph.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DiagnosticRenderer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FrontendAction.cpp Basic: Return a reference from FileManager::getVirtualFileSystem, NFC 2019-03-26 22:32:06 +00:00
FrontendActions.cpp Introduce the ability to dump the AST to JSON. 2019-05-13 21:39:55 +00:00
FrontendOptions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FrontendTiming.cpp Fix file headers. NFC 2019-03-01 06:49:51 +00:00
HeaderIncludeGen.cpp Fix file headers. NFC 2019-03-01 06:49:51 +00:00
InitHeaderSearch.cpp [clang][Darwin] Refactor header search path logic into the driver 2019-05-21 17:48:04 +00:00
InitPreprocessor.cpp [SPIR] Simplified target checking. 2019-05-09 10:25:45 +00:00
LangStandards.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LayoutOverrideSource.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LogDiagnosticPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ModuleDependencyCollector.cpp [ModuleDependencyCollector] Use llvm::sys::fs::real_path (NFC) 2019-01-30 06:26:26 +00:00
MultiplexConsumer.cpp [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
PrecompiledPreamble.cpp [Frontend] Return an error on bad inputs to PrecompiledPreabmle 2019-05-22 12:50:01 +00:00
PrintPreprocessedOutput.cpp [PragmaHandler] Expose `#pragma` location 2019-05-21 23:51:38 +00:00
SerializedDiagnosticPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SerializedDiagnosticReader.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TestModuleFileExtension.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TestModuleFileExtension.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TextDiagnostic.cpp Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
TextDiagnosticBuffer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TextDiagnosticPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VerifyDiagnosticConsumer.cpp [verify] Add support for location markers in directives. 2019-04-13 04:33:39 +00:00