[webkit-changes] [WebKit/WebKit] 4d928e: [WebGPU] Add additional validation to memcpySpan c...
mwyrzykowski
noreply at github.com
Fri Aug 23 14:16:36 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d928e1d5198e80477a826dce7950bb808f83034
https://github.com/WebKit/WebKit/commit/4d928e1d5198e80477a826dce7950bb808f83034
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
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
More information about the webkit-changes
mailing list