Searched refs:malloc (Results 451 - 475 of 2881) sorted by relevance
<<11121314151617181920>>
/external/clang/test/Analysis/ |
H A D | plist-macros.cpp | 7 void *malloc(size_t); 9 #define mallocmemory int *x = (int*)malloc(12); 16 delete x; // expected-warning {{Memory allocated by malloc() should be deallocated by free(), not 'delete'}} 215 // CHECK-NEXT: <string>Memory allocated by malloc() should be deallocated by free(), not 'delete'</string> 217 // CHECK-NEXT: <string>Memory allocated by malloc() should be deallocated by free(), not 'delete'</string> 220 // CHECK-NEXT: <key>description</key><string>Memory allocated by malloc() should be deallocated by free(), not 'delete'</string>
|
/external/compiler-rt/test/asan/TestCases/ |
H A D | allocator_returns_null.cc | 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge. 6 // RUN: not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mCRASH 7 // RUN: env ASAN_OPTIONS=allocator_may_return_null=0 not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mCRASH 8 // RUN: env ASAN_OPTIONS=allocator_may_return_null=1 %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mNULL 15 // RUN: env ASAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH 16 // RUN: env ASAN_OPTIONS=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrNULL 28 if (!strcmp(argv[1], "malloc")) { 29 fprintf(stderr, "malloc:\n"); 30 x = (char*)malloc(size); 49 if (!strcmp(argv[1], "realloc-after-malloc")) { [all...] |
/external/deqp/framework/delibs/destream/ |
H A D | deStreamCpyThread.c | 31 deUint8* buffer = malloc(sizeof(deUint8) * thread->bufferSize); 62 deStreamCpyThread* thread = malloc(sizeof(deStreamCpyThread));
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | inline.c | 32 #include <malloc.h> 74 *p = malloc(size);
|
/external/e2fsprogs/lib/ss/ |
H A D | error.c | 29 ret_val = malloc((unsigned) 40 ret_val = malloc((unsigned)sizeof(char) *
|
/external/fio/ |
H A D | fifo.c | 32 fifo = malloc(sizeof(struct fifo)); 36 fifo->buffer = malloc(size);
|
/external/icu/icu4c/source/test/perf/ucnvavailperf/ |
H A D | ucnvavailperf.cpp | 39 #include <malloc.h> 53 size_t *p = (size_t *)malloc(size + sizeof(size_t));
|
/external/iproute2/netem/ |
H A D | stats.c | 13 #include <malloc.h> 33 x = (double *)malloc(limit*sizeof(double));
|
/external/ipsec-tools/src/racoon/ |
H A D | gcmalloc.h | 35 * Debugging malloc glue for Racoon. 46 * malloc(), calloc(), realloc(), and free() entry points in the main 55 malloc(size_t size) function 111 #define racoon_malloc(sz) malloc((sz))
|
/external/jemalloc/test/integration/ |
H A D | thread_arena.c | 14 p = malloc(1); 15 assert_ptr_not_null(p, "Error in malloc()"); 49 p = malloc(1); 50 assert_ptr_not_null(p, "Error in malloc()");
|
/external/libpng/contrib/libtests/ |
H A D | readpng.c | 65 row = malloc(rowbytes); 66 display = malloc(rowbytes);
|
/external/libyuv/files/unit_test/ |
H A D | unit_test.h | 19 var##_mem = reinterpret_cast<uint8*>(malloc((size) + 15)); \ 31 var##_mem = reinterpret_cast<uint8*>(malloc(((size) + 4095) & ~4095)); \
|
/external/lzma/C/ |
H A D | Alloc.c | 29 void *p = malloc(size);
34 return malloc(size);
|
/external/lzma/xz-embedded/ |
H A D | xz_config.h | 42 #define kmalloc(size, flags) malloc(size) 44 #define vmalloc(size) malloc(size)
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | memory_pool.c | 61 newblock = (struct memory_block*)malloc(blocksize); 88 struct memory_block * block = (struct memory_block*)malloc(bytes + sizeof(struct memory_block));
|
/external/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_cb.h | 85 cs_ptr = (ptr) = (uint32_t*)malloc((size) * sizeof(uint32_t)); \ 102 cs_ptr = (ptr) = (uint32_t*)malloc((size) * sizeof(uint32_t))
|
/external/oprofile/libutil++/tests/ |
H A D | utility_tests.cpp | 27 return malloc(size); 33 return malloc(size);
|
/external/pixman/demos/ |
H A D | clip-in.c | 18 uint32_t *sbits = malloc (SMALL * SMALL * 4); 19 uint32_t *bits = malloc (WIDTH * HEIGHT * 4);
|
H A D | trap-test.c | 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT);
|
/external/pixman/test/ |
H A D | a1-trap-test.c | 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT);
|
/external/valgrind/main/VEX/test/ |
H A D | frstor.c | 66 unsigned short* buf1 = malloc(54*sizeof(short)); 67 unsigned short* buf2 = malloc(54*sizeof(short));
|
/external/valgrind/main/drd/tests/ |
H A D | omp_prime.c | 78 primes = malloc(n * sizeof(primes[0])); 79 pflag = malloc(n * sizeof(pflag[0]));
|
H A D | pth_barrier_thr_cr.c | 33 s_barrier = malloc(sizeof(*s_barrier)); 37 tid = malloc(thread_count * sizeof(*tid));
|
H A D | read_and_free_race.stderr.exp | 9 at 0x........: malloc (vg_replace_malloc.c:...)
|
/external/valgrind/main/helgrind/tests/ |
H A D | tc15_laog_lockdel.c | 16 mx1 = malloc(sizeof(pthread_mutex_t)); 17 mx2 = malloc(sizeof(pthread_mutex_t));
|
Completed in 512 milliseconds
<<11121314151617181920>>