aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_windows_amd64.s
diff options
context:
space:
mode:
authorEl Mostafa Idrassi <el.mostafa.idrassi@gmail.com>2021-04-13 20:08:46 +0000
committerAlex Brainman <alex.brainman@gmail.com>2021-04-14 09:46:36 +0000
commitab02cbd29f9b9c76d8f7af0d625ac56fcf8d4e75 (patch)
tree9927b1095d0daeb4e696837c5bf8ddf2cc0e742a /src/runtime/sys_windows_amd64.s
parent58fdac04e4534e53fd9ca7df0455efb4f1ddb82b (diff)
downloadgo-ab02cbd29f9b9c76d8f7af0d625ac56fcf8d4e75.tar.gz
go-ab02cbd29f9b9c76d8f7af0d625ac56fcf8d4e75.zip
runtime: increase maxargs to avoid syscall18 crash when called with more than 16 args
Fixes #45524 Change-Id: Id867f45ea98689b73d5b1b141c19317bc7608b05 GitHub-Last-Rev: e9b09fb557dda291fb6cf27c185063c26832a15b GitHub-Pull-Request: golang/go#45531 Reviewed-on: https://go-review.googlesource.com/c/go/+/309390 Reviewed-by: El Mostafa Idrassi <el.mostafa.idrassi@gmail.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Trust: Alex Brainman <alex.brainman@gmail.com> Trust: Alberto Donizetti <alb.donizetti@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sys_windows_amd64.s')
-rw-r--r--src/runtime/sys_windows_amd64.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_windows_amd64.s b/src/runtime/sys_windows_amd64.s
index f7250c65a8..6896331329 100644
--- a/src/runtime/sys_windows_amd64.s
+++ b/src/runtime/sys_windows_amd64.s
@@ -8,7 +8,7 @@
// maxargs should be divisible by 2, as Windows stack
// must be kept 16-byte aligned on syscall entry.
-#define maxargs 16
+#define maxargs 18
// void runtimeĀ·asmstdcall(void *c);
TEXT runtimeĀ·asmstdcall<ABIInternal>(SB),NOSPLIT|NOFRAME,$0