git: 326bf5089ca7 - main - auxv: make AT_BSDFLAGS unsigned
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Oct 2023 17:40:14 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=326bf5089ca788d5ff1951eed7a9067281a2b65e commit 326bf5089ca788d5ff1951eed7a9067281a2b65e Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2023-10-26 17:38:35 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2023-10-26 17:40:08 +0000 auxv: make AT_BSDFLAGS unsigned AT_BSDFLAGS shouldn't be sign extended on 64-bit systems so use a uint32_t instead of an int. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D42365 --- sys/kern/imgact_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 4ebd08082545..dfa874e307e5 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -1434,7 +1434,8 @@ __elfN(freebsd_copyout_auxargs)(struct image_params *imgp, uintptr_t base) Elf_Auxinfo *argarray, *pos; struct vmspace *vmspace; rlim_t stacksz; - int error, bsdflags, oc; + int error, oc; + uint32_t bsdflags; argarray = pos = malloc(AT_COUNT * sizeof(*pos), M_TEMP, M_WAITOK | M_ZERO);