Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/exports.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,6 @@ Word set_buffer_bytes(void *raw_context, Word type, Word start, Word length, Wor
if (!data) {
return WasmResult::InvalidMemoryAccess;
}
// check for overflow.
if (buffer->size() < start + length || start > start + length) {
return WasmResult::BadArgument;
}
return buffer->copyFrom(start, length, data.value());
}

Expand Down