summaryrefslogtreecommitdiffstats
path: root/src/H5FDprivate.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-01-10 17:26:33 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-01-10 18:00:22 (GMT)
commit3a911e2b39bb4bf5c06dd4d0a99a847ddd87ce5e (patch)
tree4fa7bd5412840eb1e823d9280bad4ee5cb937408 /src/H5FDprivate.h
parent1df69ed3a09436575b455b784b35ad52cc74eabe (diff)
downloadhdf5-3a911e2b39bb4bf5c06dd4d0a99a847ddd87ce5e.zip
hdf5-3a911e2b39bb4bf5c06dd4d0a99a847ddd87ce5e.tar.gz
hdf5-3a911e2b39bb4bf5c06dd4d0a99a847ddd87ce5e.tar.bz2
Change the blah_blah_blah_md_header `index_length` member from
`uint64_t` to `size_t` because it describes the size of an in-core structure as well as an on-disk one, and `size_t` is wide enough to store the size of any in-core structure, while `uint64_t` may be much too wide. Check that `index_length` is no more than SIZE_MAX after we read it.
Diffstat (limited to 'src/H5FDprivate.h')
-rw-r--r--src/H5FDprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDprivate.h b/src/H5FDprivate.h
index fdcca1b..2aba759 100644
--- a/src/H5FDprivate.h
+++ b/src/H5FDprivate.h
@@ -200,7 +200,7 @@ typedef struct H5FD_vfd_swmr_md_header {
uint32_t fs_page_size;
uint64_t tick_num;
uint64_t index_offset;
- uint64_t index_length;
+ size_t index_length;
} H5FD_vfd_swmr_md_header;
static inline H5FD_vfd_swmr_idx_entry_t *