termux-packages/packages/aapt/androidfw-AssetManager.cpp.patch
Tee KOBAYASHI 715ce90c53 aapt: Fix inappropriate use after std::move()
* Specify `-DNDEBUG`
2022-02-12 20:10:57 +09:00

17 lines
735 B
Diff

--- a/base/libs/androidfw/AssetManager.cpp
+++ b/base/libs/androidfw/AssetManager.cpp
@@ -940,13 +940,9 @@
if (method == ZipFileRO::kCompressStored) {
pAsset = Asset::createFromUncompressedMap(std::move(*dataMap), mode);
- ALOGV("Opened uncompressed entry %s in zip %s mode %d: %p", entryName.string(),
- dataMap->file_name(), mode, pAsset.get());
} else {
pAsset = Asset::createFromCompressedMap(std::move(*dataMap),
static_cast<size_t>(uncompressedLen), mode);
- ALOGV("Opened compressed entry %s in zip %s mode %d: %p", entryName.string(),
- dataMap->file_name(), mode, pAsset.get());
}
if (pAsset == NULL) {
/* unexpected */