HomeSort by relevance Sort by last modified time
    Searched refs:realloc (Results 1 - 25 of 979) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/massif/tests/
realloc.c 5 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
ignored.c 17 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)'.
  /external/compiler-rt/test/asan/TestCases/Windows/
use_after_realloc.cc 7 char *buffer = (char*)realloc(0, 32),
9 buffer = (char*)realloc(buffer, 64);
17 // CHECK-NEXT: {{#0 .* realloc }}
20 // CHECK-NEXT: {{#0 .* realloc }}
realloc_left_oob.cc 7 char *buffer = (char*)realloc(0, 42);
14 // CHECK-NEXT: {{#0 .* realloc }}
realloc_right_oob.cc 7 char *buffer = (char*)realloc(0, 42);
14 // CHECK-NEXT: {{#0 .* realloc }}
realloc_uaf.cc 7 char *buffer = (char*)realloc(0, 42);
18 // CHECK-NEXT: {{#0 .* realloc }}
free_hook_realloc.cc 1 // Check that free hook doesn't conflict with Realloc.
27 int *y = (int*)realloc(x, 200);
  /external/valgrind/drd/tests/
memory_allocation.c 20 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/memcheck/tests/
realloc3.c 1 /* 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
realloc2.c 3 realloc time due to bad ordering of the things happening. Now runs
15 p = realloc(p, 500);
16 p = realloc(p, 600);
accounting.c 2 * test case for valgrind realloc() bug
17 r = realloc(p, -1);
malloc_free_fill.stderr.exp 5 test realloc-larger:
10 test realloc-smaller:
realloc1.c 15 p = realloc(p, i);
badfree-2trace.stderr.exp 1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
badfree.stderr.exp 1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
badfree3.stderr.exp 1 Invalid free() / delete / delete[] / realloc()
6 Invalid free() / delete / delete[] / realloc()
  /external/compiler-rt/test/scudo/
realloc.cpp 24 old_p = p = realloc(nullptr, size);
28 // Our realloc implementation will return the same pointer if the size
30 p = realloc(p, size - 1);
33 p = realloc(p, size);
37 p = realloc(p, size + 1);
41 p = realloc(p, 0);
47 p = realloc(nullptr, size);
52 p = realloc(p, size + 1);
63 p = realloc(p, size);
  /external/compiler-rt/test/msan/
realloc-large-origin.cc 15 p = (char *)realloc(p, 10000);
21 // CHECK: {{#0 0x.* in main .*realloc-large-origin.cc:}}[[@LINE-3]]
24 // CHECK: {{#0 0x.* in .*realloc}}
25 // CHECK: {{#1 0x.* in main .*realloc-large-origin.cc:}}[[@LINE-10]]
29 // CHECK: {{#1 0x.* in main .*realloc-large-origin.cc:}}[[@LINE-15]]
realloc-origin.cc 6 // This test relies on realloc from 100 to 101 being done in-place.
11 p = (char *)realloc(p, 101);
16 // CHECK: {{#0 0x.* in main .*realloc-origin.cc:}}[[@LINE-2]]
19 // CHECK: {{#0 0x.* in .*realloc}}
20 // CHECK: {{#1 0x.* in main .*realloc-origin.cc:}}[[@LINE-9]]
  /external/skia/tests/
TemplatesTest.cpp 19 // using realloc for init
20 array.realloc(1);
25 // verify realloc can grow
26 array.realloc(2);
29 // realloc can shrink
30 array.realloc(1);
34 array.realloc(0);
37 array.realloc(10);
41 array.realloc(20);
45 array.realloc(10)
    [all...]
  /external/skqp/tests/
TemplatesTest.cpp 19 // using realloc for init
20 array.realloc(1);
25 // verify realloc can grow
26 array.realloc(2);
29 // realloc can shrink
30 array.realloc(1);
34 array.realloc(0);
37 array.realloc(10);
41 array.realloc(20);
45 array.realloc(10)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_ir_allocator.h 52 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned));
53 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned));
  /device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/
BaseMemAllocation.c 29 void *realloc (void *ptr, size_t size) function
  /external/compiler-rt/test/asan/TestCases/Posix/
free_hook_realloc.cc 1 // Check that free hook doesn't conflict with Realloc.
24 int *y = (int*)realloc(x, 200);
  /external/icu/icu4c/source/tools/tzcode/
ialloc.c 22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL)

Completed in 410 milliseconds

1 2 3 4 5 6 7 8 91011>>