mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 00:29:31 +00:00
7fa1986b27
Fix a regression introduced in 8d354382a4 which caused an overflow in _parAnalysis access. We were resizing _parAnalysis array for a line width without the pending newline character while we used it for painting a line including the pending newline character. It was not a problem before, when we were trimming them from the end of the string, but it results in a buffer overflow and crashes in the lastest versions. So now we just don't include the newline in the painted string, so it has exactly the same size as _parAnalysis. |
||
---|---|---|
.. | ||
art | ||
etc | ||
icons | ||
langs | ||
qmime | ||
uwp | ||
winrc | ||
basic.style | ||
colors.palette | ||
default.tdesktop-theme | ||
numbers.txt | ||
telegram_emoji_large.qrc | ||
telegram_emoji.qrc | ||
telegram_linux.qrc | ||
telegram_mac.qrc | ||
telegram_wnd.qrc | ||
telegram.qrc |