[
  {
    "Id": "629874",
    "ThreadId": "261961",
    "Html": "<div>Hi,</div>\n<div>I think that a malformed zip file should throw ZipException or BadReadException when calling ZipFile.Read(). &nbsp;The following code throws an IOException with the message \"An attempt was made to move the file pointer before the beginning of the file.\"</div>\n<div>Stack Trace:</div>\n<div>at <span><span style=\"color: #00008b;\">System.IO.__Error</span></span>.<span><span style=\"color: #008b8b;\">WinIOError</span></span>(<span style=\"color: #00008b;\">Int32</span> <span style=\"color: #000000;\">errorCode</span>, <span style=\"color: #00008b;\">String</span> <span style=\"color: #000000;\">maybeFullPath</span>)<br /> at <span><span style=\"color: #00008b;\">System.IO.FileStream</span></span>.<span><span style=\"color: #008b8b;\">SeekCore</span></span>(<span style=\"color: #00008b;\">Int64</span> <span style=\"color: #000000;\">offset</span>, <span style=\"color: #00008b;\">SeekOrigin</span> <span style=\"color: #000000;\">origin</span>)<br /> at <span><span style=\"color: #00008b;\">System.IO.FileStream</span></span>.<span><span style=\"color: #008b8b;\">Seek</span></span>(<span style=\"color: #00008b;\">Int64</span> <span style=\"color: #000000;\">offset</span>, <span style=\"color: #00008b;\">SeekOrigin</span> <span style=\"color: #000000;\">origin</span>)<br /> at <span><span style=\"color: #00008b;\">Ionic.Zip.ZipFile</span></span>.<span><span style=\"color: #008b8b;\">ReadIntoInstance</span></span>(<span style=\"color: #00008b;\"><span><span style=\"color: #00008b;\">ZipFile</span></span></span> <span style=\"color: #000000;\">zf</span>)<br /> at <span><span style=\"color: #00008b;\">Ionic.Zip.ZipFile</span></span>.<span><span style=\"color: #008b8b;\">Read</span></span>(<span style=\"color: #00008b;\"><span><span style=\"color: #00008b;\">String</span></span></span> <span style=\"color: #000000;\">fileName</span>, <span style=\"color: #00008b;\"><span><span style=\"color: #00008b;\">TextWriter</span></span></span> <span style=\"color: #000000;\">statusMessageWriter</span>, <span style=\"color: #00008b;\"> <span><span style=\"color: #00008b;\">Encoding</span></span></span> <span style=\"color: #000000;\"> encoding</span>, <span style=\"color: #00008b;\"><span><span style=\"color: #00008b;\">EventHandler`1</span></span></span> <span style=\"color: #000000;\">readProgress</span>)<br /> <br /></div>\n<div>repro:</div>\n<div>string filePath = Path.GetTempFileName();</div>\n<div>File.WriteAllText( filePath , \"asdfasdf\" );</div>\n<div>string outputDirectory =&nbsp;Path.GetTempPath();</div>\n<div>using ( ZipFile zipFile = ZipFile.Read( filePath ) )</div>\n<div>{</div>\n<div>&nbsp; &nbsp; &nbsp;zipFile.ExtractAll( outputDirectory &nbsp;);<br /> }&nbsp;</div>",
    "PostedDate": "2011-06-19T19:44:36.573-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "630890",
    "ThreadId": "261961",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/13710\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2011-06-21T19:57:31.09-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "631515",
    "ThreadId": "261961",
    "Html": "<p>I fixed this in changeset 79591.</p>\r\n<p><a href=\"http://dotnetzip.codeplex.com/SourceControl/changeset/changes/79591\">http://dotnetzip.codeplex.com/SourceControl/changeset/changes/79591</a></p>\r\n<p>This change will be in v1.9.1.6.&nbsp; Due real soon now.</p>",
    "PostedDate": "2011-06-22T16:12:31.297-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "632089",
    "ThreadId": "261961",
    "Html": "<p>Thanks for the quick turnaround on this, Cheeso!</p>",
    "PostedDate": "2011-06-23T13:21:53.91-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]