Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 2725) sorted by relevance

12345678910>>...109

/openbsd-src/regress/lib/libc/malloc/malloc_errs/
H A Dmalloc_errs.c37 q = malloc(100); in clearq()
57 void *p = malloc(10000); in t1()
69 p = malloc(100); in t2()
79 void *p = malloc(100); in t3()
102 char *p = malloc(32); in t6()
115 p = malloc(10000); in t7()
120 q = malloc(10000); in t7()
131 p = malloc(32); in t8()
132 q = malloc(32); in t8()
142 char *p = malloc(100); in t9()
[all …]
/openbsd-src/gnu/usr.bin/perl/t/
H A Dperl.supp9 malloc
11 fun:malloc
17 fun:malloc
28 malloc
30 fun:malloc
36 fun:malloc
/openbsd-src/regress/usr.bin/tsort/
H A Dpairs1574 malloc.o malloc.o
1189 malloc.o abort.o
1254 malloc.o brk.o
1494 asprintf.o malloc.o
1495 auth_subr.o malloc.o
1496 auth_unix.o malloc.o
1497 bm.o malloc.o
1498 bt_close.o malloc.o
1499 bt_open.o malloc.o
1500 bt_seq.o malloc.o
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dwrappers_c_test.cpp46 void *P = malloc(Size); in TEST()
66 P = malloc(0U); in TEST()
71 EXPECT_EQ(malloc(SIZE_MAX), nullptr); in TEST()
167 P = malloc(Size); in TEST()
172 P = malloc(Size); in TEST()
195 P = malloc(Size); in TEST()
271 void *P = malloc(BypassQuarantineSize); in TEST()
289 void *P = malloc(BypassQuarantineSize); in TEST()
334 P = malloc(SpecialSize); in TEST()
364 void *P = malloc(Size); in TEST()
[all …]
/openbsd-src/gnu/llvm/clang/docs/analyzer/checkers/
H A Dunix_malloc_example.c3 int *p = malloc(1); in test()
9 int *p = malloc(sizeof(int)); in test()
15 int *p = malloc(1); in test()
26 int *p = malloc(sizeof(char)); in test()
H A Dmismatched_deallocator_example.cpp3 int *p = (int *)malloc(sizeof(int)); in test()
8 void __attribute((ownership_returns(malloc))) *user_malloc(size_t);
39 SimpleSmartPointer<int> a((int *)malloc(4)); in test()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dm-un-2.c5 extern void* malloc (size_t);
16 malloc,
24 ._malloc = malloc,
30 ._malloc = malloc,
/openbsd-src/gnu/gcc/libstdc++-v3/libsupc++/
H A Dnew_op.cc40 using std::malloc;
44 extern "C" void *malloc (std::size_t);
57 p = (void *) malloc (sz); in operator new()
68 p = (void *) malloc (sz); in operator new()
H A Dnew_opnt.cc37 extern "C" void *malloc (std::size_t);
48 p = (void *) malloc (sz); in operator new()
63 p = (void *) malloc (sz); in operator new()
/openbsd-src/gnu/gcc/libmudflap/
H A Dmf-hooks1.c100 #undef malloc
101 WRAPPER(void *, malloc, size_t c) in WRAPPER() argument
104 DECLARE(void *, malloc, size_t c); in WRAPPER()
106 BEGIN_PROTECT (malloc, c); in WRAPPER()
112 result = (char *) CALL_REAL (malloc, size_with_crumple_zones); in WRAPPER()
141 DECLARE(void *, malloc, size_t); in WRAPPER()
151 result = (char *) CALL_REAL (malloc, size_with_crumple_zones); in WRAPPER()
407 DECLARE (void *, malloc, size_t); in __mf_wrap_alloca_indirect()
450 track = (struct alloca_tracking *) CALL_REAL (malloc, in __mf_wrap_alloca_indirect()
456 result = CALL_REAL (malloc, c); in __mf_wrap_alloca_indirect()
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/tests/
H A Dasan_interface_test.cpp31 char *array = Ident((char*)malloc(kArraySize)); in TEST()
64 void *zero_alloc = Ident(malloc(0)); in TEST()
81 array = Ident((char*)malloc(kMallocSize)); in TEST()
95 free(Ident(malloc(kLargeMallocSize))); // Drain quarantine. in TEST()
99 free(Ident(malloc(kLargeMallocSize))); in TEST()
114 free(Ident(malloc(kManyThreadsMallocSizes[size_index]))); in ManyThreadsWithStatsWorker()
118 free(Ident(malloc(1 << 20))); in ManyThreadsWithStatsWorker()
166 char *array = Ident((char*)malloc(120)); in TEST()
183 char *array = Ident((char*)malloc(120)); in TEST()
205 char *vec = Ident((char*)malloc(20)); in TEST()
[all …]
H A Dasan_test.cpp33 void *res = malloc/**/(size); break_optimization(0); return res;} in malloc_fff()
76 int *a = (int*)malloc(100 * sizeof(int)); in TEST()
80 int *r = (int*)malloc(10); in TEST()
132 free(Ident(malloc(Ident(1 << 27)))); // Try to drain the quarantine. in TEST()
317 EXPECT_DEATH(Ident((char*)malloc(size))[-1] = 0, buff); in TestLargeMalloc()
331 EXPECT_DEATH(Ident((char*)malloc(n_megs << 20))[-1] = 0, in TEST()
358 free(Ident(malloc(size))); in ManyThreadsWorker()
382 int *ptr = (int*)malloc(sizeof(int) * kMinElem); in TEST()
391 int *ptr2 = Ident((int*)malloc(0)); in TEST()
399 void *ptr = Ident(malloc(42)); in TEST()
[all …]
/openbsd-src/sys/dev/pci/drm/include/linux/
H A Dslab.h23 return malloc(size, M_DRM, flags); in kmalloc()
31 return malloc(n * size, M_DRM, flags); in kmalloc_array()
39 return malloc(n * size, M_DRM, flags | M_ZERO); in kcalloc()
45 return malloc(size, M_DRM, flags | M_ZERO); in kzalloc()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb32.C4 void malloc(unsigned int);
7 void A::malloc(unsigned int) {} in malloc() function
11 a.malloc(3); // <-- line 10 in foo()
/openbsd-src/gnu/gcc/libmudflap/testsuite/libmudflap.c/
H A Dpass8-frag.c8 foo = (char *)malloc (10); in main()
9 bar = (char *)malloc (10); in main()
12 bar = (char *)malloc (10); in main()
H A Dpass9-frag.c8 foo = (char *)malloc (10); in main()
9 bar = (char *)malloc (10); in main()
12 foo = (char *)malloc (10); in main()
/openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dcall-rt-st.c719 list1 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
731 struct1 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
732 cflags = (struct bit_flags_char_t *)malloc(sizeof(struct bit_flags_char_t)); in main()
733 sflags = (struct bit_flags_short_t *)malloc(sizeof(struct bit_flags_short_t)); in main()
734 flags = (struct bit_flags_t *)malloc(sizeof(struct bit_flags_t)); in main()
735 flags_combo = (struct bit_flags_combo_t *)malloc(sizeof(struct bit_flags_combo_t)); in main()
736 three_char = (struct three_char_t *)malloc(sizeof(struct three_char_t)); in main()
737 five_char = (struct five_char_t *)malloc(sizeof(struct five_char_t)); in main()
738 int_char_combo = (struct int_char_combo_t *)malloc(sizeof(struct int_char_combo_t)); in main()
740 d1 = (struct one_double_t *)malloc(sizeof(struct one_double_t)); in main()
[all …]
H A Dcall-ar-st.c1224 list1 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
1225 list2 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
1226 list3 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
1227 list4 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
1247 struct1 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
1248 struct2 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
1249 struct3 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
1250 struct4 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
1251 flags = (struct bit_flags_t *)malloc(sizeof(struct bit_flags_t)); in main()
1252 flags_combo = (struct bit_flags_combo_t *)malloc(sizeof(struct bit_flags_combo_t)); in main()
[all …]
/openbsd-src/gnu/lib/libstdc++/libstdc++/libsupc++/
H A Dnew_opnt.cc36 extern "C" void *malloc (std::size_t);
47 p = (void *) malloc (sz); in operator new()
62 p = (void *) malloc (sz); in operator new()
H A Dnew_op.cc36 using std::malloc;
48 p = (void *) malloc (sz); in operator new()
59 p = (void *) malloc (sz); in operator new()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dnew3.C4 extern "C" void * malloc (__SIZE_TYPE__);
15 return malloc (s); in new()
26 return malloc (s); in new()
/openbsd-src/regress/lib/libc/malloc/malloc_ulimit2/
H A Dmalloc_ulimit2.c32 p = malloc(len); in main()
41 p = malloc(len); in main()
43 free(malloc(4096)); in main()
/openbsd-src/usr.bin/ssh/
H A Dssh-ed25519.c81 if ((k->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL || in ssh_ed25519_generate()
82 (k->ed25519_sk = malloc(ED25519_SK_SZ)) == NULL) in ssh_ed25519_generate()
93 if ((to->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL) in ssh_ed25519_copy_public()
165 if ((sig = malloc(slen)) == NULL) in ssh_ed25519_sign()
183 if ((*sigp = malloc(len)) == NULL) { in ssh_ed25519_sign()
245 if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) { in ssh_ed25519_verify()
/openbsd-src/lib/libc/yp/
H A Dypmatch_cache.c67 (newkey = malloc(keylen)) == NULL || in ypmatch_add()
68 (newval = malloc(vallen)) == NULL) { in ypmatch_add()
80 if ((ep = malloc(sizeof *ep)) == NULL) { in ypmatch_add()
164 if ((*outval = malloc(*outvallen + 1)) == NULL) { in yp_match()
195 if ((*outval = malloc(*outvallen + 1)) == NULL) { in yp_match()
257 if ((*outkey = malloc(*outkeylen + 1)) == NULL || in yp_next()
258 (*outval = malloc(*outvallen + 1)) == NULL) { in yp_next()
/openbsd-src/usr.sbin/unbound/dnstap/
H A Ddnstap_fstrm.c62 control = malloc(n); in fstrm_create_control_frame_start()
85 control = malloc(n); in fstrm_create_control_frame_stop()
109 control = malloc(n); in fstrm_create_control_frame_ready()
137 control = malloc(n); in fstrm_create_control_frame_accept()
162 control = malloc(n); in fstrm_create_control_frame_finish()

12345678910>>...109