-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 rendering emoji on macOS with FontCollection that lacks def… #162
base: main
Are you sure you want to change the base?
Conversation
…ault font manager FontCollection checks if fDefaultFontManager is non-null in various places before using it, except when determining the emoji fallback font. This can cause a crash when the FontCollection was not initialized with a default font manager. This is reproducible for me on macOS with the 🍃 emoji.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
8b310f9
to
e59f016
Compare
This PR (HEAD: e59f016) has been imported to Gerrit for code review. Please visit review.skia.org/819916 to see it. Please CC yourself to the Gerrit change. Note:
|
Set a default font manager to avoid that the unconditional dereferencing inside Skia crashes on a null pointer. Upstream PR: google/skia#162 Fixes #4696
Set a default font manager to avoid that the unconditional dereferencing inside Skia crashes on a null pointer. Upstream PR: google/skia#162 Fixes #4696
Set a default font manager to avoid that the unconditional dereferencing inside Skia crashes on a null pointer. Upstream PR: google/skia#162 Fixes #4696
While google/skia#162 has not been merged yet, it's included in skia-safe: rust-skia/rust-skia#986
While google/skia#162 has not been merged yet, it's included in skia-safe: rust-skia/rust-skia#986
…ault font manager
FontCollection checks if fDefaultFontManager is non-null in various places before using it, except when determining the emoji fallback font. This can cause a crash when the FontCollection was not initialized with a default font manager.
This is reproducible for me on macOS with the 🍃 emoji.