mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
2e193b6014
A line longer than 2G might overflow the size_t containing the buffer length on 32-bit platform. Fix is to use reallocarray with second parameter twice the size of the element to double the buffer size, since it will error out if there was an overflow. |
||
---|---|---|
.. | ||
.gitignore | ||
basename.c | ||
cat.c | ||
chkblayout.1 | ||
chkblayout.c | ||
chmod.c | ||
chown.c | ||
chroot.8 | ||
chroot.c | ||
chvideomode.1 | ||
chvideomode.c | ||
clear.c | ||
colormake.c | ||
column.c | ||
command-not-found.c | ||
cp.c | ||
date.c | ||
df.c | ||
dirname.c | ||
du.c | ||
echo.c | ||
env.c | ||
expr.c | ||
false.c | ||
find.c | ||
head.c | ||
help.c | ||
id.c | ||
kernelinfo.1 | ||
kernelinfo.c | ||
kill.c | ||
ln.c | ||
logname.1 | ||
logname.c | ||
ls.c | ||
Makefile | ||
memstat.1 | ||
memstat.c | ||
mkdir.c | ||
mktemp.c | ||
mv.c | ||
nl.c | ||
pager.1 | ||
pager.c | ||
passwd.1 | ||
passwd.c | ||
ps.c | ||
pstree.c | ||
pwd.c | ||
readlink.1 | ||
readlink.c | ||
realpath.c | ||
rm.c | ||
rmdir.c | ||
sleep.c | ||
sort.1 | ||
sort.c | ||
stat.c | ||
stty.c | ||
tail.c | ||
tee.c | ||
time.c | ||
touch.c | ||
tr.c | ||
true.c | ||
tty.c | ||
type.c | ||
uname.1 | ||
uname.c | ||
uniq.c | ||
unmount.8 | ||
unmount.c | ||
uptime.c | ||
wc.c | ||
which.c | ||
xinstall.c | ||
yes.c |