diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2012-01-06 16:17:22 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2012-01-06 16:17:22 (GMT) |
commit | 26c62123ebc540395dce8c186eae7d4a36d74f4e (patch) | |
tree | 90d8edd5bd3cfa2c45f6ed10efe65ee251e28603 /tools/h5ls/testh5ls.sh.in | |
parent | 677ad4d18f16c41551aabc869e66aaec8346e3be (diff) | |
download | hdf5-26c62123ebc540395dce8c186eae7d4a36d74f4e.zip hdf5-26c62123ebc540395dce8c186eae7d4a36d74f4e.tar.gz hdf5-26c62123ebc540395dce8c186eae7d4a36d74f4e.tar.bz2 |
[svn-r21866] Purpose:
Fix for HDFFV-7838 h5ls: segfault for handling region reference in attribute with -v option
Description:
Segfault occurred when h5ls access region reference data in an attribute.
This didn't occurred when -v option was used.
The cause was "h5tool_format_t info;" struct variable members were accessed
without proper values were assigned (was NULL), so printf failed later in the code.
Merged from HDF5 trunk r21865.
Tested:
jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), , cmake-Windows (32-LE)
Diffstat (limited to 'tools/h5ls/testh5ls.sh.in')
-rw-r--r-- | tools/h5ls/testh5ls.sh.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/h5ls/testh5ls.sh.in b/tools/h5ls/testh5ls.sh.in index bdf0af7..e2c204b 100644 --- a/tools/h5ls/testh5ls.sh.in +++ b/tools/h5ls/testh5ls.sh.in @@ -65,6 +65,7 @@ LIST_HDF5_TEST_FILES=" $SRC_H5LS_TESTFILES/tall.h5 $SRC_H5LS_TESTFILES/tarray1.h5 $SRC_H5LS_TESTFILES/tattr2.h5 +$SRC_H5LS_TESTFILES/tattrreg.h5 $SRC_H5LS_TESTFILES/tcompound.h5 $SRC_H5LS_TESTFILES/tdatareg.h5 $SRC_H5LS_TESTFILES/tdset.h5 @@ -94,6 +95,8 @@ $SRC_H5LS_TESTFILES/tall-1.ls $SRC_H5LS_TESTFILES/tall-2.ls $SRC_H5LS_TESTFILES/tarray1.ls $SRC_H5LS_TESTFILES/tattr2.ls +$SRC_H5LS_TESTFILES/tattrreg_le.ls +$SRC_H5LS_TESTFILES/tattrreg_be.ls $SRC_H5LS_TESTFILES/tcomp-1.ls $SRC_H5LS_TESTFILES/tdataregbe.ls $SRC_H5LS_TESTFILES/tdataregle.ls @@ -357,6 +360,14 @@ TOOLTEST tempty.ls 0 -w80 -d tempty.h5 # enable -S for avoiding printing NATIVE types TOOLTEST tattr2.ls 0 -w80 -v -S tattr2.h5 +# test for attribute with region references without verbose mode +# ( HDFFV-7838, ) +if test $WORDS_BIGENDIAN != "yes"; then +TOOLTEST tattrreg_le.ls 0 -w80 -v -d tattrreg.h5 +else +TOOLTEST tattrreg_be.ls 0 -w80 -v -d tattrreg.h5 +fi + # tests for error handling. # test for non-existing file TOOLTEST nosuchfile.ls 1 nosuchfile.h5 |