Closed Bug 1841958 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 40897 - Avoid null dereference of font data from FontCache.

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 40897 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/40897
Details from upstream follow.

ChangSeok Oh <changseok.oh@bytedance.com> wrote:

Avoid null dereference of font data from FontCache.

Font data gotten from FontCache could be null. We should avoid
dereferencing the null font data to reach its font metrics.
Otherwise, it leads to a crash.

Test: fast/css/font-size-adjust-system-fallback-crash.html
Bug: 1458673
Change-Id: I286b28ee9a56456ee52ea59f6403ac62532436ec
Reviewed-on: https://chromium-review.googlesource.com/4664962
WPT-Export-Revision: c359747ec8cc2853d5161d5b03e4fdcf4db54de3

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/12d11b7fc932 [wpt PR 40897] - Avoid null dereference of font data from FontCache., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.