Skip to content

reading whole buffer to workaround incorrect headers - #171

Closed
Coeur wants to merge 1 commit into
zlib-ng:devfrom
Coeur:incorrectHeadersDev
Closed

Coeur wants to merge 1 commit into
zlib-ng:devfrom
Coeur:incorrectHeadersDev

Conversation

@Coeur

@Coeur Coeur commented Oct 5, 2017

Copy link
Copy Markdown
Collaborator

Fix #159 for dev branch

@nmoinvaz

nmoinvaz commented Oct 13, 2017 •

Copy link
Copy Markdown
Member

The reason I have this code is to prevent the decompression stream from reading more than it should. If it reads more than it should then the aes encryption stream will not be able to read the auth code at the end of the file in the zip.

@Coeur

Coeur commented Oct 13, 2017 •

Copy link
Copy Markdown
Collaborator Author

Oh, well, then if it's true we need a different solution for MiniZip2.

But I've successfully implemented the equivalent #187 for MiniZip1.2 and it's working with AES too.

(and without a solution for MiniZip2, I can't move to MiniZip2...)

@nmoinvaz

Copy link
Copy Markdown
Member

It is a difficult problem. It might be best to fork minizip 1.2 for your needs.

@nmoinvaz nmoinvaz added the 2.0 label Oct 16, 2017
@nmoinvaz

Copy link
Copy Markdown
Member

I have made a fix for 2.0 into the dev branch. Looks like my initial comment may have been incorrect.

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