Home
last modified time | relevance | path

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

12345678910>>...28

/external/valgrind/main/massif/tests/
Dignored.c17 x = realloc(x, 800); in ignore2()
18 x = realloc(x, 400); in ignore2()
21 ignored_x = realloc(ignored_x, 800); in ignore2()
22 ignored_x = realloc(ignored_x, 400); in ignore2()
38 x = realloc(x, 800); in main()
39 x = realloc(x, 400); in main()
42 ignored_x = realloc(ignored_x, 800); in main()
43 ignored_x = realloc(ignored_x, 400); in main()
47 x = realloc(ignored_x, 0); // equivalent to 'free(ignored_x)'. in main()
Drealloc.c5 int* x = realloc(NULL, 800); // equivalent to malloc(800), and ends up in main()
8 x = realloc(x, 800); // same size in main()
10 x = realloc(x, 400); // smaller in main()
12 x = realloc(x, 1200); // bigger in main()
14 y = realloc(x+10, 1600); // bogus realloc in main()
16 x = realloc(x, 0); // equivalent to free(x), and ends up in main()
Drealloc.stderr.exp10 Massif: realloc
25 Massif: realloc S. 2 (t:800, hp:800, ex:0, st:0)
27 Massif: realloc S. 4 (t:800, hp:400, ex:400, st:0)
28 Massif: realloc S. 5 (t:1200, hp:1200, ex:0, st:0)
/external/bison/m4/
Drealloc.m41 # realloc.m4 serial 13
16 AC_CACHE_CHECK([for GNU libc compatible realloc],
23 char *realloc ();
26 [[return ! realloc (0, 0);]])
47 # Test whether 'realloc (0, 0)' is handled like in GNU libc, and replace
48 # realloc if it is not.
55 [Define to 1 if your system has a GNU libc compatible 'realloc'
64 # Test whether 'realloc' is POSIX compliant (sets errno to ENOMEM when it
65 # fails), and replace realloc if it is not.
72 [Define if the 'realloc' function is POSIX compliant.])
/external/valgrind/main/drd/tests/
Dmemory_allocation.c20 p = realloc(NULL, 40960); in main()
21 p = realloc(p, 50000); in main()
22 p = realloc(p, 40000); in main()
23 p = realloc(p, 0); in main()
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
Dwrapper.c29 void *ret = realloc(ptr, size); in xrealloc()
31 ret = realloc(ptr, 1); in xrealloc()
34 ret = realloc(ptr, size); in xrealloc()
36 ret = realloc(ptr, 1); in xrealloc()
Dvalues.c47 values->pid = realloc(values->pid, in perf_read_values__enlarge_threads()
49 values->tid = realloc(values->tid, in perf_read_values__enlarge_threads()
51 values->value = realloc(values->value, in perf_read_values__enlarge_threads()
84 values->counterrawid = realloc(values->counterrawid, in perf_read_values__enlarge_counters()
86 values->countername = realloc(values->countername, in perf_read_values__enlarge_counters()
92 values->value[i] = realloc(values->value[i], in perf_read_values__enlarge_counters()
/external/clang/test/Analysis/
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()
Dmalloc.c11 void *realloc(void *ptr, size_t size);
35 realloc(p,0); in f2_realloc_0()
36 realloc(p,0); // expected-warning{{Attempt to free released memory}} in f2_realloc_0()
41 int *q = realloc(p,0); // no-warning in f2_realloc_1()
48 char *q = (char*)realloc(p, sizeIn); in reallocNotNullPtr()
55 q = realloc(q, 20); in realloctest1()
62 char *r = realloc(p, 12+1); in reallocFails()
72 char *r = realloc(p, 0); in reallocSizeZero1()
82 char *r = realloc(p, 0); in reallocSizeZero2()
93 char *r = realloc(p, 0); in reallocSizeZero3()
[all …]
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()
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 …
80realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new' should be deallocated by …
85realloc(p, sizeof(long)); // expected-warning{{Memory allocated by operator new should be dealloca…
90realloc(p, sizeof(long)); // expected-warning{{Memory allocated by 'new[]' should be deallocated b…
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()
/external/flac/include/share/
Dalloc.h161 return realloc(ptr, size2); in safe_realloc_add_2op_()
172 return realloc(ptr, size3); in safe_realloc_add_3op_()
186 return realloc(ptr, size4); in safe_realloc_add_4op_()
192 return realloc(ptr, 0); /* preserve POSIX realloc(ptr, 0) semantics */ in safe_realloc_mul_2op_()
195 return realloc(ptr, size1*size2); in safe_realloc_mul_2op_()
202 return realloc(ptr, 0); /* preserve POSIX realloc(ptr, 0) semantics */ in safe_realloc_muladd2_()
/external/chromium_org/content/browser/renderer_host/media/
Dvideo_capture_buffer_pool.cc122 BufferMap::iterator realloc = buffers_.end(); in ReserveForProducerInternal() local
133 realloc = it; in ReserveForProducerInternal()
141 if (realloc == buffers_.end()) { in ReserveForProducerInternal()
145 *buffer_id_to_drop = realloc->first; in ReserveForProducerInternal()
146 delete realloc->second; in ReserveForProducerInternal()
147 buffers_.erase(realloc); in ReserveForProducerInternal()
/external/valgrind/main/memcheck/tests/
Drealloc3.c19 x = realloc(x, 5); // same size in main()
20 y = realloc(y, 5); // make smaller in main()
21 z = realloc(z, 5); // make bigger in main()
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:...)
Drealloc2.c15 p = realloc(p, 500); in main()
16 p = realloc(p, 600); in main()
Dbadfree.stderr.exp1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
Dbadfree-2trace.stderr.exp1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
Dbadfree3.stderr.exp1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
/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/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/lib/asan/
Dasan_malloc_linux.cc30 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size)
38 void *(*realloc)(void *oldMem, uptr bytes); member
45 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
99 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { in INTERCEPTOR() argument
/external/chromium_org/third_party/libevent/
Dselect.c224 if ((readset_in = realloc(sop->event_readset_in, fdsz)) == NULL) in select_resize()
227 if ((readset_out = realloc(sop->event_readset_out, fdsz)) == NULL) in select_resize()
230 if ((writeset_in = realloc(sop->event_writeset_in, fdsz)) == NULL) in select_resize()
233 if ((writeset_out = realloc(sop->event_writeset_out, fdsz)) == NULL) in select_resize()
236 if ((r_by_fd = realloc(sop->event_r_by_fd, in select_resize()
240 if ((w_by_fd = realloc(sop->event_w_by_fd, in select_resize()
/external/bison/lib/
Drealloc.c25 #ifdef realloc
71 result = realloc (p, n); in rpl_realloc()

12345678910>>...28