Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v2.1.4 #194

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

Pr0methean
Copy link
Member

@Pr0methean Pr0methean commented Jun 15, 2024

🤖 New release

  • zip: 2.1.3 -> 2.1.4
Changelog

2.1.4 - 2024-07-18

🐛 Bug Fixes

  • fix(#215): Upgrade to deflate64 0.1.9
  • Panic when reading a file truncated in the middle of an XZ block header
  • Some archives with over u16::MAX files were handled incorrectly or slowly (#189)
  • Check number of files when deciding whether a CDE is the real one
  • Could still select a fake CDE over a real one in some cases
  • May have to consider multiple CDEs before filtering for validity
  • We now keep searching for a real CDE header after read an invalid one from the file comment
  • Always search for data start when opening an archive for append, and reject the header if data appears to start after central directory
  • deep_copy_file no longer allows overwriting an existing file, to match the behavior of shallow_copy_file
  • File start position was wrong when extra data was present
  • Abort file if central extra data is too large
  • Overflow panic when central directory extra data is too large
  • ZIP64 header was being written twice when copying a file
  • ZIP64 header was being written to central header twice
  • Start position was incorrect when file had no extra data
  • Allow all reserved headers we can create
  • Fix a bug where alignment padding interacts with other extra-data fields
  • Fix bugs involving alignment padding and Unicode extra fields
  • Incorrect header when adding AES-encrypted files
  • Parse the extra field and reject it if invalid
  • Incorrect behavior following a rare combination of merge_archive, abort_file and deep_copy_file. As well, we now return an error when a file is being copied to itself.
  • path_to_string now properly handles the case of an empty path
  • Implement Debug for ZipWriter even when it's not implemented for the inner writer's type
  • Fix an issue where the central directory could be incorrectly detected
  • finish_into_readable() would corrupt the archive if the central directory had moved

🚜 Refactor

  • Verify with debug assertions that no FixedSizeBlock expects a multi-byte alignment (#198)
  • Use new do_or_abort_file method

⚡ Performance

  • Speed up CRC when encrypting small files
  • Limit the number of extra fields
  • Refactor extra-data validation
  • Store extra data in plain vectors until after validation
  • Only build one IndexMap after choosing among the possible valid headers
  • Simplify validation of empty extra-data fields
  • Validate automatic extra-data fields only once, even if several are present
  • Remove redundant validate_extra_data() call
  • Skip searching for the ZIP32 header if a valid ZIP64 header is present (#189)

⚙️ Miscellaneous Tasks

  • Fix a bug introduced by c934c82
  • Fix a failing unit test
  • Fix build errors on older Rust versions
  • Fix build
  • Fix another fuzz failure
  • Switch to ok_or_abort_file, and inline when that fails borrow checker
  • Switch to ok_or_abort_file, and inline when that fails borrow checker
  • Fix a build error
  • Fix boxed_local warning (can borrow instead)
  • Partial debug
  • Fix more errors when parsing multiple extra fields
  • Fix an error when decoding AES header
  • Fix an error caused by not allowing 0xa11e field
  • Bug fix: crypto_header was being counted toward extra_data_end
  • Bug fix: revert a change where crypto_header was incorrectly treated as an extra field
  • Fix a bug where a modulo of 0 was used
  • Fix a bug when ZipCrypto, alignment and a custom header are used
  • Fix a bug when both ZipCrypto and alignment are used
  • Fix another bug: header_end vs extra_data_end
  • Fix use of a stale value in a debug_assert_eq!
  • Fix: may still get an incorrect size if opening an invalid file for append
  • Fix: may need the absolute start as tiebreaker to ensure deterministic behavior


This PR was generated with release-plz.

@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch 17 times, most recently from 8045057 to 3ad44e7 Compare June 18, 2024 19:42
@Pr0methean Pr0methean changed the title chore: release v2.1.4 chore: release v3.0.0 Jun 19, 2024
@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch 11 times, most recently from f35c2d5 to 1c8438a Compare June 22, 2024 00:05
@Pr0methean Pr0methean changed the title chore: release v3.0.0 chore: release v2.1.4 Jul 5, 2024
@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch 3 times, most recently from 15d9bf5 to 9ed683f Compare July 6, 2024 19:03
@Pr0methean Pr0methean enabled auto-merge July 6, 2024 19:53
@Pr0methean Pr0methean added the waiting to be automatically merged If this PR isn't automatically merged, suspect a broader issue. label Jul 6, 2024
@Pr0methean Pr0methean added this pull request to the merge queue Jul 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 7, 2024
@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch from 9ed683f to f4da4f7 Compare July 14, 2024 07:59
@yujincheng08
Copy link
Contributor

hi, i think adding xz support worths a line of changelog. how do you think?

@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch from f4da4f7 to a76135b Compare July 15, 2024 14:37
@Pr0methean
Copy link
Member Author

It should already be present if it's been merged; maybe release-plz needs to catch up?

@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch 8 times, most recently from b7cc201 to 8b76162 Compare July 18, 2024 20:38
@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch from 8b76162 to 2032cbf Compare July 18, 2024 21:08
@Pr0methean Pr0methean force-pushed the release-plz-2024-06-15T04-17-17Z branch from 2032cbf to 8b11361 Compare July 18, 2024 22:34
@Pr0methean Pr0methean added this pull request to the merge queue Jul 19, 2024
Merged via the queue into master with commit 9caa3b6 Jul 19, 2024
80 checks passed
@Pr0methean Pr0methean deleted the release-plz-2024-06-15T04-17-17Z branch July 19, 2024 09:49
@yujincheng08
Copy link
Contributor

well, the release note does not highlight there's new XZ decompression support. maybe this is too minor to be a new feature.

@Pr0methean Pr0methean removed the waiting to be automatically merged If this PR isn't automatically merged, suspect a broader issue. label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants