Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 3471) sorted by relevance

12345678910>>...139

/external/valgrind/massif/tests/
Dinsig.c8 malloc(16000); // all sizes are divisible by 16 -- no slop in main()
9 malloc(240); in main()
10 malloc(192); in main()
11 malloc(16); in main()
12 malloc(16); in main()
13 malloc(16); in main()
14 malloc(16); in main()
15 malloc(16); in main()
16 malloc(16); in main()
17 malloc(16); in main()
[all …]
Dzero.c8 free(malloc(0)); in main()
9 free(malloc(0)); in main()
10 free(malloc(0)); in main()
11 free(malloc(0)); in main()
12 free(malloc(0)); in main()
13 free(malloc(0)); in main()
14 free(malloc(0)); in main()
15 free(malloc(0)); in main()
16 free(malloc(0)); in main()
17 free(malloc(0)); in main()
/external/clang/test/Analysis/
Dmalloc.c23 void *malloc(size_t);
45 int *p = malloc(12); in f1()
50 int *p = malloc(12); in f2()
56 int *p = malloc(12); in f2_realloc_0()
62 int *p = malloc(12); in f2_realloc_1()
68 char *p = (char*)malloc(size); in reallocNotNullPtr()
88 int *q = malloc(12); in realloctest1()
95 char *p = malloc(12); in reallocFails()
105 char *p = malloc(12); in reallocSizeZero1()
115 char *p = malloc(12); in reallocSizeZero2()
[all …]
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(12); in f1()
[all …]
Dmalloc-plist.c6 void *malloc(size_t);
12 int *p = malloc(12); in diagnosticTest()
20 A = malloc(2*sizeof(int*)); in myArrayAllocation()
25 char * buf = malloc(100); in reallocDiagnostics()
36 void *x = malloc(100); in wrapper()
54 *x = malloc(100); in my_malloc_and_free()
75 char *buf = (char *)malloc(100); in reallocIntra()
82 return (char*)malloc(12); in malloc_wrapper_ret()
99 int *p = malloc(sizeof(int)); in call_myfree_takingblock()
108 p = (int*)malloc(12); in LeakedSymbol()
[all …]
Dmalloc-overflow.c5 extern void * malloc(size_t);
9 …return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory a… in f1()
14 …return malloc(sizeof(int) * n); // // expected-warning {{the computation of the size of the memory… in f2()
19 return malloc(4 * sizeof(int)); // no-warning in f3()
29 …return malloc(s->n * sizeof(int)); // expected-warning {{the computation of the size of the memory… in f4()
35 …return malloc(s2.n * sizeof(int)); // expected-warning {{the computation of the size of the memory… in f5()
40 …return malloc((n + 1) * sizeof(int)); // expected-warning {{the computation of the size of the mem… in f6()
43 extern void * malloc (size_t);
49 return malloc(n * sizeof(int)); // no-warning in f7()
55 return malloc(n * sizeof(int)); // no-warning in f8()
[all …]
Dmalloc-sizeof.c5 void *malloc(size_t size);
14 int *ip1 = malloc(sizeof(1)); in foo()
15 int *ip2 = malloc(4 * sizeof(int)); in foo()
17 …long *lp1 = malloc(sizeof(short)); // expected-warning {{Result of 'malloc' is converted to a poin… in foo()
18 …long *lp2 = malloc(5 * sizeof(double)); // expected-warning {{Result of 'malloc' is converted to a… in foo()
19 char *cp3 = malloc(5 * sizeof(char) + 2); // no warning in foo()
20 unsigned char *buf = malloc(readSize + sizeof(unsignedInt)); // no warning in foo()
33 const char **x = (const char **)malloc(1 * sizeof(char *)); // no-warning in ignore_const()
34 …const char ***y = (const char ***)malloc(1 * sizeof(char *)); // expected-warning {{Result of 'mal… in ignore_const()
41 int *table = malloc(sizeof sTable); in mallocArraySize()
[all …]
Dmalloc.mm3 #import "Inputs/system-header-simulator-for-malloc.h"
7 unsigned char *data = (unsigned char *)malloc(42);
12 unsigned char *data = (unsigned char *)malloc(42);
17 unsigned char *data = (unsigned char *)malloc(42);
22 unsigned char *data = (unsigned char *)malloc(42);
27 unsigned char *data = (unsigned char *)malloc(42);
32 unichar *data = (unichar*)malloc(42);
38 unsigned char *data = (unsigned char *)malloc(42);
43 unichar *data = (unichar*)malloc(42);
49 unsigned char *data = (unsigned char *)malloc(42);
[all …]
DMalloc+MismatchedDeallocator+NewDelete.cpp10 int *p = (int *)malloc(sizeof(int)); in testMallocDoubleFree()
16 int *p = (int *)malloc(sizeof(int)); in testMallocLeak()
20 int *p = (int *)malloc(sizeof(int)); in testMallocUseAfterFree()
31 int *p = (int *)malloc(sizeof(int)); in testMallocOffsetFree()
39 int *x = (int *)malloc(sizeof(int)); in testMismatchedDeallocator()
83 int *p = (int*)malloc(sizeof(int)*4); in testMismatchedChangePtrThroughCall()
89 int *p = (int*)malloc(sizeof(int)*4); in testMismatchedChangePointeeThroughCall()
95 int *p = (int*)malloc(sizeof(int)*4); in testShouldReportDoubleFreeNotMismatched()
Dcoverage.c5 void *malloc(size_t);
35 char *m = (char*)malloc(12); in coverage1()
41 char *m = (char*)malloc(12); in coverage2()
48 char *m = (char*)malloc(12); in coverage3()
54 char *m = (char*)malloc(12); in coverage4()
61 char *m = (char*)malloc(12); // no-warning in coverage5()
68 char *m = (char*)malloc(12); in coverage6()
80 char *m = (char*)malloc(12); in coverage8()
Dmalloc.cpp4 void *malloc(size_t);
11 malloc(4); in checkThatMallocCheckerIsRunning()
20 return malloc(10); in aFunction()
29 char *x = (char*)malloc(12); in r11160612_3()
35 char *x = (char*)malloc(12); in r11160612_no_callback()
45 char *x = (char*)malloc(12); in r11160612_3()
64 v.push_back(malloc(4)); in testDestructors()
73 result.a = malloc(4); in get()
/external/valgrind/memcheck/tests/s390x/
Dcu21.c62 do_cu21(malloc(1), 10, pattern2, 2); // complaint (2 bytes) in main()
65 do_cu21(malloc(2), 10, pattern2, 2); // no complaint in main()
68 do_cu21(malloc(1), 10, pattern3, 2); // 2 complaints (3 = 2+1) in main()
71 do_cu21(malloc(2), 10, pattern3, 2); // complaint (1 byte) in main()
74 do_cu21(malloc(3), 10, pattern3, 2); // no complaint in main()
77 do_cu21(malloc(1), 10, pattern4, 4); // complaint (4 bytes) in main()
80 do_cu21(malloc(2), 10, pattern4, 4); // complaint (4 bytes) in main()
83 do_cu21(malloc(3), 10, pattern4, 4); // complaint (4 bytes) in main()
86 do_cu21(malloc(4), 10, pattern4, 4); // no complaint in main()
91 uint8_t *input = malloc(10); in main()
[all …]
Dcu42.c47 do_cu42(malloc(1), 10, pattern2, 4); // complaint (2 bytes) in main()
50 do_cu42(malloc(2), 10, pattern2, 4); // no complaint in main()
53 do_cu42(malloc(1), 10, pattern4, 4); // complaint (4 bytes) in main()
56 do_cu42(malloc(2), 10, pattern4, 4); // complaint (4 bytes) in main()
59 do_cu42(malloc(3), 10, pattern4, 4); // complaint (4 bytes) in main()
62 do_cu42(malloc(4), 10, pattern4, 4); // no complaint in main()
71 input = malloc(10); in main()
75 input = malloc(10); in main()
80 input = malloc(10); in main()
85 input = malloc(10); in main()
[all …]
/external/webrtc/webrtc/common_audio/resampler/
Dresampler.cc258 state1_ = malloc(8 * sizeof(int32_t)); in Reset()
262 state1_ = malloc(sizeof(WebRtcSpl_State16khzTo48khz)); in Reset()
267 state1_ = malloc(8 * sizeof(int32_t)); in Reset()
270 state2_ = malloc(8 * sizeof(int32_t)); in Reset()
275 state1_ = malloc(8 * sizeof(int32_t)); in Reset()
278 state2_ = malloc(sizeof(WebRtcSpl_State16khzTo48khz)); in Reset()
283 state1_ = malloc(8 * sizeof(int32_t)); in Reset()
286 state2_ = malloc(8 * sizeof(int32_t)); in Reset()
289 state3_ = malloc(sizeof(WebRtcSpl_State16khzTo48khz)); in Reset()
295 state1_ = malloc(sizeof(WebRtcSpl_State16khzTo48khz)); in Reset()
[all …]
/external/clang/test/Sema/
Dattr-malloc.c7 void * malloc(size_t) __attribute((malloc));
9 int no_vars __attribute((malloc)); // expected-warning {{attribute only applies to functions}}
11 void returns_void (void) __attribute((malloc)); // expected-warning {{attribute only applies to r…
12 int returns_int (void) __attribute((malloc)); // expected-warning {{attribute only applies to r…
13 int * returns_intptr(void) __attribute((malloc)); // no-warning
15 iptr returns_iptr (void) __attribute((malloc)); // no-warning
17 __attribute((malloc)) void *(*f)(); // expected-warning{{attribute only applies to functions}}
18 __attribute((malloc)) int (*g)(); // expected-warning{{attribute only applies to functions}}
20 __attribute((malloc))
21 void * xalloc(unsigned n) { return malloc(n); } // no-warning in xalloc()
[all …]
/external/valgrind/gdbserver_tests/
Dmcleak.stderrB.exp4 at 0x........: malloc (vg_replace_malloc.c:...)
8 at 0x........: malloc (vg_replace_malloc.c:...)
12 at 0x........: malloc (vg_replace_malloc.c:...)
16 at 0x........: malloc (vg_replace_malloc.c:...)
20 at 0x........: malloc (vg_replace_malloc.c:...)
24 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
32 at 0x........: malloc (vg_replace_malloc.c:...)
36 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
/external/llvm/test/Transforms/InstCombine/
Dcompare-unescaped.ll5 declare i8* @malloc(i64) #1
8 %m = call i8* @malloc(i64 4)
18 %m = call i8* @malloc(i64 4)
29 ; we cannot remove the alloc site: call to malloc
30 ; The comparison should fold to false irrespective of whether the call to malloc can be elided or n…
34 %m = call i8* @malloc(i64 24)
46 %m = call i8* @malloc(i64 24)
58 %m = call i8* @malloc(i64 24)
72 %m = call i8* @malloc(i64 24)
87 %m = call i8* @malloc(i64 4)
[all …]
/external/valgrind/memcheck/tests/x86-solaris/
Dcontext_fpu.stderr.exp4 at 0x........: malloc (vg_replace_malloc.c:...)
10 at 0x........: malloc (vg_replace_malloc.c:...)
16 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
34 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
46 at 0x........: malloc (vg_replace_malloc.c:...)
52 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
Dcontext_sse.stderr.exp4 at 0x........: malloc (vg_replace_malloc.c:...)
10 at 0x........: malloc (vg_replace_malloc.c:...)
16 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
34 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
46 at 0x........: malloc (vg_replace_malloc.c:...)
52 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
/external/valgrind/memcheck/tests/amd64-solaris/
Dcontext_sse.stderr.exp4 at 0x........: malloc (vg_replace_malloc.c:...)
10 at 0x........: malloc (vg_replace_malloc.c:...)
16 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
34 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
46 at 0x........: malloc (vg_replace_malloc.c:...)
52 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
Dcontext_fpu.stderr.exp4 at 0x........: malloc (vg_replace_malloc.c:...)
10 at 0x........: malloc (vg_replace_malloc.c:...)
16 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
34 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
46 at 0x........: malloc (vg_replace_malloc.c:...)
52 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
/external/valgrind/drd/tests/
Dtc19_shadowmem.stderr.exp-64bit13 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
31 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
49 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
67 at 0x........: malloc (vg_replace_malloc.c:...)
76 at 0x........: malloc (vg_replace_malloc.c:...)
85 at 0x........: malloc (vg_replace_malloc.c:...)
94 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
Dtc19_shadowmem.stderr.exp-32bit13 at 0x........: malloc (vg_replace_malloc.c:...)
22 at 0x........: malloc (vg_replace_malloc.c:...)
31 at 0x........: malloc (vg_replace_malloc.c:...)
40 at 0x........: malloc (vg_replace_malloc.c:...)
49 at 0x........: malloc (vg_replace_malloc.c:...)
58 at 0x........: malloc (vg_replace_malloc.c:...)
67 at 0x........: malloc (vg_replace_malloc.c:...)
76 at 0x........: malloc (vg_replace_malloc.c:...)
85 at 0x........: malloc (vg_replace_malloc.c:...)
94 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
/external/valgrind/memcheck/tests/
Dleak-delta.stderr.exp3 at 0x........: malloc (vg_replace_malloc.c:...)
10 at 0x........: malloc (vg_replace_malloc.c:...)
15 at 0x........: malloc (vg_replace_malloc.c:...)
21 at 0x........: malloc (vg_replace_malloc.c:...)
28 at 0x........: malloc (vg_replace_malloc.c:...)
34 at 0x........: malloc (vg_replace_malloc.c:...)
39 at 0x........: malloc (vg_replace_malloc.c:...)
45 at 0x........: malloc (vg_replace_malloc.c:...)
50 at 0x........: malloc (vg_replace_malloc.c:...)
56 at 0x........: malloc (vg_replace_malloc.c:...)
[all …]
/external/clang/test/SemaObjC/
Dattr-malloc.m4 - (id) test1 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} argument
5 - (int) test2 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} argument
8 id bar(void) __attribute((malloc)); // no-warning
11 bptr baz(void) __attribute((malloc)); // no-warning
13 __attribute((malloc)) id (*f)(); // expected-warning {{attribute only applies to functions}}
14 __attribute((malloc)) bptr (*g)(); // expected-warning {{attribute only applies to functions}}
15 __attribute((malloc)) void *(^h)(); // expected-warning {{attribute only applies to functions}}

12345678910>>...139