git: 5011330da72f - Cast sv_stackgap argument
Konstantin Belousov
kib at FreeBSD.org
Sat Dec 26 13:18:50 UTC 2020
The branch stable/12 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5011330da72f1bc35fac52ec02c0ef98eae3a846
commit 5011330da72f1bc35fac52ec02c0ef98eae3a846
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2020-12-26 00:16:29 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2020-12-26 13:18:34 +0000
Cast sv_stackgap argument
to minimally intrusively handle difference between 12 and HEAD.
On all supported architectures representation of longs and pointers
is same.
Reported by: bdragon
---
sys/kern/kern_exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 812d5e827093..64c9e84db07c 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1505,7 +1505,7 @@ exec_stackgap(struct image_params *imgp, uintptr_t *dp)
NT_FREEBSD_FCTL_ASG_DISABLE)) != 0 ||
(imgp->map_flags & MAP_ASLR) == 0)
return;
- imgp->sysent->sv_stackgap(imgp, dp);
+ imgp->sysent->sv_stackgap(imgp, (u_long *)dp);
}
/*
More information about the dev-commits-src-all
mailing list