Skip to content

Ignore "Compressed size mismatch" error from Xceed #41

Closed
@dgrunwald

Description

@dgrunwald

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"

Metadata

Metadata

Assignees

Labels

enhancementFeature request or other improvements of existing functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions