diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2026-01-08 13:49:39 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2026-01-09 14:28:59 +0000 |
| commit | 96e9343c651cbec29d24b687b6f77a3226a6c1a1 (patch) | |
| tree | 40242f4a72e952eaa25b8c8cd809be743d11a470 /syz-cluster/pkg/triage/git.go | |
| parent | 993a1e9ee26349d7e290ca7de23faeb6781d9001 (diff) | |
syz-cluster: guess base patch by blob hashes from the diff
Before traversing the list of trees, attempt to determine the base
tree/commit by looking at the SHA hashes from the supplied git diffs.
Diffstat (limited to 'syz-cluster/pkg/triage/git.go')
| -rw-r--r-- | syz-cluster/pkg/triage/git.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/syz-cluster/pkg/triage/git.go b/syz-cluster/pkg/triage/git.go index 390bd11b1..58437c913 100644 --- a/syz-cluster/pkg/triage/git.go +++ b/syz-cluster/pkg/triage/git.go @@ -7,6 +7,7 @@ import ( "fmt" "os" + "github.com/google/syzkaller/pkg/debugtracer" "github.com/google/syzkaller/pkg/vcs" "github.com/google/syzkaller/syz-cluster/pkg/api" ) @@ -55,3 +56,7 @@ func (ops *GitTreeOps) ApplySeries(commit string, patches [][]byte) error { } return nil } + +func (ops *GitTreeOps) BaseForDiff(patch []byte, tracer debugtracer.DebugTracer) (*vcs.BaseCommit, error) { + return ops.Git.BaseForDiff(patch, tracer) +} |
