diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-05-16 12:56:43 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-16 15:38:27 +0000 |
| commit | 19e202fa8a3722f5c90ed5847edb5aeabdd5f38f (patch) | |
| tree | a528875b3c3c531b43d5a184f83ec1a04c213914 /pkg/ipc | |
| parent | e072baa2563542356ae03ad6f2057ad143979f18 (diff) | |
pkg/fuzzer: manipulate ipc.ExecOpts
There's no need in duplicating the signal, coverage, hints flags.
Diffstat (limited to 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index d87cb8b0e..d6bae8af1 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -69,6 +69,13 @@ type ExecOpts struct { SandboxArg int } +func (eo ExecOpts) MergeFlags(diff ExecOpts) ExecOpts { + ret := eo + ret.ExecFlags |= diff.ExecFlags + ret.EnvFlags |= diff.EnvFlags + return ret +} + // Config is the configuration for Env. type Config struct { // Path to executor binary. |
