Compound datatype version 1 carries, per member, a dimensionality and four dimension sizes (HDF5 before 1.4 had no array class). The parser skipped those 28 bytes, so a member such as `f: f32[4]` came back as a single f32 at the member's offset: the compound's size was right but its members were wrong. libhdf5 wraps such a member in an array type of the first `dimensionality` sizes and ignores the permutation; do the same, and reject a dimensionality above 4 as libhdf5 does. Only files old enough to also use layout message v1 have these, so this became reachable with the previous commit (tarrold.h5, tcompound.h5). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
696 B
696 B
Legacy (HDF5 1.4/1.6-era) fixtures
Unmodified copies of the HDF Group's own test files from
https://github.com/HDFGroup/hdf5 at a3cf1ea82cc7a66e50029a688121e1b105a7ce88
(BSD-style license, see that repository's LICENSE). Current libraries cannot
write these structures, so they are kept as files.
| File | Upstream path | Exercises |
|---|---|---|
deflate.h5 |
test/testfiles/deflate.h5 |
Data Layout message v1, chunked + deflate (v1 B-tree index) |
h5ex_g_iterate.h5 |
HDF5Examples/C/H5G/h5ex_g_iterate.h5 |
Data Layout message v2, contiguous; an unallocated dataset |
tarrold.h5 |
test/testfiles/tarrold.h5 |
Compound datatype v1 members with legacy array dimensions |