cjdelisle/cjdns — pull request #438 by Shnatsel (2014-01-23 13:47:03+00:00)
Title: Set maximum size of created files while downloading node.js to 10Mb, ...

...to prevent an attacker from susbstituting an endless stream and exhausting available disk space on the machine.

The use of ulimit in here is POSIX-compliant and should not break even such weird systems as SunOS.

The largest current tarball of node.js is 6.4Mb in size so 10Mb limit is rather generous and should be future-proof.