/external/clang/test/Sema/ |
implicit-builtin-redecl.c | 9 void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'calloc'}} \ 10 // expected-note{{'calloc' is a builtin with type 'void *}} 13 calloc(0, 0, 0);
|
extern-redecl.c | 49 extern float *calloc(); // expected-warning {{incompatible redeclaration of library function}} expected-note {{is a builtin}} expected-note 2 {{previous declaration is here}} 53 int *calloc(); // expected-error {{conflicting types}} 58 int *calloc(); // expected-error {{conflicting types}} 63 float *(*_calloc)() = &calloc;
|
implicit-builtin-decl.c | 12 int *calloc(__SIZE_TYPE__, __SIZE_TYPE__); // expected-warning{{incompatible redeclaration of library function 'calloc'}} \ 13 // expected-note{{'calloc' is a builtin with type 'void *}} 17 int calloc = 1; local
|
/external/compiler-rt/test/asan/TestCases/Windows/ |
calloc_left_oob.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); 14 // CHECK-NEXT: {{#0 .* calloc }}
|
calloc_right_oob.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); 14 // CHECK-NEXT: {{#0 .* calloc }}
|
calloc_uaf.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); 18 // CHECK-NEXT: {{#0 .* calloc }}
|
allocators_sanity.cc | 17 p = (int*)calloc(16, sizeof(int));
|
dll_allocators_sanity.cc | 19 p = (int*)calloc(16, sizeof(int));
|
/external/bison/lib/ |
calloc.c | 0 /* calloc() function that is glibc compatible. 21 /* Only the AC_FUNC_CALLOC macro defines 'calloc' already in config.h. */ 22 #ifdef calloc 24 # undef calloc macro 25 /* Whereas the gnulib module 'calloc-gnu' defines HAVE_CALLOC_GNU. */ 35 /* Call the system's calloc below. */ 36 #undef calloc macro 54 /* Defend against buggy calloc implementations that mishandle 65 result = calloc (n, s);
|
/external/compiler-rt/test/tsan/ |
malloc_overflow.cc | 13 p = calloc((size_t)-1, (size_t)-1); 15 printf("FAIL calloc(-1, -1) = %p\n", p); 16 p = calloc((size_t)-1 / 2, (size_t)-1 / 2); 18 printf("FAIL calloc(-1/2, -1/2) = %p\n", p);
|
allocator_returns_null.cc | 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge. 8 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t calloc 2>&1 | FileCheck %s --check-prefix=CHECK-cCRASH 9 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t calloc-overflow 2>&1 | FileCheck %s --check-prefix=CHECK-coCRASH 27 if (!strcmp(argv[1], "calloc")) { 28 fprintf(stderr, "calloc:\n"); 29 x = (char*)calloc(size / 4, 4); 32 if (!strcmp(argv[1], "calloc-overflow")) { 33 fprintf(stderr, "calloc-overflow:\n"); 37 x = (char*)calloc(kArraySize, kArraySize2); 56 // CHECK-cCRASH: calloc [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
pthread_barrierattr_init.c | 71 ba = (pthread_barrierattr_t) calloc (1, sizeof (*ba));
|
pthread_condattr_init.c | 76 attr_result = (pthread_condattr_t) calloc (1, sizeof (*attr_result));
|
pthread_mutexattr_init.c | 71 ma = (pthread_mutexattr_t) calloc (1, sizeof (*ma));
|
pthread_rwlockattr_init.c | 69 rwa = (pthread_rwlockattr_t) calloc (1, sizeof (*rwa));
|
pthread_key_create.c | 81 if ((newkey = (pthread_key_t) calloc (1, sizeof (*newkey))) == NULL)
|
/external/clang/test/Analysis/ |
malloc-sizeof.c | 6 void *calloc(size_t nmemb, size_t size); 22 struct A *ap1 = calloc(1, sizeof(struct A)); 23 struct A *ap2 = calloc(2, sizeof(*ap1)); 24 struct A *ap3 = calloc(2, sizeof(ap1)); // expected-warning {{Result of 'calloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct A *'}} 25 struct A *ap4 = calloc(3, sizeof(struct A*)); // expected-warning {{Result of 'calloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct A *'}} 26 struct A *ap5 = calloc(4, sizeof(struct B)); // expected-warning {{Result of 'calloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct B'}}
|
/external/elfutils/0.153/libdwfl/ |
dwfl_begin.c | 61 Dwfl *dwfl = calloc (1, sizeof *dwfl);
|
/external/compiler-rt/test/msan/ |
allocator_returns_null.cc | 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge. 9 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t calloc 2>&1 | FileCheck %s --check-prefix=CHECK-cCRASH 10 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t calloc 2>&1 | FileCheck %s --check-prefix=CHECK-cNULL 11 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t calloc-overflow 2>&1 | FileCheck %s --check-prefix=CHECK-coCRASH 12 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t calloc-overflow 2>&1 | FileCheck %s --check-prefix=CHECK-coNULL 32 if (!strcmp(argv[1], "calloc")) { 33 fprintf(stderr, "calloc:\n"); 34 x = (char*)calloc(size / 4, 4); 37 if (!strcmp(argv[1], "calloc-overflow")) { 38 fprintf(stderr, "calloc-overflow:\n") [all...] |
/external/fio/ |
io_u_queue.c | 6 q->io_us = calloc(nr, sizeof(struct io_u *)); 32 ring->ring = calloc(ring->max, sizeof(struct io_u *));
|
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/ |
override_functions.cc | 61 return calloc(n, size); 92 #undef calloc macro 114 return calloc(n, size);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/ |
override_functions.cc | 61 return calloc(n, size); 92 #undef calloc macro 114 return calloc(n, size);
|
/external/chromium_org/base/allocator/ |
generic_allocators.cc | 74 void* calloc(size_t n, size_t elem_size) { function 94 return calloc(n, elem_size); 109 return calloc(n, size); 115 #undef calloc macro 169 return calloc(n, size);
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-gobject-structs.cc | 69 hb_feature_t *c = (hb_feature_t *) calloc (1, sizeof (hb_feature_t)); 79 hb_glyph_info_t *c = (hb_glyph_info_t *) calloc (1, sizeof (hb_glyph_info_t)); 89 hb_glyph_position_t *c = (hb_glyph_position_t *) calloc (1, sizeof (hb_glyph_position_t)); 99 hb_segment_properties_t *c = (hb_segment_properties_t *) calloc (1, sizeof (hb_segment_properties_t)); 114 hb_language_t *c = (hb_language_t *) calloc (1, sizeof (hb_language_t));
|
/external/harfbuzz_ng/src/ |
hb-gobject-structs.cc | 69 hb_feature_t *c = (hb_feature_t *) calloc (1, sizeof (hb_feature_t)); 79 hb_glyph_info_t *c = (hb_glyph_info_t *) calloc (1, sizeof (hb_glyph_info_t)); 89 hb_glyph_position_t *c = (hb_glyph_position_t *) calloc (1, sizeof (hb_glyph_position_t)); 99 hb_segment_properties_t *c = (hb_segment_properties_t *) calloc (1, sizeof (hb_segment_properties_t)); 114 hb_language_t *c = (hb_language_t *) calloc (1, sizeof (hb_language_t));
|