Home
last modified time | relevance | path

Searched refs:remainSize (Results 1 - 25 of 37) sorted by relevance

12

/base/security/certificate_manager/test/fuzz_test/cmusertrustedstore_fuzzer/
H A Dcmusertrustedstore_fuzzer.cpp30 static bool InstallUserCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) in InstallUserCert() argument
33 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in InstallUserCert()
34 if (!GetUintFromBuffer(tmpData, remainSize, offset, &userId)) { in InstallUserCert()
40 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in InstallUserCert()
41 if (!GetUintFromBuffer(tmpData, remainSize, offset, &status)) { in InstallUserCert()
64 static bool SetUserCertStatus(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) in SetUserCertStatus() argument
66 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in SetUserCertStatus()
67 if (!GetCmBlobFromBuffer(tmpData, remainSize, offset, keyUri)) { in SetUserCertStatus()
72 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in SetUserCertStatus()
73 if (!GetUintFromBuffer(tmpData, remainSize, offse in SetUserCertStatus()
102 GetAllUserCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset) GetAllUserCert() argument
131 GetUserCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) GetUserCert() argument
166 UnInstallUserCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) UnInstallUserCert() argument
202 uint32_t remainSize = static_cast<uint32_t>(size); DoSomethingInterestingWithMyAPI() local
[all...]
/base/security/certificate_manager/test/fuzz_test/cmsystemtrustedstore_fuzzer/
H A Dcmsystemtrustedstore_fuzzer.cpp29 static bool SetSysCertStatus(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) in SetSysCertStatus() argument
31 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in SetSysCertStatus()
32 if (!GetCmBlobFromBuffer(tmpData, remainSize, offset, keyUri)) { in SetSysCertStatus()
37 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in SetSysCertStatus()
38 if (!GetUintFromBuffer(tmpData, remainSize, offset, &store)) { in SetSysCertStatus()
44 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in SetSysCertStatus()
45 if (!GetUintFromBuffer(tmpData, remainSize, offset, &state)) { in SetSysCertStatus()
67 static bool GetAllSysCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset) in GetAllSysCert() argument
70 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in GetAllSysCert()
71 if (!GetUintFromBuffer(tmpData, remainSize, offse in GetAllSysCert()
96 GetSysCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, struct CmBlob *keyUri) GetSysCert() argument
138 uint32_t remainSize = static_cast<uint32_t>(size); DoSomethingInterestingWithMyAPI() local
[all...]
/base/security/certificate_manager/test/fuzz_test/cmappcert_fuzzer/
H A Dcmappcert_fuzzer.cpp29 static bool InstallAppCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, uint32_t store, in InstallAppCert() argument
34 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in InstallAppCert()
35 if (!GetCmBlobFromBuffer(tmpData, remainSize, offset, keyUri)) { in InstallAppCert()
61 static bool GetAllAppCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, uint32_t store) in GetAllAppCert() argument
76 static bool GetAppCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, uint32_t store, in GetAppCert() argument
79 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in GetAppCert()
80 if (!GetCmBlobFromBuffer(tmpData, remainSize, offset, keyUri)) { in GetAppCert()
101 static bool UnInstallAppCert(uint8_t *tmpData, uint32_t *remainSize, uint32_t *offset, uint32_t store, in UnInstallAppCert() argument
104 if (TenPercentChanceOfBeingTrue(tmpData, remainSize, offset)) { in UnInstallAppCert()
105 if (!GetCmBlobFromBuffer(tmpData, remainSize, offse in UnInstallAppCert()
133 uint32_t remainSize = static_cast<uint32_t>(size); DoSomethingInterestingWithMyAPI() local
[all...]
/base/security/certificate_manager/test/fuzz_test/cmgetappcert_fuzzer/
H A Dcmgetappcert_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
47 if (remainSize < sizeof(struct Credential)) { in DoSomethingInterestingWithMyAPI()
54 remainSize -= sizeof(struct Credential); in DoSomethingInterestingWithMyAPI()
55 if (remainSize < credCert.credData.size) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/
H A Dcminstallappcert_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCert)) { in DoSomethingInterestingWithMyAPI()
44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertPwd)) { in DoSomethingInterestingWithMyAPI()
50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI()
56 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
62 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &keyUri)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cminit_fuzzer/
H A Dcminit_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authUri)) { in DoSomethingInterestingWithMyAPI()
43 if (remainSize < sizeof(struct CmSignatureSpec)) { in DoSomethingInterestingWithMyAPI()
49 remainSize -= sizeof(struct CmSignatureSpec); in DoSomethingInterestingWithMyAPI()
53 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &handle)) { in DoSomethingInterestingWithMyAPI()
/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algorithm.cpp26 size_t &remainSize, size_t &readLen) const in ReadData()
29 size_t remainBytes = (remainSize > buffer.length) ? buffer.length : remainSize; in ReadData()
37 remainSize -= readBytes; in ReadData()
73 size_t remainSize = context.unpackedSize; in Pack() local
75 while (remainSize > 0) { in Pack()
76 ret = ReadData(inStream, srcOffset, buffer, remainSize, readLen); in Pack()
119 size_t remainSize = context.packedSize; in Unpack() local
121 while (remainSize > 0) { in Unpack()
122 ret = ReadData(inStream, srcOffset, buffer, remainSize, readLe in Unpack()
25 ReadData(const PkgStreamPtr inStream, size_t offset, PkgBuffer &buffer, size_t &remainSize, size_t &readLen) const ReadData() argument
166 size_t remainSize = context.packedSize; UnpackWithVerify() local
[all...]
/base/security/certificate_manager/test/fuzz_test/cmfinish_fuzzer/
H A Dcmfinish_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &fiHandle)) { in DoSomethingInterestingWithMyAPI()
44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &inData)) { in DoSomethingInterestingWithMyAPI()
50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &outData)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetcertinfo_fuzzer/
H A Dcmgetcertinfo_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
35 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &sysUri)) { in DoSomethingInterestingWithMyAPI()
41 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
47 if (!GetCertInfoFromBuffer(myData, &remainSize, &offset, &sysCertInfo)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetauthorizedapplist_fuzzer/
H A Dcmgetauthorizedapplist_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authorUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &(appUidList.appUidCount))) { in DoSomethingInterestingWithMyAPI()
46 if (appUidList.appUidCount > remainSize / sizeof(uint32_t)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetappcertlist_fuzzer/
H A Dcmgetappcertlist_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetUintFromBuffer(myData, &remainSize, &offset, &credStore)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &(credCertList.credentialCount))) { in DoSomethingInterestingWithMyAPI()
46 if (credCertList.credentialCount > (remainSize / sizeof(struct CredentialAbstract))) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetusercertinfo_fuzzer/
H A Dcmgetusercertinfo_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &userCertUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
48 if (!GetCertInfoFromBuffer(myData, &remainSize, &offset, &userCertInfo)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgrantappcertificate_fuzzer/
H A Dcmgrantappcertificate_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &keyUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI()
48 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authUri)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cminstallusertrustedcert_fuzzer/
H A Dcminstallusertrustedcert_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
37 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &userCert)) { in DoSomethingInterestingWithMyAPI()
43 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI()
49 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certUri)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmsetusercertstatus_fuzzer/
H A Dcmsetusercertstatus_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &setUserUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &userStore)) { in DoSomethingInterestingWithMyAPI()
47 if (remainSize < sizeof(bool)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmsetcertstatus_fuzzer/
H A Dcmsetcertstatus_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &sysCertUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
47 if (remainSize < sizeof(bool)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmsendrequest_fuzzer/
H A Dcmsendrequest_fuzzer.cpp33 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
42 remainSize -= sizeof(uint32_t); in DoSomethingInterestingWithMyAPI()
45 if (ConstructParamSet(myData, &remainSize, &offset, type, &sendParamSet) == false) { in DoSomethingInterestingWithMyAPI()
53 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &outBlob)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetcertlist_fuzzer/
H A Dcmgetcertlist_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
35 if (!GetUintFromBuffer(myData, &remainSize, &offset, &sysStore)) { in DoSomethingInterestingWithMyAPI()
41 if (!GetCertListFromBuffer(myData, &remainSize, &offset, &sysCertList)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgetusercertlist_fuzzer/
H A Dcmgetusercertlist_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetUintFromBuffer(myData, &remainSize, &offset, &userStore)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetCertListFromBuffer(myData, &remainSize, &offset, &userCertList)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmremovegrantedapp_fuzzer/
H A Dcmremovegrantedapp_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &grantKeyUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmuninstallappcert_fuzzer/
H A Dcmuninstallappcert_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &rmKeyUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmupdate_fuzzer/
H A Dcmupdate_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &upHandle)) { in DoSomethingInterestingWithMyAPI()
44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &inData)) { in DoSomethingInterestingWithMyAPI()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
H A Dsys_event_doc_writer.cpp94 if (auto remainSize = GetCurrPageRemainSize(fileSize, pageSize); remainSize < contentSize) { in Write()
95 if (int ret = FillCurrPageWithZero(remainSize); ret != DOC_STORE_SUCCESS) { in Write()
107 int SysEventDocWriter::FillCurrPageWithZero(uint32_t remainSize) in FillCurrPageWithZero() argument
109 if (remainSize == 0) { in FillCurrPageWithZero()
112 if (remainSize > MAX_NEW_SIZE) { in FillCurrPageWithZero()
113 HIVIEW_LOGE("invalid new size=%{public}u", remainSize); in FillCurrPageWithZero()
116 uint8_t* fillData = new(std::nothrow) uint8_t[remainSize]{ 0x0 }; in FillCurrPageWithZero()
118 HIVIEW_LOGE("failed to new memory for fillData, size=%{public}u", remainSize); in FillCurrPageWithZero()
121 out_.write(reinterpret_cast<char*>(fillData), remainSize); in FillCurrPageWithZero() local
[all...]
/base/security/certificate_manager/test/fuzz_test/cmonremoterequest_fuzzer/
H A Dcmonremoterequest_fuzzer.cpp34 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
39 if (!GetUintFromBuffer(myData, &remainSize, &offset, &code)) { in DoSomethingInterestingWithMyAPI()
47 if (!GetUintFromBuffer(myData, &remainSize, &offset, &outSize)) { in DoSomethingInterestingWithMyAPI()
52 if (ConstructParamSet(myData, &remainSize, &offset, in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmabort_fuzzer/
H A Dcmabort_fuzzer.cpp32 uint32_t remainSize = static_cast<uint32_t>(size); in DoSomethingInterestingWithMyAPI() local
35 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &abHandle)) { in DoSomethingInterestingWithMyAPI()

Completed in 7 milliseconds

12