aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-06-19 19:13:43 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-06-19 19:14:16 +0200
commitbe18df3d23fe21fa622ec45fa09eddb3af3eef6b (patch)
treeb1e7842f7f51765dfb8aee230b9c6123b0e468a7 /llvm/unittests/Support
parent22d7a01dd7282ee5e70ce57a8c1465fd335ea27d (diff)
downloadllvm-be18df3d23fe21fa622ec45fa09eddb3af3eef6b.zip
llvm-be18df3d23fe21fa622ec45fa09eddb3af3eef6b.tar.gz
llvm-be18df3d23fe21fa622ec45fa09eddb3af3eef6b.tar.bz2
[lldb] Fix that SIGWINCH crashes IOHandlerEditline when we are not using the editline backend
Summary: TerminalSizeChanged is called from our SIGWINCH signal handler but the IOHandlerEditline currently doesn't check if we are actually using the real editline backend. If we're not using the real editline backend, `m_editline_up` won't be set and `IOHandlerEditline::TerminalSizeChanged` will access the empty unique_ptr. In a real use case we don't use the editline backend when we for example read input from a file. We also create some temporary IOHandlerEditline's during LLDB startup it seems that are also treated as non-interactive (apparently to read startup commands). This patch just adds a nullptr check for`m_editline_up` as we do in the rest of IOHandlerEditline. Fixes rdar://problem/63921950 Reviewers: labath, friss Reviewed By: friss Subscribers: abidh, JDevlieghere Differential Revision: https://reviews.llvm.org/D81729
Diffstat (limited to 'llvm/unittests/Support')
0 files changed, 0 insertions, 0 deletions