Home
last modified time | relevance | path

Searched refs:beg (Results 1 – 25 of 65) sorted by relevance

123

/external/compiler-rt/lib/asan/
Dasan_poisoning.cc87 ShadowSegmentEndpoint beg(beg_addr); in __asan_poison_memory_region() local
89 if (beg.chunk == end.chunk) { in __asan_poison_memory_region()
90 CHECK(beg.offset < end.offset); in __asan_poison_memory_region()
91 s8 value = beg.value; in __asan_poison_memory_region()
96 if (beg.offset > 0) { in __asan_poison_memory_region()
97 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region()
99 *beg.chunk = kAsanUserPoisonedMemoryMagic; in __asan_poison_memory_region()
104 CHECK(beg.chunk < end.chunk); in __asan_poison_memory_region()
105 if (beg.offset > 0) { in __asan_poison_memory_region()
107 if (beg.value == 0) { in __asan_poison_memory_region()
[all …]
Dasan_globals.cc39 PoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
44 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY), in PoisonRedZones()
59 (void*)g.beg, g.size, (char*)g.name); in DescribeAddressIfGlobal()
72 (void*)g->beg, g->size, g->size_with_redzone, g->name, in RegisterGlobal()
75 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal()
76 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal()
95 CHECK(AddrIsInMem(g->beg)); in UnregisterGlobal()
96 CHECK(AddrIsAlignedByGranularity(g->beg)); in UnregisterGlobal()
98 PoisonShadow(g->beg, g->size_with_redzone, 0); in UnregisterGlobal()
108 CHECK(AddrIsInMem(g->beg)); in PoisonGlobalAndRedzones()
[all …]
Dasan_report.cc186 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII()
189 if (*(char*)(g.beg + g.size - 1) != 0) return; in PrintGlobalNameIfASCII()
190 Printf(" '%s' is ascii string '%s'\n", g.name, (char*)g.beg); in PrintGlobalNameIfASCII()
196 if (addr <= g.beg - kMinimalDistanceFromAnotherGlobal) return false; in DescribeAddressRelativeToGlobal()
197 if (addr >= g.beg + g.size_with_redzone) return false; in DescribeAddressRelativeToGlobal()
200 if (addr < g.beg) { in DescribeAddressRelativeToGlobal()
201 Printf("%p is located %zd bytes to the left", (void*)addr, g.beg - addr); in DescribeAddressRelativeToGlobal()
202 } else if (addr + size > g.beg + g.size) { in DescribeAddressRelativeToGlobal()
203 if (addr < g.beg + g.size) in DescribeAddressRelativeToGlobal()
204 addr = g.beg + g.size; in DescribeAddressRelativeToGlobal()
[all …]
Dasan_allocator.cc215 uptr beg; member
220 return addr >= beg && addr < end; in InRange()
339 int beg = 0, end = n; in FindPageGroupUnlocked() local
340 while (beg < end) { in FindPageGroupUnlocked()
341 int med = (beg + end) / 2; in FindPageGroupUnlocked()
346 beg = med + 1; in FindPageGroupUnlocked()
352 if (beg >= n) in FindPageGroupUnlocked()
354 PageGroup *g = page_groups_[beg]; in FindPageGroupUnlocked()
384 uptr offset_from_beg = addr - g->beg; in FindChunkByAddrUnlocked()
385 uptr this_chunk_addr = g->beg + in FindChunkByAddrUnlocked()
[all …]
Dasan_interface_internal.h33 uptr beg; // The address of the global. member
86 uptr __asan_region_is_poisoned(uptr beg, uptr size)
Dasan_rtl.cc207 static void ReserveShadowMemoryRange(uptr beg, uptr end) { in ReserveShadowMemoryRange() argument
208 CHECK((beg % GetPageSizeCached()) == 0); in ReserveShadowMemoryRange()
210 uptr size = end - beg + 1; in ReserveShadowMemoryRange()
211 void *res = MmapFixedNoReserve(beg, size); in ReserveShadowMemoryRange()
212 if (res != (void*)beg) { in ReserveShadowMemoryRange()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc38 for (size_t beg = 0; beg < size; beg++) { in TEST() local
39 for (size_t end = beg; end < size; end++) { in TEST()
41 if (beg <= pos && pos < end) in TEST()
42 EXPECT_FALSE(__sanitizer::mem_is_zero(x + beg, end - beg)); in TEST()
44 EXPECT_TRUE(__sanitizer::mem_is_zero(x + beg, end - beg)); in TEST()
/external/smack/src/org/apache/harmony/javax/security/auth/
DPrivateCredentialPermission.java134 int beg = name.indexOf(' '); in initTargetName() local
135 if (beg == -1) { in initTargetName()
138 credentialClass = name.substring(0, beg); in initTargetName()
141 beg++; in initTargetName()
144 for (int i, j = 0; beg < nameLength; beg = j + 2, count++) { in initTargetName()
145 i = name.indexOf(' ', beg); in initTargetName()
158 beg = name.indexOf(' '); in initTargetName()
159 beg++; in initTargetName()
166 for (int index = 0, i, j; index < count; beg = j + 2, index++) { in initTargetName()
167 i = name.indexOf(' ', beg); in initTargetName()
[all …]
/external/v8/src/arm/
Dcpu-arm.cc74 register uint32_t beg asm("a1") = reinterpret_cast<uint32_t>(start); in FlushICache()
83 : "=r" (beg) in FlushICache()
84 : "0" (beg), "r" (end), "r" (flg), "r" (scno)); in FlushICache()
102 : "=r" (beg) in FlushICache()
103 : "0" (beg), "r" (end), "r" (flg), "r" (__ARM_NR_cacheflush) in FlushICache()
/external/srec/portable/src/
DLCHAR.c160 LCHAR *beg, *end; in LCHARGetInt() local
165 for (beg = text; *beg != L('\0') && LISSPACE(*beg); ++beg); in LCHARGetInt()
166 if (beg == NULL) in LCHARGetInt()
169 for (end = beg; *end != L('\0') && !LISSPACE(*end); ++end); in LCHARGetInt()
175 rc = lstrtoi(beg, value, 10); in LCHARGetInt()
/external/oprofile/include/
Dsstream150 char_type* beg = stream;
169 if (way == ios::beg)
171 newoffi = beg - curi;
172 newoffo = beg - curo;
180 if (testin && newoffi + off + curi - beg >= 0 &&
181 endi - beg >= newoffi + off + curi - beg)
186 if (testout && newoffo + off + curo - beg >= 0 &&
187 endo - beg >= newoffo + off + curo - beg)
199 pos_type ret = seekoff(sp, ios::beg, which);
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc149 static void ProtectRange(uptr beg, uptr end) { in ProtectRange() argument
151 CHECK_LE(beg, end); in ProtectRange()
152 if (beg == end) in ProtectRange()
154 if (beg != (uptr)Mprotect(beg, end - beg)) { in ProtectRange()
155 Printf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end); in ProtectRange()
/external/mksh/src/
Deval.c352 char *beg, *end, *str; in expand() local
356 end = (beg = wdcopy(sp, ATEMP)) + in expand()
359 if (end < wdscan(beg, EOS)) in expand()
361 str = snptreef(NULL, 64, "%S", beg); in expand()
362 afree(beg, ATEMP); in expand()
399 char *beg, *end; in expand() local
403 beg = wdcopy(sp, ATEMP); in expand()
404 end = beg + (wdscan(sp, CSUBST) - sp); in expand()
406 end = wdstrip(beg, 0); in expand()
407 afree(beg, ATEMP); in expand()
[all …]
Dsh.h1407 char *end, *beg; /* end, begin of string */ member
1418 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
1419 (xs).end = (xs).beg + (xs).len; \
1423 (xp) = (xs).beg; \
1440 #define Xfree(xs, xp) afree((xs).beg, (xs).areap)
1443 #define Xclose(xs, xp) aresize((xs).beg, (xp) - (xs).beg, (xs).areap)
1446 #define Xstring(xs, xp) ((xs).beg)
1449 #define Xlength(xs, xp) ((xp) - (xs).beg)
1450 #define Xsize(xs, xp) ((xs).end - (xs).beg)
1451 #define Xsavepos(xs, xp) ((xp) - (xs).beg)
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cc208 bool mem_is_zero(const char *beg, uptr size) { in mem_is_zero() argument
210 const char *end = beg + size; in mem_is_zero()
211 uptr *aligned_beg = (uptr *)RoundUpTo((uptr)beg, sizeof(uptr)); in mem_is_zero()
215 for (const char *mem = beg; mem < (char*)aligned_beg && mem < end; mem++) in mem_is_zero()
221 if ((char*)aligned_end >= beg) in mem_is_zero()
Dsanitizer_allocator.h314 void MapWithCallback(uptr beg, uptr size) { in MapWithCallback() argument
315 CHECK_EQ(beg, reinterpret_cast<uptr>(MmapFixedOrDie(beg, size))); in MapWithCallback()
316 MapUnmapCallback().OnMap(beg, size); in MapWithCallback()
319 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() argument
320 MapUnmapCallback().OnUnmap(beg, size); in UnmapWithCallback()
321 UnmapOrDie(reinterpret_cast<void *>(beg), size); in UnmapWithCallback()
361 uptr beg = chunk_idx * size; in GetBlockBegin() local
362 uptr next_beg = beg + size; in GetBlockBegin()
366 return reinterpret_cast<void*>(reg_beg + beg); in GetBlockBegin()
604 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() argument
[all …]
Dsanitizer_symbolizer.h84 void addAddressRange(uptr beg, uptr end);
92 uptr beg; member
Dsanitizer_symbolizer.cc34 void LoadedModule::addAddressRange(uptr beg, uptr end) { in addAddressRange() argument
36 ranges_[n_ranges_].beg = beg; in addAddressRange()
43 if (ranges_[i].beg <= address && address < ranges_[i].end) in containsAddress()
/external/qemu/distrib/zlib-1.2.3/
Ddeflate.c654 uInt beg = s->pending; /* start of bytes to update crc */ local
658 if (s->gzhead->hcrc && s->pending > beg)
659 strm->adler = crc32(strm->adler, s->pending_buf + beg,
660 s->pending - beg);
662 beg = s->pending;
669 if (s->gzhead->hcrc && s->pending > beg)
670 strm->adler = crc32(strm->adler, s->pending_buf + beg,
671 s->pending - beg);
682 uInt beg = s->pending; /* start of bytes to update crc */ local
687 if (s->gzhead->hcrc && s->pending > beg)
[all …]
/external/stlport/test/unit/
Dstack_allocator.h33 State(char *beg, char *end) in State()
34 : m_beg(beg), m_end(end), m_cur(m_beg), m_isOk(true), m_swaped(false), m_nbAlloc(0), in State()
68 StackAllocator(char *beg, char *end) in StackAllocator()
69 : m_state(beg, end) {} in StackAllocator()
Dfstream_test.cpp164 f.seekg( 0, ios_base::beg ); in io()
200 f.seekg( 0, ios_base::beg ); in err()
254 is.seekg( p, ios_base::beg ); in tellg()
349 ss.seekg( 0, ios_base::beg ); in buf()
476 off = s.rdbuf()->pubseekoff(0, ios_base::beg); in seek()
496 ss.seekg( 0, ios_base::beg ); in rdbuf()
892 f.seekg( 0, ios_base::beg ); in null_buf()
/external/zlib/src/
Ddeflate.c765 uInt beg = s->pending; /* start of bytes to update crc */ local
769 if (s->gzhead->hcrc && s->pending > beg)
770 strm->adler = crc32(strm->adler, s->pending_buf + beg,
771 s->pending - beg);
773 beg = s->pending;
780 if (s->gzhead->hcrc && s->pending > beg)
781 strm->adler = crc32(strm->adler, s->pending_buf + beg,
782 s->pending - beg);
793 uInt beg = s->pending; /* start of bytes to update crc */ local
798 if (s->gzhead->hcrc && s->pending > beg)
[all …]
/external/compiler-rt/lib/msan/
Dmsan.cc394 uptr beg = x & ~3UL; // align down. in __msan_set_origin() local
399 if (beg & 7ULL) { in __msan_set_origin()
400 *(u32*)beg = origin; in __msan_set_origin()
401 beg += 4; in __msan_set_origin()
403 for (uptr addr = beg; addr < (end & ~7UL); addr += 8) in __msan_set_origin()
/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc750 for (size_t beg = 0; beg < size + rz; beg++) { in TEST() local
751 for (size_t end = beg; end < size + rz; end++) { in TEST()
752 uptr first_poisoned = __asan_region_is_poisoned(x + beg, end - beg); in TEST()
753 if (beg == end) { in TEST()
755 } else if (beg < size && end <= size) { in TEST()
757 } else if (beg >= size) { in TEST()
758 EXPECT_EQ(x + beg, first_poisoned); in TEST()
/external/zlib/src/contrib/masmx64/
Dinffas8664.c89 /* 40 20 */ unsigned char FAR *beg; /* inflate()'s init next_out */ member
130 ar.beg = ar.out - (start - strm->avail_out);

123