awslabs / snapchange

Lightweight fuzzing of a memory snapshot using KVM
Apache License 2.0
440 stars 27 forks source link

Consolidated functionality to write coverage to disk into stats module. #32

Closed f0rki closed 11 months ago

f0rki commented 11 months ago

Instead of re-implementing writing coverage in lcov, lighthouse, raw in every command, create utility functions in crate::stats that can be used to do that. Updated the coverage command to remove duplicated code:

  1. it uses fuzzvm.gather_feedback to obtain coverage
  2. it uses the crate::stats utility functions