Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
run until end of LLVMFuzzerTestOneInput for collecting coverage (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc-msft authored Mar 23, 2021
1 parent 516b1e0 commit 2b61256
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/agent/script/win64/libfuzzer-coverage/DumpCounters.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ function dumpCounters(results_dir, should_disable_sympath) {
// Disable FCE from sanitizers.
execute("sxd av");

// Run to exit break in `ntdll!NtTerminateProcess`.
execute("g");
// Run until `LLVMFuzzerTestOneInput()`.
// This makes us unlikely to have unloaded any modules that the user dynamically loaded,
// and so we will still be able to dump the coverage tables for those modules.
execute("bm *!LLVMFuzzerTestOneInput")
execute("g")

// run until return from this context
execute("pt")

let found = false;
host.currentProcess.Modules.All(function (module) {
Expand Down

0 comments on commit 2b61256

Please sign in to comment.