{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "Duplicate of http&#58;&#47;&#47;dotnetzip.codeplex.com&#47;workitem&#47;10562. This is fixed in v1.9.1.6.  ",
    "ClosedDate": "2011-08-03T10:36:48.737-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Try this test:\n \nprivate static readonly string filePath = \"http://www.usbr.gov/recreation/publications/02_SampleBusinessPlan.doc\";\n        static void Main(string[] args)\n        {\n            Console.WriteLine(\"Downloading test doc...\");\n            WebClient wc = new WebClient();\n            byte[] initialData = wc.DownloadData(filePath);\n            wc.Dispose();\n            Console.WriteLine(\"Initial size: \" + initialData.Length.ToString());\n            Console.WriteLine(\"Times are in ms. Sizes are in bytes.\");\n            Stopwatch sw = new Stopwatch();\n            sw.Start();\n            byte[] results8 = Ionic.Zlib.ZlibStream.CompressBuffer(initialData);\n            sw.Stop();\n            Console.WriteLine(\"Compress with DotNetZip: \" + sw.ElapsedMilliseconds.ToString());\n            Console.WriteLine(\"Compressed size: \" + results8.Length.ToString());\n            sw.Reset();\n            sw.Start();\n            byte[] newResults8 = Ionic.Zlib.ZlibStream.UncompressBuffer(results8);\n            sw.Stop();\n            Console.WriteLine(\"Decompress with DotnetZip: \" + sw.ElapsedMilliseconds.ToString());\n            Console.WriteLine(\"Decompressed size: \" + newResults8.Length.ToString());\n            Console.WriteLine(\"=========================================================\");\n            sw.Reset();\n        }",
    "LastUpdatedDate": "2013-05-16T05:31:45.497-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-08-01T05:51:56.177-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Issue with static Zlib UncompressBuffer method",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 11699
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Hi pbromberg.\r\n\r\nCan you confirm what result you get when you run the test?\r\n\r\nI get this output:\r\n\r\n\"Downloading test doc...\r\nInitial size: 2492928\r\nTimes are in ms. Sizes are in bytes.\r\nCompress with DotNetZip: 1344\r\nCompressed size: 1364343\"\r\n\r\nfollowed by this exception:\r\n\r\nIonic.Zlib.ZlibException was unhandled\r\n  Message=\"Bad state (incorrect data check)\"\r\n  Source=\"Ionic.Zlib\"\r\n  StackTrace:\r\n       at Ionic.Zlib.InflateManager.Inflate(FlushType flush) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\Inflate.cs:line 1690\r\n       at Ionic.Zlib.ZlibCodec.Inflate(FlushType flush) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\ZlibCodec.cs:line 358\r\n       at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\ZlibBaseStream.cs:line 477\r\n       at Ionic.Zlib.ZlibStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\ZlibStream.cs:line 521\r\n       at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\ZlibBaseStream.cs:line 615\r\n       at Ionic.Zlib.ZlibStream.UncompressBuffer(Byte[] compressed) in C:\\temp\\dotnetzip.codeplex.com\\svn_original\\Zlib\\ZlibStream.cs:line 676\r\n       at ConsoleApplication1.Program.Main(String[] args) in C:\\temp\\dotnetzip.codeplex.com\\debug\\WorkItem_11699\\ConsoleApplication1\\ConsoleApplication1\\Program.cs:line 30\r\n       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n       at System.Threading.ThreadHelper.ThreadStart()\r\n  InnerException: \r\n\r\nIt's possibly a duplicate of [workitem:10562] . I've tried the same test using a private build with the fixes I posted there and I get the following:\r\n\r\n\"Downloading test doc...\r\nInitial size: 2492928\r\nTimes are in ms. Sizes are in bytes.\r\nCompress with DotNetZip: 1358\r\nCompressed size: 1364343\r\nDecompress with DotnetZip: 126\r\nDecompressed size: 2492928\r\n=========================================================\"\r\n\r\nwith the decompressed buffer identical to the original downloaded file.\r\n\r\nCheers,\r\n\r\nMike",
      "PostedDate": "2010-08-10T07:53:31.267-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Gah. Link fail.\r\n\r\nhttp://dotnetzip.codeplex.com/workitem/10562 - Compression roundtrip problem",
      "PostedDate": "2010-08-10T07:54:30.133-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-08-03T10:36:48.737-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:28.243-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:45.497-07:00",
      "Id": -2147483648
    }
  ]
}