Repository navigation
WQGuard v1.3.6 (Build 27)
Highlights / 更新摘要
1. Engine 2 Real-World IPA ZIP Compatibility Fix (Issue #2)
Resolved two real-world IPA scanning failures reported in Issue #2 while keeping strict archive integrity and anti-tampering checks enforced:
- Streaming
GPFlagbit-3 (0x0008) without trailing Data Descriptor: App Store / IPA repackagers frequently keep bit 3 set in Local File Headers even after populating Central Directory sizes and CRCs without emitting a trailing Data Descriptor (descLen == 0).NativeZIPArchiveReadernow supportsdescLen == 0alongside 12/16/20/24-byte descriptors while continuing to reject contradictory non-zero Local Header bit-3 fields (corruptHeader). - Deflated empty directories & NUL alignment padding: Added support for
method == 8empty directory entries (uncompSize == 0,compSize <= 16) and up to 64 KB of0x00alignment padding between entries. - Uncompacted
.appex/ orphan local header isolation (isOrphanLocalEntry): Superseded or unreferenced0x04034b50local headers in archive gaps are isolated from the primary bundle lookup,hasArchiveMobileProvision, and Pass 1/Pass 2 scans, yet any unreferenced Mach-O or.dylibpayloads remain audited in Pass 2b and flagUnreferenced ZIP Local Headerseal tampering on otherwise Apple-signed packages. - iOS
/varvs/private/varZip Slip false-positive elimination: Lexical path standardization (lexicalStandardizedPath, introduced inv1.3.4+and verified end-to-end inv1.3.6) prevents iOS sandbox/private/varsymlink differences from triggering false Zip Slip errors on valid entries (e.g.,Payload/Stremio.app/de.lproj/).
2. Strict Concurrency Cleanup in MachOParser
- Eliminated the remaining
#SendableClosureCaptureswarnings inSources/WQGuardCore/MachO/MachOParser.swiftby capturing immutable chunk slices (immutableChunks) and collecting parallel scan outputs through an@unchecked Sendableresult box (ChunkResultsBox).
Verification & Checksums / 验证与校验
- XCTest Suite (
-strict-concurrency=complete): 50 suites / 1,020 tests passed, 0 failures, 0 skipped, 0 warnings inSources/WQGuardCore - CLI Self-Audit:
wqguard-cli --ipa WQGuard_v1.3.6.ipa --format json→"riskTier" : "KNOWN_TOOL", exit code0 WQGuard_v1.3.6.ipa(2,788,591bytes /2.7M)- SHA-256:
1a85d5d4ac1cd9fafbd0c9d92bbd3c85793878465216efaefab00702b498806f
- SHA-256:
Release Assets / 发布附件
WQGuard_v1.3.6.ipa— Unsigned/ad-hoc sideloadable iOS IPA (Build 27)WQGuard-Brotli-Shield.sgmodule— Surge Shield Module (#!version=1.3.6)WQGuard-Brotli-Shield.module— Shadowrocket Shield Module (#!version=1.3.6)WQGuard-Brotli-Shield.conf— Quantumult X Shield Config (#!version=1.3.6)WQGuard-Brotli-Shield.plugin— Loon Shield Plugin (#!version=1.3.6)WQGuard-Brotli-Shield.stoverride— Stash Shield Override (#!version=1.3.6)