generate-binary-corpus.sh 457 B

123456789101112131415
  1. #/usr/bin/env bash
  2. : '
  3. Copies all ZK binary files (.zk.bin) from the main repository into a destination folder
  4. in the fuzzing directory. This allows the compiled example binaries to be used as
  5. test inputs for the fuzzer. This should in turn allow for more efficient fuzzing.
  6. '
  7. set -e
  8. # Run from inside fuzz/honggfuzz directory
  9. CWD=$(pwd)
  10. DST=$CWD/hfuzz_workspace/zkbinary-decode/input/
  11. cd ..
  12. mkdir -p $DST
  13. find -name "*.zk.bin" -exec cp {} $DST \;
  14. cd $CWD