diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2018-07-16 16:38:30 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2018-07-16 16:38:30 +0000 |
| commit | 2d42579886e0afcc2bef0a2ead8dd2fc715e0bde (patch) | |
| tree | 6e2342cda8b97044187d4c46e98d28532d8c5bff /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 94d84088e961766b0e59ddb211ac4800fd30118d (diff) | |
| download | bcm5719-llvm-2d42579886e0afcc2bef0a2ead8dd2fc715e0bde.tar.gz bcm5719-llvm-2d42579886e0afcc2bef0a2ead8dd2fc715e0bde.zip | |
Fix some crashes and deadlocks in FormatAnsiTerminalCodes
Summary:
This patch fixes a few problems with the FormatAnsiTerminalCodes function:
* It does an infinite loop on an unknown color value.
* It crashes when the color value is at the end of the string.
* It deletes the first character behind the color token.
Also added a few tests that reproduce those problems (and test some other corner cases).
Reviewers: davide, labath
Reviewed By: labath
Subscribers: labath, lldb-commits, mgorny
Differential Revision: https://reviews.llvm.org/D49307
llvm-svn: 337189
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions

