1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/libc
Ralph Holmes 5d774cce1d Fix execl(3) sentinel undefined behaviour.
execl(3) and its variants use a sentinel to terminate the variadic
argument list, in the form of a null pointer constant of type pointer to
char. POSIX mandates that NULL is a null pointer constant of type
pointer to void, which is not of an equivalent type to that required by
execl(3) and its variants, resulting in undefined behaviour.

This commit casts all such instances of NULL to pointer to char type.
For consistency, it also adds const-qualification to any such instances
which had already been casted, and were not const-qualified.
2016-09-30 23:36:49 +02:00
..
arpa/inet Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
assert Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
blf Convert libc to C. 2016-03-03 23:02:23 +01:00
c++ Compile libc with -ffreestanding. 2016-05-15 22:43:29 +02:00
ctype Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
dirent Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
dlfcn Make the branding system more neutral. 2016-05-15 22:43:29 +02:00
err Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
errno Clean up errno. 2016-05-15 22:43:29 +02:00
error Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fcntl Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fnmatch Fix shift out of bounds in fnmatch(3). 2016-05-15 19:30:51 +02:00
fsmarshall Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fstab Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
getopt Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
grp Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
include Clean up errno. 2016-05-15 22:43:29 +02:00
init Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
inttypes Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ioleast Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
libgen Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
locale Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
malloc Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
msr Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
netdb Fix use after free in getaddrinfo(3) error case. 2016-08-21 00:04:27 +02:00
netinet/in Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
poll Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
psctl Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
pthread Fix pthread stack alignment. 2016-05-15 19:30:51 +02:00
pwd Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
regex Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
sched Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
scram Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
semaphore Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
signal Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ssp Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
stdio Fix execl(3) sentinel undefined behaviour. 2016-09-30 23:36:49 +02:00
stdio_ext Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
stdlib Fix execl(3) sentinel undefined behaviour. 2016-09-30 23:36:49 +02:00
string Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
sys Remove uname -i and -o options. 2016-05-15 22:43:29 +02:00
syslog Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
termios Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
time Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
timespec Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ubsan Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
unistd Remove getdomainname(2). 2016-05-15 22:43:29 +02:00
utime Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
wchar Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
wctype Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
x64 Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
x86 Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
.gitignore Rename libmaxsi to sortix libc. 2012-12-14 14:13:36 +01:00
Makefile Compile libc with -ffreestanding. 2016-05-15 22:43:29 +02:00