3 comments

  • dotancohen2 hours ago
    <p><pre><code> &gt; recently we had a particularly bad case: a customer sent us an approximately 1 GB project file which was corrupt, for a game already published to Steam, which they&#x27;d spent months working on. They told us all their backups were corrupt too... Predictably, WinRAR&#x27;s repair tool produced a 1 GB ZIP file that contained nothing. </code></pre> Thirty years of creating and storing zip files on every major and some minor OSes, filesystems, sketchy transfer protocols, and unreliable media make me think that the huge number of issues this company has with corrupted ZIP files has nothing to do with the format or with its customers&#x27; bad practices. I think their software might just produce bad zip files.
    • matja7 minutes ago
      The more popular your software is, the more likely you&#x27;ll get bug reports from people with just bad hardware. I know a few applications now that perform a simple memory&#x2F;CPU test when sending a bug report and reject those that are basically impossible.<p>E.g.: 10% of Firefox crashes are caused by bitflips : <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47252971">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47252971</a>
    • toast044 minutes ago
      There&#x27;s tons of marginal hardware out there, and game developers sometimes push hardware pretty hard and may run early drivers, etc.
    • BatFastard51 minutes ago
      As the old saying goes, an untested backup is a non backup.
  • CrendKing50 minutes ago
    I just tested. 7-Zip is already doing exactly what the author&#x27;s recovery tool does: if I delete the metadata at the end of the file, it still can open and extract files, while complaining about the harmless &quot;Unexepcet end of data&quot;. Further, even if I delete the actual content of the last file, it still can show the directory structure, it just can&#x27;t extract data of the last file.
  • andrewshadura1 hour ago
    It seems technically possible to create an append-only ZIP writer that would only add files at the end of a ZIP archive behind the existing central directory, and then write a new central directory including the new files (and excluding the deleted files). That might make it more difficult to irrecoverably damage the archive as most of it contents will likely be preserved after e.g. an abrupt loss of power.