Skip to content

Commit 2c2f02f

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

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
@@ -743,7 +743,7 @@ impl Buffer {
743743
let map_state = &*self.map_state.lock();
744744
match *map_state {
745745
BufferMapState::Init { ref staging_buffer } => {
746-
if offset >= self.size {
746+
if offset > self.size {
747747
return Err(BufferAccessError::MapStartOffsetOverrun {
748748
offset,
749749
buffer_size: self.size,

0 commit comments

Comments
 (0)