diff options
| author | Greg Steuck <greg@nest.cx> | 2022-09-04 08:57:31 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-09-05 10:51:00 +0200 |
| commit | 4b7a93a60c7dd4f6ef7dd11c83ba528bd751cb5f (patch) | |
| tree | cd710e5e81f5c19c6813924b804db68ef2c23747 /pkg | |
| parent | 28811d0ac5274e8b3730fcf2ad0634d723fcd878 (diff) | |
pkg/csource: account for padding arguments in trampolined sycalls
The cast had a wrong signature failing to account for padding.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/csource/csource.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index df35b54b8..8671a57db 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -339,7 +339,7 @@ func (ctx *context) emitCallBody(w *bytes.Buffer, call prog.ExecCall, native boo } else if strings.HasPrefix(callName, "syz_") { fmt.Fprintf(w, "%v(", callName) } else { - args := strings.Repeat(",intptr_t", len(call.Args)) + args := strings.Repeat(",intptr_t", len(call.Args)+call.Meta.MissingArgs) if args != "" { args = args[1:] } |
