Skip to content

Commit 3cbe264

Browse files
fixup! fix(core): validate start + size for buffer ops in more places
1 parent 37a49bf commit 3cbe264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wgpu-core/src/command/transfer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ pub(super) fn copy_buffer_to_buffer(
10581058

10591059
// TODO: Checks for source buffer overrun don't quite match spec., but it seems important to do
10601060
// things in this order.
1061-
if destination_offset >= dst_buffer.size {
1061+
if destination_offset > dst_buffer.size {
10621062
return Err(TransferError::BufferStartOffsetOverrun {
10631063
start_offset: destination_offset,
10641064
buffer_size: dst_buffer.size,

0 commit comments

Comments
 (0)