f9a906e786
sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t). Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine. * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise. * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply len by sizeof (wchar_t). * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise. * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise. Fix type of SRC argument. Pass &SRC rather than SRC to __mbsrtowcs. * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC to __wcsrtombs. * debug/tst-chk1.c: Include assert.h. (do_test): Change enough array from VLA into a fixed size array. Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro instead of print error details. Add several new tests. Kill some unused variable warnings. |
||
---|---|---|
.. | ||
bits | ||
sys | ||
.cvsignore | ||
a64l.c | ||
abs.c | ||
alloca.h | ||
atexit.c | ||
atof.c | ||
atoi.c | ||
atol.c | ||
atoll.c | ||
bsearch.c | ||
bug-strtod.c | ||
canonicalize.c | ||
cxa_atexit.c | ||
cxa_finalize.c | ||
drand48_r.c | ||
drand48-iter.c | ||
drand48.c | ||
erand48_r.c | ||
erand48.c | ||
errno.h | ||
exit.c | ||
exit.h | ||
fmtmsg.c | ||
fmtmsg.h | ||
fpioconst.c | ||
fpioconst.h | ||
gen-mpn-copy | ||
getsubopt.c | ||
gmp-impl.h | ||
gmp.h | ||
grouping.c | ||
grouping.h | ||
groupingwc.c | ||
isomac.c | ||
jrand48_r.c | ||
jrand48.c | ||
l64a.c | ||
lcong48_r.c | ||
lcong48.c | ||
longlong.h | ||
lrand48_r.c | ||
lrand48.c | ||
Makefile | ||
mblen.c | ||
mbstowcs.c | ||
mbtowc.c | ||
monetary.h | ||
mrand48_r.c | ||
mrand48.c | ||
msort.c | ||
nrand48_r.c | ||
nrand48.c | ||
old_atexit.c | ||
on_exit.c | ||
qsort.c | ||
rand_r.c | ||
rand.c | ||
random_r.c | ||
random.c | ||
rpmatch.c | ||
secure-getenv.c | ||
seed48_r.c | ||
seed48.c | ||
srand48_r.c | ||
srand48.c | ||
stdlib.h | ||
strfmon_l.c | ||
strfmon.c | ||
strtod_l.c | ||
strtod.c | ||
strtof_l.c | ||
strtof.c | ||
strtold.c | ||
test-a64l.c | ||
test-canon2.c | ||
test-canon.c | ||
testdiv.c | ||
testdiv.input | ||
testmb2.c | ||
testmb.c | ||
testrand.c | ||
testsort.c | ||
tst-bsearch.c | ||
tst-environ.c | ||
tst-fmtmsg.c | ||
tst-fmtmsg.sh | ||
tst-limits.c | ||
tst-putenv.c | ||
tst-putenvmod.c | ||
tst-qsort.c | ||
tst-rand48.c | ||
tst-random2.c | ||
tst-random.c | ||
tst-setcontext.c | ||
tst-strtod.c | ||
tst-strtol.c | ||
tst-strtoll.c | ||
tst-system.c | ||
tst-xpg-basename.c | ||
ucontext.h | ||
Versions | ||
wcstombs.c | ||
wctomb.c | ||
xpg_basename.c |