mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
e604a5e4bb
Add __nonnull((2)) to the setrlimit()/getrlimit() function declaration to avoid null pointer access. ----- v2 According to the suggestions of the Adhemerval Zanella and Zack Weinberg: use __nonnull() to check null pointers in the compilation phase. do not add pointer check code to setrlimit()/getrlimit(). The validity of the "resource" parameter is checked in the syscall. v1 https://public-inbox.org/libc-alpha/20201230114131.47589-1-nixiaoming@huawei.com/ ----- Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> |
||
---|---|---|
.. | ||
bits/types | ||
sys | ||
bug-ulimit1.c | ||
getpriority.c | ||
getrlimit64.c | ||
getrlimit.c | ||
getrusage.c | ||
Makefile | ||
nice.c | ||
setpriority.c | ||
setrlimit64.c | ||
setrlimit.c | ||
tst-getrlimit.c | ||
ulimit.c | ||
ulimit.h | ||
Versions | ||
vlimit.c | ||
vtimes.c |