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

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/memcheck/tests/
pdb-realloc.vgtest 1 prog: pdb-realloc
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:
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);
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
  /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)'.
filter_stderr 11 perl -n -e 'print if !/^Massif: (malloc|calloc|realloc|memalign)_common$/' |
14 perl -n -e 'print if !/^Massif: malloc_zone_(malloc|calloc|realloc|memalign|valloc)$/'
  /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/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/bison/m4/
realloc.m4 0 # 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.]
    [all...]
  /system/extras/memory_replay/dumps/
README 20 realloc - Allocate memory using the realloc function.
41 <tid>:realloc <new_ptr> <old_ptr> <size>
42 Allocation made by realloc(<old_ptr>, <size>). <old_ptr> can be 0x0
43 to indicate a realloc with a nullptr. <new_ptr> is the value returned
44 by realloc.
48 300: realloc 0x96b90920 0x93605280 150
  /external/compiler-rt/test/msan/
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]]
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]]
allocator_returns_null.cc 1 // 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-after-malloc:\n")
    [all...]
  /external/e2fsprogs/e2fsck/
mtrace.awk 20 print "-", $2, "Realloc", NR, "was never alloc'd";
23 print "+", $2, "Realloc", NR, "duplicate:", allocated[$2];
30 # Ignore failed realloc attempts for now
  /external/compiler-rt/test/tsan/
allocator_returns_null.cc 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge.
10 // RUN: %env_tsan_opts=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH
11 // RUN: %env_tsan_opts=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...]
  /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 }}
free_hook_realloc.cc 1 // Check that free hook doesn't conflict with Realloc.
27 int *y = (int*)realloc(x, 200);
realloc_left_oob.cc 7 char *buffer = (char*)realloc(0, 42);
14 // CHECK-NEXT: {{#0 .* realloc }}
  /external/dlmalloc/
NOTICE 1 This is a version (aka dlmalloc) of malloc/free/realloc written by
  /external/compiler-rt/test/asan/TestCases/
allocator_returns_null.cc 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge.
13 // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH
14 // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rNULL
15 // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH
16 // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrNULL
48 if (!strcmp(argv[1], "realloc")) {
49 fprintf(stderr, "realloc:\n");
50 x = realloc(0, size);
52 if (!strcmp(argv[1], "realloc-after-malloc")) {
53 fprintf(stderr, "realloc-after-malloc:\n")
    [all...]
  /external/bison/lib/
realloc.c 0 /* 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);
  /bionic/linker/
linker_memory.cpp 31 void* realloc(void* p, size_t byte_count) { function
32 return g_linker_allocator.realloc(p, byte_count);
  /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);

Completed in 1209 milliseconds

1 2 3 4 5 6 7 8 91011>>