Skip to content

Fixes issue #164 by not accessing stream position to determine central… - #226

Merged
piksel merged 1 commit into
icsharpcode:masterfrom
insylogo:master
Jul 12, 2018
Merged

piksel merged 1 commit into
icsharpcode:masterfrom
insylogo:master

Conversation

@insylogo

Copy link
Copy Markdown
Contributor

… signature offset (instead, use central directory offset + size of all entries)

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

… signature offset (instead, use central directory offset + size of all entries)
@insylogo insylogo changed the title Fixes issue 164 by not accessing stream position to determine central… Fixes issue #164 by not accessing stream position to determine central… Apr 25, 2018
@piksel piksel added zip Related to ZIP file format tests labels May 12, 2018
@piksel

piksel commented May 15, 2018

Copy link
Copy Markdown
Member

It certainly SEEMS like the end of the record could be determined by adding the start of the record and the size. I don't know the spec well enough to know if this is always the case tho.

@insylogo

Copy link
Copy Markdown
Contributor Author

You can verify that by saving a 64 bit zip (file stream not http) and observe the stream position is the same as this calculated position. I also verified that large streamed zips work after this change, but that first part would provide firm confirmation for you

@piksel piksel added ready PR ready for merging when appropriate and removed tests labels Jul 5, 2018
@piksel
piksel merged commit e831547 into icsharpcode:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready PR ready for merging when appropriate zip Related to ZIP file format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants