mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Further tighten up ram restrictions with stdin/stdout to prevent running out of memory with all the buffers involved.
This commit is contained in:
parent
21925e4a9c
commit
8244513719
2
util.c
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue