-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from pjf/221_ziplib
Bugfix to SharpZipLib.
- Loading branch information
Showing
13 changed files
with
9,542 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using NUnit.Framework; | ||
using ICSharpCode.SharpZipLib.Zip; | ||
using System.IO; | ||
using System; | ||
|
||
namespace Tests | ||
{ | ||
[TestFixture()] | ||
public class ZipLib | ||
{ | ||
[Test()] | ||
public void GH221() | ||
{ | ||
// This is a perfectly fine file, written by 'file-roller', but | ||
// SharpZipLib can choke on it because it's not properly handling | ||
// the headers properly. See GH #221. | ||
string file = Path.Combine(TestData.DataDir(), "gh221.zip"); | ||
|
||
var zipfile = new ZipFile(file); | ||
|
||
var entry = zipfile.GetEntry("221.txt"); | ||
|
||
string version = string.Format("{0}", entry.Version); | ||
|
||
Assert.DoesNotThrow(delegate | ||
{ | ||
zipfile.GetInputStream(entry); | ||
}, "zip-entry format {0} (788 is our bug)", version); | ||
} | ||
} | ||
} | ||
|
Binary file added
BIN
+191 KB
CKAN/packages/SharpZipLib.0.86.0-pjf-ckan_gh221/ICSharpCode.SharpZipLib.dll
Binary file not shown.
9,498 changes: 9,498 additions & 0 deletions
9,498
CKAN/packages/SharpZipLib.0.86.0-pjf-ckan_gh221/ICSharpCode.SharpZipLib.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This is a patched copy of ZSharpLib which fixes the | ||
`ZipException: Version required to extract this entry not supported (788)` | ||
bug described [here](http://community.sharpdevelop.net/forums/t/21758.aspx). | ||
|
||
- Get [this branch](https://github.com/pjf/SharpZipLib/tree/ckan_gh221). | ||
- `cd SharpZipLib/src` | ||
- `xbuild /p:Configuration=Release ICSharpCode.SharpZLib.csproj` | ||
- Copy the build artefacts from `../bin`. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-208 KB
CKAN/packages/SharpZipLib.0.86.0/lib/SL3/SharpZipLib.Silverlight3.dll
Binary file not shown.
Binary file removed
BIN
-207 KB
CKAN/packages/SharpZipLib.0.86.0/lib/SL4/SharpZipLib.Silverlight4.dll
Binary file not shown.
Binary file not shown.