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

1234567891011>>

/external/valgrind/main/massif/tests/
H A Drealloc.c5 int* x = realloc(NULL, 800); // equivalent to malloc(800), and ends up
8 x = realloc(x, 800); // same size
10 x = realloc(x, 400); // smaller
12 x = realloc(x, 1200); // bigger
14 y = realloc(x+10, 1600); // bogus realloc
16 x = realloc(x, 0); // equivalent to free(x), and ends up
H A Dignored.c17 x = realloc(x, 800);
18 x = realloc(x, 400);
21 ignored_x = realloc(ignored_x, 800);
22 ignored_x = realloc(ignored_x, 400);
38 x = realloc(x, 800);
39 x = realloc(x, 400);
42 ignored_x = realloc(ignored_x, 800);
43 ignored_x = realloc(ignored_x, 400);
47 x = realloc(ignored_x, 0); // equivalent to 'free(ignored_x)'.
H A Drealloc.post.exp2 Command: ./realloc
43 ->100.00% (800B) 0x........: main (realloc.c:8)
45 ->00.00% (0B) 0x........: main (realloc.c:5)
54 ->100.00% (1,200B) 0x........: main (realloc.c:12)
56 ->00.00% (0B) 0x........: main (realloc.c:5)
58 ->00.00% (0B) 0x........: main (realloc.c:8)
60 ->00.00% (0B) 0x........: main (realloc.c:10)
/external/valgrind/main/drd/tests/
H A Dmemory_allocation.c20 p = realloc(NULL, 40960);
21 p = realloc(p, 50000);
22 p = realloc(p, 40000);
23 p = realloc(p, 0);
25 * glibc returns a NULL pointer when the size argument passed to realloc()
/external/valgrind/main/memcheck/tests/
H A Drealloc3.c1 /* For a long time (from Valgrind 1.0 to 1.9.6, AFAICT) when realloc() was
4 referred to it would state that it was allocated not by the realloc(),
8 ExeContexts should be updated upon their realloc(). I hope that's clear.
19 x = realloc(x, 5); // same size
20 y = realloc(y, 5); // make smaller
21 z = realloc(z, 5); // make bigger
H A Drealloc2.c3 realloc time due to bad ordering of the things happening. Now runs
15 p = realloc(p, 500);
16 p = realloc(p, 600);
H A Dmalloc_free_fill.stderr.exp5 test realloc-larger:
10 test realloc-smaller:
H A Drealloc1.c15 p = realloc(p, i);
H A Dbadfree-2trace.stderr.exp1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
H A Dbadfree.stderr.exp1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
H A Dpdb-realloc.c22 // realloc them, invoking copy_address_range_state()
23 x = realloc(x, 10000);
H A Drealloc3.stderr.exp4 at 0x........: realloc (vg_replace_malloc.c:...)
10 at 0x........: realloc (vg_replace_malloc.c:...)
16 at 0x........: realloc (vg_replace_malloc.c:...)
/external/linux-tools-perf/util/
H A Dwrapper.c28 void *ret = realloc(ptr, size);
30 ret = realloc(ptr, 1);
33 ret = realloc(ptr, size);
35 ret = realloc(ptr, 1);
37 die("Out of memory, realloc failed");
/external/webkit/Tools/android/flex-2.5.4a/MISC/Macintosh/
H A Dxmalloc.c22 char *realloc ();
64 p = realloc (p, n);
/external/skia/third_party/glu/libtess/
H A Dmemalloc.h48 #define memRealloc realloc
/external/hyphenation/
H A Dhnjalloc.c58 p = realloc (p, size);
/external/icu4c/samples/layout/
H A Darraymem.h20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
/external/llvm/lib/Support/
H A DSmallVector.cpp34 NewElts = realloc(this->BeginX, NewCapacityInBytes);
/external/clang/test/Analysis/
H A Dmalloc-sizeof.c7 void *realloc(void *ptr, size_t size);
27 struct A *ap6 = realloc(ap5, sizeof(struct A));
28 struct A *ap7 = realloc(ap5, sizeof(struct B)); // expected-warning {{Result of 'realloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct B'}}
H A Dmalloc-annotations.c5 void *realloc(void *ptr, size_t size);
40 realloc(p,0);
41 realloc(p,0); // expected-warning{{Attempt to free released memory}}
46 int *q = realloc(p,0); // no-warning
167 q = realloc(q, 20);
184 realloc(p,0);
206 realloc(x,0);
H A Dmalloc.c10 void *realloc(void *ptr, size_t size);
33 realloc(p,0);
34 realloc(p,0); // expected-warning{{Attempt to free released memory}}
39 int *q = realloc(p,0); // no-warning
46 char *q = (char*)realloc(p, sizeIn);
53 q = realloc(q, 20);
57 // p should be freed if realloc fails.
60 char *r = realloc(p, 12+1);
70 char *r = realloc(p, 0);
80 char *r = realloc(
[all...]
H A Dmalloc-plist.c8 void *realloc(void *ptr, size_t size);
27 tmp = (char*)realloc(buf, 0x1000000);
68 tmp = (char*)realloc(buf, 0x1000000);
/external/clang/test/Sema/
H A Dimplicit-builtin-decl.c39 void * realloc(void *p, int size) { // expected-warning{{incompatible redeclaration of library function 'realloc'}} \ function
40 // expected-note{{'realloc' is a builtin with type 'void *(void *,}}
/external/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cc13 // We simply define functions like malloc, free, realloc, etc.
27 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size);
34 void* (*realloc)(void* oldMem, uptr bytes); member in struct:MallocDebug
39 WRAP(malloc), WRAP(free), WRAP(calloc), WRAP(realloc), WRAP(memalign)
92 INTERCEPTOR(void*, realloc, void *ptr, uptr size) {
/external/icu4c/test/letest/
H A Dletest.h33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])

Completed in 508 milliseconds

1234567891011>>