Lines Matching refs:ctx

48 #define ASAN_READ_STRING_OF_LEN(ctx, s, len, n)                 \  argument
49 ASAN_READ_RANGE((ctx), (s), \
52 # define ASAN_READ_STRING(ctx, s, n) \ argument
53 ASAN_READ_STRING_OF_LEN((ctx), (s), internal_strlen(s), (n))
87 #define ASAN_INTERCEPTOR_ENTER(ctx, func) \ in DECLARE_REAL_AND_INTERCEPTOR() argument
89 ctx = (void *)&_ctx; \
90 (void) ctx; \
97 #define COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ptr, size) \ argument
98 ASAN_WRITE_RANGE(ctx, ptr, size)
99 #define COMMON_INTERCEPTOR_READ_RANGE(ctx, ptr, size) \ argument
100 ASAN_READ_RANGE(ctx, ptr, size)
101 #define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \ argument
102 ASAN_INTERCEPTOR_ENTER(ctx, func); \
110 #define COMMON_INTERCEPTOR_DIR_ACQUIRE(ctx, path) \ argument
113 #define COMMON_INTERCEPTOR_FD_ACQUIRE(ctx, fd) \ argument
116 #define COMMON_INTERCEPTOR_FD_RELEASE(ctx, fd) \ argument
119 #define COMMON_INTERCEPTOR_FD_SOCKET_ACCEPT(ctx, fd, newfd) \ argument
122 #define COMMON_INTERCEPTOR_SET_THREAD_NAME(ctx, name) SetThreadName(name) argument
127 #define COMMON_INTERCEPTOR_SET_PTHREAD_NAME(ctx, thread, name) \ argument
140 # define COMMON_INTERCEPTOR_ON_EXIT(ctx) OnExit() argument
152 #define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, to, from, size) \ argument
154 ASAN_INTERCEPTOR_ENTER(ctx, memmove); \
155 ASAN_MEMMOVE_IMPL(ctx, to, from, size); \
158 #define COMMON_INTERCEPTOR_MEMCPY_IMPL(ctx, to, from, size) \ argument
160 ASAN_INTERCEPTOR_ENTER(ctx, memcpy); \
161 ASAN_MEMCPY_IMPL(ctx, to, from, size); \
164 #define COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, block, c, size) \ argument
166 ASAN_INTERCEPTOR_ENTER(ctx, memset); \
167 ASAN_MEMSET_IMPL(ctx, block, c, size); \
384 void *ctx; in DEFINE_REAL() local
385 ASAN_INTERCEPTOR_ENTER(ctx, strcat); in DEFINE_REAL()
389 ASAN_READ_RANGE(ctx, from, from_length + 1); in DEFINE_REAL()
391 ASAN_READ_STRING_OF_LEN(ctx, to, to_length, to_length); in DEFINE_REAL()
392 ASAN_WRITE_RANGE(ctx, to + to_length, from_length + 1); in DEFINE_REAL()
405 void *ctx; in INTERCEPTOR() local
406 ASAN_INTERCEPTOR_ENTER(ctx, strncat); in INTERCEPTOR()
411 ASAN_READ_RANGE(ctx, from, copy_length); in INTERCEPTOR()
413 ASAN_READ_STRING_OF_LEN(ctx, to, to_length, to_length); in INTERCEPTOR()
414 ASAN_WRITE_RANGE(ctx, to + to_length, from_length + 1); in INTERCEPTOR()
424 void *ctx; in INTERCEPTOR() local
425 ASAN_INTERCEPTOR_ENTER(ctx, strcpy); in INTERCEPTOR()
439 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
440 ASAN_WRITE_RANGE(ctx, to, from_size); in INTERCEPTOR()
446 void *ctx; in INTERCEPTOR() local
447 ASAN_INTERCEPTOR_ENTER(ctx, strdup); in INTERCEPTOR()
452 ASAN_READ_RANGE(ctx, s, length + 1); in INTERCEPTOR()
462 void *ctx; in INTERCEPTOR() local
463 ASAN_INTERCEPTOR_ENTER(ctx, strdup); in INTERCEPTOR()
468 ASAN_READ_RANGE(ctx, s, length + 1); in INTERCEPTOR()
478 void *ctx; in INTERCEPTOR() local
479 ASAN_INTERCEPTOR_ENTER(ctx, strncpy); in INTERCEPTOR()
484 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
485 ASAN_WRITE_RANGE(ctx, to, size); in INTERCEPTOR()
491 void *ctx; in INTERCEPTOR() local
492 ASAN_INTERCEPTOR_ENTER(ctx, strtol); in INTERCEPTOR()
499 StrtolFixAndCheck(ctx, nptr, endptr, real_endptr, base); in INTERCEPTOR()
504 void *ctx; in INTERCEPTOR() local
505 ASAN_INTERCEPTOR_ENTER(ctx, atoi); in INTERCEPTOR()
520 ASAN_READ_STRING(ctx, nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()
525 void *ctx; in INTERCEPTOR() local
526 ASAN_INTERCEPTOR_ENTER(ctx, atol); in INTERCEPTOR()
537 ASAN_READ_STRING(ctx, nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()
543 void *ctx; in INTERCEPTOR() local
544 ASAN_INTERCEPTOR_ENTER(ctx, strtoll); in INTERCEPTOR()
551 StrtolFixAndCheck(ctx, nptr, endptr, real_endptr, base); in INTERCEPTOR()
556 void *ctx; in INTERCEPTOR() local
557 ASAN_INTERCEPTOR_ENTER(ctx, atoll); in INTERCEPTOR()
565 ASAN_READ_STRING(ctx, nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()