summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/h52giftest.sh
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-28 18:47:15 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-28 18:47:15 (GMT)
commit0975f08d7ee0366fd0c648a04f32380aa8cd1938 (patch)
tree02098155d848c6e733df33ff7d0bcdac8abafdaa /hl/tools/gif2h5/h52giftest.sh
parentb9173f64d7b8ecc84dfc4728649adcfee24eb633 (diff)
downloadhdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.zip
hdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.tar.gz
hdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.tar.bz2
[svn-r13560]
bug fix a malloc call with an incorrect length caused several memory problems that ultimately corrupted a name passed in a list of arguments in the h52gif tool allocated memory was not freed tested linux
Diffstat (limited to 'hl/tools/gif2h5/h52giftest.sh')
-rw-r--r--hl/tools/gif2h5/h52giftest.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/hl/tools/gif2h5/h52giftest.sh b/hl/tools/gif2h5/h52giftest.sh
index b07ec90..fa439aa 100644
--- a/hl/tools/gif2h5/h52giftest.sh
+++ b/hl/tools/gif2h5/h52giftest.sh
@@ -15,6 +15,8 @@
#
# HDF Utilities Test script
+TESTFILE="$srcdir/../testfiles/h52giftst.h5"
+
# initialize errors variable
errors=0
@@ -28,7 +30,6 @@ TOOLTEST()
err=0
$RUNSERIAL ./h52gif $*
-
if [ $err -eq 1 ]; then
errors="` expr $errors + 1 `";
echo "*FAILED*"
@@ -39,8 +40,8 @@ fi
-TESTING "h52giftst.h5 image1.gif -i 1234567 -p palette" ;
-TOOLTEST h52giftst.h5 image1.gif -i 1234567 -p palette
+TESTING "h52giftst.h5 image1.gif -i 12345678 -p palette" ;
+TOOLTEST $TESTFILE image1.gif -i 12345678 -p palette
exit $errors