Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp33 size_t offset = startOffset; in ApplyImagePatch() local
34 if (offset + PATCH_NORMAL_MIN_HEADER_LEN > param.patchSize) { in ApplyImagePatch()
39 size_t srcStart = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
40 offset += sizeof(int64_t); in ApplyImagePatch()
41 size_t srcLen = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
42 offset += sizeof(int64_t); in ApplyImagePatch()
43 size_t patchOffset = static_cast<size_t>(ReadLE<int64_t>(param.patch + offset)); in ApplyImagePatch()
44 offset += sizeof(int64_t); in ApplyImagePatch()
58 startOffset = offset; in ApplyImagePatch()
64 size_t offset = startOffset; in ApplyImagePatch() local
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_serialization.c124 struct HksParamSet **paramSet, uint32_t *offset) in GetKeyAndParamSetFromBuffer() argument
126 int32_t ret = GetBlobFromBuffer(keyAlias, srcData, offset); in GetKeyAndParamSetFromBuffer()
129 ret = GetParamSetFromBuffer(paramSet, srcData, offset); in GetKeyAndParamSetFromBuffer()
135 …int32_t MallocBlobFromBuffer(const struct HksBlob *srcData, struct HksBlob *blob, uint32_t *offset) in MallocBlobFromBuffer() argument
138 int32_t ret = GetUint32FromBuffer(&blobSize, srcData, offset); in MallocBlobFromBuffer()
154 …cParamSetFromBuffer(const struct HksBlob *srcData, struct HksParamSet **paramSet, uint32_t *offset) in MallocParamSetFromBuffer() argument
157 int32_t ret = GetUint32FromBuffer(&paramSetOutSize, srcData, offset); in MallocParamSetFromBuffer()
175 uint32_t offset = 0; in HksGenerateKeyUnpack() local
176 int32_t ret = GetKeyAndParamSetFromBuffer(srcData, keyAlias, paramSetIn, &offset); in HksGenerateKeyUnpack()
180 ret = GetUint32FromBuffer(&keyOutSize, srcData, &offset); in HksGenerateKeyUnpack()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dzip_output.cpp78 if ((srcBuffer->offset + size) > MAX_COMPRESS_BUFFER_SIZE) { in Execute()
89 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute()
90 MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset, content, content_size) != EOK) { in Execute()
94 srcBuffer->offset = srcBuffer->offset + content_size; in Execute()
95 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute()
96 srcBuffer->offset = srcBuffer->offset + 1; in Execute()
113 if (srcBuffer->offset > 0) { in CompressAndWriteToFd()
116 if (write(fd_, destBuffer->content, destBuffer->offset) < 0) { in CompressAndWriteToFd()
145 if ((srcBuffer->offset + remain_size) > MAX_COMPRESS_BUFFER_SIZE) { in CompressBigLine()
146 process_size = MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset; in CompressBigLine()
[all …]
/base/telephony/core_service/services/sim/src/
Dsim_utils.cpp143 std::string SIMUtils::BcdPlmnConvertToString(const std::string &data, int offset) in BcdPlmnConvertToString() argument
146 if (static_cast<int>(data.size()) >= (offset + MCCMNC_LEN) && data.at(offset) != 'F') { in BcdPlmnConvertToString()
147 plmn.push_back(data[offset + BCD_PLMN_MCC1]); in BcdPlmnConvertToString()
148 plmn.push_back(data[offset + BCD_PLMN_MCC2]); in BcdPlmnConvertToString()
149 plmn.push_back(data[offset + BCD_PLMN_MCC3]); in BcdPlmnConvertToString()
150 plmn.push_back(data[offset + BCD_PLMN_MNC1]); in BcdPlmnConvertToString()
151 plmn.push_back(data[offset + BCD_PLMN_MNC2]); in BcdPlmnConvertToString()
152 if (data.at(offset + BCD_PLMN_MNC3) != 'F') { in BcdPlmnConvertToString()
153 plmn.push_back(data[offset + BCD_PLMN_MNC3]); in BcdPlmnConvertToString()
192 std::shared_ptr<unsigned char> array, int offset, int length, int offPos) in DiallingNumberStringFieldConvertToString() argument
[all …]
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_centraldirectory.c32 void HapPutByte(const HapBuf *hapBuffer, int32_t offset, char value) in HapPutByte() argument
37 if ((offset >= 0) && (hapBuffer->len - offset >= (int)(sizeof(value)))) { in HapPutByte()
38 *(char *)((char *)hapBuffer->buffer + offset) = value; in HapPutByte()
43 void HapPutData(const HapBuf *hapBuffer, int32_t offset, const unsigned char *data, int32_t len) in HapPutData() argument
48 if ((data != NULL) && (offset >= 0) && len > 0 && ((hapBuffer->len - offset) >= len)) { in HapPutData()
49 …if (memcpy_s(((unsigned char *)hapBuffer->buffer + offset), (hapBuffer->len - offset), data, len) … in HapPutData()
55 void HapSetInt32(const HapBuf *buffer, int32_t offset, int32_t value) in HapSetInt32() argument
64 if ((offset >= 0) && ((buffer->len - offset) >= (int)(sizeof(value)))) { in HapSetInt32()
65 HapPutInt32((unsigned char *)buffer->buffer + offset, buffer->len - offset, (int)(value)); in HapSetInt32()
168 int32_t ReadFileFullyFromOffset(const HapBuf *buffer, int32_t offset, const FileRead *file) in ReadFileFullyFromOffset() argument
[all …]
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_serialization.c127 uint32_t offset = 0; in HksGenerateKeyPack() local
128 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksGenerateKeyPack()
131 ret = CopyParamSetToBuffer(paramSetIn, destData, &offset); in HksGenerateKeyPack()
133 return CopyUint32ToBuffer(keyOut->size, destData, &offset); in HksGenerateKeyPack()
139 uint32_t offset = 0; in HksImportKeyPack() local
140 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksImportKeyPack()
143 ret = CopyParamSetToBuffer(paramSet, destData, &offset); in HksImportKeyPack()
145 return CopyBlobToBuffer(key, destData, &offset); in HksImportKeyPack()
151 uint32_t offset = 0; in HksImportWrappedKeyPack() local
152 int32_t ret = CopyBlobToBuffer(keyAlias, destData, &offset); in HksImportWrappedKeyPack()
[all …]
/base/security/certificate_manager/test/fuzz_test/fuzz_test_common/src/
Dcm_fuzz_test_common.cpp22 bool GetUintFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, uint32_t *outVal) in GetUintFromBuffer() argument
28 (void)memcpy_s(outVal, sizeof(uint32_t), srcData + *offset, sizeof(uint32_t)); in GetUintFromBuffer()
30 *offset += sizeof(uint32_t); in GetUintFromBuffer()
35 bool GetCmBlobFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CmBlob *outB… in GetCmBlobFromBuffer() argument
37 if (GetUintFromBuffer(srcData, remSize, offset, &(outBlob->size)) != true) { in GetCmBlobFromBuffer()
44 outBlob->data = srcData + *offset; in GetCmBlobFromBuffer()
46 *offset += outBlob->size; in GetCmBlobFromBuffer()
51 bool GetCertListFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CertList *… in GetCertListFromBuffer() argument
53 if (GetUintFromBuffer(srcData, remSize, offset, &(outList->certsCount)) != true) { in GetCertListFromBuffer()
60 outList->certAbstract = reinterpret_cast<struct CertAbstract *>(srcData + *offset); in GetCertListFromBuffer()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c52 static int32_t GetIdItem(int32_t file, uint32_t offset, IdItem *idItem);
56 static int32_t GetIdHeaderByOffset(int32_t file, uint32_t offset, IdHeader *idHeader);
114 uint8_t offset = 0; in ConvertUint8ArrayToUint32() local
117 value += (array[i] << offset); in ConvertUint8ArrayToUint32()
118 offset += OFFSET_VALUE_STEP; in ConvertUint8ArrayToUint32()
129 uint32_t offset = 0; in GetValueFromLocale() local
133 value += (((uint8_t)tolower(locale[i])) << offset); in GetValueFromLocale()
134 offset += OFFSET_VALUE_STEP; in GetValueFromLocale()
148 return keys[i].offset; in FindOffsetByLanguage()
181 uint32_t offset = INVALID_OFFSET; in FindOffsetByLangWithScriptOrRegion() local
[all …]
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.cpp65 void GZipFileEntry::GetUpGradeCompInfo(size_t &offset, PkgBuffer &buffer) in GetUpGradeCompInfo() argument
72 offset += sizeof(GZipHeader); in GetUpGradeCompInfo()
76 WriteLE16(buffer.buffer + offset, EXTRA_FIELD_LEN); in GetUpGradeCompInfo()
77 offset += sizeof(uint16_t) + EXTRA_FIELD_LEN; in GetUpGradeCompInfo()
84 … fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen); in GetUpGradeCompInfo()
85 offset += fileNameLen; in GetUpGradeCompInfo()
86 buffer.buffer[offset] = 0; in GetUpGradeCompInfo()
87 offset += 1; in GetUpGradeCompInfo()
94 … fileInfo_.fileInfo.identity, {buffer.buffer + offset, buffer.length - offset}, fileNameLen); in GetUpGradeCompInfo()
95 offset += fileNameLen; in GetUpGradeCompInfo()
[all …]
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_elf.cpp67 uint64_t DfxElfImpl::GetRealLoadOffset(uint64_t offset) const in GetRealLoadOffset()
71 if ((iter.second.offset & -PAGE_SIZE) == offset) { in GetRealLoadOffset()
72 return offset + (iter.second.tableVaddr - iter.second.offset); in GetRealLoadOffset()
76 return offset; in GetRealLoadOffset()
118 uint64_t offset = ehdr.e_phoff; in ReadProgramHeaders() local
120 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize) { in ReadProgramHeaders()
122 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders()
133 elfLoadInfo.offset = phdr.p_offset; in ReadProgramHeaders()
153 uint64_t offset = ehdr.e_shoff; in ReadSectionHeaders() local
158 uint64_t shOffset = offset + ehdr.e_shstrndx * ehdr.e_shentsize; in ReadSectionHeaders()
[all …]
Ddfx_memory_file.cpp32 …shared_ptr<DfxMemoryFile> DfxMemoryFile::CreateFileMemory(const std::string& path, uint64_t offset) in CreateFileMemory() argument
35 if (memory->Init(path, offset)) { in CreateFileMemory()
49 bool DfxMemoryFile::Init(const std::string& file, uint64_t offset, uint64_t size) in Init() argument
60 if ((fileSize == 0) || (offset >= static_cast<uint64_t>(fileSize))) { in Init()
64 offset_ = offset & static_cast<uint64_t>ALIGN_BYTES(getpagesize()); in Init()
65 uint64_t alignedOffset = offset & ALIGN_MASK(getpagesize()); in Init()
67 offset > static_cast<uint64_t>(fileSize)) { in Init()
/base/security/appverify/interfaces/innerkits/appverify/src/common/
Drandom_access_file.cpp81 long long RandomAccessFile::DoMMap(int32_t bufCapacity, long long offset, MmapInfo& mmapInfo) in DoMMap() argument
91 if (offset < 0 || offset > fileLength - bufCapacity) { in DoMMap()
94 mmapInfo.mmapPosition = (offset / memoryPageSize) * memoryPageSize; in DoMMap()
95 mmapInfo.readMoreLen = static_cast<int>(offset - mmapInfo.mmapPosition); in DoMMap()
106 long long RandomAccessFile::ReadFileFullyFromOffset(char buf[], long long offset, int32_t bufCapaci… in ReadFileFullyFromOffset() argument
113 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset()
127 long long RandomAccessFile::ReadFileFullyFromOffset(HapByteBuffer& buffer, long long offset) in ReadFileFullyFromOffset() argument
135 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset()
146 int32_t chunkSize, long long offset) in ReadFileFromOffsetAndDigestUpdate() argument
149 long long ret = DoMMap(chunkSize, offset, mmapInfo); in ReadFileFromOffsetAndDigestUpdate()
/base/startup/init/services/param/linux/
Dparam_message.c49 uint32_t offset = *start; in FillParamMsgContent() local
50 PARAM_CHECK((offset + sizeof(ParamMsgContent) + length) <= bufferSize, in FillParamMsgContent()
51 return -1, "Invalid msgSize %u offset %u %d", request->msgSize, offset, type); in FillParamMsgContent()
52 ParamMsgContent *content = (ParamMsgContent *)(request->data + offset); in FillParamMsgContent()
60 offset += sizeof(ParamMsgContent) + PARAM_ALIGN(content->contentSize); in FillParamMsgContent()
61 *start = offset; in FillParamMsgContent()
84 ParamMsgContent *GetNextContent(const ParamMessage *request, uint32_t *offset) in GetNextContent() argument
87 PARAM_CHECK(offset != NULL, return NULL, "Invalid offset"); in GetNextContent()
89 if ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize) { in GetNextContent()
92 ParamMsgContent *content = (ParamMsgContent *)(msg->data + *offset); in GetNextContent()
[all …]
/base/hiviewdfx/hilog/services/hilogd/
Dlog_compress.cpp42 void *dest = compressedBuffer.content + compressedBuffer.offset; in Compress()
43 size_t destSize = MAX_PERSISTER_BUFFER_SIZE - compressedBuffer.offset; in Compress()
44 if (memcpy_s(dest, destSize, inBuffer.content, inBuffer.offset) != 0) { in Compress()
47 compressedBuffer.offset += inBuffer.offset; in Compress()
59 uint32_t zdlen = deflateBound(&cStream, inBuffer.offset); in Compress()
69 size_t read = inBuffer.offset; in Compress()
110 if (memcpy_s(compressedBuffer.content + compressedBuffer.offset, in Compress()
111 MAX_PERSISTER_BUFFER_SIZE - compressedBuffer.offset, zdata, dst_pos) != 0) { in Compress()
114 compressedBuffer.offset += dst_pos; in Compress()
139 size_t read = inBuffer.offset; in Compress()
[all …]
/base/security/certificate_manager/test/fuzz_test/cmgetappcert_fuzzer/
Dcmgetappcert_fuzzer.cpp33 uint32_t offset = 0; in DoSomethingInterestingWithMyAPI() local
36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertUri)) { in DoSomethingInterestingWithMyAPI()
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI()
52 … (void)memcpy_s(&credCert, sizeof(struct Credential), myData + offset, sizeof(struct Credential)); in DoSomethingInterestingWithMyAPI()
53 offset += sizeof(struct Credential); in DoSomethingInterestingWithMyAPI()
59 credCert.credData.data = const_cast<uint8_t *>(myData + offset); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/
Dcminstallappcert_fuzzer.cpp35 uint32_t offset = 0; 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/frameworks/cert_manager_standard/main/common/src/
Dcm_param.c76 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * paramSet->paramsCnt; in CmFreshParamSet() local
79 if (offset > size) { in CmFreshParamSet()
84 if (CmIsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in CmFreshParamSet()
89 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size - offset, in CmFreshParamSet()
94 paramSet->params[i].blob.data = (uint8_t *)paramSet + offset; in CmFreshParamSet()
95 offset += paramSet->params[i].blob.size; in CmFreshParamSet()
99 if (paramSet->paramSetSize != offset) { in CmFreshParamSet()
110 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * freshParamSet->paramsCnt; in BuildParamSet() local
118 if (memcpy_s(freshParamSet, size, *paramSet, offset) != EOK) { in BuildParamSet()
179 uint32_t offset = sizeof(struct CmParamSet) + sizeof(struct CmParam) * paramSet->paramsCnt; in FreshParamSet() local
[all …]
/base/security/certificate_manager/test/fuzz_test/fuzz_test_common/include/
Dcm_fuzz_test_common.h26 bool GetUintFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, uint32_t *outVal);
28 bool GetCmBlobFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CmBlob *outB…
30 bool GetCertListFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CertList *…
32 bool GetCertInfoFromBuffer(uint8_t *srcData, uint32_t *remSize, uint32_t *offset, struct CertInfo *…
36 bool ConstructParamSet(uint8_t *srcData, uint32_t *remainSize, uint32_t *offset,
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_dsa_helper.c81 uint32_t offset = sizeof(struct KeyMaterialDsa); in InitDsa() local
89 x = BinToBN(key->data + offset, keyMaterial->xSize); in InitDsa()
90 offset += keyMaterial->xSize; in InitDsa()
93 y = BinToBN(key->data + offset, keyMaterial->ySize); in InitDsa()
94 offset += keyMaterial->ySize; in InitDsa()
96 p = BinToBN(key->data + offset, keyMaterial->pSize); in InitDsa()
97 offset += keyMaterial->pSize; in InitDsa()
99 q = BinToBN(key->data + offset, keyMaterial->qSize); in InitDsa()
100 offset += keyMaterial->qSize; in InitDsa()
102 g = BinToBN(key->data + offset, keyMaterial->gSize); in InitDsa()
[all …]
/base/update/packaging_tools/
Dcreate_hashdata.py168 offset = 0
172 data[offset: HASH_DATA_HEADER_SIZE + offset])
175 offset += HASH_DATA_HEADER_SIZE
179 data[offset: HASH_DATA_ADDR_SIZE + offset])
180 …hash_data = data[HASH_DATA_ADDR_SIZE + offset:HASH_DATA_ADDR_SIZE + self.hash_digest_size + offset]
181 offset += (HASH_DATA_ADDR_SIZE + self.hash_digest_size)
201 offset = 0
203 hash_check_file_p.write((self.hashdata_list[offset][0] + '\n').encode())
204 hash_check_file_p.write((str(self.hashdata_list[offset][1]) + ' ' + \
205 str(self.hashdata_list[offset][2]) + '\n').encode())
[all …]
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.h36 …Lz4Adapter(UpdatePatchWriterPtr outStream, size_t offset, const Hpackage::PkgManager::FileInfoPtr …
53 Lz4FrameAdapter(UpdatePatchWriterPtr outStream, size_t offset, in Lz4FrameAdapter() argument
54 … const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4Adapter(outStream, offset, fileInfo) {} in Lz4FrameAdapter()
63 int32_t FlushData(size_t &offset) override;
74 Lz4BlockAdapter(UpdatePatchWriterPtr outStream, size_t offset, in Lz4BlockAdapter() argument
75 …const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4FrameAdapter(outStream, offset, fileInfo) {} in Lz4BlockAdapter()
83 int32_t FlushData(size_t &offset) override;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp162 int32_t ParseString(const char *buffer, uint32_t &offset, std::string &id, bool includeTemi = true) in ParseString() argument
165 errno_t eret = memcpy_s(&strLen, sizeof(strLen), buffer + offset, 2); in ParseString()
169 offset += 2; in ParseString()
170 …std::string tmp = std::string(const_cast<char *>(buffer) + offset, includeTemi ? (strLen - 1) : st… in ParseString()
171 offset += includeTemi ? strLen : (strLen + 1); in ParseString()
183 int32_t ParseStringArray(const char *buffer, uint32_t &offset, std::vector<std::string> &values) in ParseStringArray() argument
186 errno_t eret = memcpy_s(&arrLen, sizeof(arrLen), buffer + offset, 2); in ParseStringArray()
190 offset += 2; in ParseStringArray()
192 uint32_t startOffset = offset; in ParseStringArray()
195 int32_t ret = ParseString(buffer, offset, value, false); in ParseStringArray()
[all …]
/base/security/certificate_manager/test/fuzz_test/cminit_fuzzer/
Dcminit_fuzzer.cpp35 uint32_t offset = 0; in DoSomethingInterestingWithMyAPI() local
38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authUri)) { in DoSomethingInterestingWithMyAPI()
48 …(void)memcpy_s(&spec, sizeof(struct CmSignatureSpec), myData + offset, sizeof(struct CmSignatureSp… in DoSomethingInterestingWithMyAPI()
50 offset += sizeof(struct CmSignatureSpec); in DoSomethingInterestingWithMyAPI()
53 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &handle)) { in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_log_test.cpp71 uint32_t offset = 0; in ConstructBuf() local
76 …if (memcpy_s(outData->data + offset, outData->size - offset, &input->certCount, sizeof(input->cert… in ConstructBuf()
79 offset += sizeof(input->certCount); in ConstructBuf()
83 outData->size = offset; in ConstructBuf()
86 if (memcpy_s(outData->data + offset, outData->size - offset, &input->subjectNameLen, in ConstructBuf()
90 offset += sizeof(input->subjectNameLen) + ALIGN_SIZE(input->subjectNameLen); /* len valid */ in ConstructBuf()
94 outData->size = offset; in ConstructBuf()
97 …if (memcpy_s(outData->data + offset, outData->size - offset, &input->status, sizeof(input->status)… in ConstructBuf()
100 offset += sizeof(input->status); in ConstructBuf()
104 outData->size = offset; in ConstructBuf()
[all …]
/base/usb/usb_manager/test/fuzztest/usbmgrbulkcancel_fuzzer/
Dusbmgrbulkcancel_fuzzer.cpp45 uint32_t offset = 0; in GetSharedMem() local
46 while (offset < MEM_DATA) { in GetSharedMem()
47 … uint32_t tlen = (MEM_DATA - offset) < ASHMEM_MAX_SIZE ? (MEM_DATA - offset) : ASHMEM_MAX_SIZE; in GetSharedMem()
48 asmptr->WriteToAshmem(tdata.data(), tlen, offset); in GetSharedMem()
49 offset += tlen; in GetSharedMem()

12345678910>>...15