git: 8e7cdfe45697 - stable/13 - auxv: make AT_BSDFLAGS unsigned
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Nov 2023 21:58:43 UTC
The branch stable/13 has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=8e7cdfe45697b1cc829af09d59ca0ccbac32170b
commit 8e7cdfe45697b1cc829af09d59ca0ccbac32170b
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-10-26 17:38:35 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-11-13 21:53:19 +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
(cherry picked from commit 326bf5089ca788d5ff1951eed7a9067281a2b65e)
---
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 6ab16e6cfb0c..c23d729f49b2 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1439,7 +1439,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);