mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
d6cd6bf4de
with __warning__/__error__ attributes. (__warnattr): Define. * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn, __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with __warnattr. (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn, __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases with __warnattr. (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (__gets_alias): Rename to... (__gets_warn): ... this. Add __warnattr. (gets): Call __gets_warn instead of __gets_alias. * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New aliases with __warnattr. (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn, __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn, __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn, __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn, __getdomainname_chk_warn): New aliases with __warnattr. (read, pread, pread64, readlink, readlinkat, getcwd, confstr, getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (__getgroups_chk): Rename argument to __listlen from listlen. (__getwd_alias): Rename to... (__getwd_warn): ... this. Add __warnattr. (getwd): Call __getwd_warn instead of __getwd_alias. * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn, __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn, __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn, __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn, __wcsnrtombs_chk_warn): New aliases with __warnattr. (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether to use __*_chk or not. (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both in comparisons which function should be called and in __*_chk* arguments. Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in __*_chk argument. * debug/tst-chk1.c (do_test): Add a few more tests. |
||
---|---|---|
.. | ||
backtrace-tst.c | ||
backtrace.c | ||
backtracesyms.c | ||
backtracesymsfd.c | ||
catchsegv.sh | ||
chk_fail.c | ||
confstr_chk.c | ||
Depend | ||
execinfo.h | ||
fgets_chk.c | ||
fgets_u_chk.c | ||
fgetws_chk.c | ||
fgetws_u_chk.c | ||
fortify_fail.c | ||
fprintf_chk.c | ||
fread_chk.c | ||
fread_u_chk.c | ||
fwprintf_chk.c | ||
getcwd_chk.c | ||
getdomainname_chk.c | ||
getgroups_chk.c | ||
gethostname_chk.c | ||
getlogin_r_chk.c | ||
gets_chk.c | ||
getwd_chk.c | ||
Makefile | ||
mbsnrtowcs_chk.c | ||
mbsrtowcs_chk.c | ||
mbstowcs_chk.c | ||
memcpy_chk.c | ||
memmove_chk.c | ||
mempcpy_chk.c | ||
memset_chk.c | ||
noophooks.c | ||
pcprofile.c | ||
pcprofiledump.c | ||
pread64_chk.c | ||
pread_chk.c | ||
printf_chk.c | ||
ptsname_r_chk.c | ||
read_chk.c | ||
readlink_chk.c | ||
readlinkat_chk.c | ||
readonly-area.c | ||
realpath_chk.c | ||
recv_chk.c | ||
recvfrom_chk.c | ||
segfault.c | ||
snprintf_chk.c | ||
sprintf_chk.c | ||
stack_chk_fail_local.c | ||
stack_chk_fail.c | ||
stpcpy_chk.c | ||
stpncpy_chk.c | ||
strcat_chk.c | ||
strcpy_chk.c | ||
strncat_chk.c | ||
strncpy_chk.c | ||
swprintf_chk.c | ||
test-stpcpy_chk.c | ||
test-strcpy_chk.c | ||
tst-chk1.c | ||
tst-chk2.c | ||
tst-chk3.c | ||
tst-chk4.cc | ||
tst-chk5.cc | ||
tst-chk6.cc | ||
tst-lfschk1.c | ||
tst-lfschk2.c | ||
tst-lfschk3.c | ||
tst-lfschk4.cc | ||
tst-lfschk5.cc | ||
tst-lfschk6.cc | ||
ttyname_r_chk.c | ||
Versions | ||
vfprintf_chk.c | ||
vfwprintf_chk.c | ||
vprintf_chk.c | ||
vsnprintf_chk.c | ||
vsprintf_chk.c | ||
vswprintf_chk.c | ||
vwprintf_chk.c | ||
warning-nop.c | ||
wcpcpy_chk.c | ||
wcpncpy_chk.c | ||
wcrtomb_chk.c | ||
wcscat_chk.c | ||
wcscpy_chk.c | ||
wcsncat_chk.c | ||
wcsncpy_chk.c | ||
wcsnrtombs_chk.c | ||
wcsrtombs_chk.c | ||
wcstombs_chk.c | ||
wctomb_chk.c | ||
wmemcpy_chk.c | ||
wmemmove_chk.c | ||
wmempcpy_chk.c | ||
wmemset_chk.c | ||
wprintf_chk.c | ||
xtrace.sh |