Skip to content

Commit 8369840

Browse files
fixup! fix(core): validate start + size for buffer ops in more places
1 parent 0fa586a commit 8369840

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wgpu-core/src/resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl Buffer {
610610
return Err((op, BufferAccessError::UnalignedRangeSize { range_size }));
611611
}
612612

613-
if offset >= self.size {
613+
if offset > self.size {
614614
return Err((
615615
op,
616616
BufferAccessError::MapStartOffsetOverrun {

0 commit comments

Comments
 (0)