Add some sanity checks guided by Android crash reports

This commit is contained in:
Henrik Rydgård committed 2025-06-07 16:35:19 +02:00
1 parent 61016b8555
commit 44d06ec42f
6 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
ZipFileLoader::ZipFileLoader(FileLoader *sourceLoader)
: ProxiedFileLoader(sourceLoader), zipArchive_(nullptr) {
if (!backend_ || !backend_->Exists() || backend_->IsDirectory()) {
// bad
return;
}
zip_error_t error{};