Searched refs:malloc (Results 76 - 100 of 3544) sorted by relevance

1234567891011>>

/external/compiler-rt/test/asan/TestCases/Darwin/
H A Dmalloc_zone-protected.cc2 #include <malloc/malloc.h>
16 zone->malloc = pwn;
/external/compiler-rt/test/scudo/
H A Dmalloc.cpp7 #include <malloc.h>
16 p = malloc(size);
21 p = malloc(0);
H A Doverflow.cpp2 // RUN: not %run %t malloc 2>&1 | FileCheck %s
14 if (!strcmp(argv[1], "malloc")) {
16 void *p = malloc(1U << 4);
23 void *p = malloc(1U << 4);
31 p = malloc(1U << 16);
H A Dpreinit.cpp4 // Verifies that calling malloc in a preinit_array function succeeds, and that
7 #include <malloc.h>
14 global_p = malloc(1);
26 void *p = malloc(1);
/external/libgsm/src/
H A Dgsm_create.c22 # include <malloc.h>
24 extern char * malloc();
38 r = (gsm)malloc(sizeof(struct gsm_state));
/external/valgrind/memcheck/tests/
H A Dclo_redzone.c6 __attribute__((unused)) char *p = malloc (1);
7 char *b1 = malloc (128);
8 char *b2 = malloc (128);
H A Dfprw.c11 double* dp = malloc(sizeof(double));
12 float* fp = malloc(sizeof(float));
23 ip = malloc(sizeof(int));
H A Dmismatches.cpp5 int* fpointer = (int*)malloc(10);
7 fpointer = (int*)malloc(10);
9 fpointer = (int*)malloc(10);
H A Dstatic_malloc.c5 void* malloc(size_t i) { function
16 p = malloc(10);
17 p = malloc(123);
H A Drealloc3.c5 but by the previous malloc() or whatever. While this is true in one
14 int* x = malloc(5);
15 int* y = malloc(10);
16 int* z = malloc(2);
/external/clang/test/Analysis/
H A Dmalloc-plist.c6 void *malloc(size_t);
12 int *p = malloc(12);
20 A = malloc(2*sizeof(int*));
25 char * buf = malloc(100);
36 void *x = malloc(100);
54 *x = malloc(100);
75 char *buf = (char *)malloc(100);
82 return (char*)malloc(12);
99 int *p = malloc(sizeof(int));
108 p = (int*)malloc(1
[all...]
H A Dmalloc-annotations.c3 void *malloc(size_t);
7 void __attribute((ownership_returns(malloc))) *my_malloc(size_t);
8 void __attribute((ownership_takes(malloc, 1))) my_free(void *);
10 __attribute((ownership_holds(malloc, 1, 2)));
11 void __attribute((ownership_returns(malloc, 1))) *my_malloc2(size_t);
12 void __attribute((ownership_holds(malloc, 1))) my_hold(void *);
17 void __attribute((ownership_holds(malloc, 1)))
18 __attribute((ownership_holds(malloc, 1)))
19 __attribute((ownership_holds(malloc, 3))) my_hold2(void *, void *, void *);
28 int *p = malloc(1
[all...]
H A Dundef-buffers.c3 void *malloc(size_t);
30 char *buf = malloc(2);
38 char *buf = malloc(2);
/external/valgrind/memcheck/tests/s390x/
H A Dcu42.c47 do_cu42(malloc(1), 10, pattern2, 4); // complaint (2 bytes)
50 do_cu42(malloc(2), 10, pattern2, 4); // no complaint
53 do_cu42(malloc(1), 10, pattern4, 4); // complaint (4 bytes)
56 do_cu42(malloc(2), 10, pattern4, 4); // complaint (4 bytes)
59 do_cu42(malloc(3), 10, pattern4, 4); // complaint (4 bytes)
62 do_cu42(malloc(4), 10, pattern4, 4); // no complaint
71 input = malloc(10);
75 input = malloc(10);
80 input = malloc(10);
85 input = malloc(1
[all...]
/external/compiler-rt/test/asan/TestCases/Windows/
H A Dallocators_sanity.cc4 #include <malloc.h>
8 int *p = (int*)malloc(1024 * sizeof(int));
12 p = (int*)malloc(128);
H A Ddll_allocators_sanity.cc5 #include <malloc.h>
10 int *p = (int*)malloc(1024 * sizeof(int));
14 p = (int*)malloc(128);
H A Ddll_stack_use_after_return.cc5 #include <malloc.h>
H A Don_error_callback.cc16 char *x = (char*)malloc(10 * sizeof(char));
H A Duse_after_realloc.cc4 #include <malloc.h>
/external/cmockery/cmockery_0_1_2/src/example/
H A Dallocate_module.c24 #define malloc(size) _test_malloc(size, __FILE__, __LINE__) macro
30 int * const temporary = (int*)malloc(sizeof(int));
35 char * const memory = (char*)malloc(sizeof(int));
41 char * const memory = (char*)malloc(sizeof(int));
/external/compiler-rt/test/lsan/TestCases/
H A Dpointer_to_self.cc11 void *p = malloc(1337);
H A Duse_after_return.cc13 void *stack_var = malloc(1337);
H A Duse_globals_initialized.cc14 data_var = malloc(1337);
H A Duse_globals_uninitialized.cc14 bss_var = malloc(1337);
H A Duse_stacks.cc12 void *stack_var = malloc(1337);

Completed in 1385 milliseconds

1234567891011>>