diff options
author | Jack Lloyd <[email protected]> | 2018-12-23 18:28:20 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-23 18:29:24 -0500 |
commit | 58a434fb5b94451832b2ccb501567baae20af2e5 (patch) | |
tree | ba401dcaf36f92c99c3b22d9419ec210a6d96643 | |
parent | ef2c3d7d01ffdeb1b29c439b9ec0348302170e00 (diff) |
Correct read in test fuzzers
-rw-r--r-- | src/fuzzer/fuzzers.h | 2 |
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(); |