Skip to content

Conversation

@Morilli
Copy link
Contributor

@Morilli Morilli commented Jul 19, 2025

The Comment field was only present the directory entry header, not the local entry header. This makes some sense as the local entry header does not have a comment in the zip file, but due to the way the local entry header was loaded (replacing the directory entry header with the local entry header) this caused the code expecting a directory entry header to fail once that happened.

I've decided to just put the Comment field on the underlying ZipFileEntry class and copy the value from the directory entry header to the local entry header.

See the added test for how this failed.

Copy link
Owner

@adamhathcock adamhathcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@adamhathcock adamhathcock merged commit 46267c0 into adamhathcock:master Jul 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants