Home
last modified time | relevance | path

Searched refs:CONTENT_MAX_LEN (Results 1 - 6 of 6) sorted by relevance

/base/security/security_guard/frameworks/common/collect/test/unittest/src/
H A Ddata_collect_kit_test.cpp97 (void) memset_s(info.content, CONTENT_MAX_LEN, 0, CONTENT_MAX_LEN); in HWTEST_F()
98 errno_t rc = memcpy_s(info.content, CONTENT_MAX_LEN, content.c_str(), content.length()); in HWTEST_F()
119 (void) memset_s(info.content, CONTENT_MAX_LEN, 0, CONTENT_MAX_LEN); in HWTEST_F()
120 errno_t rc = memcpy_s(info.content, CONTENT_MAX_LEN, content.c_str(), content.length()); in HWTEST_F()
141 (void) memset_s(info.content, CONTENT_MAX_LEN, 0, CONTENT_MAX_LEN); in HWTEST_F()
142 errno_t rc = memcpy_s(info.content, CONTENT_MAX_LEN, content.c_str(), content.length()); in HWTEST_F()
163 (void) memset_s(info.content, CONTENT_MAX_LEN, in HWTEST_F()
[all...]
/base/security/security_guard/test/fuzztest/collect/reportsecurityinfo_fuzzer/
H A Dreport_security_info_fuzzer.cpp37 uint32_t cpyLen = size >= CONTENT_MAX_LEN ? CONTENT_MAX_LEN - 1: static_cast<uint32_t>(size); in ReportSecurityInfoFuzzTest()
38 (void) memcpy_s(info.content, CONTENT_MAX_LEN, data, cpyLen); in ReportSecurityInfoFuzzTest()
/base/security/security_guard/interfaces/inner_api/common/include/
H A Dsecurity_guard_api.h25 #define CONTENT_MAX_LEN 900 macro
33 uint8_t content[CONTENT_MAX_LEN];
/base/security/security_guard/frameworks/common/collect/src/
H A Dsg_collect_client.cpp123 if (info == nullptr || info->contentLen >= CONTENT_MAX_LEN || info->version == nullptr) { in ReportSecurityInfoImpl()
128 uint8_t tmp[CONTENT_MAX_LEN] = {}; in ReportSecurityInfoImpl()
129 (void)memset_s(tmp, CONTENT_MAX_LEN, 0, CONTENT_MAX_LEN); in ReportSecurityInfoImpl()
130 errno_t rc = memcpy_s(tmp, CONTENT_MAX_LEN, info->content, info->contentLen); in ReportSecurityInfoImpl()
/base/security/security_guard/frameworks/js/napi/
H A Dsecurity_guard_napi.h29 constexpr int CONTENT_MAX_LEN = 900; variable
H A Dsecurity_guard_napi.cpp294 char content[CONTENT_MAX_LEN] = {0}; in ParseEventInfo()
295 len = CONTENT_MAX_LEN; in ParseEventInfo()
655 event.content = ParseOptionalString(env, object, "content", CONTENT_MAX_LEN); in ParseEventForNotifyCollector()

Completed in 5 milliseconds