mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
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 | ||
.cvsignore | ||
btowc.c | ||
Depend | ||
Makefile | ||
mbrlen.c | ||
mbrtowc.c | ||
mbsinit.c | ||
mbsnrtowcs.c | ||
mbsrtowcs_l.c | ||
mbsrtowcs.c | ||
tst-btowc.c | ||
tst-mbrtowc.c | ||
tst-mbsrtowcs.c | ||
tst-wchar-h.c | ||
tst-wcpncpy.c | ||
tst-wcrtomb.c | ||
tst-wcsnlen.c | ||
tst-wcstof.c | ||
Versions | ||
wchar.h | ||
wcpcpy.c | ||
wcpncpy.c | ||
wcrtomb.c | ||
wcscasecmp_l.c | ||
wcscasecmp.c | ||
wcscat.c | ||
wcschr.c | ||
wcschrnul.c | ||
wcscmp.c | ||
wcscoll_l.c | ||
wcscoll.c | ||
wcscpy.c | ||
wcscspn.c | ||
wcsdup.c | ||
wcslen.c | ||
wcsmbs-tst1.c | ||
wcsmbsload.c | ||
wcsmbsload.h | ||
wcsncase_l.c | ||
wcsncase.c | ||
wcsncat.c | ||
wcsncmp.c | ||
wcsncpy.c | ||
wcsnlen.c | ||
wcsnrtombs.c | ||
wcspbrk.c | ||
wcsrchr.c | ||
wcsrtombs.c | ||
wcsspn.c | ||
wcsstr.c | ||
wcstod_l.c | ||
wcstod.c | ||
wcstof_l.c | ||
wcstof.c | ||
wcstok.c | ||
wcstold_l.c | ||
wcstold.c | ||
wcswidth.c | ||
wcsxfrm_l.c | ||
wcsxfrm.c | ||
wctob.c | ||
wcwidth.c | ||
wcwidth.h | ||
wmemchr.c | ||
wmemcmp.c | ||
wmemcpy.c | ||
wmemmove.c | ||
wmempcpy.c | ||
wmemset.c |