summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-21 21:56:53 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-21 21:56:53 (GMT)
commit7ef0e3f941b96b9fbec0787d896e144f77b746bc (patch)
tree5036dacbdac3e2a29d0d42ea2444063eac4b73eb
parent8eabdd28af1c7f058588e634a2d4fbaab3bb81f1 (diff)
parent5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e (diff)
downloadhdf5-7ef0e3f941b96b9fbec0787d896e144f77b746bc.zip
hdf5-7ef0e3f941b96b9fbec0787d896e144f77b746bc.tar.gz
hdf5-7ef0e3f941b96b9fbec0787d896e144f77b746bc.tar.bz2
Merge pull request #1761 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:t_filters_parallel_bugs to develop
* commit '5aa8bc154dd9fcfdf6c7cbbe0611cb200f0a420e': Fixed the heap overflow in t_filters_parallel
-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++) {