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

1234567891011>>

/external/valgrind/main/memcheck/tests/
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));
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);
/external/valgrind/main/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+MismatchedDeallocator+NewDelete.cpp4 #include "Inputs/system-header-simulator-for-malloc.h"
10 int *p = (int *)malloc(sizeof(int));
16 int *p = (int *)malloc(sizeof(int));
20 int *p = (int *)malloc(sizeof(int));
27 free(&i); // expected-warning{{Argument to free() is the address of the local variable 'i', which is not memory allocated by malloc()}}
31 int *p = (int *)malloc(sizeof(int));
32 free(++p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory allocated by malloc()}}
39 int *x = (int *)malloc(sizeof(int));
40 delete x; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not 'delete'}}
83 int *p = (int*)malloc(sizeo
[all...]
H A Dredefined_system.c7 char malloc();
16 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
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...]
/external/compiler-rt/test/asan/TestCases/
H A Dstrncpy-overflow.cc12 char *hello = (char*)malloc(6);
14 char *short_buffer = (char*)malloc(9);
23 // 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.cc17 *reinterpret_cast<void **>(p) = malloc(666);
18 void *q = malloc(1337);
H A Dignore_object.cc15 *p = malloc(666);
17 volatile void *q = malloc(1337);
H A Dsuppressions_default.cc16 void *p = malloc(666);
22 void *q = malloc(1337);
H A Dsuppressions_file.cc14 void *p = malloc(666);
20 void *q = malloc(1337);
H A Dlarge_allocation_leak.cc11 void *large_alloc = malloc(33554432);
/external/valgrind/main/memcheck/tests/x86-linux/
H A Dscalar_supp.c8 int* pi = malloc(sizeof(int));
11 char** pc = malloc(sizeof(char*));
/external/chromium_org/tools/gyp/test/link-dependency/
H A Dmain.c4 void *p = malloc(1);
/external/chromium_org/tools/gyp/test/win/compiler-flags/
H A Dbuffer-security.cc5 #include <malloc.h>
/external/valgrind/main/massif/tests/
H A Dculling2.c7 malloc(400*i); // Divisible by 16 -- no slop.
/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;
/external/libgsm/src/
H A Dgsm_create.c22 # include <malloc.h>
24 extern char * malloc();
38 r = (gsm)malloc(sizeof(struct gsm_state));

Completed in 5834 milliseconds

1234567891011>>