Lines Matching refs:to

28 // really defined to replace libc functions.
75 // FIXME: ask frontend whether we need to return failure.
149 #define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, to, from, size) \
152 ASAN_MEMMOVE_IMPL(ctx, to, from, size); \
155 #define COMMON_INTERCEPTOR_MEMCPY_IMPL(ctx, to, from, size) \
158 ASAN_MEMCPY_IMPL(ctx, to, from, size); \
225 // the linked list it's stored in doesn't even hold valid pointers to the
240 // the |arg| pointer. This may cause LSan to report a leak if leak checking
258 // Align to page size.
291 // swapcontext technically does not return, but program may swap context to
293 // We need to clear shadow for ucp once again, as it may be in arbitrary
379 // For both strcat() and strncat() we need to check the validity of |to|
381 INTERCEPTOR(char *, strcat, char *to, const char *from) {
388 uptr to_length = REAL(strlen)(to);
389 ASAN_READ_STRING_OF_LEN(ctx, to, to_length, to_length);
390 ASAN_WRITE_RANGE(ctx, to + to_length, from_length + 1);
392 // with the resulting string starting at |to|, which has a length of
395 CHECK_RANGES_OVERLAP("strcat", to, from_length + to_length + 1, from,
399 return REAL(strcat)(to, from);
402 INTERCEPTOR(char*, strncat, char *to, const char *from, uptr size) {
410 uptr to_length = REAL(strlen)(to);
411 ASAN_READ_STRING_OF_LEN(ctx, to, to_length, to_length);
412 ASAN_WRITE_RANGE(ctx, to + to_length, from_length + 1);
414 CHECK_RANGES_OVERLAP("strncat", to, to_length + copy_length + 1,
418 return REAL(strncat)(to, from, size);
421 INTERCEPTOR(char *, strcpy, char *to, const char *from) {
426 return REAL(strcpy)(to, from);
431 return REAL(strcpy)(to, from);
436 CHECK_RANGES_OVERLAP("strcpy", to, from_size, from, from_size);
438 ASAN_WRITE_RANGE(ctx, to, from_size);
440 return REAL(strcpy)(to, from);
475 INTERCEPTOR(char*, strncpy, char *to, const char *from, uptr size) {
481 CHECK_RANGES_OVERLAP("strncpy", to, from_size, from, from_size);
483 ASAN_WRITE_RANGE(ctx, to, size);
485 return REAL(strncpy)(to, from, size);
513 // strtol(nptr, 0, 10), i.e. it sets errno to ERANGE if the
615 // REAL(pthread_atfork) cannot be called due to symbol indirections at least