Searched refs:malloc (Results 51 - 75 of 2724) sorted by relevance

1234567891011>>

/external/valgrind/massif/tests/
H A Dbig-alloc.c12 malloc(10 * 1024 * 1024);
H A Dculling1.c7 malloc(16); // divisible by 16 -- no slop
H A Dlong-time.c12 x1 = malloc( 800 * 1000);
13 x2 = malloc(1100 * 1000);
15 x3 = malloc(1200 * 1000);
18 x4 = malloc( 900 * 1000);
H A Dthresholds.c7 // Also, it's deliberate that the 'malloc(2000)' and 'my_malloc1(500)' calls
23 malloc(n);
28 malloc(n);
33 malloc(n);
55 malloc(16000);
H A Dculling2.c7 malloc(400*i); // Divisible by 16 -- no slop.
/external/valgrind/memcheck/tests/
H A Dbug155125.c4 { malloc(-10); }
H A Dnanoleak2.c20 a = malloc(1000); // Becomes a reachable leak.
H A Dnanoleak_supp.c6 volatile int* a = malloc(1000);
H A Dmalloc_free_fill.stderr.exp1 test simple malloc/free:
2 PASSED: malloc-filled
6 PASSED: malloc-filled
8 PASSED: malloc-filled
11 PASSED: malloc-filled
H A Dlong-supps.c12 int* x = malloc(sizeof(int));
/external/valgrind/memcheck/tests/s390x/
H A Dcu21.c62 do_cu21(malloc(1), 10, pattern2, 2); // complaint (2 bytes)
65 do_cu21(malloc(2), 10, pattern2, 2); // no complaint
68 do_cu21(malloc(1), 10, pattern3, 2); // 2 complaints (3 = 2+1)
71 do_cu21(malloc(2), 10, pattern3, 2); // complaint (1 byte)
74 do_cu21(malloc(3), 10, pattern3, 2); // no complaint
77 do_cu21(malloc(1), 10, pattern4, 4); // complaint (4 bytes)
80 do_cu21(malloc(2), 10, pattern4, 4); // complaint (4 bytes)
83 do_cu21(malloc(3), 10, pattern4, 4); // complaint (4 bytes)
86 do_cu21(malloc(4), 10, pattern4, 4); // no complaint
91 uint8_t *input = malloc(1
[all...]
/external/clang/test/Analysis/
H A Dmalloc-sizeof.c5 void *malloc(size_t size);
14 int *ip1 = malloc(sizeof(1));
15 int *ip2 = malloc(4 * sizeof(int));
17 long *lp1 = malloc(sizeof(short)); // expected-warning {{Result of 'malloc' is converted to a pointer of type 'long', which is incompatible with sizeof operand type 'short'}}
18 long *lp2 = malloc(5 * sizeof(double)); // expected-warning {{Result of 'malloc' is converted to a pointer of type 'long', which is incompatible with sizeof operand type 'double'}}
19 char *cp3 = malloc(5 * sizeof(char) + 2); // no warning
20 unsigned char *buf = malloc(readSize + sizeof(unsignedInt)); // no warning
33 const char **x = (const char **)malloc(
[all...]
H A Dmalloc-overflow2.c4 extern void *malloc(size_t);
7 void *malloc(unsigned long s);
18 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); // expected-warning {{the computation of the size of the memory allocation may overflow}}
22 int *p = malloc(sizeof(int) * n); // no-warning
30 t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry); // no-warning
35 return malloc(n * 0 * sizeof(int)); // expected-warning {{Call to 'malloc' has an allocation size of 0 bytes}}
H A Dredefined_system.c7 char malloc();
16 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
/external/compiler-rt/test/asan/TestCases/
H A Dstrncpy-overflow.cc13 char *hello = (char*)malloc(6);
15 char *short_buffer = (char*)malloc(9);
24 // CHECK-Linux: {{ #0 0x.* in .*malloc}}
H A Dpartial_right.cc8 volatile int *x = (int*)malloc(2*sizeof(int) + 2);
/external/compiler-rt/test/lsan/TestCases/
H A Ddisabler.cc18 *p = malloc(666);
19 void *q = malloc(1337);
H A Dsuppressions_default.cc16 void *p = malloc(666);
22 void *q = malloc(1337);
H A Dsuppressions_file.cc18 void *p = malloc(666);
24 void *q = malloc(1337);
H A Dlarge_allocation_leak.cc11 void *large_alloc = malloc(33554432);
/external/valgrind/memcheck/tests/x86-linux/
H A Dscalar_supp.c8 int* pi = malloc(sizeof(int));
11 char** pc = malloc(sizeof(char*));
/external/curl/tests/unit/
H A Dunit1330.c38 char *ptr = malloc(1330);
/external/bison/lib/
H A Dmalloc.c0 /* malloc() function that is glibc compatible.
22 /* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */
23 #ifdef malloc
25 # undef malloc macro
26 /* Whereas the gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
48 result = malloc (n);
/external/clang/test/Analysis/diagnostics/
H A Dfalse-positive-suppression.c7 void *malloc(size_t);
10 int *p = malloc(12);
19 int *p = malloc(12);
/external/compiler-rt/test/asan/TestCases/Darwin/
H A Dmalloc_zone-protected.cc2 #include <malloc/malloc.h>
16 zone->malloc = pwn;

Completed in 1878 milliseconds

1234567891011>>