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

1234567891011>>

/external/valgrind/memcheck/tests/
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.c8 void *malloc(size_t);
24 int *p = malloc(12);
29 int *p = malloc(12);
35 int *p = malloc(12);
41 int *p = malloc(12);
47 char *p = (char*)malloc(size);
63 int *q = malloc(12);
70 char *p = malloc(12);
80 char *p = malloc(12);
90 char *p = 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 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);
93 p = (int*)malloc(12);
103 char *x = (char*)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/asan/TestCases/Posix/
H A Dassign_large_valloc_to_global.cc6 # include <malloc.h>
/external/compiler-rt/test/asan/TestCases/
H A Don_error_callback.cc12 char *x = (char*)malloc(10 * sizeof(char));
/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);
H A Duse_tls_static.cc14 tls_var = malloc(1337);
/external/compiler-rt/test/msan/
H A Dcheck_mem_is_initialized.cc23 int *volatile p = (int *)malloc(sizeof(int));
30 // CHECK-ORIGINS: {{#0 0x.* in .*malloc}}
H A Dkeep-going.cc27 char *volatile x = (char*)malloc(5 * sizeof(char));
H A Duse-after-free.cc21 int *volatile p = (int *)malloc(sizeof(int));
/external/lldb/test/functionalities/inferior-changed/
H A Dmain2.c14 int *int_ptr = (int *)malloc(sizeof(int));

Completed in 412 milliseconds

1234567891011>>