]> granicus.if.org Git - clang/commit
Don't crash w/ a diagnostic range containing a null byte
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 17 Feb 2016 22:37:45 +0000 (22:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 17 Feb 2016 22:37:45 +0000 (22:37 +0000)
commit1844181ab710a7a263487b574a4568aacf0b3dae
tree3587365ca0167df5ed3c5336e7bd0598a1c785c6
parent83a9e40e5fc11754246f14b6628889694d078e07
Don't crash w/ a diagnostic range containing a null byte

We prematurely ended the line at the null byte which caused us to crash
down stream because we tried to reason about columns beyond the end of
the line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261171 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnostic.cpp
test/Misc/diag-null-bytes-in-line.cpp [new file with mode: 0644]