Searched refs:malloc (Results 451 - 475 of 2881) sorted by relevance

<<11121314151617181920>>

/external/clang/test/Analysis/
H A Dplist-macros.cpp7 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 &apos;delete&apos;</string>
217 // CHECK-NEXT: <string>Memory allocated by malloc() should be deallocated by free(), not &apos;delete&apos;</string>
220 // CHECK-NEXT: <key>description</key><string>Memory allocated by malloc() should be deallocated by free(), not &apos;delete&apos;</string>
/external/compiler-rt/test/asan/TestCases/
H A Dallocator_returns_null.cc1 // 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 DdeStreamCpyThread.c31 deUint8* buffer = malloc(sizeof(deUint8) * thread->bufferSize);
62 deStreamCpyThread* thread = malloc(sizeof(deStreamCpyThread));
/external/e2fsprogs/lib/ext2fs/
H A Dinline.c32 #include <malloc.h>
74 *p = malloc(size);
/external/e2fsprogs/lib/ss/
H A Derror.c29 ret_val = malloc((unsigned)
40 ret_val = malloc((unsigned)sizeof(char) *
/external/fio/
H A Dfifo.c32 fifo = malloc(sizeof(struct fifo));
36 fifo->buffer = malloc(size);
/external/icu/icu4c/source/test/perf/ucnvavailperf/
H A Ducnvavailperf.cpp39 #include <malloc.h>
53 size_t *p = (size_t *)malloc(size + sizeof(size_t));
/external/iproute2/netem/
H A Dstats.c13 #include <malloc.h>
33 x = (double *)malloc(limit*sizeof(double));
/external/ipsec-tools/src/racoon/
H A Dgcmalloc.h35 * 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 Dthread_arena.c14 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 Dreadpng.c65 row = malloc(rowbytes);
66 display = malloc(rowbytes);
/external/libyuv/files/unit_test/
H A Dunit_test.h19 var##_mem = reinterpret_cast<uint8*>(malloc((size) + 15)); \
31 var##_mem = reinterpret_cast<uint8*>(malloc(((size) + 4095) & ~4095)); \
/external/lzma/C/
H A DAlloc.c29 void *p = malloc(size);
34 return malloc(size);
/external/lzma/xz-embedded/
H A Dxz_config.h42 #define kmalloc(size, flags) malloc(size)
44 #define vmalloc(size) malloc(size)
/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.c61 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 Dr300_cb.h85 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 Dutility_tests.cpp27 return malloc(size);
33 return malloc(size);
/external/pixman/demos/
H A Dclip-in.c18 uint32_t *sbits = malloc (SMALL * SMALL * 4);
19 uint32_t *bits = malloc (WIDTH * HEIGHT * 4);
H A Dtrap-test.c18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4);
19 uint32_t *mbits = malloc (WIDTH * HEIGHT);
/external/pixman/test/
H A Da1-trap-test.c18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4);
19 uint32_t *mbits = malloc (WIDTH * HEIGHT);
/external/valgrind/main/VEX/test/
H A Dfrstor.c66 unsigned short* buf1 = malloc(54*sizeof(short));
67 unsigned short* buf2 = malloc(54*sizeof(short));
/external/valgrind/main/drd/tests/
H A Domp_prime.c78 primes = malloc(n * sizeof(primes[0]));
79 pflag = malloc(n * sizeof(pflag[0]));
H A Dpth_barrier_thr_cr.c33 s_barrier = malloc(sizeof(*s_barrier));
37 tid = malloc(thread_count * sizeof(*tid));
H A Dread_and_free_race.stderr.exp9 at 0x........: malloc (vg_replace_malloc.c:...)
/external/valgrind/main/helgrind/tests/
H A Dtc15_laog_lockdel.c16 mx1 = malloc(sizeof(pthread_mutex_t));
17 mx2 = malloc(sizeof(pthread_mutex_t));

Completed in 512 milliseconds

<<11121314151617181920>>