googleprojectzero / winafl

A fork of AFL for fuzzing Windows binaries
Apache License 2.0
2.36k stars 533 forks source link

Fix error when writing trimmed test case #346

Closed sgabe closed 2 years ago

sgabe commented 3 years ago

This PR attempts to fix an error due to unlink failing when updating a test case after trimming by falling back to truncating the file. AFL++ follows a similar approach using an additional -N flag added by AFLplusplus/AFLplusplus@f8bc9b54dabc759e9ad1eb82e5ee36af3bb4e1a6.

ifratric commented 2 years ago

Thanks!