Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b2c89c597cf0678d2f160069289e158a6cf886c7
      
https://github.com/WebKit/WebKit/commit/b2c89c597cf0678d2f160069289e158a6cf886c7
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

  Changed paths:
    M 
LayoutTests/http/tests/webgpu/webgpu/api/validation/image_copy/buffer_related-expected.txt
    M Source/WebGPU/WebGPU/CommandEncoder.swift

  Log Message:
  -----------
  [WebGPU] out-of-bounds write due to incorrect y-axis offset calculation in 
swift copyTextureToBuffer
https://bugs.webkit.org/show_bug.cgi?id=305431
rdar://169212901

Reviewed by Geoffrey Garen.

Swift version was wrong and did not match Objective-C++ version leading
to out of bounds reads and writes.

Credit to Jon Butler for finding a lot of these and writing the patch.

* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.copyTextureToBuffer(_:destination:copySize:)):

Originally-landed-as: 305413.226@safari-7624-branch (9ec171059271). 
rdar://171556072
Canonical link: https://commits.webkit.org/309045@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to