diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2022-09-11 19:30:39 +0000 |
---|---|---|
committer | Andy Fiddaman <illumos@fiddaman.net> | 2022-09-13 19:40:22 +0000 |
commit | 4e18e297380f99d39327599157792494d044942a (patch) | |
tree | 0548e8cb58c09ef1cb181f2ff96c94ba609f8324 /usr/src/uts/common/os/exec.c | |
parent | f8e9c7b3ba7100b047717589235b6d05ec43646c (diff) | |
download | illumos-joyent-4e18e297380f99d39327599157792494d044942a.tar.gz |
14236 signed math leads getelfshdr astray
14242 programs that lack PT_PHDR are not properly loaded
Portions contributed by: Bryan Cantrill <bryan@joyent.com>
Portions contributed by: Andy Fiddaman <illumos@fiddaman.net>
Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org>
Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts/common/os/exec.c')
-rw-r--r-- | usr/src/uts/common/os/exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/os/exec.c b/usr/src/uts/common/os/exec.c index 37ca15be86..d663f27ca0 100644 --- a/usr/src/uts/common/os/exec.c +++ b/usr/src/uts/common/os/exec.c @@ -26,7 +26,7 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ /* - * Copyright 2017 Joyent, Inc. + * Copyright 2019 Joyent, Inc. * Copyright 2022 Oxide Computer Company */ @@ -146,7 +146,7 @@ exec_common(const char *fname, const char **argp, const char **envp, proc_t *p = ttoproc(curthread); klwp_t *lwp = ttolwp(curthread); struct user *up = PTOU(p); - long execsz; /* temporary count of exec size */ + size_t execsz; /* temporary count of exec size */ int i; int error; char exec_file[MAXCOMLEN+1]; @@ -569,7 +569,7 @@ gexec( struct uarg *args, struct intpdata *idatap, int level, - long *execsz, + size_t *execsz, caddr_t exec_file, struct cred *cred, int brand_action) @@ -1451,7 +1451,7 @@ noexec( struct uarg *args, struct intpdata *idatap, int level, - long *execsz, + size_t *execsz, int setid, caddr_t exec_file, struct cred *cred) |