LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

When locking is disabled, CachedOnDiskCorpus will fail if a file already exists for a testcase

Open s1341 opened this issue 1 year ago • 0 comments

When the locking functionality is disabled, CachedOnDiskCorpus just uses the input hash as the testcase name. If the file already exists though, the write_file_atomic will fail killing the fuzzer.

This shouldn't happen. If the file already exists, we should simply not write it. If you are worried about hash collisions, don't disable the locking functionality.

s1341 avatar Apr 25 '24 07:04 s1341