diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-08-08 11:56:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-08-08 14:06:39 +0000 |
| commit | 7d6784d60023abc670559bbb8c7eda32f6aed5aa (patch) | |
| tree | 60fbd64a7f1ea6ad6dd1fe0e0bde7bd17801331f /prog/minimization.go | |
| parent | ef148a2da4b0d19aa9b105fa713a374c9438080c (diff) | |
prog: don't minimize file names for corpus
We have too many corpus minimization executions and for corpus we are only
interested in reducing total number of args that will be considered for mutation.
So don't minimize file names.
Diffstat (limited to 'prog/minimization.go')
| -rw-r--r-- | prog/minimization.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/prog/minimization.go b/prog/minimization.go index 4d943995d..8298ec812 100644 --- a/prog/minimization.go +++ b/prog/minimization.go @@ -399,6 +399,9 @@ func (typ *BufferType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool return true } case BufferFilename: + if ctx.mode == MinimizeCorpus { + return false + } // Try to undo target.SpecialFileLenghts mutation // and reduce file name length. if !typ.Varlen() { |
