/external/skia/tests/ |
D | TemplatesTest.cpp | 20 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/ |
D | TemplatesTest.cpp | 20 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/ |
D | realloc.cpp | 24 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/ |
D | malloc.c | 27 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 …]
|
D | malloc-annotations.c | 5 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()
|
D | MismatchedDeallocator-checker-test.mm | 8 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 … 85 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by … 90 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be dealloca… 95 …realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated b…
|
D | malloc-sizeof.c | 7 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()
|
D | malloc-plist.c | 8 void *realloc(void *ptr, size_t size); 27 tmp = (char*)realloc(buf, 0x1000000); in reallocDiagnostics() 68 tmp = (char*)realloc(buf, 0x1000000); in my_realloc()
|
D | unix-fns.c | 17 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/ |
D | alloc.h | 159 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/ |
D | realloc.ll | 4 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/ |
D | asan_malloc_win.cc | 101 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()
|
D | asan_malloc_linux.cc | 76 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/ |
D | misc.c | 73 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/ |
D | use_after_realloc.cc | 7 char *buffer = (char*)realloc(0, 32), in main() 9 buffer = (char*)realloc(buffer, 64); in main()
|
/external/pdfium/third_party/libopenjpeg20/ |
D | opj_malloc.h | 174 #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/ |
D | brw_ir_allocator.h | 52 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); in allocate() 53 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned)); in allocate()
|
/external/jemalloc_new/test/integration/ |
D | overflow.c | 34 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/ |
D | overflow.c | 35 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/ |
D | allocator_returns_null.cc | 42 x = (char*)realloc(0, size); in main() 48 x = (char*)realloc(t, size); in main()
|
/external/zopfli/src/zopfli/ |
D | util.h | 157 : realloc((*data), (*size) * 2 * sizeof(**data));\ 167 : realloc((*data), (*size) * 2 * sizeof(**data));\
|
/external/compiler-rt/test/msan/ |
D | allocator_returns_null.cc | 47 x = (char*)realloc(0, size); in main() 53 x = (char*)realloc(t, size); in main()
|
/external/compiler-rt/test/asan/TestCases/ |
D | allocator_returns_null.cc | 50 x = realloc(0, size); in main() 56 x = realloc(t, size); in main()
|
/external/ipsec-tools/src/racoon/ |
D | gcmalloc.h | 70 realloc(void *ptr, size_t size) in realloc() function 117 #define racoon_realloc(old, sz) realloc((old), (sz))
|
/external/curl/lib/ |
D | curl_memory.h | 127 #undef realloc 128 #define realloc(ptr,size) Curl_crealloc(ptr, size) macro
|