mirror of
https://github.com/facebook/zstd.git
synced 2025-10-09 00:05:28 -04:00
added test which can overflow internal list of filenames
This commit is contained in:
parent
65f2d97f33
commit
85df7a4da8
@ -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*
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user