Hacker News
Recovering Corrupt Zip Files
dotancohen
|next
[-]
> 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'd spent months working on. They told us all their backups were corrupt too... Predictably, WinRAR's repair tool produced a 1 GB ZIP file that contained nothing.
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' bad practices. I think their software might just produce bad zip files.
matja
|root
|parent
|next
[-]
E.g.: 10% of Firefox crashes are caused by bitflips : https://news.ycombinator.com/item?id=47252971
ranger_danger
|root
|parent
|next
[-]
akoboldfrying
|root
|parent
|previous
[-]
drfloyd51
|root
|parent
|next
|previous
[-]
Due to a rare defect in our software, sometimes the zip is corrupted.
We blame the user for not backing up, or backing up corrupted files.
That is when I stopped reading.
CrendKing
|next
|previous
[-]
cmovq
|next
|previous
[-]
This is very common for archive files. It lets you easily append a file to the end of the archive (overwriting the directory) followed by the updated directory. If it were at the start, you’d have to rewrite the entire contents of the archive to grow the directory.
ahefner
|root
|parent
|next
[-]
yjftsjthsd-h
|root
|parent
|next
|previous
[-]
LoganDark
|root
|parent
|previous
[-]
bell-cot
|root
|parent
[-]
Vs. the folks creating and testing filesystems would have to do a whole lot of work to add that feature. Followed by the folks doing higher-level software, most of which which need to handle files being prepended to.
In short - interesting idea, not worth the effort.
andrewshadura
|previous
[-]
tyingq
|root
|parent
[-]
-g
--grow
Grow (append to) the specified zip archive, instead of creating a new one. If this operation fails, zip attempts to restore the archive to its original state. If the restoration fails, the archive might become corrupted. This option is ignored when there's no existing archive or when at least one archive member must be updated or deleted.