{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "duplicate of workitem 10181.workitem 10181 was fixed in changeset 55566. First binary&#58; v1.9.5.1. The same fix is available in v1.9.1.3. ",
    "ClosedDate": "2010-02-10T14:56:34.447-08:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "I'm working with v1.9.1.1.\n \nIn the file ZipEntry.Read.cs, lines 448 thru 455 read as follows:\n \nwhile (j < Buffer.Length)\n                {\n                    int start = j;\n \n                    UInt16 HeaderId = (UInt16)(Buffer[j] + Buffer[j + 1] * 256);\n                    Int16 DataSize = (short)(Buffer[j + 2] + Buffer[j + 3] * 256);\n \n                    j += 4;\n \nI received an error setting the HeaderId variable because the Buffer was only 1 item long.  The same error would apear if the Buffer contained less than 4 items.\n \nLine 448 should be revised to read as follows to correct the error:\n \nwhile (j < Buffer.Length - 3)",
    "LastUpdatedDate": "2013-05-16T05:31:55.657-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-01-17T19:53:23.383-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Error in Ionic.Zip.ZipEntry.ProcessExtraField(Stream s, Int16 extraFieldLength)",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 9998
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Where did you get the zip file? \r\nI understand what you are describing, but, I think the original code will work for a correct zip file, and will fail for an incorrect zip file. \r\nThe specification says that every segment of the extra field starts with a header ID and is followed by a datasize.  4 bytes for every  segment.  If you have a zip file that does not have 4 bytes (if it has 1 bybte, as in your case), then it is probably incorrectly formatted. \r\n\r\nUnless I am missing something. ",
      "PostedDate": "2010-01-18T15:19:24.71-08:00",
      "Id": -2147483648
    },
    {
      "Message": "any response ?",
      "PostedDate": "2010-01-23T00:05:39.033-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Someone sent me an Android .APK file that exhibits this behavior.  \r\nAlthough I still think it is a broken zip file, I've fixed DotNetZip to be more tolerant of the problem, as part of workitem 10181, which was fixed in changeset 55566. First binary: v1.9.5.1. The same fix is available in v1.9.1.3. ",
      "PostedDate": "2010-02-10T14:55:54.98-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-02-10T14:56:34.447-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:43.043-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:55.657-07:00",
      "Id": -2147483648
    }
  ]
}