diff options
author | David Young <dyoung@hdfgroup.org> | 2019-12-20 15:52:09 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-12-20 15:52:09 (GMT) |
commit | e024b2737c9d6a0bd52d7f3ca503399d04fb7c77 (patch) | |
tree | 4f07b09878fc02b89190e5740c4d88931bbf3b15 /src/H5Fvfd_swmr.c | |
parent | 37fb4bda7118b2d71c72ad19ae6b324e76144ee9 (diff) | |
download | hdf5-e024b2737c9d6a0bd52d7f3ca503399d04fb7c77.zip hdf5-e024b2737c9d6a0bd52d7f3ca503399d04fb7c77.tar.gz hdf5-e024b2737c9d6a0bd52d7f3ca503399d04fb7c77.tar.bz2 |
Assert that a shadow image is page-aligned since we assume that it is when we
compute its base address and free it.
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r-- | src/H5Fvfd_swmr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c index f352349..3ff5f39 100644 --- a/src/H5Fvfd_swmr.c +++ b/src/H5Fvfd_swmr.c @@ -481,6 +481,8 @@ H5F_update_vfd_swmr_metadata_file(H5F_t *f, uint32_t num_entries, HGOTO_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, \ "error in allocating space from the metadata file") + HDassert(md_addr % f->shared->fs_page_size == 0); + /* Compute checksum and update the index entry */ index[i].md_file_page_offset = md_addr/f->shared->fs_page_size; index[i].chksum = H5_checksum_metadata(index[i].entry_ptr, |