{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 79403.  First binary with this change&#58;  v1.9.1.6",
    "ClosedDate": "2011-06-18T16:50:23.457-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "ZipFile.Read(byte[] buffer) and ZipFile.Read(Stream zipStream) (if zipStream supports seeking) throw System.IO.IOException when zip file content has small amount of data but not empty. In large amount of data and empty data cases they throw Ionic.Zip.BadReadException.\n \nThere are some unit tests.\n \n \n \n// this test fails\n[TestMethod]\n[ExpectedException(typeof(BadReadException))]\npublic void IncorrectZipContentTest1()\n{\n    byte[] incorrectZipContent = Encoding.UTF8.GetBytes(\"wrong zipfile content\");\n    ZipFile zipFile = ZipFile.Read(incorrectZipContent);\n}\n \n// this test succeeds\n[TestMethod]\n[ExpectedException(typeof(BadReadException))]\npublic void IncorrectZipContentTest2()\n{\n    ZipFile zipFile = ZipFile.Read(new byte[0]);\n}\n \n// this test succeeds too\n[TestMethod]\n[ExpectedException(typeof(BadReadException))]\npublic void IncorrectZipContentTest3()\n{\n    byte[] incorrectZipContent = new byte[8192];\n    ZipFile zipFile = ZipFile.Read(incorrectZipContent);\n}\n \n \n \n \nI think, first code snippet should throw Ionic.Zip.BadReadException too.",
    "LastUpdatedDate": "2013-05-16T05:31:51.52-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-03-18T05:24:13.363-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Ensure consistency on exceptions on ZipFile.Read() failure.",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10459
  },
  "FileAttachments": [],
  "Comments": []
}