/external/valgrind/main/memcheck/tests/ |
H A D | malloc_free_fill.stderr.exp | 1 test simple malloc/free: 2 PASSED: malloc-filled 6 PASSED: malloc-filled 8 PASSED: malloc-filled 11 PASSED: malloc-filled
|
H A D | long-supps.c | 12 int* x = malloc(sizeof(int));
|
H A D | fprw.c | 11 double* dp = malloc(sizeof(double)); 12 float* fp = malloc(sizeof(float)); 23 ip = malloc(sizeof(int));
|
H A D | mismatches.cpp | 5 int* fpointer = (int*)malloc(10); 7 fpointer = (int*)malloc(10); 9 fpointer = (int*)malloc(10);
|
H A D | static_malloc.c | 5 void* malloc(size_t i) { function 16 p = malloc(10); 17 p = malloc(123);
|
/external/valgrind/main/memcheck/tests/s390x/ |
H A D | cu21.c | 62 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 D | malloc-sizeof.c | 5 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 D | Malloc+MismatchedDeallocator+NewDelete.cpp | 4 #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 D | redefined_system.c | 7 char malloc(); 16 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
|
H A D | malloc-annotations.c | 3 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 D | strncpy-overflow.cc | 12 char *hello = (char*)malloc(6); 14 char *short_buffer = (char*)malloc(9); 23 // CHECK-Linux: {{ #0 0x.* in .*malloc}}
|
H A D | partial_right.cc | 8 volatile int *x = (int*)malloc(2*sizeof(int) + 2);
|
/external/compiler-rt/test/lsan/TestCases/ |
H A D | disabler.cc | 17 *reinterpret_cast<void **>(p) = malloc(666); 18 void *q = malloc(1337);
|
H A D | ignore_object.cc | 15 *p = malloc(666); 17 volatile void *q = malloc(1337);
|
H A D | suppressions_default.cc | 16 void *p = malloc(666); 22 void *q = malloc(1337);
|
H A D | suppressions_file.cc | 14 void *p = malloc(666); 20 void *q = malloc(1337);
|
H A D | large_allocation_leak.cc | 11 void *large_alloc = malloc(33554432);
|
/external/valgrind/main/memcheck/tests/x86-linux/ |
H A D | scalar_supp.c | 8 int* pi = malloc(sizeof(int)); 11 char** pc = malloc(sizeof(char*));
|
/external/chromium_org/tools/gyp/test/link-dependency/ |
H A D | main.c | 4 void *p = malloc(1);
|
/external/chromium_org/tools/gyp/test/win/compiler-flags/ |
H A D | buffer-security.cc | 5 #include <malloc.h>
|
/external/valgrind/main/massif/tests/ |
H A D | culling2.c | 7 malloc(400*i); // Divisible by 16 -- no slop.
|
/external/bison/lib/ |
H A D | malloc.c | 0 /* 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 D | false-positive-suppression.c | 7 void *malloc(size_t); 10 int *p = malloc(12); 19 int *p = malloc(12);
|
/external/compiler-rt/test/asan/TestCases/Darwin/ |
H A D | malloc_zone-protected.cc | 2 #include <malloc/malloc.h> 16 zone->malloc = pwn;
|
/external/libgsm/src/ |
H A D | gsm_create.c | 22 # include <malloc.h> 24 extern char * malloc(); 38 r = (gsm)malloc(sizeof(struct gsm_state));
|