[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uncompression-bombs




That's a good idea about limiting uncompressed-text size.  I wrote Python code 
to do that for Mojo Nation:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pyutil/pyutil/zlibutil.py?rev=HEAD&content-type=text/vnd.viewcvs-markup

It doesn't say so explicitly in that file, but the same code can be used to spool
the uncompressed-text directly to disk while maintaining a cap on the amount of 
RAM used at any one time.

Regards,

Zooko

---
                 zooko.com
Security and Distributed Systems Engineering
---