Home
last modified time | relevance | path

Searched refs:realloc (Results 1 – 25 of 992) sorted by relevance

12345678910>>...40

/external/llvm-project/compiler-rt/test/asan/TestCases/Windows/
Dheapalloc_rtl_transfer.cpp56 void *realloc = RtlReAllocateHeap_ptr(GetProcessHeap(), in main() local
59 assert(realloc && __sanitizer_get_ownership(realloc)); in main()
62 assert(((char *)realloc)[i] == '\xcc'); in main()
65 assert(((char *)realloc)[i] == 0); in main()
66 ((char *)realloc)[i] = '\xcc'; in main()
68 realloc = RtlReAllocateHeap_ptr(GetProcessHeap(), in main()
69 HEAP_ZERO_MEMORY, realloc, 2048); in main()
70 assert(realloc && __sanitizer_get_ownership(realloc)); in main()
73 assert(((char *)realloc)[i] == '\xcc'); in main()
76 assert(((char *)realloc)[i] == 0); in main()
[all …]
Dheapalloc_transfer.cpp17 void *realloc = HeapReAlloc(GetProcessHeap(), 0, alloc, 500); in main() local
19 assert(realloc && __sanitizer_get_ownership(realloc)); in main()
21 alloc = HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, realloc, 100); in main()
/external/skqp/tests/
DTemplatesTest.cpp20 array.realloc(1); in test_automalloc_realloc()
26 array.realloc(2); in test_automalloc_realloc()
30 array.realloc(1); in test_automalloc_realloc()
34 array.realloc(0); in test_automalloc_realloc()
37 array.realloc(10); in test_automalloc_realloc()
41 array.realloc(20); in test_automalloc_realloc()
45 array.realloc(10); in test_automalloc_realloc()
50 array.realloc(1); in test_automalloc_realloc()
55 array.realloc(1); in test_automalloc_realloc()
63 array.realloc(3); in test_automalloc_realloc()
[all …]
/external/skia/tests/
DTemplatesTest.cpp20 array.realloc(1); in test_automalloc_realloc()
26 array.realloc(2); in test_automalloc_realloc()
30 array.realloc(1); in test_automalloc_realloc()
34 array.realloc(0); in test_automalloc_realloc()
37 array.realloc(10); in test_automalloc_realloc()
41 array.realloc(20); in test_automalloc_realloc()
45 array.realloc(10); in test_automalloc_realloc()
50 array.realloc(1); in test_automalloc_realloc()
55 array.realloc(1); in test_automalloc_realloc()
63 array.realloc(3); in test_automalloc_realloc()
[all …]
/external/compiler-rt/test/scudo/
Drealloc.cpp24 old_p = p = realloc(nullptr, size); in main()
30 p = realloc(p, size - 1); in main()
33 p = realloc(p, size); in main()
37 p = realloc(p, size + 1); in main()
41 p = realloc(p, 0); in main()
47 p = realloc(nullptr, size); in main()
52 p = realloc(p, size + 1); in main()
63 p = realloc(p, size); in main()
/external/llvm-project/compiler-rt/test/scudo/
Drealloc.cpp49 p = realloc(p, size); in main()
59 old_p = p = realloc(nullptr, size); in main()
65 p = realloc(p, size - 1); in main()
67 p = realloc(p, size); in main()
70 p = realloc(p, size + 1); in main()
73 p = realloc(p, 0); in main()
78 p = realloc(nullptr, size); in main()
82 p = realloc(p, size + 1); in main()
/external/llvm-project/clang/test/Analysis/
Dmalloc.cpp11 void *realloc(void *ptr, size_t size);
178 void *realloc(int, bool = false) { realloc(1); } // no-crash in realloc() function in pr46253_class::a
183 void realloc(void *ptr, size_t size) { realloc(ptr, size); } // no-crash in realloc() function
187 void *realloc(void **ptr, size_t size) { realloc(ptr, size); } // no-crash in realloc() function
191 void *realloc(void *ptr, int size) { realloc(ptr, size); } // no-crash in realloc() function
Dmalloc.c32 void *realloc(void *ptr, size_t size);
62 realloc(p,0); in f2_realloc_0()
63 realloc(p,0); // expected-warning{{Attempt to free released memory}} in f2_realloc_0()
68 int *q = realloc(p,0); // no-warning in f2_realloc_1()
75 char *q = (char*)realloc(p, sizeIn); in reallocNotNullPtr()
94 q = realloc(q, 20); in realloctest1()
101 char *r = realloc(p, 12+1); in reallocFails()
111 char *r = realloc(p, 0); in reallocSizeZero1()
121 char *r = realloc(p, 0); in reallocSizeZero2()
132 char *r = realloc(p, 0); in reallocSizeZero3()
[all …]
Dmalloc-annotations.c11 void *realloc(void *ptr, size_t size);
46 realloc(p,0); in f2_realloc_0()
47 realloc(p,0); // expected-warning{{Attempt to free released memory}} in f2_realloc_0()
52 int *q = realloc(p,0); // no-warning in f2_realloc_1()
173 q = realloc(q, 20); in f5()
190 realloc(p,0); in f6_realloc()
212 realloc(x,0); in f7_realloc()
Dmalloc-sizeof.c7 void *realloc(void *ptr, size_t size);
27 struct A *ap6 = realloc(ap5, sizeof(struct A)); in foo()
28 …struct A *ap7 = realloc(ap5, sizeof(struct B)); // expected-warning {{Result of 'realloc' is conve… in foo()
DMismatchedDeallocator-checker-test.mm9 void *realloc(void *ptr, size_t size); function
29 int *q = (int *)realloc(p, 16);
30 …delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not …
86realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by …
91realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be dealloca…
96realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated b…
/external/clang/test/Analysis/
Dmalloc.c27 void *realloc(void *ptr, size_t size);
57 realloc(p,0); in f2_realloc_0()
58 realloc(p,0); // expected-warning{{Attempt to free released memory}} in f2_realloc_0()
63 int *q = realloc(p,0); // no-warning in f2_realloc_1()
70 char *q = (char*)realloc(p, sizeIn); in reallocNotNullPtr()
89 q = realloc(q, 20); in realloctest1()
96 char *r = realloc(p, 12+1); in reallocFails()
106 char *r = realloc(p, 0); in reallocSizeZero1()
116 char *r = realloc(p, 0); in reallocSizeZero2()
127 char *r = realloc(p, 0); in reallocSizeZero3()
[all …]
Dmalloc-annotations.c5 void *realloc(void *ptr, size_t size);
40 realloc(p,0); in f2_realloc_0()
41 realloc(p,0); // expected-warning{{Attempt to free released memory}} in f2_realloc_0()
46 int *q = realloc(p,0); // no-warning in f2_realloc_1()
167 q = realloc(q, 20); in f5()
184 realloc(p,0); in f6_realloc()
206 realloc(x,0); in f7_realloc()
Dmalloc-sizeof.c7 void *realloc(void *ptr, size_t size);
27 struct A *ap6 = realloc(ap5, sizeof(struct A)); in foo()
28 …struct A *ap7 = realloc(ap5, sizeof(struct B)); // expected-warning {{Result of 'realloc' is conve… in foo()
DMismatchedDeallocator-checker-test.mm8 void *realloc(void *ptr, size_t size); function
28 int *q = (int *)realloc(p, 16);
29 …delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not …
85realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by …
90realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be dealloca…
95realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated b…
/external/flac/include/share/
Dalloc.h159 void *newptr = realloc(ptr, size); in safe_realloc_()
171 return realloc(ptr, size2); in safe_realloc_add_2op_()
182 return realloc(ptr, size3); in safe_realloc_add_3op_()
196 return realloc(ptr, size4); in safe_realloc_add_4op_()
202 return realloc(ptr, 0); /* preserve POSIX realloc(ptr, 0) semantics */ in safe_realloc_mul_2op_()
212 return realloc(ptr, 0); /* preserve POSIX realloc(ptr, 0) semantics */ in safe_realloc_muladd2_()
/external/llvm-project/llvm/test/Transforms/InstCombine/
Drealloc.ll4 declare i8* @realloc(i8*, i64) #1
13 %call = call i8* @realloc(i8* null, i64 100) #2
19 ; CHECK-NEXT: [[CALL:%.*]] = call dereferenceable_or_null(100) i8* @realloc(i8* [[PTR:%.*]], i64…
22 %call = call i8* @realloc(i8* %ptr, i64 100) #2
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-owning-memory-legacy-functions.cpp19 void *realloc(void *Resource, size_t NewByteCount);
41 using ::realloc;
165 std::realloc(StackPointer, 200); in test_legacy_consumers()
167 std::realloc(HeapPointer1, 200); in test_legacy_consumers()
169 std::realloc(HeapPointer2, 200); // Ok in test_legacy_consumers()
170 std::realloc(std::malloc(100), 200); // Ok but silly in test_legacy_consumers()
/external/compiler-rt/lib/asan/
Dasan_malloc_win.cc101 void *realloc(void *ptr, size_t size) { in realloc() function
114 return realloc(ptr, size); in _realloc_base()
124 return realloc(p, size); in _recalloc()
222 TryToOverrideFunction("realloc", (uptr)realloc); in ReplaceSystemMalloc()
223 TryToOverrideFunction("_realloc_base", (uptr)realloc); in ReplaceSystemMalloc()
224 TryToOverrideFunction("_realloc_crt", (uptr)realloc); in ReplaceSystemMalloc()
Dasan_malloc_linux.cc76 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { in INTERCEPTOR() argument
157 void *(*realloc)(void *oldMem, uptr bytes); member
171 void *(*realloc)(void *oldMem, uptr bytes); member
177 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
182 WRAP(posix_memalign), WRAP(pvalloc), WRAP(realloc),
/external/skia/modules/skplaintexteditor/include/
Dstringslice.h35 void reserve(std::size_t size) { if (size > fCapacity) { this->realloc(size); } } in reserve()
36 void shrink() { this->realloc(fLength); } in shrink()
43 void realloc(std::size_t);
/external/curl/tests/data/
Dtest55841 MEM dynbuf.c: realloc()
42 MEM dynbuf.c: realloc()
52 s/^MEM getenv.c: realloc\(\)[\n]$//
/external/tremolo/Tremolo/
Dmisc.c73 pointers=(void **)realloc(pointers,sizeof(void **)*palloced); in _insert()
74 insertlist=(long *)realloc(insertlist,sizeof(long *)*palloced); in _insert()
106 files=realloc(files,filecount*sizeof(*files)); in _insert()
107 file_bytes=realloc(file_bytes,filecount*sizeof(*file_bytes)); in _insert()
214 ptr=realloc(ptr,bytes); in _VDBG_malloc()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dwrappers_c_test.cpp135 void *P = realloc(nullptr, 0U); in TEST()
142 EXPECT_EQ(realloc(P, 0U), nullptr); in TEST()
149 P = realloc(P, Size * 2U); in TEST()
155 P = realloc(P, Size / 2U); in TEST()
162 EXPECT_DEATH(P = realloc(P, Size), ""); in TEST()
165 EXPECT_EQ(realloc(nullptr, SIZE_MAX), nullptr); in TEST()
170 EXPECT_EQ(realloc(P, SIZE_MAX), nullptr); in TEST()
183 P = realloc(P, Size * 2U); in TEST()
/external/python/pyopenssl/tests/
Dmemdbg.py65 def realloc(p, n): function
66 memory = C.realloc(p, n)
86 if _api.CRYPTO_set_mem_functions(malloc, realloc, free):

12345678910>>...40