Home
last modified time | relevance | path

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

12345

/external/compiler-rt/lib/asan/
Dasan_poisoning.cc117 ShadowSegmentEndpoint beg(beg_addr); in __asan_poison_memory_region() local
119 if (beg.chunk == end.chunk) { in __asan_poison_memory_region()
120 CHECK(beg.offset < end.offset); in __asan_poison_memory_region()
121 s8 value = beg.value; in __asan_poison_memory_region()
126 if (beg.offset > 0) { in __asan_poison_memory_region()
127 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region()
129 *beg.chunk = kAsanUserPoisonedMemoryMagic; in __asan_poison_memory_region()
134 CHECK(beg.chunk < end.chunk); in __asan_poison_memory_region()
135 if (beg.offset > 0) { in __asan_poison_memory_region()
137 if (beg.value == 0) { in __asan_poison_memory_region()
[all …]
Dasan_globals.cc59 FastPoisonShadow(g->beg, g->size_with_redzone, value); in PoisonShadowForGlobal()
64 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
68 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY), in PoisonRedZones()
78 if (addr <= g.beg - kMinimalDistanceFromAnotherGlobal) return false; in IsAddressNearGlobal()
79 if (addr >= g.beg + g.size_with_redzone) return false; in IsAddressNearGlobal()
85 prefix, &g, (void *)g.beg, g.size, g.size_with_redzone, g.name, in ReportGlobal()
125 descr->region_address = g.beg; in GetInfoForAddressIfGlobal()
151 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal()
152 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal()
157 if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) { in RegisterGlobal()
[all …]
Dasan_report.cc255 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII()
259 if (*(char*)(g.beg + g.size - 1) != '\0') return; in PrintGlobalNameIfASCII()
261 (char *)g.beg); in PrintGlobalNameIfASCII()
290 if (addr < g.beg) { in DescribeAddressRelativeToGlobal()
292 g.beg - addr); in DescribeAddressRelativeToGlobal()
293 } else if (addr + size > g.beg + g.size) { in DescribeAddressRelativeToGlobal()
294 if (addr < g.beg + g.size) in DescribeAddressRelativeToGlobal()
295 addr = g.beg + g.size; in DescribeAddressRelativeToGlobal()
297 addr - (g.beg + g.size)); in DescribeAddressRelativeToGlobal()
300 str.append("%p is located %zd bytes inside", (void *)addr, addr - g.beg); in DescribeAddressRelativeToGlobal()
[all …]
Dasan_fake_stack.cc111 uptr beg = reinterpret_cast<uptr>(GetFrame(stack_size_log, 0, 0)); in AddrIsInFakeStack() local
113 if (ptr < beg || ptr >= end) return 0; in AddrIsInFakeStack()
114 uptr class_id = (ptr - beg) >> stack_size_log; in AddrIsInFakeStack()
115 uptr base = beg + (class_id << stack_size_log); in AddrIsInFakeStack()
242 void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg, in __asan_addr_is_in_fake_stack() argument
252 if (beg) *beg = reinterpret_cast<void*>(frame_beg); in __asan_addr_is_in_fake_stack()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
DDistinguishedNameParser.java30 private int beg; field in DistinguishedNameParser
58 beg = pos; in nextAT()
93 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
94 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
95 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT()
96 && (chars[beg + 2] == 'D' || chars[beg + 2] == 'd')) { in nextAT()
97 beg += 4; in nextAT()
100 return new String(chars, beg, end - beg); in nextAT()
106 beg = pos; in quotedAV()
107 end = beg; in quotedAV()
[all …]
/external/compiler-rt/test/asan/TestCases/
Dcontiguous_container.cc12 char *beg = new char[capacity]; in TestContainer() local
13 char *end = beg + capacity; in TestContainer()
14 char *mid = beg + capacity; in TestContainer()
21 mid = beg + size; in TestContainer()
22 __sanitizer_annotate_contiguous_container(beg, end, old_mid, mid); in TestContainer()
25 assert(!__asan_address_is_poisoned(beg + idx)); in TestContainer()
27 assert(__asan_address_is_poisoned(beg + idx)); in TestContainer()
28 assert(__sanitizer_verify_contiguous_container(beg, mid, end)); in TestContainer()
29 if (mid != beg) in TestContainer()
30 assert(!__sanitizer_verify_contiguous_container(beg, mid - 1, end)); in TestContainer()
[all …]
Dgc-test.cc24 void *beg, *end; in Thread() local
26 __asan_addr_is_in_fake_stack(fake_stack, &var[0], &beg, &end); in Thread()
28 assert((char*)beg <= (char*)&var[0]); in Thread()
36 assert(beg == beg1); in Thread()
/external/compiler-rt/lib/msan/
Dmsan_poisoning.cc48 uptr beg = d & ~3UL; in CopyOrigin() local
50 if (beg < d) { in CopyOrigin()
51 u32 o = GetOriginIfPoisoned((uptr)src, d - beg); in CopyOrigin()
54 *(u32 *)MEM_TO_ORIGIN(beg) = o; in CopyOrigin()
56 beg += 4; in CopyOrigin()
61 if (end < beg) return; in CopyOrigin()
72 if (beg < end) { in CopyOrigin()
79 u32 *src_end = (u32 *)MEM_TO_ORIGIN(s + (end - beg)); in CopyOrigin()
80 u32 *dst = (u32 *)MEM_TO_ORIGIN(beg); in CopyOrigin()
92 REAL(memcpy)((void *)MEM_TO_ORIGIN(beg), (void *)MEM_TO_ORIGIN(s), in CopyOrigin()
[all …]
Dmsan_linux.cc38 void ReportMapRange(const char *descr, uptr beg, uptr size) { in ReportMapRange() argument
40 uptr end = beg + size - 1; in ReportMapRange()
41 VPrintf(1, "%s : %p - %p\n", descr, beg, end); in ReportMapRange()
45 static bool CheckMemoryRangeAvailability(uptr beg, uptr size) { in CheckMemoryRangeAvailability() argument
47 uptr end = beg + size - 1; in CheckMemoryRangeAvailability()
48 if (!MemoryRangeIsAvailable(beg, end)) { in CheckMemoryRangeAvailability()
49 Printf("FATAL: Memory range %p - %p is not available.\n", beg, end); in CheckMemoryRangeAvailability()
56 static bool ProtectMemoryRange(uptr beg, uptr size) { in ProtectMemoryRange() argument
58 uptr end = beg + size - 1; in ProtectMemoryRange()
59 if (!MmapNoAccess(beg, size)) { in ProtectMemoryRange()
[all …]
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
40 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == -1); in main()
43 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == -1); in main()
46 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3); in main()
58 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
64 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == 3); in main()
73 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3); in main()
85 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc40 for (size_t beg = 0; beg < size; beg++) { in TEST() local
41 for (size_t end = beg; end < size; end++) { in TEST()
43 if (beg <= pos && pos < end) in TEST()
44 EXPECT_FALSE(__sanitizer::mem_is_zero(x + beg, end - beg)); in TEST()
46 EXPECT_TRUE(__sanitizer::mem_is_zero(x + beg, end - beg)); in TEST()
/external/v8/tools/
Dlexer-shell.cc112 size_t beg; member
114 TokenWithLocation() : value(Token::ILLEGAL), beg(0), end(0) { } in TokenWithLocation()
115 TokenWithLocation(Token::Value value, size_t beg, size_t end) : in TokenWithLocation()
116 value(value), beg(beg), end(end) { } in TokenWithLocation()
118 return value == other.value && beg == other.beg && end == other.end; in operator ==()
126 static_cast<int>(beg), static_cast<int>(end)); in Print()
138 int beg, end; in RunBaselineScanner() local
140 token = scanner.Next(&beg, &end); in RunBaselineScanner()
142 tokens->push_back(TokenWithLocation(token, beg, end)); in RunBaselineScanner()
/external/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
Dseekoff.pass.cpp25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
41 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
44 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == 3); in main()
47 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3); in main()
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.seeks/
Dseekp2.pass.cpp36 assert(way == std::ios_base::beg); in seekoff()
46 assert(&os.seekp(5, std::ios_base::beg) == &os); in main()
52 assert(&os.seekp(10, std::ios_base::beg) == &os); in main()
55 assert(&os.seekp(-1, std::ios_base::beg) == &os); in main()
/external/llvm/test/CodeGen/X86/
Dinalloca-invoke.ll20 %beg = getelementptr %frame.reverse, %frame.reverse* %rev_args, i32 0, i32 0
24 ; CHECK: movl %[[beg:[^,]*]], %esp
25 ; CHECK: leal 12(%[[beg]]), %[[end:[^ ]*]]
38 call void @begin(%Iter* sret %beg)
40 ; CHECK: pushl %[[beg]]
/external/v8/src/arm/
Dcpu-arm.cc42 register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start); in FlushICache()
43 register uint32_t end asm("r1") = beg + size; in FlushICache()
60 : "r" (beg), "r" (end), "r" (flg), [scno] "i" (__ARM_NR_cacheflush) in FlushICache()
/external/compiler-rt/lib/asan/tests/
Dasan_interface_test.cc335 for (size_t beg = 0; beg < size + rz; beg++) { in TEST() local
336 for (size_t end = beg; end < size + rz; end++) { in TEST()
337 void *first_poisoned = __asan_region_is_poisoned(p + beg, end - beg); in TEST()
338 if (beg == end) { in TEST()
340 } else if (beg < size && end <= size) { in TEST()
342 } else if (beg >= size) { in TEST()
343 EXPECT_EQ(p + beg, first_poisoned); in TEST()
/external/v8/test/cctest/
Dtest-macro-assembler-mips.cc50 static bool all_zeroes(const byte* beg, const byte* end) { in all_zeroes() argument
51 CHECK(beg); in all_zeroes()
52 CHECK(beg <= end); in all_zeroes()
53 while (beg < end) { in all_zeroes()
54 if (*beg++ != 0) in all_zeroes()
Dtest-macro-assembler-mips64.cc50 static bool all_zeroes(const byte* beg, const byte* end) { in all_zeroes() argument
51 CHECK(beg); in all_zeroes()
52 CHECK(beg <= end); in all_zeroes()
53 while (beg < end) { in all_zeroes()
54 if (*beg++ != 0) in all_zeroes()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h330 void MapWithCallback(uptr beg, uptr size) { in MapWithCallback() argument
331 CHECK_EQ(beg, reinterpret_cast<uptr>(MmapFixedOrDie(beg, size))); in MapWithCallback()
332 MapUnmapCallback().OnMap(beg, size); in MapWithCallback()
335 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() argument
336 MapUnmapCallback().OnUnmap(beg, size); in UnmapWithCallback()
337 UnmapOrDie(reinterpret_cast<void *>(beg), size); in UnmapWithCallback()
377 uptr beg = chunk_idx * size; in GetBlockBegin() local
378 uptr next_beg = beg + size; in GetBlockBegin()
382 return reinterpret_cast<void*>(reg_beg + beg); in GetBlockBegin()
708 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() argument
[all …]
Dsanitizer_interface_internal.h49 void __sanitizer_annotate_contiguous_container(const void *beg,
54 int __sanitizer_verify_contiguous_container(const void *beg, const void *mid,
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc135 static void ProtectRange(uptr beg, uptr end) { in ProtectRange() argument
136 CHECK_LE(beg, end); in ProtectRange()
137 if (beg == end) in ProtectRange()
139 if (beg != (uptr)MmapNoAccess(beg, end - beg)) { in ProtectRange()
140 Printf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end); in ProtectRange()
/external/libcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/
Dseekdir.pass.cpp23 assert(std::ios_base::beg != std::ios_base::cur); in main()
24 assert(std::ios_base::beg != std::ios_base::end); in main()
/external/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.buffer/
Dpubseekoff.pass.cpp32 assert(t.pubseekoff(0, std::ios_base::beg) == -1); in main()
33 assert(t.pubseekoff(0, std::ios_base::beg, std::ios_base::app) == -1); in main()
/external/mksh/src/
Dsh.h1410 char *end, *beg; /* end, begin of string */ member
1421 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
1422 (xs).end = (xs).beg + (xs).len; \
1426 (xp) = (xs).beg; \
1443 #define Xfree(xs, xp) afree((xs).beg, (xs).areap)
1446 #define Xclose(xs, xp) aresize((xs).beg, (xp) - (xs).beg, (xs).areap)
1449 #define Xstring(xs, xp) ((xs).beg)
1452 #define Xlength(xs, xp) ((xp) - (xs).beg)
1453 #define Xsize(xs, xp) ((xs).end - (xs).beg)
1454 #define Xsavepos(xs, xp) ((xp) - (xs).beg)
[all …]

12345