{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "In BZip2InputStream.cs Read(byte[],int,int) it has this line\n\nreturn (destOffset == offset) ? -1 : (destOffset - offset);\n\nThis is incorrect and breaks Stream.CopyTo. It should return 0 when it gets to the end, not -1. I checked the source today, version 1.9.1.8\n\nDoing the below should produce 0 when they are equal and should be fine. No need for ?:\n\nreturn destOffset - offset;",
    "LastUpdatedDate": "2015-05-21T06:00:06.66-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2012-10-04T18:21:10.69-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Incorrect Read return value in BZip2InputStream",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 3,
    "Id": 15675
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I ran into the same issue.\r\n\r\nI'd like to use Stream.CopyTo too, but have to resort to custom block copying.\r\n\r\nPlease release a fix for this!",
      "PostedDate": "2015-05-21T06:00:06.66-07:00",
      "Id": -2147483648
    }
  ]
}