diff options
Diffstat (limited to 'prog/encodingexec.go')
| -rw-r--r-- | prog/encodingexec.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prog/encodingexec.go b/prog/encodingexec.go index 3b0d4c28c..3b68f6c98 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -8,6 +8,8 @@ package prog import ( "fmt" + + "github.com/google/syzkaller/sys" ) const ( @@ -57,7 +59,7 @@ func (p *Prog) SerializeForExec() []byte { } return } - if pad, _ := arg1.IsPad(); pad { + if sys.IsPad(arg1.Type) { return } if arg1.Kind == ArgData && len(arg1.Data) == 0 { |
