Hacker News new | ask | show | jobs
by lxgr 932 days ago
Wow, that's surprising (at least to me)!

Is there a limit in the default gunzip implementation? I'm aware of the concept of ZIP/tar bombs, but I wouldn't have expected gunzip to ever produce more than one output file, at least when invoked without options.

2 comments

It only produces one output. It's just a stream of data.
Ah, I somehow imagined a second `cat` in there. That makes more sense, thank you!
The limit is it doesn't do filenames or other metadata — it's limited to contents.