summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-21 21:13:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-21 21:13:16 (GMT)
commit5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e (patch)
tree5036dacbdac3e2a29d0d42ea2444063eac4b73eb /testpar
parent8eabdd28af1c7f058588e634a2d4fbaab3bb81f1 (diff)
downloadhdf5-5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e.zip
hdf5-5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e.tar.gz
hdf5-5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e.tar.bz2
Fixed the heap overflow in t_filters_parallel
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_filters_parallel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testpar/t_filters_parallel.c b/testpar/t_filters_parallel.c
index db5bd13..76f9276 100644
--- a/testpar/t_filters_parallel.c
+++ b/testpar/t_filters_parallel.c
@@ -5813,7 +5813,7 @@ test_write_parallel_read_serial(void)
static void
test_shrinking_growing_chunks(void)
{
- float *data = NULL;
+ double *data = NULL;
hsize_t dataset_dims[SHRINKING_GROWING_CHUNKS_DATASET_DIMS];
hsize_t chunk_dims[SHRINKING_GROWING_CHUNKS_DATASET_DIMS];
hsize_t sel_dims[SHRINKING_GROWING_CHUNKS_DATASET_DIMS];
@@ -5908,9 +5908,9 @@ test_shrinking_growing_chunks(void)
VRFY((H5Pset_dxpl_mpio(plist_id, H5FD_MPIO_COLLECTIVE) >= 0),
"Set DXPL MPIO succeeded");
- data_size = sel_dims[0] * sel_dims[1] * sizeof(*data);
+ data_size = sel_dims[0] * sel_dims[1] * sizeof(double);
- data = (float *) HDcalloc(1, data_size);
+ data = (double *) HDcalloc(1, data_size);
VRFY((NULL != data), "HDcalloc succeeded");
for (i = 0; i < SHRINKING_GROWING_CHUNKS_NLOOPS; i++) {