From 82445137192a0055a9f88f2e4b40064cf4d850cf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 2 Sep 2013 00:07:30 +1000 Subject: [PATCH] Further tighten up ram restrictions with stdin/stdout to prevent running out of memory with all the buffers involved. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index e22f4a7..57b733e 100644 --- a/util.c +++ b/util.c @@ -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) {