This repository was archived by the owner on Nov 1, 2023. It is now read-only.
File tree 2 files changed +14
-4
lines changed
onefuzz-agent/src/tasks/coverage
script/win64/libfuzzer-coverage
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,13 @@ impl CoverageRecorder {
128
128
. join ( "libfuzzer-coverage" )
129
129
. join ( "DumpCounters.js" ) ;
130
130
131
+ let should_disable_sympath = !self . config . target_env . contains_key ( "_NT_SYMBOL_PATH" ) ;
132
+
131
133
let cdb_cmd = format ! (
132
- ".scriptload {}; !dumpcounters {:?}; q" ,
134
+ ".scriptload {}; !dumpcounters {:?}, {} ; q" ,
133
135
script_path. to_string_lossy( ) ,
134
- output. to_string_lossy( )
136
+ output. to_string_lossy( ) ,
137
+ should_disable_sympath,
135
138
) ;
136
139
137
140
let mut cmd = Command :: new ( "cdb.exe" ) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,14 @@ function processModule(module, results_dir) {
83
83
return true ;
84
84
}
85
85
86
- function dumpCounters ( results_dir , sample_name ) {
86
+ function dumpCounters ( results_dir , should_disable_sympath ) {
87
+ if ( should_disable_sympath == true ) {
88
+ logln ( `disabling sympath` ) ;
89
+ execute ( '.sympath ""' ) ;
90
+ } else {
91
+ logln ( `not disabling sympath` ) ;
92
+ }
93
+
87
94
// Reset to initial break in `ntdll!LdrpDoDebuggerBreak`.
88
95
execute ( ".restart" ) ;
89
96
@@ -95,7 +102,7 @@ function dumpCounters(results_dir, sample_name) {
95
102
96
103
let found = false ;
97
104
host . currentProcess . Modules . All ( function ( module ) {
98
- let result = processModule ( module , results_dir , sample_name ) ;
105
+ let result = processModule ( module , results_dir ) ;
99
106
if ( result ) {
100
107
found = true ;
101
108
}
You can’t perform that action at this time.
0 commit comments