diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-04-15 15:15:13 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-04-15 15:55:41 +0000 |
| commit | 2197b25c207a81e893d3ac531c1bf215d8ee442d (patch) | |
| tree | 4ed23be09178bf47e37fa7942445a2106d81b3ea /syz-manager | |
| parent | bb6cd4d997e87dfb38beef17406efd58174424b3 (diff) | |
pkg/manager: propagate context to the bug reproduction
If the context is cancelled, we need to make sure that the reproduction
process is aborted as well.
Diffstat (limited to 'syz-manager')
| -rw-r--r-- | syz-manager/manager.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go index f76d0ad8d..a8189e62f 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -505,8 +505,8 @@ func reportReproError(err error) { log.Errorf("repro failed: %v", err) } -func (mgr *Manager) RunRepro(crash *manager.Crash) *manager.ReproResult { - res, stats, err := repro.Run(context.Background(), crash.Output, repro.Environment{ +func (mgr *Manager) RunRepro(ctx context.Context, crash *manager.Crash) *manager.ReproResult { + res, stats, err := repro.Run(ctx, crash.Output, repro.Environment{ Config: mgr.cfg, Features: mgr.enabledFeatures, Reporter: mgr.reporter, |
