mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 19:30:10 +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. |
||
---|---|---|
.. | ||
bits | ||
sys | ||
.cvsignore | ||
acct.c | ||
ar.h | ||
brk.c | ||
chflags.c | ||
chroot.c | ||
daemon.c | ||
dirname.c | ||
efgcvt_r.c | ||
efgcvt.c | ||
err.c | ||
err.h | ||
error.c | ||
error.h | ||
fchflags.c | ||
fdatasync.c | ||
fgetxattr.c | ||
flistxattr.c | ||
fremovexattr.c | ||
fsetxattr.c | ||
fstab.c | ||
fstab.h | ||
fsync.c | ||
ftruncate64.c | ||
ftruncate.c | ||
futimes.c | ||
futimesat.c | ||
getclktck.c | ||
getdomain.c | ||
getdtsz.c | ||
gethostid.c | ||
gethostname.c | ||
getloadavg.c | ||
getpagesize.c | ||
getpass.c | ||
getsysstats.c | ||
getttyent.c | ||
getusershell.c | ||
getxattr.c | ||
gtty.c | ||
hsearch_r.c | ||
hsearch.c | ||
init-misc.c | ||
insremque.c | ||
ioctl.c | ||
lgetxattr.c | ||
libgen.h | ||
listxattr.c | ||
llistxattr.c | ||
lremovexattr.c | ||
lsearch.c | ||
lseek.c | ||
lsetxattr.c | ||
lutimes.c | ||
madvise.c | ||
Makefile | ||
mincore.c | ||
mkdtemp.c | ||
mkostemp64.c | ||
mkostemp.c | ||
mkstemp64.c | ||
mkstemp.c | ||
mktemp.c | ||
mlock.c | ||
mlockall.c | ||
mmap64.c | ||
mmap.c | ||
mntent_r.c | ||
mntent.c | ||
mntent.h | ||
mprotect.c | ||
msync.c | ||
munlock.c | ||
munlockall.c | ||
munmap.c | ||
pselect.c | ||
ptrace.c | ||
qefgcvt_r.c | ||
qefgcvt.c | ||
readv.c | ||
reboot.c | ||
regexp.c | ||
regexp.h | ||
remap_file_pages.c | ||
removexattr.c | ||
revoke.c | ||
sbrk.c | ||
search.h | ||
select.c | ||
setdomain.c | ||
setegid.c | ||
seteuid.c | ||
sethostid.c | ||
sethostname.c | ||
setregid.c | ||
setreuid.c | ||
setxattr.c | ||
sgtty.h | ||
sstk.c | ||
stab.h | ||
stty.c | ||
swapoff.c | ||
swapon.c | ||
sync.c | ||
syscall.c | ||
syscall.h | ||
sysexits.h | ||
syslog.c | ||
syslog.h | ||
truncate64.c | ||
truncate.c | ||
tsearch.c | ||
tst-dirname.c | ||
tst-efgcvt.c | ||
tst-error1.c | ||
tst-fdset.c | ||
tst-hsearch.c | ||
tst-insremque.c | ||
tst-mntent2.c | ||
tst-mntent.c | ||
tst-pselect.c | ||
tst-tsearch.c | ||
ttyent.h | ||
ttyslot.c | ||
ualarm.c | ||
usleep.c | ||
ustat.c | ||
ustat.h | ||
utimes.c | ||
Versions | ||
vhangup.c | ||
writev.c |