Home | History | Annotate | Download | only in asan

Lines Matching refs:uptr

30 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) {
45 uptr __offset = (uptr)(offset); \
46 uptr __size = (uptr)(size); \
47 uptr __bad = 0; \
61 static inline bool RangesOverlap(const char *offset1, uptr length1,
62 const char *offset2, uptr length2) {
82 static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) {
102 DECLARE_REAL_AND_INTERCEPTOR(void *, malloc, uptr)
163 asanThreadRegistry().CreateThread(*(uptr*)t, detached, current_tid, &args);
190 static void ClearShadowMemoryForContextStack(uptr stack, uptr ssize) {
192 uptr PageSize = GetPageSizeCached();
193 uptr bottom = stack & ~(PageSize - 1);
196 static const uptr kMaxSaneContextStackSize = 1 << 22; // 4 Mb
212 uptr stack, ssize;
265 INTERCEPTOR(int, mlock, const void *addr, uptr len) {
270 INTERCEPTOR(int, munlock, const void *addr, uptr len) {
289 INTERCEPTOR(int, memcmp, const void *a1, const void *a2, uptr size) {
303 uptr i;
317 INTERCEPTOR(void*, memcpy, void *to, const void *from, uptr size) {
339 INTERCEPTOR(void*, memmove, void *to, const void *from, uptr size) {
354 INTERCEPTOR(void*, memset, void *block, int c, uptr size) {
377 uptr bytes_read = (result ? result - str : REAL(strlen)(str)) + 1;
402 uptr from_length = REAL(strlen)(from);
404 uptr to_length = REAL(strlen)(to);
418 INTERCEPTOR(char*, strncat, char *to, const char *from, uptr size) {
421 uptr from_length = MaybeRealStrnlen(from, size);
422 uptr copy_length = Min(size, from_length + 1);
424 uptr to_length = REAL(strlen)(to);
446 uptr from_size = REAL(strlen)(from) + 1;
458 uptr length = REAL(strlen)(s);
469 INTERCEPTOR(uptr, strlen, const char *s) {
477 uptr length = REAL(strlen)(s);
484 uptr size) {
487 uptr from_size = Min(size, MaybeRealStrnlen(from, size) + 1);
496 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) {
498 uptr length = REAL(strnlen)(s, maxlen);
637 void* security, uptr stack_size,
648 asanThreadRegistry().CreateThread(*(uptr*)t, detached, current_tid, &args);