Closed Bug 2070916 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62543 - [gap-decorations] Fix crash with huge row gaps

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Javier Contreras Tenorio <javiercon@microsoft.com> wrote:

[gap-decorations] Fix crash with huge row gaps

When a row-gap offset saturated during grid fragmentation (due to a
value higher than LayoutUnit::Max), the spillover calculation could
produce an incorrect adjustment, due to the saturation hiding the true
distance past the edge. The adjustment persisted in the break token,
which corrupted later fragments and led to a null dereference.

Skip the adjustment when the gap offset is saturated. The difference
cannot be represented safely, and suppressing it avoids corrupting
subsequent fragments. Add a regression crash test.

Fixed: 542066231
Change-Id: I0489c0990f26ac3541397a90aff28790f57a0323
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8349009
Commit-Queue: Javier Contreras \<javiercon@microsoft.com>
Reviewed-by: Kurt Catti-Schmidt \<kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1694366}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 40 tests

Status Summary

Firefox

PASS: 1[GitHub] 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 10[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 30

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.