zip-rs-wasm/tests
Richard Ivánek 33c71ccc80
fix: rewrite the EOCD/EOCD64 detection to fix extreme performance regression (#247)
* fix: resolve clippy warning in nightly

* wip: major rework of cde location

* wip: rework CDE lookup

* refactor: magic finder, eocd lookup retry

* wip: handle empty zips

* fix: satisfy tests, add documentation

* chore: remove unused dependencies

* feat: support both zip32 and zip64 comments

* feat: add zip64 comment functions to ZipWriter

* fix: first pass on maintainer comments

* fix: continue searching for EOCD when the central directory is invalid

* chore: satisfy clippy lints

* chore: satisfy style_and_docs

* feat: support both directions in MagicFinder, correctly find first CDFH

* fix: more checks to EOCD parsing, move comment size error from parse to write

* fix: use saturating add when checking eocd64 record_size upper bound

* fix: correctly handle mid window offsets in forward mode

* fix: compare maximum possible comment length against file size, not search region end

* feat: handle zip64 detection as a hint

* fix: detect oversized central directories when locating EOCD64

* fix: oopsie

---------

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-12-16 03:32:55 +00:00
..
data Merge branch 'master' into fix/soft-links-should-remain-the-same 2024-07-08 17:15:38 +03:00
aes_encryption.rs Add support for writing AES-encrypted files 2024-05-06 16:37:05 +02:00
deflate64.rs Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
end_to_end.rs chore: Fix boxed_local warning (can borrow instead) 2024-06-14 00:17:21 -07:00
extract_symlink.rs perf: Faster cde rejection (#255) 2024-11-19 18:49:35 +00:00
invalid_date.rs Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
issue_234.rs Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
lzma.rs Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
prepended_garbage.rs fix: rewrite the EOCD/EOCD64 detection to fix extreme performance regression (#247) 2024-12-16 03:32:55 +00:00
repro_old423.rs perf: Faster cde rejection (#255) 2024-11-19 18:49:35 +00:00
xz.rs feat: support XZ decompression 2024-06-22 11:12:53 +08:00
zip64_large.rs Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
zip_comment_garbage.rs add test that breaks without the fix 2024-05-24 07:39:55 -04:00
zip_crypto.rs chore: Remove a drop that can no longer be explicit 2024-05-05 19:30:18 -07:00
zip_extended_timestamp.rs test: Update an integration test case 2024-06-03 17:47:52 -07:00