ANSI: Crash in AnsiEscapeCodeHandler::parseText

Qt creator crashes when capturing output from a program that can output
unfinished control sequence. For example: "\x1b".

Task-number: QTCREATORBUG-14720
Change-Id: I7535e509a192685aece63aea79234d88153fcb56
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: wonder.mice <wonder.mice@gmail.com>
This commit is contained in:
Andrey Pokrovskiy
2015-07-11 23:35:49 -07:00
committed by wonder.mice
parent 16ab843f95
commit 9f29762d34
3 changed files with 101 additions and 32 deletions

View File

@@ -62,6 +62,7 @@ private:
bool m_previousFormatClosed;
QTextCharFormat m_previousFormat;
QString m_pendingText;
};
} // namespace Utils