Tdesktop: Hotkey : and b to bring up emoji causes crash

Created on 2 Oct 2019  路  2Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Type ":" and "b"
  2. This causes crash even if something other than b is entered, then edited in.

Expected behaviour

Shouldn't cause crash.

Actual behaviour

App crashes.

Configuration

Operating system:
Windows 10

Version of Telegram Desktop:
1.8.12
Used theme:
Standard night mode

Logs:
Insert log.txt here (if necessary)

Most helpful comment

I've located the issue of the crash via reverse engineering with a debugger.

Seems there's a null entry or null pointer in the 'b' emoji name suggestion list and the crash is caused by dereferencing a nullptr. It happens after trying to suggest 'bath' and the the next entry is nullptr.

Evidence

Lucky for you guys, this is 100% reproducible and should be easy to fix :D

Edit:

Can confirm this is exactly after bath. Simply typing ':abat' , removing the 'a', it will result in a crash since the nullptr entry is directly after 'bath' in the list. Should be way easier to debug/step through doing it this way instead of stepping through that line of code 60+ times xD

All 2 comments

It sure does! Windows 10.. "Tinted" night theme....

I've located the issue of the crash via reverse engineering with a debugger.

Seems there's a null entry or null pointer in the 'b' emoji name suggestion list and the crash is caused by dereferencing a nullptr. It happens after trying to suggest 'bath' and the the next entry is nullptr.

Evidence

Lucky for you guys, this is 100% reproducible and should be easy to fix :D

Edit:

Can confirm this is exactly after bath. Simply typing ':abat' , removing the 'a', it will result in a crash since the nullptr entry is directly after 'bath' in the list. Should be way easier to debug/step through doing it this way instead of stepping through that line of code 60+ times xD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luisalvarado picture luisalvarado  路  3Comments

LeonTheOriginal picture LeonTheOriginal  路  3Comments

whywhyy picture whywhyy  路  3Comments

matteotumiati picture matteotumiati  路  3Comments

abhyrz picture abhyrz  路  3Comments