1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/bin
Jilles Tjoelker 7b9104c0a9 sh: Correctly handle positional parameters beyond INT_MAX on 64-bit systems.
Currently, there can be no more than INT_MAX positional parameters. Make
sure to treat all higher ones as unset to avoid incorrect results and
crashes.

On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and
sign-extends them.

On 32-bit systems, the call to atoi() returned INT_MAX for too high values
and there is not enough address space for so many positional parameters, so
there was no issue.
2014-07-12 21:54:11 +00:00
..
cat
chflags
chio use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
chmod
cp
csh Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
date Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
dd Incorporate feedback from bde and jilles regarding r265472 to dd(1). 2014-05-08 19:10:04 +00:00
df
domainname
echo
ed When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS and 2014-06-06 04:09:07 +00:00
expr
freebsd-version use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
getfacl
hostname
kenv
kill sh: Allow kill %job on jobs started without job control. 2014-03-15 14:58:48 +00:00
ln
ls Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
mkdir
mv Check if fchflags() is needed by fstat'ing before and check 2014-07-01 22:46:39 +00:00
pax Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
pkill use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
ps Add support for inspecting process flags set in p_flag2. 2014-06-06 22:52:11 +00:00
pwait
pwd
rcp
realpath
rm rm -rf can fail sometimes with an error from fts_read. Make it honor 2014-07-07 23:21:20 +00:00
rmail In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
rmdir
setfacl use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
sh sh: Correctly handle positional parameters beyond INT_MAX on 64-bit systems. 2014-07-12 21:54:11 +00:00
sleep
stty
sync
test Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
tests
uuidgen
Makefile Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
Makefile.inc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00