mirror of git://sourceware.org/git/glibc.git
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 | ||
| Depend | ||
| Makefile | ||
| Versions | ||
| a64l.c | ||
| abort.c | ||
| abs.c | ||
| add_n.c | ||
| addmul_1.c | ||
| alloca.h | ||
| atexit.c | ||
| atof.c | ||
| atoi.c | ||
| atol.c | ||
| atoll.c | ||
| bsearch.c | ||
| bug-strtod.c | ||
| bug-strtod2.c | ||
| canonicalize.c | ||
| cmp.c | ||
| cxa_atexit.c | ||
| cxa_finalize.c | ||
| dbl2mpn.c | ||
| div.c | ||
| divmod_1.c | ||
| divrem.c | ||
| drand48-iter.c | ||
| drand48.c | ||
| drand48_r.c | ||
| erand48.c | ||
| erand48_r.c | ||
| errno.h | ||
| exit.c | ||
| exit.h | ||
| fmtmsg.c | ||
| fmtmsg.h | ||
| fpioconst.c | ||
| fpioconst.h | ||
| getcontext.c | ||
| getenv.c | ||
| getsubopt.c | ||
| gmp-impl.h | ||
| gmp.h | ||
| grouping.c | ||
| grouping.h | ||
| groupingwc.c | ||
| inlines.c | ||
| isomac.c | ||
| jrand48.c | ||
| jrand48_r.c | ||
| l64a.c | ||
| labs.c | ||
| lcong48.c | ||
| lcong48_r.c | ||
| ldbl2mpn.c | ||
| ldiv.c | ||
| llabs.c | ||
| lldiv.c | ||
| longlong.h | ||
| lrand48.c | ||
| lrand48_r.c | ||
| lshift.c | ||
| makecontext.c | ||
| mblen.c | ||
| mbstowcs.c | ||
| mbtowc.c | ||
| mod_1.c | ||
| monetary.h | ||
| mp_clz_tab.c | ||
| mpn2dbl.c | ||
| mpn2flt.c | ||
| mpn2ldbl.c | ||
| mrand48.c | ||
| mrand48_r.c | ||
| msort.c | ||
| mul.c | ||
| mul_1.c | ||
| mul_n.c | ||
| nrand48.c | ||
| nrand48_r.c | ||
| old_atexit.c | ||
| on_exit.c | ||
| putenv.c | ||
| qsort.c | ||
| rand.c | ||
| rand_r.c | ||
| random.c | ||
| random_r.c | ||
| rpmatch.c | ||
| rshift.c | ||
| secure-getenv.c | ||
| seed48.c | ||
| seed48_r.c | ||
| setcontext.c | ||
| setenv.c | ||
| srand48.c | ||
| srand48_r.c | ||
| stdlib.h | ||
| strfmon.c | ||
| strfmon_l.c | ||
| strtod.c | ||
| strtod_l.c | ||
| strtof.c | ||
| strtof_l.c | ||
| strtoimax.c | ||
| strtol.c | ||
| strtol_l.c | ||
| strtold.c | ||
| strtold_l.c | ||
| strtoll.c | ||
| strtoll_l.c | ||
| strtoul.c | ||
| strtoul_l.c | ||
| strtoull.c | ||
| strtoull_l.c | ||
| strtoumax.c | ||
| sub_n.c | ||
| submul_1.c | ||
| swapcontext.c | ||
| system.c | ||
| test-a64l.c | ||
| test-canon.c | ||
| test-canon2.c | ||
| testdiv.c | ||
| testdiv.input | ||
| testmb.c | ||
| testmb2.c | ||
| testrand.c | ||
| testsort.c | ||
| tst-atof1.c | ||
| tst-atof2.c | ||
| tst-bsearch.c | ||
| tst-environ.c | ||
| tst-fmtmsg.c | ||
| tst-fmtmsg.sh | ||
| tst-limits.c | ||
| tst-makecontext.c | ||
| tst-putenv.c | ||
| tst-putenvmod.c | ||
| tst-qsort.c | ||
| tst-rand48-2.c | ||
| tst-rand48.c | ||
| tst-random.c | ||
| tst-random2.c | ||
| tst-setcontext.c | ||
| tst-strtod.c | ||
| tst-strtod2.c | ||
| tst-strtod3.c | ||
| tst-strtod4.c | ||
| tst-strtod5.c | ||
| tst-strtol.c | ||
| tst-strtoll.c | ||
| tst-system.c | ||
| tst-xpg-basename.c | ||
| ucontext.h | ||
| udiv_qrnnd.c | ||
| wcstoimax.c | ||
| wcstombs.c | ||
| wcstoumax.c | ||
| wctomb.c | ||
| xpg_basename.c | ||