commit | 7778198165833ef0890951838a87e31498637048 | [log] [tgz] |
---|---|---|
author | Munira Tursunova <moonira@google.com> | Mon Jan 08 14:11:54 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 08 14:11:54 2024 |
tree | 3a2752729bc6b68601c901eb9231422b99e3d4bf | |
parent | 671d8622bf5e6c7cfa5be357b642fd3e54433e23 [diff] |
Fix crash in font_matcher_mac.mm Add check to null before getting the CFNumber values from attributes dictionary in BestStyleMatchForFamily and GetAlternateFontPlatformData. The crash seems to appear only when the client has custom installed fonts on the system that returns nullptr when asked for weight value by CoreText. Failed to reproduce the crash with font that has invalid `usWeightClass` value and the font that does not have OS/2 table. Considering above and the fact that there are no pre-installed system fonts that can cause this issue, it is not possible to create a reproduction test. Bug: 318593063 Change-Id: I9c309dad6712b741c0ed9fdad66dc21acd2aa9c6 Cq-Include-Trybots: luci.chromium.try:mac13.arm64-blink-rel,mac13-blink-rel,mac12.0-blink-rel,mac12.0.arm64-blink-rel,mac11.0-blink-rel,mac11.0.arm64-blink-rel,mac10.15-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5168607 Reviewed-by: Dominik Röttsches <drott@chromium.org> Commit-Queue: Munira Tursunova <moonira@google.com> Cr-Commit-Position: refs/heads/main@{#1244028}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.