From 85df7a4da8fca88313475a309b10ddc3ddc06dd3 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 28 Oct 2019 16:05:42 -0700 Subject: [PATCH] added test which can overflow internal list of filenames --- tests/playTests.sh | 4 ++++ 1 file changed, 4 insertions(+) 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*