Merge pull request #1790 from gsjaardema/patch-45

Protect use of `H5Dread_chunk` function
This commit is contained in:
Ward Fisher 2020-07-10 16:06:41 -06:00 committed by GitHub
commit 8fbaf27ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ main(int argc, char** argv)
fflush(stderr);
#endif
memset(chunkdata,0,sizeof(int)*chunkprod);
#if 1
#ifdef HDF5_SUPPORTS_PAR_FILTERS
if(H5Dread_chunk(datasetid, dxpl_id, offset, &filter_mask, chunkdata) < 0) abort();
for(r=0;r<rank;r++)
printf("[%lu/%lu]",(unsigned long)odom->index[r],(unsigned long)offset[r]);