Further tighten up ram restrictions with stdin/stdout to prevent running out of memory with all the buffers involved.

This commit is contained in:
Con Kolivas 2013-09-02 00:07:30 +10:00
parent 21925e4a9c
commit 8244513719

2
util.c
View file

@ -123,7 +123,7 @@ void setup_ram(rzip_control *control)
{
/* Use less ram when using STDOUT to store the temporary output file. */
if (STDOUT && ((STDIN && DECOMPRESS) || !(DECOMPRESS || TEST_ONLY)))
control->maxram = control->ramsize * 2 / 9;
control->maxram = control->ramsize / 6;
else
control->maxram = control->ramsize / 3;
if (BITS32) {