llvm-project/clang/lib
Kostya Serebryany 6c2479bee4 Fix buffer overflow in Lexer
Summary:
Fix PR22407, where the Lexer overflows the buffer when parsing
 #include<\
(end of file after slash)

Test Plan:
Added a test that will trigger in asan build.
This case is also covered by the clang-fuzzer bot.

Reviewers: rnk

Reviewed By: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D9489

llvm-svn: 236466
2015-05-04 22:30:29 +00:00
..
ARCMigrate Switch PPCallbacks to take the new MacroDefinition instead of MacroDirective*, in order to preserve full information on module macro expansion. 2015-05-04 03:15:40 +00:00
AST [MS ABI] Fix a crash in vptr path calculation 2015-05-04 18:47:54 +00:00
ASTMatchers Add conversionDecl matcher for node CXXConversionDecl. 2015-04-20 20:58:50 +00:00
Analysis PR23334: Perform semantic checking of lambda capture initialization in the right context. 2015-04-27 21:27:54 +00:00
Basic R600: Add fma and ldexp asic specific feature macros 2015-05-04 19:53:36 +00:00
CodeGen InstrProf: Cede ownership of createProfileWeights to CGF 2015-05-02 05:00:55 +00:00
Driver InstrProf: Support for setting profile output from command line 2015-04-30 23:49:42 +00:00
Edit [edit] Don't hit an assert when trying to delete a trailing space at EOF 2015-03-29 18:07:29 +00:00
Format clang-format: NFC: Delete FormatToken::IsForEachMacro. Use a TokenType instead. 2015-05-04 09:22:29 +00:00
Frontend Reapply "Frontend: Stop leaking when not -disable-free" 2015-05-04 14:59:20 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers AVX-512: Added AVX-512 intrinsics and tests 2015-04-30 09:24:29 +00:00
Index Rename MacroDefinition -> MacroDefinitionRecord, Preprocessor::MacroDefinition -> MacroDefinition. 2015-05-04 02:25:31 +00:00
Lex Fix buffer overflow in Lexer 2015-05-04 22:30:29 +00:00
Parse Diagnose delayed typos when parsing a postfix expression with an 2015-05-02 00:49:18 +00:00
Rewrite Remove empty non-virtual destructors or mark them =default when non-public 2015-04-11 15:58:30 +00:00
Sema Get rid of compiler warning. 2015-05-04 17:39:55 +00:00
Serialization [modules] Don't bother registering loaded macros if there are none. 2015-05-04 19:58:00 +00:00
StaticAnalyzer Add a missing forward def of CheckerManager. NFC. 2015-04-17 17:00:16 +00:00
Tooling Fix bug in Replacement's toString on Windows (missing flush). 2015-04-20 06:58:56 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00