Skip to content

Commit e347022

Browse files
committed
pkg/fuzzer: remove an unnecessary clone
The Clone() we do at the beginning of the handleCall() function is unnecessary and may even confuse the people wo read and modify the code (see #5878). For all the jobs we start below, we anyway do another Clone() of the program. The corpus also does not assume that the programs in it will be modified elsewhere.
1 parent 684b533 commit e347022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fuzzer/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (job *triageJob) handleCall(call int, info *triageCall) {
166166
return
167167
}
168168

169-
p := job.p.Clone()
169+
p := job.p
170170
if job.flags&ProgMinimized == 0 {
171171
p, call = job.minimize(call, info)
172172
if p == nil {

0 commit comments

Comments
 (0)