From: Yann Collet Date: Fri, 14 Oct 2016 21:07:11 +0000 (-0700) Subject: added long comment --memlimit= X-Git-Tag: v1.1.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1122349ac2d8d022031f4a4b1ec002317603916d;p=thirdparty%2Fzstd.git added long comment --memlimit= --- 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"