Merge pull request #1131 from facebook/zstdcli

minor: control numeric argument overflow
This commit is contained in:
Yann Collet authored and GitHub committed 2018-05-14 11:53:58 -07:00
commit 174bd3d4a7
2 files changed
+20 -4

No files matched your search

+2
View File
@@ -108,6 +108,8 @@ $ECHO "test : --fast aka negative compression levels"
$ZSTD --fast -f tmp # == -1
$ZSTD --fast=3 -f tmp # == -3
$ZSTD --fast=200000 -f tmp # == no compression
$ECHO "test : too large numeric argument"
$ZSTD --fast=9999999999 -f tmp && die "should have refused numeric value"
$ECHO "test : compress to stdout"
$ZSTD tmp -c > tmpCompressed
$ZSTD tmp --stdout > tmpCompressed # long command format