]> granicus.if.org Git - clang/commit
Fix crash in getStringSplit.
authorAlexander Kornienko <alexfh@google.com>
Tue, 26 Nov 2013 10:38:53 +0000 (10:38 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 26 Nov 2013 10:38:53 +0000 (10:38 +0000)
commit8f2f047ed53ada7a4ebc35249c668912b1fb1968
tree367d44d89b1798b8de7e45cb2e51c31b4623951c
parented197d08c90d82e1119774e10920e6f7a841c8ec
Fix crash in getStringSplit.

Summary:
getStringSplit used to crash, when trying to split a long string
literal containing both printable and unprintable multi-byte UTF-8 characters.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2268

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/BreakableToken.cpp
lib/Format/Encoding.h
unittests/Format/FormatTest.cpp