Skip to content

[gap-decorations] Fix crash found by fuzzer in flex gap decorations#58334

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7642513
Mar 7, 2026
Merged

[gap-decorations] Fix crash found by fuzzer in flex gap decorations#58334
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7642513

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 6, 2026

There is a potential bug in the flex algorithm that causes a line of
size 0 to be laid out. This causes the gap decorations code to create
a MainGap for a line that does not exist, which then leads to a
CHECK being hit when attempting to paint that MainGap. This CL
simply adds a defensive check such that we don't create a main gap
for cases such as this, where the line size is 0.

A bug was filed for the algorithm behavior and I will attempt to
address it in a followup CL

Bug: 490343456
Fixed: 489948958
Change-Id: I62d3c568721bdfd3ed3dabff02087b350ccacf57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7642513
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Javier Contreras <javiercon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1595536}

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator Author

Close this PR because the Chromium CL does not have exportable changes.

@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7642513 branch March 6, 2026 18:57
@jonathan-j-lee jonathan-j-lee restored the chromium-export-cl-7642513 branch March 6, 2026 23:53
@jonathan-j-lee jonathan-j-lee reopened this Mar 6, 2026
@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator Author

Close this PR because the Chromium CL does not have exportable changes.

@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7642513 branch March 6, 2026 23:55
@jonathan-j-lee jonathan-j-lee restored the chromium-export-cl-7642513 branch March 6, 2026 23:59
@jonathan-j-lee jonathan-j-lee reopened this Mar 6, 2026
@chromium-wpt-export-bot chromium-wpt-export-bot marked this pull request as ready for review March 7, 2026 00:25
There is a potential bug in the flex algorithm that causes a line of
size 0 to be laid out. This causes the gap decorations code to create
a `MainGap` for a line that does not exist, which then leads to a
CHECK being hit when attempting to paint that `MainGap`. This CL
simply adds a defensive check such that we don't create a main gap
for cases such as this, where the line size is 0.

A bug was filed for the algorithm behavior and I will attempt to
address it in a followup CL

Bug: 490343456
Fixed: 489948958
Change-Id: I62d3c568721bdfd3ed3dabff02087b350ccacf57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7642513
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Javier Contreras <javiercon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1595536}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit fa8640a into master Mar 7, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7642513 branch March 7, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants