Repository navigation
fix: 升级 zip 到 9 并适配 ZIP 读取/写入 API - #72
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
将直接使用的
zip从 2.4 升级到 9.3.0,适配 zip 9 API:ZipFile::name()现在返回Result<Cow<str>, ZipError>,所有读取路径改为显式传播错误或持有String。ZipFile<'_>改为带Read泛型。ZipArchive::data_start()返回Option<u64>,对齐校验缺失偏移时失败关闭。file_names()迭代项变为Result,测试与模块解析同步调整。覆盖
shield-core、shield-cli、shield-ios、GUI 后端;未修改业务保护策略。验证
cargo fmt --all --checkcargo clippy -p shield-core -p shield-ios -p shield-cli --all-targets -- -D warningscargo clippy -p mocika-shield --all-targets -- -D warningscargo test -p shield-core、-p shield-ios、-p shield-cli、-p mocika-shieldcargo test -p shield-core connection_probe_real_tls -- --ignoredcargo test -p shield-core v7_java_whitebox -- --ignoredcargo test -p shield-ios official_sdk_import_reuse_and_offline_resolve -- --ignoredmake build-stub build-byos build-byos-playmake test-pvm2、PVM2_SANITIZER=undefined make test-pvm2-runtime、make test-fusion、make audit-stub-dexbash tests/scripts/run-protect-e2e.sh(无设备)已知边界
tauri-plugin-updater 2.12.0仍传递依赖zip 4.6.1,其公告未消除;直接业务路径已使用 zip 9。需要等上游插件升级或单独评估替换。cargo deny本轮因 GitHub 网络问题无法刷新 RustSec 数据库;离线检查只剩上述传递依赖和无人维护公告。