Home | History | Annotate | Download | only in msan

Lines Matching full:wchar_t

401 INTERCEPTOR(int, mbtowc, wchar_t *dest, const char *src, SIZE_T n) {
404 if (res != -1 && dest) __msan_unpoison(dest, sizeof(wchar_t));
408 INTERCEPTOR(int, mbrtowc, wchar_t *dest, const char *src, SIZE_T n, void *ps) {
411 if (res != (SIZE_T)-1 && dest) __msan_unpoison(dest, sizeof(wchar_t));
415 INTERCEPTOR(SIZE_T, wcslen, const wchar_t *s) {
418 CHECK_UNPOISONED(s, sizeof(wchar_t) * (res + 1));
422 // wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
423 INTERCEPTOR(wchar_t *, wcschr, void *s, wchar_t wc, void *ps) {
425 wchar_t *res = REAL(wcschr)(s, wc, ps);
429 // wchar_t *wcscpy(wchar_t *dest, const wchar_t *src);
430 INTERCEPTOR(wchar_t *, wcscpy, wchar_t *dest, const wchar_t *src) {
432 wchar_t *res = REAL(wcscpy)(dest, src);
433 __msan_copy_poison(dest, src, sizeof(wchar_t) * (REAL(wcslen)(src) + 1));
437 // wchar_t *wmemcpy(wchar_t *dest, const wchar_t *src, SIZE_T n);
438 INTERCEPTOR(wchar_t *, wmemcpy, wchar_t *dest, const wchar_t *src, SIZE_T n) {
440 wchar_t *res = REAL(wmemcpy)(dest, src, n);
441 __msan_copy_poison(dest, src, n * sizeof(wchar_t));
445 INTERCEPTOR(wchar_t *, wmempcpy, wchar_t *dest, const wchar_t *src, SIZE_T n) {
447 wchar_t *res = REAL(wmempcpy)(dest, src, n);
448 __msan_copy_poison(dest, src, n * sizeof(wchar_t));
452 INTERCEPTOR(wchar_t *, wmemset, wchar_t *s, wchar_t c, SIZE_T n) {
455 wchar_t *res = (wchar_t *)fast_memset(s, c, n * sizeof(wchar_t));
456 __msan_unpoison(s, n * sizeof(wchar_t));
460 INTERCEPTOR(wchar_t *, wmemmove, wchar_t *dest, const wchar_t *src, SIZE_T n) {
462 wchar_t *res = REAL(wmemmove)(dest, src, n);
463 __msan_move_poison(dest, src, n * sizeof(wchar_t));
467 INTERCEPTOR(int, wcscmp, const wchar_t *s1, const wchar_t *s2) {
473 INTERCEPTOR(double, wcstod, const wchar_t *nptr, wchar_t **endptr) {