Commit 9dae9206 authored by titzer's avatar titzer Committed by Commit bot

[wasm] Fix fuzzer size calculation

R=ahaas@chromium.org, mythria@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2702123003
Cr-Commit-Position: refs/heads/master@{#43312}
parent 6b5f7d23
......@@ -59,7 +59,7 @@ class DataRange {
} else {
const size_t num_bytes = std::min(sizeof(T), size());
T result;
memcpy(&result, data_, sizeof(num_bytes));
memcpy(&result, data_, num_bytes);
data_ += num_bytes;
size_ -= num_bytes;
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment