Skip to content

Ignore "Compressed size mismatch" error from Xceed #41

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

Closed
dgrunwald opened this issue Dec 29, 2013 · 1 comment
Closed

Ignore "Compressed size mismatch" error from Xceed #41

dgrunwald opened this issue Dec 29, 2013 · 1 comment
Assignees
Labels
enhancement Feature request or other improvements of existing functionality
Milestone

Comments

@dgrunwald
Copy link
Member

SD-1801, originally created on 12/20/2010 02:06:14 by David Pierson

When a password is applied, Xceed is incorrectly setting values in the
local header. This results in a “Compressed size mismatch between
central header(2399) and local header(0)” exception in
ZipFile.TestLocalHeader.

Sample code in ZipFile.cs at line 1259 ...

if (compressedSize != entry.CompressedSize &&
                        compressedSize != 0xFFFFFFFF && compressedSize
!= -1**&& compressedSize != 0**) {
                        throw new ZipException(
                            string.Format("Compressed size mismatch
between central header({0}) and local header({1})",
                            entry.CompressedSize, compressedSize));
                    }

Forum thread:

http://community.sharpdevelop.net/forums/t/12404.aspx
"Errors unzipping zip files created using Xceed V4.0"

@McNeight
Copy link
Contributor

McNeight commented May 9, 2016

With commit 3bd09a7 from both PR #18 and #93, this issue is now fixed.

-Neil

@McNeight McNeight closed this as completed May 9, 2016
@icsharpcode icsharpcode locked and limited conversation to collaborators May 9, 2016
@McNeight McNeight modified the milestone: 1.0 May 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Feature request or other improvements of existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants