perf(artifacts): replace quadratic ZIP overlap checks (#1013)

This commit is contained in:
morluto
2026-10-08 02:08:39 +08:00
committed by GitHub
parent 966cca8efe
commit 76e7e510bb
4 changed files with 121 additions and 5 deletions
+3
View File
@@ -53,6 +53,9 @@ export class ZipArtifactReader implements ArtifactReader {
this.#reader = new ZipReader(this.#source, {
checkSignature: true,
checkOverlappingEntry: true,
// REA applies its own provider-neutral path validation in scanReader and
// must preserve that typed failure instead of zip.js rejecting first.
filenameValidation: "tolerant",
});
}