aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzer/fuzzers.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-23 18:28:20 -0500
committerJack Lloyd <[email protected]>2018-12-23 18:29:24 -0500
commit58a434fb5b94451832b2ccb501567baae20af2e5 (patch)
treeba401dcaf36f92c99c3b22d9419ec210a6d96643 /src/fuzzer/fuzzers.h
parentef2c3d7d01ffdeb1b29c439b9ec0348302170e00 (diff)
Correct read in test fuzzers
Diffstat (limited to 'src/fuzzer/fuzzers.h')
-rw-r--r--src/fuzzer/fuzzers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzer/fuzzers.h b/src/fuzzer/fuzzers.h
index 8248a4f58..ee78f7a6d 100644
--- a/src/fuzzer/fuzzers.h
+++ b/src/fuzzer/fuzzers.h
@@ -88,7 +88,7 @@ int fuzz_files(char* files[])
{
std::vector<uint8_t> buf(max_fuzzer_input_size);
in.read((char*)buf.data(), buf.size());
- const size_t got = std::cin.gcount();
+ const size_t got = in.gcount();
buf.resize(got);
buf.shrink_to_fit();