Repository navigation
[skia-sync] Merge upstream chrome/m150 bug fixes - #4379
Merged
Merged
Conversation
Advances the externals/skia submodule to pull in one new upstream m150 bug-fix commit: - 3273c66a68 [M150] Fix Use-After-Free in SubRunAllocator Release-line bug-fix sync (release/4.150.x, same-milestone) — no version bump. cgmanifest.json's commitHash and upstream_merge_commit updated. Upstream change is internal-only (src/text/gpu/SubRunAllocator.h): no C API, binding, or public C# API impact. Bindings regenerated to confirm zero diff; full test suite (5584 passed / 0 failed / 172 skipped) green on Linux x64. Co-authored-by: Copilot <[email protected]>
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4379PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4379"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4379/packages --name skiasharp-pr-4379More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4379 |
mattleibow
marked this pull request as ready for review
July 10, 2026 20:42
mattleibow
added a commit
to mono/skia
that referenced
this pull request
Jul 10, 2026
[skia-sync] Merge upstream chrome/m150 bug fixes (#281) Upstream CL: https://skia-review.googlesource.com/c/skia/+/1288679 Bug: skia:530646115 / Chromium 532102500 Upstream commit: google/skia@3273c66a68 (cherry-pick of 014a77e) Merge one new bug-fix commit from chrome/m150 into the release/4.150.x line: * 3273c66 [M150] Fix Use-After-Free in SubRunAllocator Deserializing a corrupt Slug buffer (SlugImpl::MakeFromBuffer) returns nullptr early, which destroys the temporary result of SubRunAllocator::AllocateClassMemoryAndArena. That result was a std::tuple, and the C++ standard leaves tuple member destruction order unspecified: SubRunInitializer freed the backing memory before ~BagOfBytes in the SubRunAllocator read fEndByte out of it -- a use-after-free read followed by a wild-free/double-free. The fix replaces the tuple with a plain struct (AllocateAndArenaResult) whose members are declared so the allocator is destroyed before the initializer frees the memory, and refactors SubRunInitializer onto a std::unique_ptr with a custom deleter so the ownership transfer is explicit. Internal C++ only: the single changed file is src/text/gpu/SubRunAllocator.h. It touches no include/c or src/c file, so there is no C API or SkiaSharp binding impact. Clean automatic merge, no conflicts. Companion SkiaSharp PR: mono/SkiaSharp#4379. Co-authored-by: Arthur Sonzogni <[email protected]> Co-authored-by: Copilot <[email protected]>
mono/skia#281 was squash-merged into release/4.150.x, so the two-parent merge commit 06f50d1c05 no longer exists on that branch. Point the submodule and cgmanifest.json commitHash at the squash commit ef2ebb78c8 (current tip of mono/skia release/4.150.x). chrome_milestone (150) and upstream_merge_commit (3273c66a68) are unchanged -- no new upstream code was merged, only the mono/skia commit SHA changed as a result of the squash. Co-authored-by: Copilot App <[email protected]>
mattleibow
added a commit
that referenced
this pull request
Jul 10, 2026
[skia-sync] Merge upstream chrome/m151 bug fixes (#4382) Companion: mono/skia#282 Changes: mono/skia@9887799...cd6e926 Upstream CL: https://skia-review.googlesource.com/c/skia/+/1288616 Bug: skia:530646115 / Chromium 532103445 Advance the externals/skia submodule (and cgmanifest.json) on main to mono/skia@cd6e926914, pulling in one upstream chrome/m151 bug fix: * Fix Use-After-Free in SubRunAllocator (google/skia@0208108c7a) Deserializing a corrupt Slug buffer (SlugImpl::MakeFromBuffer) returns nullptr early and destroys a std::tuple whose member destruction order is unspecified, so SubRunInitializer freed the backing memory before ~BagOfBytes in the SubRunAllocator read fEndByte out of it -- a use-after-free read followed by a wild-free/double-free. Upstream replaces the tuple with a struct that guarantees the allocator destructs before the initializer frees the memory. This is the same fix already taken to release/4.150.x in #4379; see mono/skia#282 for the full analysis. Submodule bump only: cgmanifest.json commitHash tracks the new mono/skia commit; chrome_milestone (151) and upstream_merge_commit (0208108c7a) are unchanged (same-milestone sync, no version bump). The upstream change is internal C++ (src/text/gpu/SubRunAllocator.h) with no C API or binding impact -- binding regeneration produced zero diff and the full SkiaSharp.Tests.Console suite passed (5614 passed, 0 failed, 182 skipped) on Linux x64. Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot <[email protected]>
5 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated upstream bug-fix sync for m150. Targeting release branch
release/4.150.x(mono/skiarelease/4.150.x).Companion skia PR: mono/skia#281
[skia-sync] Merge upstream chrome/m150 bug fixes — mono/SkiaSharp
Base branch:
release/4.150.xHead branch:
skia-sync/release-4.150.xMode: release-line bug-fix sync (
CURRENT == TARGET == 150)Companion mono/skia PR:
[skia-sync] Merge upstream chrome/m150 bug fixesonskia-sync/release-4.150.x(submodule pointer advanced to reflect it)Breaking-change analysis
None. Only one new upstream commit was pulled in (
3273c66a68 [M150] Fix Use-After-Free in SubRunAllocator), and it is a pure internal C++ fix insrc/text/gpu/SubRunAllocator.h— it changes destruction order of aninternal allocator return type from
std::tupleto a custom struct.No C API impact (
grep SubRunAllocator src/c/ include/c/returns nothing),no header changes reachable from
include/c/*.h, no binding regenerationdelta.
Version / binding updates
No version bump — this is a same-milestone release-line sync, so
scripts/VERSIONS.txtandscripts/azure-templates-variables.ymlareuntouched (the Phase 6 script's version-downgrade side-effect was reverted
to preserve the branch's
4.150.1post-release in-development number).cgmanifest.json:commitHash:b16789ec35…→06f50d1c05…(new mono/skia merge commit)upstream_merge_commit:14d05ec761…→3273c66a68…(new upstream tip)chrome_milestone:150(unchanged)externals/skiasubmodule pointer:280ec21ada→06f50d1c05(pointsat the new merge commit on
skia-sync/release-4.150.x).C# changes
None. Binding regeneration (
pwsh ./utils/generate.ps1, via.agents/skills/update-skia/scripts/regenerate-bindings.ps1) producedzero diff across
binding/SkiaSharp/SkiaApi.generated.csand theSkottie/SceneGraph/Resources generated files. The Phase 9 new-function
check (
git diff origin/release/4.150.x -- binding/SkiaSharp/SkiaApi.generated.cs | grep '^+.*internal static') returned zero matches, so no C# wrappersneed to be added.
Build & test results (Linux x64)
dotnet cake --target=externals-linux --arch=x64)dotnet build binding/SkiaSharp/SkiaSharp.csproj)SkiaSharp.Tests.Consoletests)Both native artifacts produced as expected:
output/native/linux/x64/libSkiaSharp.so→libSkiaSharp.so.150.0.0output/native/linux/x64/libHarfBuzzSharp.so→libHarfBuzzSharp.so.0.61421.0Full test log uploaded as
test-output.txtartifact.Items needing human attention
None. This is a minimal internal C++ bug fix from upstream Skia's m150
branch with:
Only Linux x64 was built and tested in this automated sync — macOS,
Windows, iOS, Android, WASM, and Tizen are covered by the normal CI matrix
on the PR.
Companion mono/skia PR
The submodule now points at commit
06f50d1c05on theskia-sync/release-4.150.xbranch ofmono/skia. That PR must mergefirst; then this PR's submodule pointer will be re-fetched to the squashed
SHA before merging here.
Created by skia-upstream-sync.