/aosp12/system/libziparchive/ |
H A D | ziptool.cpp | 243 if (entry.uncompressed_length > SIZE_MAX) { in ExtractToPipe() 244 die(0, "entry size %" PRIu64 " is too large to extract.", entry.uncompressed_length); in ExtractToPipe() 246 auto uncompressed_length = static_cast<size_t>(entry.uncompressed_length); in ExtractToPipe() local 247 uint8_t* buffer = new uint8_t[uncompressed_length]; in ExtractToPipe() 248 int err = ExtractToMemory(zah, &entry, buffer, uncompressed_length); in ExtractToPipe() 252 if (!android::base::WriteFully(1, buffer, uncompressed_length)) { in ExtractToPipe() 313 printf("%8" PRIu64 " %s %8" PRIu64 " %3.0f%% %s %08x %s\n", entry.uncompressed_length, in ListOne() 315 CompressionRatio(entry.uncompressed_length, entry.compressed_length), time, entry.crc32, in ListOne() 318 printf("%9" PRIu64 " %s %s\n", entry.uncompressed_length, time, name.c_str()); in ListOne() 378 entry.uncompressed_length, entry.is_text ? 't' : 'b', in InfoOne() [all …]
|
H A D | zip_writer_test.cc | 69 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 101 ASSERT_EQ(2u, data.uncompressed_length); in TEST_F() 107 ASSERT_EQ(3u, data.uncompressed_length); in TEST_F() 113 EXPECT_EQ(0u, data.uncompressed_length); in TEST_F() 247 ASSERT_EQ(4u, data.uncompressed_length); in TEST_F() 279 EXPECT_EQ(kBufSize, data.uncompressed_length); in TEST_F() 373 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 409 if (expected.size() != zip_entry->uncompressed_length) { in AssertFileEntryContentsEq() 411 << "uncompressed entry size " << zip_entry->uncompressed_length in AssertFileEntryContentsEq()
|
H A D | zip_archive.cc | 678 offset += entry->uncompressed_length; in ValidateDataDescriptor() 693 entry->uncompressed_length >= u32max) { in ValidateDataDescriptor() 704 entry->uncompressed_length != descriptor.uncompressed_size || in ValidateDataDescriptor() 755 data->uncompressed_length = cdr->uncompressed_size; in FindEntry() 998 src->uncompressed_length, src->compressed_length); in CopyFromZipEntry64() 1003 dst->uncompressed_length = static_cast<uint32_t>(src->uncompressed_length); in CopyFromZipEntry64() 1101 const uint64_t declared_length = entry->uncompressed_length; in Create() 1143 const uint64_t declared_length = entry->uncompressed_length; in Create() 1260 const uint64_t uncompressed_length, in inflateImpl() argument 1368 uncompressed_length); in inflateImpl() [all …]
|
H A D | zip_archive_test.cc | 347 ASSERT_EQ(17u, data.uncompressed_length); in TEST() 420 const auto a_size = static_cast<size_t>(data.uncompressed_length); in TEST() 428 const auto b_size = static_cast<size_t>(data.uncompressed_length); in TEST() 508 ASSERT_EQ(0u, entry.uncompressed_length); in TEST() 534 ASSERT_EQ(kAbUncompressedSize, entry.uncompressed_length); in TEST() 688 ASSERT_EQ(entry.uncompressed_length, read_data.size()); in ZipArchiveStreamTestUsingMemory() 788 ASSERT_EQ(12u, entry.uncompressed_length); in ExtractEntryToMemory() 1230 ASSERT_EQ(200, entry.uncompressed_length); in TEST_F() 1234 ASSERT_EQ(300, entry.uncompressed_length); in TEST_F() 1260 ASSERT_EQ(200, entry.uncompressed_length); in TEST_F() [all …]
|
H A D | zip_archive_stream_entry.cc | 72 length_ = entry.uncompressed_length; in Init() 179 uncompressed_length_ = entry.uncompressed_length; in Init()
|
/aosp12/frameworks/base/tools/aapt2/io/ |
H A D | ZipArchive.cpp | 38 if (zip_entry_.uncompressed_length == 0) { in OpenAsData() 47 zip_entry_.uncompressed_length, true); in OpenAsData() 55 std::unique_ptr<uint8_t[]>(new uint8_t[zip_entry_.uncompressed_length]); in OpenAsData() 58 static_cast<uint32_t>(zip_entry_.uncompressed_length)); in OpenAsData() 63 zip_entry_.uncompressed_length); in OpenAsData()
|
/aosp12/system/libziparchive/include/ziparchive/ |
H A D | zip_archive.h | 105 uint32_t uncompressed_length{0}; 129 uint64_t uncompressed_length{0}; 134 uncompressed_length = zip_entry.uncompressed_length; in ZipEntry64() 380 const uint64_t uncompressed_length, Writer* writer, uint64_t* crc_out);
|
/aosp12/bootable/recovery/updater/ |
H A D | updater.cpp | 173 if (entry.uncompressed_length > std::numeric_limits<size_t>::max()) { in ReadEntryToString() 176 << entry.uncompressed_length; in ReadEntryToString() 179 content->resize(entry.uncompressed_length); in ReadEntryToString() 181 entry.uncompressed_length); in ReadEntryToString()
|
H A D | target_files.cpp | 135 if (entry.uncompressed_length == 0) { in ReadEntryToString() 140 if (entry.uncompressed_length > std::numeric_limits<size_t>::max()) { in ReadEntryToString() 143 << entry.uncompressed_length; in ReadEntryToString() 147 content->resize(entry.uncompressed_length); in ReadEntryToString() 149 handle_, &entry, reinterpret_cast<uint8_t*>(&content->at(0)), entry.uncompressed_length); in ReadEntryToString()
|
H A D | install.cpp | 143 << entry.uncompressed_length << " bytes) to \"" << dest_path in PackageExtractFileFn() 176 if (entry.uncompressed_length > std::numeric_limits<size_t>::max()) { in PackageExtractFileFn() 181 buffer.resize(entry.uncompressed_length); in PackageExtractFileFn()
|
/aosp12/frameworks/native/cmds/dumpstate/tests/ |
H A D | dumpstate_smoke_test.cpp | 76 bugreport_txt_name.resize(main_entry.uncompressed_length); in ExtractBugreport() 78 main_entry.uncompressed_length); in ExtractBugreport() 267 EXPECT_GT(entry.uncompressed_length, minsize); in FileExists() 268 EXPECT_LT(entry.uncompressed_length, maxsize); in FileExists() 278 bugreport_txt_name.resize(main_entry.uncompressed_length); in TEST_F() 280 main_entry.uncompressed_length); in TEST_F() 291 char* buf = new char[entry.uncompressed_length + 1]; in TEST_F() 292 ExtractToMemory(handle, &entry, (uint8_t*)buf, entry.uncompressed_length); in TEST_F() 293 buf[entry.uncompressed_length] = 0; in TEST_F()
|
/aosp12/system/extras/simpleperf/ |
H A D | read_apk.cpp | 87 file_offset < static_cast<uint64_t>(entry.offset) + entry.uncompressed_length) { in FindElfInApkByOffsetWithoutCache() 105 apk_path, found_entry_name, found_entry.offset, found_entry.uncompressed_length)); in FindElfInApkByOffsetWithoutCache() 118 if (zentry.method != kCompressStored || zentry.compressed_length != zentry.uncompressed_length) { in FindElfInApkByNameWithoutCache() 122 new EmbeddedElf(apk_path, entry_name, zentry.offset, zentry.uncompressed_length)); in FindElfInApkByNameWithoutCache()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | ZipFileRO.cpp | 127 *pUncompLen = ze.uncompressed_length; in getEntryInfo() 221 actualLen = ze.uncompressed_length; in createEntryFileMap() 246 actualLen = ze.uncompressed_length; in createEntryIncFsFileMap()
|
H A D | AssetsProvider.cpp | 178 Asset::createFromCompressedMap(std::move(asset_map), entry.uncompressed_length, mode); in OpenInternal() 187 if (!asset_map.Create(fd, entry.offset + fd_offset, entry.uncompressed_length, in OpenInternal()
|
/aosp12/art/libartbase/base/ |
H A D | zip_archive.cc | 41 return zip_entry_->uncompressed_length; in GetUncompressedLength() 122 } else if (zip_entry_->uncompressed_length != zip_entry_->compressed_length) { in MapDirectlyFromFile() 127 zip_entry_->uncompressed_length, in MapDirectlyFromFile()
|
/aosp12/system/extras/memory_replay/ |
H A D | File.cpp | 47 contents.resize(entry.uncompressed_length); in ZipGetContents() 49 entry.uncompressed_length) != 0) { in ZipGetContents()
|
/aosp12/bootable/recovery/install/ |
H A D | verifier.cpp | 326 if (entry.uncompressed_length > std::numeric_limits<size_t>::max()) { in IterateZipEntriesAndSearchForKeys() 329 << entry.uncompressed_length; in IterateZipEntriesAndSearchForKeys() 332 std::vector<uint8_t> pem_content(entry.uncompressed_length); in IterateZipEntriesAndSearchForKeys()
|
H A D | spl_check.cpp | 58 const auto metadata_entry_length = metadata_entry.uncompressed_length; in ViolatesSPLDowngrade()
|
H A D | wipe_device.cpp | 54 auto length = entry.uncompressed_length; in GetWipePartitionList()
|
H A D | install.cpp | 87 uint32_t length = entry.uncompressed_length; in ReadMetadataFromPackage() 250 auto properties_entry_length = properties_entry.uncompressed_length; in SetUpAbUpdateCommands()
|
/aosp12/system/apex/apexd/ |
H A D | apex_file.cpp | 119 image_size = entry.uncompressed_length; in Open() 135 uint32_t length = entry.uncompressed_length; in Open() 147 length = entry.uncompressed_length; in Open()
|
/aosp12/frameworks/base/libs/androidfw/tests/ |
H A D | TestHelpers.cpp | 45 out_contents->resize(entry.uncompressed_length); in ReadFileFromZipToString()
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | certificate_parser_android.cc | 45 std::vector<uint8_t> pem_content(entry.uncompressed_length); in IterateZipEntriesAndSearchForKeys()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_util_jar_StrictJarFile.cpp | 50 static_cast<jlong>(entry.uncompressed_length), in newZipEntry()
|
/aosp12/frameworks/base/services/incremental/ |
H A D | IncrementalService.cpp | 1957 if (mapFiles && entryUncompressed && entryPageAligned && entry.uncompressed_length > 0) { in configureNativeBinaries() 1961 .size = entry.uncompressed_length, in configureNativeBinaries() 1981 .size = entry.uncompressed_length, in configureNativeBinaries() 1997 if (entry.uncompressed_length == 0) { in configureNativeBinaries() 2063 auto libData = std::unique_ptr<uint8_t[]>(new uint8_t[entry.uncompressed_length]); in extractZipFile() 2064 if (ExtractToMemory(zipFile, &entry, libData.get(), entry.uncompressed_length)) { in extractZipFile() 2072 std::span(libData.get(), entry.uncompressed_length))) { in extractZipFile() 2079 << entry.compressed_length << " -> " << entry.uncompressed_length in extractZipFile()
|