{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "good bug, thanks for reporting it.  This is fixed in changeset 79280, the first binary with this fix in it will be v1.9.1.6.",
    "ClosedDate": "2011-06-16T10:32:12.06-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "First off, thanks for the brilliant library and all the effort that has gone into it.\n \nI've found that when I write data to a ZipOutputStream the data buffer is corrupted afterwords. I've looked through the documentation, but didn't find a warning indicating that such a side-effect is intended. Is this due to the encryption I'm enabling?\n \nHere is a little example which reproduces the problem. If I use ZipFile instead of ZipOutputStream the buffer doesn't get corrupted.\n \n \n \n \nvar content = new byte[1789];\nunchecked\n{\n    byte b = 0;\n    for (var i = 0; i < content.Length; i&#43;&#43;, b&#43;&#43;)\n    {\n        content[i] = b;\n    }\n}\n \nusing (var fileStream = File.OpenWrite(\"temp.zip\"))\n{\n    using(var zipStream = new ZipOutputStream(fileStream, true))\n    {\n        zipStream.CompressionLevel = CompressionLevel.None;\n        zipStream.Password = \"mydummypassword\";\n        zipStream.Encryption = EncryptionAlgorithm.WinZipAes256;\n        zipStream.PutNextEntry(\"myentry.myext\");\n        zipStream.Write(content, 0, content.Length);\n    }\n}\n \nunchecked\n{\n    byte b = 0;\n    for (var i = 0; i < content.Length; i&#43;&#43;, b&#43;&#43;)\n    {\n        if (content[i] != b)\n        {\n            Console.WriteLine(\"Buffer was modified.\");\n        }\n    }\n}",
    "LastUpdatedDate": "2013-05-16T05:31:39.217-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-01-11T18:31:52.89-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "ZipOutputStream corrupts data buffer when calling Write(byte[],int,int)",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 2,
    "Id": 12815
  },
  "FileAttachments": [],
  "Comments": []
}