Searched refs:realloc (Results 1 - 25 of 606) 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/compiler-rt/test/asan/TestCases/Windows/
H A Duse_after_realloc.cc7 char *buffer = (char*)realloc(0, 32),
9 buffer = (char*)realloc(buffer, 64);
17 // CHECK-NEXT: {{#0 .* realloc }}
20 // CHECK-NEXT: {{#0 .* realloc }}
H A Drealloc_left_oob.cc7 char *buffer = (char*)realloc(0, 42);
14 // CHECK-NEXT: {{#0 .* realloc }}
H A Drealloc_right_oob.cc7 char *buffer = (char*)realloc(0, 42);
14 // CHECK-NEXT: {{#0 .* realloc }}
H A Drealloc_uaf.cc7 char *buffer = (char*)realloc(0, 42);
18 // CHECK-NEXT: {{#0 .* realloc }}
/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 Daccounting.c2 * test case for valgrind realloc() bug
17 r = realloc(p, -1);
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 Dbadfree3.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:...)
H A Dundef_malloc_args.c19 new_p = realloc(p, def_size);
22 new_p = realloc(new_p, def_size);
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dwrapper.c29 void *ret = realloc(ptr, size);
31 ret = realloc(ptr, 1);
34 ret = realloc(ptr, size);
36 ret = realloc(ptr, 1);
38 die("Out of memory, realloc failed");
/external/compiler-rt/SDKs/darwin/usr/include/
H A Dstdlib.h30 void *realloc(void *, size_t);
/external/bison/lib/
H A Drealloc.c0 /* realloc() function that is glibc compatible.
24 /* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
25 #ifdef realloc
27 /* Whereas the gnulib module 'realloc-gnu' defines HAVE_REALLOC_GNU. */
56 /* In theory realloc might fail, so don't rely on it to free. */
71 result = realloc (p, n);
/external/compiler-rt/test/asan/TestCases/
H A Dfree_hook_realloc.cc27 int *y = (int*)realloc(x, 200);
/external/compiler-rt/test/msan/
H A Dallocator_returns_null.cc1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge.
13 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH
14 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rNULL
15 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH
16 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrNULL
45 if (!strcmp(argv[1], "realloc")) {
46 fprintf(stderr, "realloc:\n");
47 x = (char*)realloc(0, size);
49 if (!strcmp(argv[1], "realloc-after-malloc")) {
50 fprintf(stderr, "realloc
[all...]
/external/compiler-rt/test/tsan/
H A Dallocator_returns_null.cc1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge.
10 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH
11 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH
40 if (!strcmp(argv[1], "realloc")) {
41 fprintf(stderr, "realloc:\n");
42 x = (char*)realloc(0, size);
44 if (!strcmp(argv[1], "realloc-after-malloc")) {
45 fprintf(stderr, "realloc-after-malloc:\n");
48 x = (char*)realloc(t, size);
60 // CHECK-rCRASH: realloc
[all...]

Completed in 255 milliseconds

1234567891011>>