winafl deletes previous data when resuming incorrectly closed session
After days of fuzzing i finally found a BEX in unrar. But AFL didn't seem to catch it and just hung. Long story short, forgot to make a dump and resumed AFL. AFL deleted /queue/* and started looking for the /_resume. Which wasn't there because the last session closed forcefully. By then everything, including the last few permutations that lead to the access violation seem to be lost forever. Starting again, hoping to rediscover them....
Output:
[] Setting up output directories... [+] Output directory exists, will attempt session resume. [] Deleting old session data... [+] Output dir cleanup successful. [*] Scanning '../../unrar/o_resume'...
[-] The input directory does not seem to be valid - try again. 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.
[-] SYSTEM ERROR : Unable to open '../../unrar/o_resume' Stop location : read_testcases(), ..\afl-fuzz.c:1367 OS message : No such file or directory
PS: still in love with your code but as you can imagine this is frustrating as hell
closing, moved into https://github.com/ivanfratric/winafl/issues/24