mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
Added test for the fix HDFFV-10590
This commit is contained in:
parent
273c0c1836
commit
e5f792cf12
@ -865,6 +865,34 @@ TOOLTESTV()
|
|||||||
rm -f $outfile
|
rm -f $outfile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Same as TOOLTEST, but expects h5repack fails
|
||||||
|
#
|
||||||
|
TOOLTEST_FAIL()
|
||||||
|
{
|
||||||
|
infile=$1
|
||||||
|
outfile=$2
|
||||||
|
expect="$TESTDIR/$2-$1.ddl"
|
||||||
|
actual="$TESTDIR/$2-$1.out"
|
||||||
|
actual_err="$TESTDIR/$2-$1.err"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
|
||||||
|
# Run test.
|
||||||
|
TESTING $H5REPACK $@
|
||||||
|
(
|
||||||
|
cd $TESTDIR
|
||||||
|
$ENVCMD $RUNSERIAL $H5REPACK_BIN "$@" $infile $outfile
|
||||||
|
) >$actual
|
||||||
|
RET=$?
|
||||||
|
if [ $RET == 0 ] ; then
|
||||||
|
nerrors="`expr $nerrors + 1`"
|
||||||
|
echo " FAILED"
|
||||||
|
else
|
||||||
|
echo " PASSED"
|
||||||
|
fi
|
||||||
|
rm -f $outfile
|
||||||
|
}
|
||||||
|
|
||||||
# This is same as TOOLTESTV() with comparing display output
|
# This is same as TOOLTESTV() with comparing display output
|
||||||
# with actual filename swapped
|
# with actual filename swapped
|
||||||
#
|
#
|
||||||
@ -1681,6 +1709,10 @@ TOOLTEST HDFFV-5932 h5repack_attr_refs.h5
|
|||||||
# Note: this test is experimental for sharing test file among tools
|
# Note: this test is experimental for sharing test file among tools
|
||||||
TOOLTEST HDFFV-7840 h5diff_attr1.h5
|
TOOLTEST HDFFV-7840 h5diff_attr1.h5
|
||||||
|
|
||||||
|
# test HDFFV-10590
|
||||||
|
arg="HDFFV-10590_CVE-2018-17432.h5 HDFFV-10590_CVE-2018-17432_out.h5 --low=1 --high=2 -f GZIP=8 -l dset1:CHUNK=5x6"
|
||||||
|
TOOLTEST_FAIL $arg
|
||||||
|
|
||||||
# tests for metadata block size option
|
# tests for metadata block size option
|
||||||
TOOLTEST_META meta_short h5repack_layout.h5 -M 8192
|
TOOLTEST_META meta_short h5repack_layout.h5 -M 8192
|
||||||
TOOLTEST_META meta_long h5repack_layout.h5 --metadata_block_size=8192
|
TOOLTEST_META meta_long h5repack_layout.h5 --metadata_block_size=8192
|
||||||
|
BIN
tools/test/h5repack/testfiles/HDFFV-10590_CVE-2018-17432.h5
Normal file
BIN
tools/test/h5repack/testfiles/HDFFV-10590_CVE-2018-17432.h5
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user