Searched refs:malloc (Results 26 - 50 of 2881) sorted by relevance

1234567891011>>

/external/clang/test/SemaCXX/Inputs/
H A Dmalloc.h2 extern void *malloc (__SIZE_TYPE__ __size) throw () __attribute__ ((__malloc__)) ;
/external/valgrind/main/massif/tests/
H A Dpeak.c8 p = malloc(1600); // With --peak-inaccuracy=1000, the first 10 of
9 p = malloc(16); // 'free' calls result in peaks, but after that,
H A Dbig-alloc.c12 malloc(10 * 1024 * 1024);
H A Dculling1.c7 malloc(16); // divisible by 16 -- no slop
H A Dlong-time.c12 x1 = malloc( 800 * 1000);
13 x2 = malloc(1100 * 1000);
15 x3 = malloc(1200 * 1000);
18 x4 = malloc( 900 * 1000);
H A Dthresholds.c7 // Also, it's deliberate that the 'malloc(2000)' and 'my_malloc1(500)' calls
23 malloc(n);
28 malloc(n);
33 malloc(n);
55 malloc(16000);
/external/clang/test/Analysis/
H A Dmalloc-overflow.c5 extern void * malloc(size_t);
9 return malloc(n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
14 return malloc(sizeof(int) * n); // // expected-warning {{the computation of the size of the memory allocation may overflow}}
19 return malloc(4 * sizeof(int)); // no-warning
29 return malloc(s->n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
35 return malloc(s2.n * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
40 return malloc((n + 1) * sizeof(int)); // expected-warning {{the computation of the size of the memory allocation may overflow}}
43 extern void * malloc (size_t);
49 return malloc(n * sizeof(int)); // no-warning
55 return malloc(
[all...]
/external/compiler-rt/test/asan/TestCases/Linux/
H A Dmalloc_delete_mismatch.cc1 // Check that we detect malloc/delete mismatch only if the approptiate flag
6 // Find error and provide malloc context.
12 // Also works if no malloc context is available.
21 x = (char*)malloc(10);
25 // CHECK: ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x
30 // ALLOC-STACK-NEXT: #0{{.*}}malloc
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dassign_large_valloc_to_global.cc5 # include <malloc.h>
/external/compiler-rt/test/asan/TestCases/Windows/
H A Dcalloc_left_oob.cc4 #include <malloc.h>
H A Dcalloc_right_oob.cc4 #include <malloc.h>
H A Dcalloc_uaf.cc4 #include <malloc.h>
H A Ddouble_operator_delete.cc4 #include <malloc.h>
H A Drealloc_left_oob.cc4 #include <malloc.h>
H A Drealloc_right_oob.cc4 #include <malloc.h>
H A Drealloc_uaf.cc4 #include <malloc.h>
/external/compiler-rt/test/asan/TestCases/
H A Dsanity_check_pure_c.c12 char *x = (char*)malloc(10 * sizeof(char));
18 // CHECK: malloc
H A Dsleep_before_dying.c6 char *x = (char*)malloc(10 * sizeof(char));
H A Dstrip_path_prefix.c6 char *x = (char*)malloc(10 * sizeof(char));
H A Duse-after-free-right.cc12 volatile char *x = (char*)malloc(sizeof(char));
30 // CHECK-Linux: {{ #0 0x.* in .*malloc}}
H A Duse-after-free.cc9 char *x = (char*)malloc(10 * sizeof(char));
27 // CHECK-Linux: {{ #0 0x.* in .*malloc}}
/external/compiler-rt/test/msan/
H A Dheap-origin.cc21 char *volatile x = (char*)malloc(5 * sizeof(char));
27 // CHECK-ORIGINS: {{#0 0x.* in .*malloc}}
/external/valgrind/main/memcheck/tests/
H A Dnanoleak2.c20 a = malloc(1000); // Becomes a reachable leak.
H A Dnanoleak_supp.c6 volatile int* a = malloc(1000);
/external/valgrind/main/tests/
H A Dmalloc.h1 // Replacement for malloc.h which factors out platform differences.
5 # include <malloc/malloc.h>
7 # include <malloc.h>
18 // Darwin lacks memalign, but its malloc is always 16-aligned anyway.
19 x = malloc(szB);

Completed in 293 milliseconds

1234567891011>>