summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2009-05-08 14:49:55 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2009-05-08 14:49:55 (GMT)
commitf0ef46099418d49a2c32a563210acafe62457c3f (patch)
tree44988a5f691f587859e134e2aa0ef3a388ac042f
parent0c1b7185adee382ec6c1d81b11a044a628dec8b0 (diff)
downloadhdf5-f0ef46099418d49a2c32a563210acafe62457c3f.zip
hdf5-f0ef46099418d49a2c32a563210acafe62457c3f.tar.gz
hdf5-f0ef46099418d49a2c32a563210acafe62457c3f.tar.bz2
[svn-r16928] Added MAX value of 8 to packed_bits loop count.
-rw-r--r--tools/h5dump/h5dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index b2b790d..4c04f53 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -103,6 +103,7 @@ static H5_iter_order_t sort_order = H5_ITER_INC; /*sort_order [ascending | d
/* packed bits display parameters */
static int packed_offset[8];
static int packed_lenght[8];
+#define PACKED_BITS_LOOP_MAX 8
/**
** Added for XML **
@@ -3589,6 +3590,8 @@ parse_mask_list(const char *h_list)
lenght_value = -1;
}
}
+ if(packed_output > PACKED_BITS_LOOP_MAX)
+ packed_output = PACKED_BITS_LOOP_MAX;
packed_counter = packed_mask[0];
}