Skip to content

chore: cherry-pick 5 changes from chromium, angle (42-x-y) - #51666

Merged
ckerr merged 1 commit into
42-x-yfrom
cherry-pick/42-x-y/2026-05-15-2
May 16, 2026
Merged

ckerr merged 1 commit into
42-x-yfrom
cherry-pick/42-x-y/2026-05-15-2

Conversation

@VerteDinde

Copy link
Copy Markdown
Member
cherry-pick c4653f71b7b1 from chromium

[M148] Disable denormals before isolate creation for AudioWorklet
threads

Original change's description:

Disable denormals before isolate creation for AudioWorklet threads

This is to ensure consistency in the denormal flag state between the
isolate and the global scope.

Bug: 499565267
Change-Id: Iec7735bd6bc543da2ad08aea2f7bc716265dc54d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7744866
Reviewed-by: Hiroshige Hayashizaki [email protected]
Commit-Queue: Michael Wilson [email protected]
Reviewed-by: Hongchan Choi [email protected]
Cr-Commit-Position: refs/heads/main@{#1615043}

(cherry picked from commit 5c37ebf855147997e7cbc84d8ef67ab142cc78b4)

Bug: 504873416,499565267
Change-Id: Iec7735bd6bc543da2ad08aea2f7bc716265dc54d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7808785
Reviewed-by: Hiroshige Hayashizaki [email protected]
Commit-Queue: Michael Wilson [email protected]
Auto-Submit: chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com
Reviewed-by: Michael Wilson [email protected]
Cr-Commit-Position: refs/branch-heads/7778@{#2094}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}

cherry-pick e7eeef31113d from chromium

[M148] gtk: Fix Use-After-Free in
GtkUiPlatformWayland::OnHandleSetTransient

Original change's description:

gtk: Fix Use-After-Free in GtkUiPlatformWayland::OnHandleSetTransient

GtkUiPlatformWayland::SetGtkWidgetTransientFor binds a raw GtkWidget*
to an asynchronous Wayland callback. If the dialog is closed before
the callback executes, the GtkWidget is destroyed, leading to a
Use-After-Free when the callback dereferences it.

This CL fixes the issue by using ScopedGObject to hold a strong
reference to the GtkWidget in the callback. This ensures the widget's
memory remains valid until the callback completes, even if it has
been destroyed/disposed by GTK.

R=thestig

Change-Id: I402b18c246c9192038418f1348ff9066089917eb
Fixed: 500033878
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7737624
Reviewed-by: Lei Zhang [email protected]
Commit-Queue: Thomas Anderson [email protected]
Commit-Queue: Lei Zhang [email protected]
Auto-Submit: Thomas Anderson [email protected]
Cr-Commit-Position: refs/heads/main@{#1611064}

(cherry picked from commit eed57ee58f276d40af4c842d7d900f68482cc5f1)

Bug: 500597110,500033878
Change-Id: I402b18c246c9192038418f1348ff9066089917eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7807594
Auto-Submit: chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com
Reviewed-by: Lei Zhang [email protected]
Reviewed-by: Thomas Anderson [email protected]
Commit-Queue: Thomas Anderson [email protected]
Cr-Commit-Position: refs/branch-heads/7778@{#2781}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}

cherry-pick 70c1db1e1b72 from chromium

[M148] Reland "Prevent invalid tree state in
AutomationTreeManagerOwner"

Original change's description:

Reland "Prevent invalid tree state in AutomationTreeManagerOwner"

This is a reland of commit d2ab7831eecf3a1c192ae64b05c2c6a797b556e9

Fixed tree id in the test.

Original change's description:

Prevent invalid tree state in AutomationTreeManagerOwner

If an AXTree fails to fully unserialize in the automation tree manager
owner, drop and destroy the corrupted client wrapper and its nested
static caches immediately. This prevents the tree manager from
referencing the corrupted, dangling pointers subsequently.

Bug: b:502978647
Test: out/Default/accessibility_unittests --gtest_filter=AutomationTreeManagerOwnerTest.UnserializeFailureClearsCachedTree
Change-Id: Idbcbdab0e7b7a46d8d094a38f3ba4a32cf301ce7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7793837
Reviewed-by: David Tseng [email protected]
Auto-Submit: Addison Luh [email protected]
Commit-Queue: David Tseng [email protected]
Cr-Commit-Position: refs/heads/main@{#1621369}

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Bug: b:502978647
Change-Id: I720b30a6baa76570ea54b072e1e9bc0ad6c50f0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7802331
Auto-Submit: Addison Luh [email protected]
Reviewed-by: David Tseng [email protected]
Commit-Queue: Addison Luh [email protected]
Cr-Commit-Position: refs/heads/main@{#1622148}

(cherry picked from commit a72c80884d88cb68fba22a552ec795f3b552f1a1)

Bug: 507877803,b:502978647
Change-Id: I720b30a6baa76570ea54b072e1e9bc0ad6c50f0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7807647
Commit-Queue: [email protected] [email protected]
Auto-Submit: chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com
Bot-Commit: [email protected] [email protected]
Cr-Commit-Position: refs/branch-heads/7778@{#2026}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}

cherry-pick 66e1a4951c0c from chromium

[M148] Workaround of a ubidi_getLogicalRun() issue

Original change's description:

Workaround of a ubidi_getLogicalRun() issue

A crash can occur within ICU's ubidi_getLogicalRun() function when
processing strings where text.length() * N exceeds the maximum value
of int32_t, where N represents the size of an internal ICU struct
(approximately 12 bytes, derived from sizeof(int32_t) * 3).

This CL adds CHECK_LE assertions in BidiParagraph::SetParagraph and
BiDiLineIterator::Open to limit the input string length. This ensures
that the string length, when multiplied by the ICU internal factor, does
not cause an integer overflow.

This is a temporary workaround until the underlying issue in ICU is
fixed and the updated library is rolled out.

No dedicated tests are included in this CL, as reproducing the overflow
requires constructing extremely large strings, which is impractical for
standard unit tests.

Fixed: 504629701
Change-Id: Ica350078f0f3809012e957afb37c5985d9765d5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7781344
Reviewed-by: Nico Weber [email protected]
Auto-Submit: Kent Tamura [email protected]
Commit-Queue: Kent Tamura [email protected]
Cr-Commit-Position: refs/heads/main@{#1618626}

(cherry picked from commit e5e65102447845af6d246f9bca83b1a57277897f)

Fuchsia-Binary-Size: Size increase is unavoidable.
Bug: 506779184,504629701
Change-Id: Ica350078f0f3809012e957afb37c5985d9765d5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7824420
Reviewed-by: Nico Weber [email protected]
Auto-Submit: chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com
Reviewed-by: Kent Tamura [email protected]
Reviewed-by: Mitsuru Oshima [email protected]
Commit-Queue: David Yeung [email protected]
Cr-Commit-Position: refs/branch-heads/7778@{#2542}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}

cherry-pick 6c71c70ec7e8 from angle

[M148] GL: Fix heap-buffer-overflow in streamAttributes

When the shiftInstancedArrayDataWithOffset workaround is
enabled (primarily for Intel drivers on macOS), the number
of vertices to stream is increased to account for the first
parameter in drawArraysInstanced.

However, computeStreamingAttributeSizes was not aware of this
workaround, leading to an under-allocation of the streaming
buffer. Additionally, the copy loop in streamAttributes used
the increased vertex count to read from the source client
memory.
This resulted in a heap-buffer-overflow because the source
buffer might only contain enough data for the original instance
count, and the destination buffer was also too small for the
shifted layout.

This CL:

  1. Updates computeStreamingAttributeSizes to accept an
    applyExtraOffsetWorkaroundForInstancedAttributes flag and
    correctly calculate the required buffer size when the
    workaround is active.
  2. Updates streamAttributes to only copy the original number
    of vertices from the source memory in both fast and slow paths.
  3. Ensures the destination buffer layout still respects the
    increased vertex count for correct attribute spacing as required
    by the workaround.
  4. Adds a regression test
    ShiftInstancedArrayDataWithOffsetSlowPath in
    VertexAttributeTest.cpp that triggers the workaround
    and the slow path copy loop.

Bug: b/497928952
Fixed: b/500613386
Change-Id: I4b59ceec7cf9fc301eacb5b22faa4a3b2c2c863d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/7728161
Reviewed-by: Geoff Lang [email protected]
Commit-Queue: Shrek Shao [email protected]
Auto-Submit: Shrek Shao [email protected]
(cherry picked from commit c0c3b52cec94593157bea7a5ecd9e1ab7b2ce802)
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/7817770

Notes: Backported fixes for an out-of-bounds write in WebAudio worklet setup, a heap overflow in the ANGLE GL backend, a use-after-free in the GTK Wayland platform, an accessibility tree-state validation issue, and an integer overflow in text bidi handling.

@VerteDinde
VerteDinde requested a review from a team as a code owner May 16, 2026 04:46
@VerteDinde VerteDinde added semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking 42-x-y labels May 16, 2026
@ckerr
ckerr merged commit 71627f0 into 42-x-y May 16, 2026
126 of 128 checks passed
@release-clerk

release-clerk Bot commented May 16, 2026

Copy link
Copy Markdown

Release Notes Persisted

Backported fixes for an out-of-bounds write in WebAudio worklet setup, a heap overflow in the ANGLE GL backend, a use-after-free in the GTK Wayland platform, an accessibility tree-state validation issue, and an integer overflow in text bidi handling.

@ckerr
ckerr deleted the cherry-pick/42-x-y/2026-05-15-2 branch May 16, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants