From 1122349ac2d8d022031f4a4b1ec002317603916d Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 14 Oct 2016 14:07:11 -0700 Subject: [PATCH] added long comment --memlimit= --- programs/zstdcli.c | 13 ++++++++++--- tests/playTests.sh | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 3a284c31d..9a38ede7a 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -247,16 +247,16 @@ int main(int argCount, const char* argv[]) if (!strcmp(programName, ZSTD_CAT)) { decode=1; forceStdout=1; displayLevel=1; outFileName=stdoutmark; } /* command switches */ - for(argNb=1; argNb $INTOVOID # implicit stdout when stdin is used $ZSTD -d - < tmp.zst > $INTOVOID $ECHO "test : impose memory limitation (must fail)" $ZSTD -d -f tmp.zst -M2K -c > $INTOVOID && die "decompression needs more memory than allowed" +$ZSTD -d -f tmp.zst --memlimit=2K -c > $INTOVOID && die "decompression needs more memory than allowed" # long command $ECHO "test : overwrite protection" $ZSTD -q tmp && die "overwrite check failed!" $ECHO "test : force overwrite"