|
|
|
|
|
by mdaniel
7 days ago
|
|
> avoiding zip bombs Isn't that risk for untrusted inputs, and not "I want to remember which file _on my drive_ contains thing.txt"? Also, I would hope you wouldn't hand-roll support for archives when https://github.com/libarchive/libarchive/wiki/LibarchiveForm... exists (BSD-2-Clause). Given that they claim support for opening archives in memory, I'd bet that `tar -czf foo.tar.gz README.md ; zip bar.zip foo.tar.gz` would work out, too |
|
In RCHIVE right now, I added that for when the app inspects zip-based Office files for tracked changes and other revision evidence (so like, docx, xlsx, pptx, odt files). You just never know, and I figured it would be nice to quietly prevent some rando file forcing enough memory allocation to crash the app. I also have bounding safeguards for inspecting PDFs, PSD/PSB, media containers, etc.
Definitely haven't hand-rolled archive support, currently I'm not doing any deep inspections or anything like that beyond what ExifTool provides by default. I just have been considering adding future support for being able to find stuff inside of stuff, and will be looking for something like libarchive when the time comes.