{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 79082.  First binary with this fix&#58;  v1.9.1.6.  This is a documentation update, only.",
    "ClosedDate": "2011-06-13T20:32:25.527-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "This code should throw an exception: \n \n            var inputStream = new FileStream(filename, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);\n            using (ZipFile zip = ZipFile.Read(inputStream))\n            {\n                zip.AddEntry(\"three.txt\", \"small entry: 3\");\n                zip.Save(inputStream);\n            }",
    "LastUpdatedDate": "2013-05-16T05:31:55.357-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-01-19T18:42:44.447-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Save to the input stream should not be allowed.",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10015
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Thinking about this further, it is difficult to provide a general-case check for this. IF the input and output streams are both FileStreams, then comparing the SafeFileHandle values should tell whether it is the same stream. On the other hand, it's possible there are 2 open streams on the same file using different handles, and such a check would not catch that. \r\n\r\nMore generally, suppose the stream is a MemoryStream backed only by a byte array.  In this case, it is very easy to see that you may have 2 MemoryStreams wrapping a single array.   There's no way to check for this. \r\n\r\nSo I think the correct solution here is to simply document that it is not supported to save to the input stream.  \r\n\r\n\r\n",
      "PostedDate": "2010-01-20T10:28:33.317-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T20:25:09.347-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T20:32:25.527-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:42.783-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:55.357-07:00",
      "Id": -2147483648
    }
  ]
}