Home
last modified time | relevance | path

Searched refs:MAX_MALLOC_LEN (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
H A Dhks_samgr_service_feature.c23 const uint32_t MAX_MALLOC_LEN = 1 * 1024 * 1024; /* max malloc size 1 MB */ variable
106 if (srcData->size == 0 || srcData->size > MAX_MALLOC_LEN) { in ReadSrcDataFromReq()
143 if (outSize > MAX_MALLOC_LEN) { in Invoke()
/ohos5.0/base/security/device_security_level/baselib/utils/src/
H A Dutils_base64.c31 #define MAX_MALLOC_LEN (1 * 1024 * 1024) macro
169 if (outSize + 1 > MAX_MALLOC_LEN) { in Base64EncodeApp()
197 if (decodedLen + 1 > MAX_MALLOC_LEN) { in Base64DecodeApp()
H A Dutils_hexstring.c30 #define MAX_MALLOC_LEN (1 * 1024 * 1024) macro
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/sa/
H A Dcm_sa.cpp40 const uint32_t MAX_MALLOC_LEN = 1 * 1024 * 1024; /* max malloc size 1 MB */ variable
117 return (length == 0) || (length > MAX_MALLOC_LEN); in IsInvalidLength()
130 if (outData.size > MAX_MALLOC_LEN) { in ProcessMessage()
/ohos5.0/base/customization/config_policy/interfaces/kits/cj/src/
H A Dconfig_policy_ffi.cpp26 static constexpr int MAX_MALLOC_LEN = 1024; variable
34 if (size > MAX_MALLOC_LEN) { in MallocCStringArr()
/ohos5.0/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_baselib_utils_test.cpp35 #define MAX_MALLOC_LEN (1 * 1024 * 1024) macro
289 uint32_t maxStrLen = MAX_MALLOC_LEN / 3 * 4 + 10;
315 uint32_t maxStrLen = MAX_MALLOC_LEN / 4 * 3;
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
H A Dhks_sa.cpp70 const uint32_t MAX_MALLOC_LEN = 1 * 1024 * 1024; /* max malloc size 1 MB */ variable
108 return (length == 0) || (length > MAX_MALLOC_LEN); in IsInvalidLength()
122 if (outSize > MAX_MALLOC_LEN) { in ProcessMessage()
/ohos5.0/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/
H A Ddslm_fuzzer.cpp45 #define MAX_MALLOC_LEN (1 * 1024 * 1024) macro