diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-04-15 15:12:32 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-04-15 15:12:32 +0200 |
commit | 45b5e3622e4339b806a8f3d44bcde5c89f58677e (patch) | |
tree | 31c40679b93001e84576502a3848ed49cf6c5145 | |
parent | 43e16cf13dfffa27f9cde49a3bba026cef96b1c4 (diff) | |
download | afl++-45b5e3622e4339b806a8f3d44bcde5c89f58677e.tar.gz |
fix compcovtest
-rw-r--r-- | qemu_mode/libcompcov/compcovtest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu_mode/libcompcov/compcovtest.cc b/qemu_mode/libcompcov/compcovtest.cc index 6fe501c0..69c6aa09 100644 --- a/qemu_mode/libcompcov/compcovtest.cc +++ b/qemu_mode/libcompcov/compcovtest.cc @@ -46,15 +46,15 @@ int main(int argc, char**argv) { } uint64_t x = 0; - fread(&x, sizeof(x), 1, stdin); + fread(&x, sizeof(x), 1, file); if (x != 0xCAFEBABECAFEBABE) { return 2; } uint32_t y = 0; - fread(&y, sizeof(y), 1, stdin); + fread(&y, sizeof(y), 1, file); if (y != 0xDEADC0DE) { return 3; } uint16_t z = 0; - fread(&z, sizeof(z), 1, stdin); + fread(&z, sizeof(z), 1, file); switch (z) { |