Skip to content

fix(core): guard charWidth for codepoints above U+10FFFF#1063

Open
thesoulless wants to merge 1 commit into
anomalyco:mainfrom
thesoulless:main
Open

fix(core): guard charWidth for codepoints above U+10FFFF#1063
thesoulless wants to merge 1 commit into
anomalyco:mainfrom
thesoulless:main

Conversation

@thesoulless
Copy link
Copy Markdown

Without a check, if the caller sends an invalid codepoint, a function like calculateTextWidth, which uses the charWidth function, will panic.

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