Home
last modified time | relevance | path

Searched refs:malloc (Results 301 - 325 of 3850) sorted by relevance

1...<<11121314151617181920>>...154

/third_party/selinux/checkpolicy/
H A Dpolicy_define.c166 datum = (class_datum_t *) malloc(sizeof(class_datum_t)); in define_class()
302 newc = (ocontext_t *) malloc(sizeof(ocontext_t)); in define_initial_sid()
513 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms()
537 perdatum = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in define_common_perms()
644 perdatum = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in define_av_perms()
729 level = (mls_level_t *) malloc(sizeof(mls_level_t)); in define_sens()
738 datum = (level_datum_t *) malloc(sizeof(level_datum_t)); in define_sens()
775 aliasdatum = (level_datum_t *) malloc(sizeof(level_datum_t)); in define_sens()
908 datum = (cat_datum_t *) malloc(sizeof(cat_datum_t)); in define_category()
945 aliasdatum = (cat_datum_t *) malloc(sizeo in define_category()
[all...]
/base/notification/common_event_service/interfaces/kits/ndk/src/
H A Doh_commonevent_parameters_parse.cpp59 NativeT *ptr = static_cast<NativeT *>(malloc(sizeof(NativeT))); in InnerWrapWantParamsT()
75 char **arrP = static_cast<char **>(malloc(sizeof(char *) * size)); in InnerWrapWantParamsArrayString()
118 NativeT *arrP = static_cast<NativeT *>(malloc(sizeof(NativeT) * size)); in InnerWrapWantParamsArrayT()
164 parameters->head = static_cast<CParameters *>(malloc(sizeof(CParameters) * size)); in ParseParameters()
210 char *res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString()
223 char *res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString()
/base/security/huks/frameworks/crypto_lite/cipher/src/
H A Dcipher_rsa.c47 char *privateKey = malloc(keyFinalLen); in RsaMallocPrivateKey()
88 char *pubKey = malloc(keyFinalLen); in RsaMallocPublicKey()
134 CIPHER_LOG_E("malloc private key error, final Key Length:%zu.", finalKeyLen); in RsaLoadPrivateKey()
184 CIPHER_LOG_E("malloc public key error, final Key Length:%zu.", finalKeyLen); in RsaLoadPublicKey()
229 char *tempBuf = malloc(cipherTotalLen); in RsaEncryptBase64Encode()
231 CIPHER_LOG_E("RsaEncrypt Base64Encode malloc fail."); in RsaEncryptBase64Encode()
276 unsigned char *buf = (unsigned char *)malloc(rsaLen); in RsaEncryptMultipleBlock()
372 *buf = (unsigned char*)malloc(rsaLen); in CheckParamAndMallocBuf()
376 *tembuf = (unsigned char*)malloc(cipher->length); in CheckParamAndMallocBuf()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
H A DTaskpoolSpecifiedTaskTest.cpp285 request.data = malloc(request.len); in HWTEST_F()
309 request2.data = malloc(request2.len); in HWTEST_F()
341 request.data = malloc(request.len); in HWTEST_F()
365 request2.data = malloc(request2.len); in HWTEST_F()
393 request.data = malloc(request.len); in HWTEST_F()
410 request2.data = malloc(request2.len); in HWTEST_F()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
H A Dtaskpool_specifiedtask_func_test.c281 request.data = malloc(request.len);
303 request2.data = malloc(request2.len);
332 request.data = malloc(request.len);
354 request2.data = malloc(request2.len);
379 request.data = malloc(request.len);
393 request2.data = malloc(request2.len);
/third_party/libwebsockets/test-apps/
H A Dtest-sshd.c108 priv = malloc(sizeof(struct sshd_instance_priv)); in ssh_ops_channel_create()
299 aps = malloc(s); in ssh_ops_is_pubkey_authorized()
326 ps = malloc((unsigned int)alen); in ssh_ops_is_pubkey_authorized()
376 struct lws_protocol_vhost_options *pvo = malloc(sizeof(*pvo)); in ssh_cgi_env_add()
381 pvo->name = malloc(strlen(name) + 1); in ssh_cgi_env_add()
387 pvo->value = malloc(strlen(value) + 1); in ssh_cgi_env_add()
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
H A Dpreprocessor_tab_autogen.cpp101 # include <malloc.h>
302 /* The parser invokes alloca or malloc; define the necessary symbols. */
313 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
349 !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free)))
356 # define YYMALLOC malloc
357 # if !defined malloc && !defined EXIT_SUCCESS
358 void *malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/IntelJITEvents/
H A Dittnotify_config.h358 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
375 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
392 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
408 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
424 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
439 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/
H A DExpressionParser.cpp103 #include <malloc.h>
325 /* The parser invokes alloca or malloc; define the necessary symbols. */
336 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
368 && ! ((defined YYMALLOC || defined malloc) \
376 # define YYMALLOC malloc
377 # if ! defined malloc && ! defined EXIT_SUCCESS
378 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
/third_party/skia/third_party/externals/harfbuzz/test/shape/data/aots/
H A Dhb-aots-tester.cpp61 char *fontdata = (char *)malloc (fontsize); in runTest()
96 features = (hb_feature_t *) malloc (sizeof (*features)); in runTest()
106 features = (hb_feature_t *) malloc (sizeof (*features) * nbSelect); in runTest()
318 unsigned int *actualG = (unsigned int *) malloc(sizeof(*actualG) * nbActual); in gpos_test()
319 int *actualX = (int *) malloc(sizeof(*actualX) * nbActual); in gpos_test()
320 int *actualY = (int *) malloc(sizeof(*actualY) * nbActual); in gpos_test()
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_data_base.cpp45 char** result = static_cast<char**>(malloc(sizeof(char*) * DEFAULT_AUTH_LENGTH)); in CJGetHttpAuthCredentials()
47 WEBVIEWLOGI("Webdatabase getHttpAuthCredentials malloc result failed!"); in CJGetHttpAuthCredentials()
58 result[1] = static_cast<char*>(malloc(sizeof(char) * (MAX_PWD_LENGTH + 1))); in CJGetHttpAuthCredentials()
60 WEBVIEWLOGI("Webdatabase getHttpAuthCredentials malloc password failed!"); in CJGetHttpAuthCredentials()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c24 newval = malloc(sz); in test_global_data_init()
46 buff = malloc(sz); in test_global_data_init()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dtrace-event-scripting.c76 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting()
139 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting()
/kernel/linux/linux-6.6/tools/objtool/include/objtool/
H A Dwarn.h32 str = malloc(strlen(sym->name) + strlen(sec->name) + 40); in offstr()
37 str = malloc(strlen(sec->name) + 20); in offstr()
/kernel/linux/linux-6.6/tools/perf/tests/shell/coresight/memcpy_thread/
H A Dmemcpy_thread.c22 src = malloc(a->size * 1024); in thrfn()
23 dst = malloc(a->size * 1024); in thrfn()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c24 newval = malloc(sz); in test_global_data_init()
46 buff = malloc(sz); in test_global_data_init()
/kernel/liteos_a/testsuites/unittest/container/full/
H A DIt_pid_container_006.cpp45 void *pstk = malloc(STACK_SIZE); in ChildFun()
85 void *pstk = malloc(STACK_SIZE); in ItPidContainer006()
/kernel/liteos_a/fs/proc/os_adapt/
H A Dfd_proc.c100 pidList = (unsigned int *)malloc(pidMaxNum * sizeof(unsigned int)); in FdProcFill()
109 pidList = (unsigned int *)malloc(pidNum * sizeof(unsigned int)); in FdProcFill()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_014.cpp52 writebuf = static_cast<char *>(malloc(pageSize)); in testcase()
54 readbuf = static_cast<char *>(malloc(pageSize)); in testcase()
/kernel/liteos_m/kal/posix/src/
H A Dmalloc.c89 void *malloc(size_t size) in __wrap__malloc_r()
143 return malloc(size); in __wrap__realloc_r()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_pid_container_030.cpp78 void *pstk = malloc(STACK_SIZE); in ChildFunClone1()
121 void *pstk = malloc(STACK_SIZE); in ItPidContainer030()
H A DIt_pid_container_029.cpp77 void *pstk = malloc(STACK_SIZE); in ChildFunClone1()
115 void *pstk = malloc(STACK_SIZE); in ItPidContainer029()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_064.cpp84 fileName = static_cast<char *>(malloc(FILE_NAME_BYTES)); in TestCase()
91 fileName = static_cast<char *>(malloc(LONG_FILE_NAME_BYTES)); in TestCase()
/third_party/alsa-lib/src/
H A Duserfile.c89 buf = malloc(bufsize); in snd_user_file()
106 *result = malloc(len); in snd_user_file()
/third_party/backends/backend/
H A Dplustek-pp_scan.h104 # define _KALLOC(x,y) malloc(x)
106 # define _VMALLOC(x) malloc(x)

Completed in 22 milliseconds

1...<<11121314151617181920>>...154