/third_party/skia/tests/ |
H A D | TemplatesTest.cpp | 19 // using realloc for init in test_automalloc_realloc() 20 array.realloc(1); in test_automalloc_realloc() 25 // verify realloc can grow in test_automalloc_realloc() 26 array.realloc(2); in test_automalloc_realloc() 29 // realloc can shrink 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(1 in test_automalloc_realloc() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/malloc/ |
H A D | realloc.c | 28 * @tc.desc: Verify realloc process success when first args is null second args is 50. 33 void *ret = realloc(NULL, RELLOCTLEN); in realloc_0100() 39 * @tc.desc: Verify realloc process success when first args is null second args is 0. 44 void *ret = realloc(NULL, 0); in realloc_0200() 50 * @tc.desc: Verify realloc process fail when first args is null second args is -100. 55 void *ret = realloc(NULL, INVALIDLEN); in realloc_0300() 61 * @tc.desc: Verify realloc process success when first args is not null second args is 200 67 void *ret = realloc(cptr, RELLOCTLEN + RELLOCTLEN); in realloc_0400() 73 * @tc.desc: Verify realloc process success when first args is not null second args is 100 79 void *ret = realloc(cpt in realloc_0500() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/hook/hook_gtest/ |
H A D | hook_realloc_test.cpp | 16 * @tc.desc: Validate the behavior of the realloc function when given a null pointer and a size of 0, ensuring that 17 * realloc behaves correctly in boundary cases and returns a valid pointer. 22 void* ptr = realloc(nullptr, 0); in HWTEST_F() 28 * @tc.desc: Validate the behavior of the realloc function when given a null pointer and a non-zero size, ensuring that 29 * realloc can allocate memory correctly and return a valid pointer. 34 void* ptr = realloc(nullptr, SIZE); in HWTEST_F() 40 * @tc.desc: Validate the behavior of the realloc function when attempting to allocate memory with an illegal size, 41 * ensuring that realloc correctly handles illegal size scenarios and returns a null pointer. 46 void* ptr = realloc(nullptr, ILLEGAL_SIZE); in HWTEST_F() 51 * @tc.desc: Validate the behavior of the realloc functio [all...] |
/third_party/unity/extras/memory/test/ |
H A D | unity_memory_Test.c | 69 void* m2 = realloc(m1, 5); in test_ReallocSmallerIsUnchanged() 78 void* m2 = realloc(m1, 10); in test_ReallocSameIsUnchanged() 90 m2 = realloc(m1, 15); in test_ReallocLargerNeeded() 97 void* m = realloc(0, 15); in test_ReallocNullPointerIsLikeMalloc() 105 void* m2 = realloc(m1, 0); in test_ReallocSizeZeroFreesMemAndReturnsNullPointer() 209 m = realloc(m, 100); in test_BufferOverrunFoundDuringRealloc() 213 TEST_ASSERT_NOT_NULL(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during realloc()")); in test_BufferOverrunFoundDuringRealloc() 248 m = realloc(m, 100); in test_BufferGuardWriteFoundDuringRealloc() 252 TEST_ASSERT_NOT_NULL(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during realloc()")); in test_BufferGuardWriteFoundDuringRealloc() 296 void* n = realloc( in test_MallocThenReallocGrowsMemoryInPlace() [all...] |
/third_party/musl/porting/linux/user/src/hook/ |
H A D | musl_preinit_common.c | 24 .realloc = libc_gwp_asan_realloc, 36 .realloc = MuslFunc(realloc),
|
H A D | malloc_common.c | 139 void* realloc(void *p, size_t n) in realloc() function 146 return dispatch_table->realloc(p, n); in realloc() 151 return MuslFunc(realloc)(p, n); in realloc()
|
/third_party/musl/src/hook/linux/ |
H A D | musl_preinit_common.c | 39 .realloc = libc_gwp_asan_realloc, 51 .realloc = MuslFunc(realloc),
|
H A D | malloc_common.c | 172 void* realloc(void *p, size_t n) in realloc() function 184 return dispatch_table->realloc(p, n); in realloc() 189 return MuslFunc(realloc)(p, n); in realloc()
|
/third_party/skia/modules/skplaintexteditor/include/ |
H A D | stringslice.h | 35 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);
|
/third_party/cJSON/tests/unity/extras/fixture/test/ |
H A D | unity_fixture_Test.c | 62 void* m2 = realloc(m1, 5); in TEST() 70 void* m2 = realloc(m1, 10); in TEST() 81 m2 = realloc(m1, 15); in TEST() 89 void* m = realloc(0, 15); in TEST() 97 void* m2 = realloc(m1, 0); in TEST() 415 m = realloc(m, 100); in TEST() 419 CHECK(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during realloc()")); in TEST() 454 m = realloc(m, 100); in TEST() 458 CHECK(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during realloc()")); in TEST() 518 void* n = realloc( in TEST() [all...] |
/third_party/curl/lib/ |
H A D | curl_memory.h | 31 * that use memory related functions strdup, malloc, calloc, realloc 66 #undef realloc macro 145 * realloc and free, along with others, in memdebug.h in a different 158 #undef realloc macro 159 #define realloc(ptr,size) Curl_crealloc(ptr, size) macro
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares_library_init.c | 62 return realloc(p, size); in default_realloc() 70 # define default_realloc realloc 150 ares_realloc = realloc; in ares_library_cleanup()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_ir_allocator.h | 53 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); in allocate() 54 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned)); in allocate()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_mem.c | 51 return realloc(ptr, size); in default_realloc() 73 return mem->realloc(ptr, size, mem->user_data); in ngtcp2_mem_realloc() 106 void *nptr = mem->realloc(ptr, size, mem->user_data); in ngtcp2_mem_realloc_debug() 108 fprintf(stderr, "realloc %p ptr=%p size=%zu in %s at %s:%zu\n", nptr, ptr, in ngtcp2_mem_realloc_debug()
|
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_mem.c | 52 return realloc(ptr, size); in default_realloc() 74 return mem->realloc(ptr, size, mem->user_data); in nghttp3_mem_realloc() 117 void *nptr = mem->realloc(ptr, size, mem->user_data); in nghttp3_mem_realloc_debug() 119 fprintf(stderr, "realloc %p ptr=%p size=%zu in %s at %s:%zu\n", nptr, ptr, in nghttp3_mem_realloc_debug()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_malloc.cpp | 72 benchmark::DoNotOptimize(realloc(p, size * 2)); in Bm_function_realloc_twice() 90 benchmark::DoNotOptimize(realloc(p, size / 2)); in Bm_function_realloc_half() 108 benchmark::DoNotOptimize(realloc(p, size)); in Bm_function_realloc_equal()
|
/third_party/nghttp2/lib/ |
H A D | nghttp2_mem.c | 48 return realloc(ptr, size); in default_realloc() 73 return mem->realloc(ptr, size, mem->mem_user_data); in nghttp2_mem_realloc()
|
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_mem.c | 48 return realloc(ptr, size); in default_realloc() 73 return mem->realloc(ptr, size, mem->mem_user_data); in nghttp2_mem_realloc()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | nodearray.h | 196 bool realloc = (++a->size) > a->sparse_capacity; in nodearray_orr() 198 if (realloc) { in nodearray_orr() 214 if (realloc) in nodearray_orr()
|
/third_party/musl/src/stdio/ |
H A D | getdelim.c | 38 tmp = realloc(*s, m); in getdelim() 41 tmp = realloc(*s, m); in getdelim()
|
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/ |
H A D | sched_getaffinity01.c | 48 realloc: in do_test() 61 goto realloc; in do_test()
|
/third_party/popt/src/ |
H A D | system.h | 47 #define xrealloc(_ptr, _size) (realloc((_ptr), (_size)) ? : vmefail()) 52 #define xrealloc(_ptr, _size) realloc((_ptr), (_size))
|
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftdbgmem.c | 137 FT_Realloc_Func realloc; member 798 table->realloc = memory->realloc; in ft_mem_debug_init() 810 memory->realloc = ft_mem_debug_realloc; in ft_mem_debug_init() 868 memory->realloc = table->realloc; in ft_mem_debug_done()
|
/third_party/libwebsockets/lib/core/ |
H A D | alloc.c | 68 return realloc(buffer, newSize); in TEE_Realloc() 133 v = (void *)realloc(ptr, size); in _realloc()
|
/third_party/ltp/testcases/kernel/mem/mem/ |
H A D | mem02.c | 27 >KEYS: < calloc, malloc, free, realloc, valloc 157 /* check out realloc */ in main() 163 /* realloc with reduced size */ in main() 164 pm4 = realloc(pm3, 5); in main() 170 "realloc changed memory contents"); in main() 174 tst_resm(TPASS, "realloc - realloc of 5 bytes succeeded"); in main() 176 /* realloc with increased size after fragmenting memory */ in main() 177 pm4 = realloc(pm3, 15); in main() 183 "realloc change in main() [all...] |