diff options
author | Hans Wennborg <hans@hanshq.net> | 2018-01-17 13:24:15 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2018-01-17 13:24:15 +0000 |
commit | 27eb4d05f0800ec42f9723604969c27ef4296f41 (patch) | |
tree | 3bae986a9627f12b36a44eb9a8cfe51bb6290dda /test | |
parent | acedccff1d6958d55a34a1d09b10f94177572723 (diff) |
Merging r322390:
------------------------------------------------------------------------
r322390 | vsapsai | 2018-01-12 10:54:35 -0800 (Fri, 12 Jan 2018) | 20 lines
[Lex] Avoid out-of-bounds dereference in LexAngledStringLiteral.
Fix makes the loop in LexAngledStringLiteral more like the loops in
LexStringLiteral, LexCharConstant. When we skip a character after
backslash, we need to check if we reached the end of the file instead of
reading the next character unconditionally.
Discovered by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3832
rdar://problem/35572754
Reviewers: arphaman, kcc, rsmith, dexonsmith
Reviewed By: rsmith, dexonsmith
Subscribers: cfe-commits, rsmith, dexonsmith
Differential Revision: https://reviews.llvm.org/D41423
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_60@322649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Lexer/null-character-in-literal.c | bin | 0 -> 917 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/test/Lexer/null-character-in-literal.c b/test/Lexer/null-character-in-literal.c Binary files differnew file mode 100644 index 0000000000..a479547536 --- /dev/null +++ b/test/Lexer/null-character-in-literal.c |