1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/utils
Juhani Krekelä 2e193b6014 Fix possible overflow when resizing buffers and remove unncessary casts.
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.
2021-11-02 02:11:18 +02:00
..
.gitignore Add nl(1). 2021-04-21 22:30:21 +02:00
basename.c
cat.c Fix reading directories not failing with EISDIR. 2021-07-28 22:21:41 +02:00
chkblayout.1
chkblayout.c
chmod.c Modernize chmod(1). 2020-10-18 00:31:06 +02:00
chown.c Add chown(1). 2020-10-18 00:31:06 +02:00
chroot.8
chroot.c
chvideomode.1
chvideomode.c
clear.c
colormake.c
column.c
command-not-found.c Make command-not-found(1) data-driven. 2021-10-06 23:37:08 +03:00
cp.c Add install(1) -d support. 2017-12-04 23:56:47 +01:00
date.c Add format support to date(1). 2021-04-06 23:22:22 +02:00
df.c Fix code relying on <stdio.h> including <stdarg.h>. 2018-08-06 23:59:34 +02:00
dirname.c
du.c
echo.c
env.c
expr.c
false.c
find.c Rewrite find(1). 2021-05-29 01:04:53 +02:00
head.c
help.c
id.c
kernelinfo.1
kernelinfo.c
kill.c
ln.c Add -h option to ln(1). 2020-04-13 15:00:25 +02:00
logname.1
logname.c Fix logname(1) not reseting errno before logname(3). 2017-07-02 22:09:53 +02:00
ls.c Fix ls(1) not checking stat_record()'s error correctly. 2018-08-06 23:59:34 +02:00
Makefile Mark install(1) dependant on utils/cp.c and head(1) on utils/tail.c 2021-07-29 00:40:49 +03:00
memstat.1
memstat.c
mkdir.c
mktemp.c
mv.c
nl.c Add nl(1). 2021-04-21 22:30:21 +02:00
pager.1 Add more keybinds for scrolling in pager(1) 2021-05-04 22:14:47 +00:00
pager.c Fix possible overflow when resizing buffers and remove unncessary casts. 2021-11-02 02:11:18 +02:00
passwd.1
passwd.c
ps.c
pstree.c Fix failed fix to pstree(1) vertical line drawing character. 2017-08-20 12:44:34 +02:00
pwd.c
readlink.1
readlink.c
realpath.c
rm.c
rmdir.c
sleep.c
sort.1 Fix typos in sort(1). 2018-04-15 18:06:49 +02:00
sort.c Add -bdfgikhMnt options to sort(1). 2021-06-13 12:51:18 +02:00
stat.c
stty.c Add stty(1). 2020-11-25 20:47:19 +01:00
tail.c Fix indentation in switch-statement in utils/tail.c. 2021-10-31 00:46:13 +03:00
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 Fix reading directories not failing with EISDIR. 2021-07-28 22:21:41 +02:00
which.c
xinstall.c
yes.c