diff options
Diffstat (limited to 'tools/syz-diff/patch.go')
| -rw-r--r-- | tools/syz-diff/patch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-diff/patch.go b/tools/syz-diff/patch.go index 6bdcc8e1e..98a464ca0 100644 --- a/tools/syz-diff/patch.go +++ b/tools/syz-diff/patch.go @@ -14,12 +14,12 @@ import ( "github.com/google/syzkaller/pkg/vcs" ) -func extractModifiedFiles(cfg *mgrconfig.Config, data []byte) { +func PatchFocusAreas(cfg *mgrconfig.Config, gitPatch []byte) { const maxAffectedByHeader = 50 names := map[string]bool{} includedNames := map[string]bool{} - for _, file := range vcs.ParseGitDiff(data) { + for _, file := range vcs.ParseGitDiff(gitPatch) { names[file] = true if strings.HasSuffix(file, ".h") && cfg.KernelSrc != "" { |
