Home
last modified time | relevance | path

Searched refs:realloc (Results 1 - 25 of 593) sorted by relevance

12345678910>>...24

/third_party/skia/tests/
H A DTemplatesTest.cpp19 // 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 Drealloc.c28 * @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 Dhook_realloc_test.cpp16 * @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 Dunity_memory_Test.c69 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 Dmusl_preinit_common.c24 .realloc = libc_gwp_asan_realloc,
36 .realloc = MuslFunc(realloc),
H A Dmalloc_common.c139 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 Dmusl_preinit_common.c39 .realloc = libc_gwp_asan_realloc,
51 .realloc = MuslFunc(realloc),
H A Dmalloc_common.c172 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 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);
/third_party/cJSON/tests/unity/extras/fixture/test/
H A Dunity_fixture_Test.c62 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 Dcurl_memory.h31 * 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 Dares_library_init.c62 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 Dbrw_ir_allocator.h53 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 Dngtcp2_mem.c51 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 Dnghttp3_mem.c52 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 Dlibc_malloc.cpp72 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 Dnghttp2_mem.c48 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 Dnghttp2_mem.c48 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 Dnodearray.h196 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 Dgetdelim.c38 tmp = realloc(*s, m); in getdelim()
41 tmp = realloc(*s, m); in getdelim()
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/
H A Dsched_getaffinity01.c48 realloc: in do_test()
61 goto realloc; in do_test()
/third_party/popt/src/
H A Dsystem.h47 #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 Dftdbgmem.c137 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 Dalloc.c68 return realloc(buffer, newSize); in TEE_Realloc()
133 v = (void *)realloc(ptr, size); in _realloc()
/third_party/ltp/testcases/kernel/mem/mem/
H A Dmem02.c27 >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...]

Completed in 8 milliseconds

12345678910>>...24