From 19e202fa8a3722f5c90ed5847edb5aeabdd5f38f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 16 May 2024 12:56:43 +0200 Subject: pkg/fuzzer: manipulate ipc.ExecOpts There's no need in duplicating the signal, coverage, hints flags. --- pkg/ipc/ipc.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/ipc') 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. -- cgit mrf-deployment