Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d928e1d5198e80477a826dce7950bb808f83034
https://github.com/WebKit/WebKit/commit/4d928e1d5198e80477a826dce7950bb808f83034
Author: Mike Wyrzykowski <[email protected]>
Date: 2024-08-23 (Fri, 23 Aug 2024)
Changed paths:
M Source/WebGPU/WebGPU/Queue.mm
Log Message:
-----------
[WebGPU] Add additional validation to memcpySpan call in Queue::writeBuffer
https://bugs.webkit.org/show_bug.cgi?id=278448
rdar://132230239
Reviewed by Dan Glastonbury.
We were creating a span without respect to the buffer length because
it was already guarnateed in the validateWriteBuffer that buffer.length
was greater than data.size() + offset.
However a bug or change to the validation function could result in that
logic being skipped.
Ensure the span is within the range of the buffer by creating another
span from the buffer conents + length.
* Source/WebGPU/WebGPU/Queue.mm:
(WebGPU::Queue::writeBuffer):
Canonical link: https://commits.webkit.org/282675@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes