Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Zalgo in chat causes font rendering to implode #1491

Open
tustin2121 opened this issue Sep 28, 2015 · 2 comments
Open

Zalgo in chat causes font rendering to implode #1491

tustin2121 opened this issue Sep 28, 2015 · 2 comments

Comments

@tustin2121
Copy link

Someone pasted some Zalgo'd text into a chatroom I was talking in just now, and HexChat decided to cease drawing all text properly, as seen in this screenshot:

Screenshot

This is the offending text from the chat logs, in case you don't know what "zalgo" is.

/x/g ...
... ̧̨̢̡̧̧̡̢̧̢̨̛̲̦̼̤̯̮͔͙̝̙͕͈͎̰̹͚̰̙̜̯͎̤̥̜͈͕̲̝̗̬̪͔͍̩̖̰͈̲̖̤̦͖͈̲̯̣̼͙̠̟̝̩̟͉̟̣͕̝̥̝̝͇̫̤̳͎̱͍̳̹̹̻̣̤̝̫̭̹͖̻̻͉̰͛̊͗̑͂͗̋̔͒̽̿̈́̐͛̓͆̊̾̓͛͂̃̾̀͛͐͛̀̃͑͌͗̃́̏́̌̀̌̎͛̾̓̿̕͘̚͜ͅͅͅͅͅä̴̑͛̓̍̐̓̐͌́̾̄͌̽͗̉̋̅̉͛̉̀̀̒̐̈́̓̓͌̆̐͗͂̆̈̊̌͐̈́́̽͆̎͒̊͐̑͗̈͋̽̏̀̐̃̓̐͗̃̌̂̈̿̕͘̚̕̚͘͝͝͝ ...
... ̧̨̡̢̡̢̧̨̧̢̜̳̫͎̺̲̠͕̹͈̙̤͇͇̤̤̳̺͖̩̘͇̲̣̭͚̥͔̻̬̼̙̤͈̟͓̤̟̭͓͚̣͍̦̩͔̭̖̼̻̲͓͙͍̟͎̙̫̲͍̤̲̘̲̮̺̼̥̼̟̗̞̮̮͚̤̦̳͖̝̱͓̰͌͗̌̅̎́͋͊͑̒̓̓̊̊͆̒̀̉́̈́̅̇̃́̕͜͜͜͜͜͝͝͝ͅͅ ̶̛̄̏̆̓̊̾̈́̏͒̽̍̍̍̒̉̇͌̉̔͊̑̀̉͌̌͗̋̄̈́́͛͗̑͗̒̈̓̿̍͂̋̏̐͐̔̓́̎̏̃̊͌̆́̈́̔̊̋͌͌̿̈́̀͂̐͗̊̉͗̅̔͛̈́̂̂̂̄̾̅͘͘͘̕̕̚̕̚͝͝͝͝ ...
... goddamn it walle stop ...
... ̢̧̧̡̧̢̨̨̢̡̧̨̠͍̟̞̖̹̝̳̬̜̹͕̤̹͉͖̺͍̣̦͓͔̳̟͓̳̖͙͖̻̪̟̯͕̯̹̫̞̰̮̳̩͍̦̗̖͇̫̼̙̪͖̹͙̰̖̻̥̮̤̫̫̠̳͔̭̤̻͕͕̱͔͈͚͍̯͖̘͙̹͈̣̩̒̍̿̃̆̓͛̿͜͜͜͜ͅs̶̢̛̛̛̛̬̖̯̫̬̲̤̜͈̤̪̉̈́̿̿̍̄̈́͑́̾̃̈́̌̍̃̍͂̆̍̔͒̄̂̊̅̓̈́́̈̍̏̔̽̈́̎͊͊͌̅͂͑̀̋̄̍̽̃̓̍͊̆̀͐͑̈́̐̓̔̊͂́̆̑͑͗̽̔̈́̒̿̈́͂̔̔͊͑̌̕͘͘̚̚̚̚̕͠͠͝͠͠͝͝͠͝͝͝ that ...
... weplay.

Zalgoed Logs

I had to restart HexChat in order to fix this. I don't know if the zalgoed text scrolling off the screen would have fixed it or not. Regardless of whether the font set in the settings supports unicode properly or not, this seems like a pretty serious problem.

Using HexChat version 2.10.2 on Windows 7 SPI, x64. The main font is set to "Consolas 10", which I'm pretty sure is the default, non-unicode-supporting font.

@Arnavion
Copy link
Contributor

Consolas contains many non-ASCII glyphs, including the ones in your sample.

More importantly Zalgo is made using combining characters, so it depends on the ability of the layout engine to render it and not any particular font's glyphs.

From your description, the offending text is still in view, which means text before it is also being misrendered? (Don't have HC in front of me to test at the moment.)

Edit: This might also be the buffer overflow for long lines that richtroye recently fixed.

@tustin2121
Copy link
Author

The text before it was not being misrendered when the lines initially appeared. But when I moved my cursor over the lines before it, presumably it repainted those lines, as they too became corrupted. The rest of the UI elements became corrupted shortly after the offending lines appeared in chat.

I should also note, now that think about it: I have a second computer that sits in that chatroom just monitoring it all the time with HexChat 2.10.1, and this second computer's HexChat is not currently corrupted (the client untouched until hours after the incident). So it seems this bug can be recovered from without restarting the application (assuming it happened in 2.10.1).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants