Permalink
Browse files

Further tighten up ram restrictions with stdin/stdout to prevent runn…

…ing out of memory with all the buffers involved.
  • Loading branch information...
1 parent 21925e4 commit 82445137192a0055a9f88f2e4b40064cf4d850cf @ckolivas committed Sep 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 util.c
View
2 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) {

0 comments on commit 8244513

Please sign in to comment.