Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: test/fuzzer/wasm-compile.cc

Issue 2702123003: [wasm] Fix fuzzer size calculation (Closed)
Patch Set: [wasm] Fix fuzzer size calculation Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/fuzzer/wasm-compile.cc
diff --git a/test/fuzzer/wasm-compile.cc b/test/fuzzer/wasm-compile.cc
index 8d70c1c3e2a9a96901b0124265f9cd639fe2a7df..5edac0af8b9164173e33b7867c267034ce5769da 100644
--- a/test/fuzzer/wasm-compile.cc
+++ b/test/fuzzer/wasm-compile.cc
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698