From: Yann Collet Date: Mon, 28 Oct 2019 23:05:42 +0000 (-0700) Subject: added test which can overflow internal list of filenames X-Git-Tag: v1.4.5^2~141^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85df7a4da8fca88313475a309b10ddc3ddc06dd3;p=thirdparty%2Fzstd.git added test which can overflow internal list of filenames --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 7712b68aa..5f23ac555 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -375,6 +375,10 @@ println "test : survive a list of files which is binary garbage (--filelist=FILE ./datagen -P0 -g1M > tmp_badList $ZSTD -qq -f --filelist=tmp_badList && die "should have failed : list is binary garbage" # let's avoid printing binary garbage on console +println "test : try to overflow internal list of files (--filelist=FILE)" +touch tmp1 tmp2 tmp3 tmp4 tmp5 tmp6 +ls tmp* > tmpList +$ZSTD -f tmp1 --filelist=tmpList --filelist=tmpList tmp2 tmp3 # can trigger an overflow of internal file list rm -rf tmp*