2 ms·
The worst libraries _only_ accept a file path or URL for unzip. I've seen audio libraries where you can only provide a file path for playback. Guess you're scr
by ReactiveJelly 5y ago
The worst libraries _only_ accept a file path or URL for unzip.
I've seen audio libraries where you can only provide a file path for playback. Guess you're screwed if you wanted to get a Vorbis file out of a tarball, decode it silently faster than real-time, and send it over the network...
- loudmax 5y agoSelective untar into a FIFO pipe. Not optimal in this case but you can work around the limitation with some extra work. I'd rather do this than expose some 0-day due to odd combination of rarely used libraries.
- alar44 5y agoThat's likely the use case for 99% of people who zip things though or play audio. Your corner case is exactly what simple libraries should avoid.
- pie_flavor 5y agoThe only thing they're going to do is open it as an ifstream. Zero value is gained over taking an istream instead; initializing it is one bit of extra code for the user, in exchange for being able to pull in data from anywhere. Embedding it in the binary might be rare, but how about stdin? Or for that matter the Internet?