aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-07-16 16:38:30 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-07-16 16:38:30 +0000
commit2d42579886e0afcc2bef0a2ead8dd2fc715e0bde (patch)
tree6e2342cda8b97044187d4c46e98d28532d8c5bff /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent94d84088e961766b0e59ddb211ac4800fd30118d (diff)
downloadllvm-2d42579886e0afcc2bef0a2ead8dd2fc715e0bde.zip
llvm-2d42579886e0afcc2bef0a2ead8dd2fc715e0bde.tar.gz
llvm-2d42579886e0afcc2bef0a2ead8dd2fc715e0bde.tar.bz2
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 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions