Searched refs:beg (Results 1 - 25 of 102) sorted by relevance

12345

/external/compiler-rt/test/asan/TestCases/
H A Dcontiguous_container.cc12 char *beg = new char[capacity]; local
13 char *end = beg + capacity;
14 char *mid = beg + capacity;
21 mid = beg + size;
22 __sanitizer_annotate_contiguous_container(beg, end, old_mid, mid);
25 assert(!__asan_address_is_poisoned(beg + idx));
27 assert(__asan_address_is_poisoned(beg + idx));
28 assert(__sanitizer_verify_contiguous_container(beg, mid, end));
29 if (mid != beg)
30 assert(!__sanitizer_verify_contiguous_container(beg, mi
[all...]
H A Dgc-test.cc20 void *beg, *end; local
22 __asan_addr_is_in_fake_stack(fake_stack, &var[0], &beg, &end);
24 assert((char*)beg <= (char*)&var[0]);
32 assert(beg == beg1);
H A Dcontiguous_container_crash.cc12 void __sanitizer_annotate_contiguous_container(const void *beg, const void *end,
/external/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/
H A Dseekdir.pass.cpp14 // static const seekdir beg;
23 assert(std::ios_base::beg != std::ios_base::cur);
24 assert(std::ios_base::beg != std::ios_base::end);
/external/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.buffer/
H A Dpubseekoff.pass.cpp32 assert(t.pubseekoff(0, std::ios_base::beg) == -1);
33 assert(t.pubseekoff(0, std::ios_base::beg, std::ios_base::app) == -1);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
H A DDistinguishedNameParser.java30 private int beg; field in class:DistinguishedNameParser
58 beg = pos;
93 if ((end - beg > 4) && (chars[beg + 3] == '.')
94 && (chars[beg] == 'O' || chars[beg] == 'o')
95 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i')
96 && (chars[beg + 2] == 'D' || chars[beg
[all...]
/external/compiler-rt/lib/asan/
H A Dasan_poisoning.cc85 ShadowSegmentEndpoint beg(beg_addr);
87 if (beg.chunk == end.chunk) {
88 CHECK(beg.offset < end.offset);
89 s8 value = beg.value;
94 if (beg.offset > 0) {
95 *beg.chunk = Min(value, beg.offset);
97 *beg.chunk = kAsanUserPoisonedMemoryMagic;
102 CHECK(beg.chunk < end.chunk);
103 if (beg
153 __asan_region_is_poisoned(uptr beg, uptr size) argument
272 uptr beg = reinterpret_cast<uptr>(beg_p); local
[all...]
H A Dasan_globals.cc58 FastPoisonShadow(g->beg, g->size_with_redzone, value);
63 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size,
67 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY),
75 Report("%s Global[%p]: beg=%p size=%zu/%zu name=%s module=%s dyn_init=%zu\n",
76 prefix, &g, (void*)g.beg, g.size, g.size_with_redzone, g.name,
111 CHECK(AddrIsInMem(g->beg));
112 CHECK(AddrIsAlignedByGranularity(g->beg));
117 if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) {
121 if (g->beg == l->g->beg
[all...]
/external/chromium_org/v8/src/arm/
H A Dcpu-arm.cc42 register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
43 register uint32_t end asm("r1") = beg + size;
52 // r0 = beg
60 : "r" (beg), "r" (end), "r" (flg), [scno] "i" (__ARM_NR_cacheflush)
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_tls_get_addr.h38 // If beg == 0, the chunk is unused.
40 uptr beg, size; member in struct:__sanitizer::DTLS::DTV
/external/libcxx/test/input.output/iostream.format/output.streams/ostream.seeks/
H A Dseekp2.pass.cpp36 assert(way == std::ios_base::beg);
46 assert(&os.seekp(5, std::ios_base::beg) == &os);
52 assert(&os.seekp(10, std::ios_base::beg) == &os);
55 assert(&os.seekp(-1, std::ios_base::beg) == &os);
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cc39 for (size_t beg = 0; beg < size; beg++) {
40 for (size_t end = beg; end < size; end++) {
41 // fprintf(stderr, "pos %zd beg %zd end %zd \n", pos, beg, end);
42 if (beg <= pos && pos < end)
43 EXPECT_FALSE(__sanitizer::mem_is_zero(x + beg, end - beg));
45 EXPECT_TRUE(__sanitizer::mem_is_zero(x + beg, en
[all...]
/external/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
H A Dseekoff.pass.cpp25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1);
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1);
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3);
41 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3);
44 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == 3);
47 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3);
/external/compiler-rt/include/sanitizer/
H A Dcommon_interface_defs.h78 // [beg, end); the memory [beg, mid) is used to store the current elements
80 // beg <= mid <= end. For example, in "std::vector<> v"
81 // beg = &v[0];
82 // end = beg + v.capacity() * sizeof(v[0]);
83 // mid = beg + v.size() * sizeof(v[0]);
94 // For AddressSanitizer, 'beg' should be 8-aligned and 'end' should
98 // char *beg = (char *)&x[0];
99 // char *end = beg + 12; // Not 8 aligned, not the end of the buffer.
102 // char *beg
[all...]
H A Dasan_interface.h58 // If at least on byte in [beg, beg+size) is poisoned, return the address
60 void *__asan_region_is_poisoned(void *beg, size_t size);
151 // the fake frame and sets beg/end to the boundaries of this fake frame.
152 // Otherwise returns NULL and does not touch beg/end.
153 // If beg/end are NULL, they are not touched.
156 void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg,
/external/strace/
H A Dxlate.el38 (defun grab-xlate (beg end)
43 (goto-char beg)
/external/smack/src/org/apache/harmony/javax/security/auth/
H A DPrivateCredentialPermission.java134 int beg = name.indexOf(' ');
135 if (beg == -1) {
138 credentialClass = name.substring(0, beg);
141 beg++;
144 for (int i, j = 0; beg < nameLength; beg = j + 2, count++) {
145 i = name.indexOf(' ', beg);
158 beg = name.indexOf(' ');
159 beg++;
166 for (int index = 0, i, j; index < count; beg
[all...]
/external/chromium_org/v8/tools/
H A Dlexer-shell.cc112 size_t beg; member in struct:TokenWithLocation
114 TokenWithLocation() : value(Token::ILLEGAL), beg(0), end(0) { }
115 TokenWithLocation(Token::Value value, size_t beg, size_t end) : argument
116 value(value), beg(beg), end(end) { }
118 return value == other.value && beg == other.beg && end == other.end;
126 static_cast<int>(beg), static_cast<int>(end));
138 int beg, end; local
140 token = scanner.Next(&beg,
[all...]
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.virtuals/
H A Dseekoff.pass.cpp25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1);
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1);
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3);
40 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == -1);
43 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == -1);
46 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3);
58 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3);
64 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == 3);
73 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3);
85 assert(sb.pubseekoff(3, std::ios_base::beg, st
[all...]
/external/chromium_org/chrome/browser/safe_browsing/
H A Dsafe_browsing_store.cc15 bool sorted(CTI beg, CTI end, LESS less) { argument
16 while ((end - beg) > 2) {
17 CTI n = beg++;
18 if (less(*beg, *n))
H A Dsafe_browsing_store_file.cc173 // Write values between |beg| and |end| to |fp|, and fold the data into the
176 bool WriteRange(const CTI& beg, const CTI& end, argument
178 for (CTI iter = beg; iter != end; ++iter) {
294 bool sorted(CTI beg, CTI end, LESS less) { argument
295 while ((end - beg) > 2) {
296 CTI n = beg++;
297 DCHECK(!less(*beg, *n));
298 if (less(*beg, *n))
304 // Merge |beg|..|end| into |container|. Both should be sorted by the given
309 void container_merge(CT* container, CTI beg, CT argument
398 MergeDataAndProcess(const StateInternalPos& beg, const StateInternalPos& end, const base::hash_set<int32>& add_del_cache, const base::hash_set<int32>& sub_del_cache) argument
452 ShardEnd(const StateInternalPos& beg, SBPrefix shard_max) argument
466 WriteShard(const StateInternalPos& beg, const StateInternalPos& end, FILE* fp, base::MD5Context* context) argument
[all...]
/external/libcxx/test/input.output/string.streams/stringstream.cons/
H A Dmove2.pass.cpp33 vecis[n].seekg(0, std::ios_base::beg);
/external/oprofile/include/
H A 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)
[all...]
/external/clang/tools/clang-format/
H A Dclang-format.el21 (let ((beg (if mark-active
27 (clang-format beg end)))
/external/libcxx/test/input.output/file.streams/fstreams/filebuf.assign/
H A Dmember_swap.pass.cpp30 f.pubseekoff(1, std::ios_base::beg);
45 f.pubseekoff(1, std::ios_base::beg);

Completed in 487 milliseconds

12345