{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Running into this issue with relatively simple code.  I have a zip file with a bunch of entries, and I regularly update those entries with new data using UpdateEntry.  It seems that this corrupts the resulting zip file somehow.\n\nHere is code that reproduces the issue:\n\n```\n       [TestMethod]\n        public void TestUpdateEntry()\n        {\n            ZipFile zip = new ZipFile(\"somezip.zip\");\n\n            List<ZipEntry> entries = new List<ZipEntry>();\n\n            Random r = new Random();\n            for (int a = 0; a < 100; a++)\n            {\n                byte[] data = new byte[r.Next(128, 1024)];\n                entries.Add(zip.UpdateEntry(Guid.NewGuid().ToString(\"N\"), data));\n            }\n\n            // update the entries a bunch more\n            for (int a = 0; a < 50; a++)\n            {\n                foreach (ZipEntry entry in entries)\n                {\n                    byte[] data = new byte[r.Next(128, 1024)];\n                    zip.UpdateEntry(entry.FileName, data);\n                }\n\n                zip.Save();\n            }\n\n            // try to load all the entries.\n            foreach (ZipEntry entry in zip)\n            {\n                using (var stream = entry.OpenReader())\n                {\n                    MemoryStream deserialized = new MemoryStream();\n                    stream.CopyTo(deserialized);\n                }\n            }\n        }\n```\n\nThis code asserts when trying to load all the entries at the end there.  Is there something I am doing wrong to cause this to occur?",
    "LastUpdatedDate": "2015-07-29T16:50:40.12-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2015-07-29T16:50:40.12-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Bad state (invalid stored block lengths)",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 17487
  },
  "FileAttachments": [],
  "Comments": []
}