{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "not present in current v1.9.  Fixed in v1.8.4.30. ",
    "ClosedDate": "2010-01-07T03:53:07.21-08:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "I have a test file, a binary file to be specific that causes GZipStream to fail.\nIf I create a GZipStream to compress it and then I try to decompress it back, it seems to work but it still raises the following error:\n \nProtocol error. AvailableBytesIn=2, expected 8\n \nYou will find the test file and source code inside the attached zip file.\n \nAdditional details:\n- I am using Ionic.Zip.Reduced.dll V1.8.4.29 (which I just downloaded from your site)\n- I am using Visual Studio 2008\n- I'm compiling against the 3.5 Framework.\n \nHere's a partial transcription of the code for your convenience:\n \n\t  static void compress()\n\t  {\n\t\t using (FileStream fis = new FileStream(\"original.dat\", FileMode.Open, FileAccess.Read))\n\t\t using (FileStream fos = new FileStream(\"gzipped.dat\", FileMode.Create, FileAccess.Write))\n\t\t using (GZipStream goz = new GZipStream(fos, CompressionMode.Compress))\n\t\t {\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint read;\n\t\t\twhile ((read = fis.Read(buffer, 0, buffer.Length)) > 0)\n\t\t\t   goz.Write(buffer, 0, read);\n\t\t }\n\t  }\n \n\t  static void decompress()\n\t  {\n\t\t using (FileStream fis = new FileStream(\"gzipped.dat\", FileMode.Open, FileAccess.Read))\n\t\t using (GZipStream giz = new GZipStream(fis, CompressionMode.Decompress))\n\t\t using (FileStream fos = new FileStream(\"ungzipped.dat\", FileMode.Create, FileAccess.Write))\n\t\t {\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint read;\n\t\t\twhile ((read = giz.Read(buffer, 0, buffer.Length)) > 0)\n\t\t\t   fos.Write(buffer, 0, read);\n\t\t }\n\t  }\n \nBest regards,\n \nSteven Burns",
    "LastUpdatedDate": "2013-05-16T05:31:56.393-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-01-06T14:45:38.523-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "GZipStream raising exception with one specific file.",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 9941
  },
  "FileAttachments": [
    {
      "FileId": 2597,
      "FileName": "IonicIssue.zip",
      "DownloadUrl": ".\\2597"
    }
  ],
  "Comments": [
    {
      "Message": "Steve, thank you very much for the very thorough bug report. \r\nI've reproduced the problem you described, here. \r\n\r\nI have good news and bad news...  The bad news is that the problem has been prevviously reported.  The good news is that it's fixed in v1.9.  \r\nYou can use that if you want to avoid the problem. \r\nI'll back-port the fix to v1.8, in the meantime. \r\n",
      "PostedDate": "2010-01-06T23:27:51.74-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Ok Steven, version 1.8.4.30 is available. It fixes this problem. \r\nThanks . ",
      "PostedDate": "2010-01-07T03:52:45.043-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-01-07T03:53:07.21-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Well it all sounded like good news to me! thanks!",
      "PostedDate": "2010-01-07T13:49:39.71-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:44.437-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:56.393-07:00",
      "Id": -2147483648
    }
  ]
}