Merge pull request #1131 from facebook/zstdcli

minor: control numeric argument overflow
This commit is contained in:
Yann Collet
2018-05-14 11:53:58 -07:00
committed by GitHub
2 changed files with 20 additions and 4 deletions
+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