diff options
author | 2020-11-14 03:22:09 +0000 | |
---|---|---|
committer | 2020-11-14 03:22:09 +0000 | |
commit | 18a3a6644df14e1b87aa231ceed779ed32c2c229 (patch) | |
tree | 4ee79bdbcb837322b48f73c27868d26aef50d303 /libs/androidfw/ZipFileRO.cpp | |
parent | f766eaccaaadfb1db12ac685367c20ffff8fa63e (diff) | |
parent | 55ef6167a2c235bd88c7216238b2001b46795b79 (diff) |
Merge changes from topic "revert-12787270-FYIHXORGZY"
* changes:
Revert "libandroidfw hardening for IncFs"
Revert "Cache resolved theme values"
Revert "Do not cache bag parent stack until requested"
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
-rw-r--r-- | libs/androidfw/ZipFileRO.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp index 52e7a70521a1..e77ac3df474c 100644 --- a/libs/androidfw/ZipFileRO.cpp +++ b/libs/androidfw/ZipFileRO.cpp @@ -233,29 +233,6 @@ FileMap* ZipFileRO::createEntryFileMap(ZipEntryRO entry) const } /* - * Create a new incfs::IncFsFileMap object that spans the data in "entry". - */ -std::optional<incfs::IncFsFileMap> ZipFileRO::createEntryIncFsFileMap(ZipEntryRO entry) const -{ - const _ZipEntryRO *zipEntry = reinterpret_cast<_ZipEntryRO*>(entry); - const ZipEntry& ze = zipEntry->entry; - int fd = GetFileDescriptor(mHandle); - size_t actualLen = 0; - - if (ze.method == kCompressStored) { - actualLen = ze.uncompressed_length; - } else { - actualLen = ze.compressed_length; - } - - incfs::IncFsFileMap newMap; - if (!newMap.Create(fd, ze.offset, actualLen, mFileName)) { - return std::nullopt; - } - return std::move(newMap); -} - -/* * Uncompress an entry, in its entirety, into the provided output buffer. * * This doesn't verify the data's CRC, which might be useful for |