Turbo fails to find input file
Following turbo tutorial worked at one time. Now I am having a mysterious error.
$ turbo-cli fuzz --fuzz-config fuzzer.yaml --app-config yaml-cpp-config.yaml --ver-id $vid1
Turbo returns this error every time:
[+] Found a free CPU core, try binding to #0.
[*] Scanning '/tmp/fuzzer/in'...
[-] Looks like there are no valid test cases in the input directory! The fuzzer
needs one or more test case to start with - ideally, a small file under
1 kB or so. The cases must be stored as regular files directly in the
input directory.
[-] PROGRAM ABORT : No usable test cases in '/tmp/fuzzer/in'
Location : read_testcases(), src/afl-fuzz-init.c:827
Afl returned: 256
Size: 0
Uploaded as input_id = 10
I have configured to use stdin:
turbo-cli input import-raw-file stdin ./ascii-good-input.txt yaml-test.yaml
File yaml-test.yaml:
name: YAML fuzztest
cmdline:
- use-version: true
- -f
files:
- name: stdin
contents: IyBZQU1MIGZpbGUgZm9yIGhlbGl4NjQgImR1IiBiaW5hcnkuCiMgVGhlc2UgYXJlIHRoZSBkZWZhdWx0IHZhbHVlcywgYXNzdW1lZCBmb3IgYW55IGZ1bmN0aW9uIHRoYXQgaXMgbm90CiMgcH
etc.
My driver program uses "-f" to direct it to read from stdin, and standalone testing of the binary confirms that it works properly in this respect.
Questions:
- Why is it looking for test cases in /tmp/fuzzer/in/ in the stdin case?
- Why does it not help when I copy ascii-good-input.txt to /tmp/fuzzer/in/ before running turbo?