Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in Item details panel with certain emoji characters #323

Merged
merged 1 commit into from
Aug 23, 2020

Conversation

reupen
Copy link
Owner

@reupen reupen commented Aug 22, 2020

#321

This rewrites the sizing and word wrapping logic in the Items detail panel to fix a crash or possible heap corruption when Unicode code points above U+FFFF were encountered.

These changes include making Item details work in only UTF-16 internally; previously there was a mix of UTF-8 and UTF-16 which lead to complexity in counting code units.

Word wrapping behaviour will be slightly different to previous versions as a result of these changes.

@reupen reupen force-pushed the fix-item-details-emoji-crash branch 2 times, most recently from 0086e76 to 787801b Compare August 23, 2020 19:03
#321

This rewrites the sizing and word wrapping logic in the Items detail panel to fix a crash or possible heap corruption when Unicode code points above U+FFFF were encountered.

These changes include making Item details work in only UTF-16 internally; previously there was a mix of UTF-8 and UTF-16 which lead to complexity in counting code units.

Word wrapping behaviour will be slightly different to previous versions as a result of these changes.
@reupen reupen force-pushed the fix-item-details-emoji-crash branch from 787801b to 2db7d22 Compare August 23, 2020 19:22
@reupen reupen marked this pull request as ready for review August 23, 2020 19:24
@reupen reupen merged commit c6fce9c into master Aug 23, 2020
@reupen reupen deleted the fix-item-details-emoji-crash branch August 23, 2020 19:35
reupen added a commit that referenced this pull request Aug 24, 2020
#321

This fixes a regression in #323 which broke centre- and right-alignment in Item details when word wrapping was on.
reupen added a commit that referenced this pull request May 18, 2021
This fixes a regression caused by #323 where, when scrolling down in the Item details panel, colour codes would misbehave or more rarely a crash could occur.
reupen added a commit that referenced this pull request May 18, 2021
This fixes a regression caused by #323 where, when scrolling down in the Item details panel, colour codes would misbehave or, more rarely, a crash could occur.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant