logoalt Hacker News

estyesterday at 12:25 AM2 repliesview on HN

I wonder if there's any reverse zip-bombs? e.g. A realy big .zip file, takes long time to unzip, but get only few bytes of content.

Like bomb the CPU time instead of memory.


Replies

nwallinyesterday at 2:41 AM

Trivially. Zip file headers specify where the data is. All other bytes are ignored.

That's how self extraction archives and installers work and are also valid zip files. The extractor part is just a regular executable that is a zip decompresser that decompresses itself.

This is specific to zip files, not the deflate algorithm.

show 2 replies
zipping1549yesterday at 1:28 AM

Isn't that mathematically impossible?

show 2 replies