diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-04-04 21:45:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-04-04 21:45:34 (GMT) |
commit | dde0a1c93ab7e183c575b284a9b8f65555818132 (patch) | |
tree | ab89e9c69eee9ceb195923adcc08e65abe2f81b6 /src/H5Dselect.c | |
parent | 7dce8523c1cd3522feaac22ce49c899d39932ccf (diff) | |
parent | aa696a47715c3dd9c068f71915c6dcf23745441c (diff) | |
download | hdf5-dde0a1c93ab7e183c575b284a9b8f65555818132.zip hdf5-dde0a1c93ab7e183c575b284a9b8f65555818132.tar.gz hdf5-dde0a1c93ab7e183c575b284a9b8f65555818132.tar.bz2 |
Merge remote-tracking branch 'origin/develop' into merge_hyperslab_update_01
Diffstat (limited to 'src/H5Dselect.c')
-rw-r--r-- | src/H5Dselect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Dselect.c b/src/H5Dselect.c index 2f2ed66..a843d93 100644 --- a/src/H5Dselect.c +++ b/src/H5Dselect.c @@ -227,6 +227,8 @@ H5D__select_io(const H5D_io_info_t *io_info, size_t elmt_size, /* Decrement number of elements left to process */ HDassert(((size_t)tmp_file_len % elmt_size) == 0); + if(elmt_size == 0) + HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "Resulted in division by zero") nelmts -= ((size_t)tmp_file_len / elmt_size); } /* end while */ } /* end else */ |