Home
last modified time | relevance | path

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

12345678910>>...31

/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/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/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/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()
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…
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()
Dmalloc-plist.c8 void *realloc(void *ptr, size_t size);
27 tmp = (char*)realloc(buf, 0x1000000); in reallocDiagnostics()
68 tmp = (char*)realloc(buf, 0x1000000); in my_realloc()
Dunix-fns.c17 void *realloc(void *, size_t);
112 …char *foo = realloc(ptr, 0); // expected-warning{{Call to 'realloc' has an allocation size of 0 by… in test_realloc()
124 char *foo = realloc(ptr, size); // no-warning in test_realloc_nowarn()
/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/swiftshader/third_party/llvm-7.0/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 i8* @realloc(i8* [[PTR:%.*]], i64 100)
22 %call = call i8* @realloc(i8* %ptr, i64 100) #2
/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/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/compiler-rt/test/asan/TestCases/Windows/
Duse_after_realloc.cc7 char *buffer = (char*)realloc(0, 32), in main()
9 buffer = (char*)realloc(buffer, 64); in main()
/external/pdfium/third_party/libopenjpeg20/
Dopj_malloc.h174 #define opj_realloc(m, s) ((size_t)(s) >= (size_t)-0x100 ? NULL : realloc(m, s))
176 #define opj_realloc(m, s) realloc(m, s)
191 #pragma GCC poison malloc calloc realloc free
/external/mesa3d/src/intel/compiler/
Dbrw_ir_allocator.h52 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); in allocate()
53 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned)); in allocate()
/external/jemalloc_new/test/integration/
Doverflow.c34 assert_ptr_null(realloc(p, max_size_class + 1), in TEST_BEGIN()
36 assert_ptr_null(realloc(p, SIZE_T_MAX), in TEST_BEGIN()
/external/jemalloc/test/integration/
Doverflow.c35 assert_ptr_null(realloc(p, max_size_class + 1), in TEST_BEGIN()
37 assert_ptr_null(realloc(p, SIZE_T_MAX), in TEST_BEGIN()
/external/compiler-rt/test/tsan/
Dallocator_returns_null.cc42 x = (char*)realloc(0, size); in main()
48 x = (char*)realloc(t, size); in main()
/external/zopfli/src/zopfli/
Dutil.h157 : realloc((*data), (*size) * 2 * sizeof(**data));\
167 : realloc((*data), (*size) * 2 * sizeof(**data));\
/external/compiler-rt/test/msan/
Dallocator_returns_null.cc47 x = (char*)realloc(0, size); in main()
53 x = (char*)realloc(t, size); in main()
/external/compiler-rt/test/asan/TestCases/
Dallocator_returns_null.cc50 x = realloc(0, size); in main()
56 x = realloc(t, size); in main()
/external/ipsec-tools/src/racoon/
Dgcmalloc.h70 realloc(void *ptr, size_t size) in realloc() function
117 #define racoon_realloc(old, sz) realloc((old), (sz))
/external/curl/lib/
Dcurl_memory.h127 #undef realloc
128 #define realloc(ptr,size) Curl_crealloc(ptr, size) macro

12345678910>>...31