diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-04-25 17:03:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 17:03:41 (GMT) |
commit | 54f1c17bbe728b0fbef51bb6c6601746e51d2fbf (patch) | |
tree | 81372dd67df0230677ef2cfcf594e40802c32352 /src/H5Bpkg.h | |
parent | f909cb6c9b0f3eb0ddc77377065a9bc58ea6265c (diff) | |
download | hdf5-54f1c17bbe728b0fbef51bb6c6601746e51d2fbf.zip hdf5-54f1c17bbe728b0fbef51bb6c6601746e51d2fbf.tar.gz hdf5-54f1c17bbe728b0fbef51bb6c6601746e51d2fbf.tar.bz2 |
Harden the v1 B-tree and local heap cache clients (#2803)
* Hardens v1 B-tree deserialize function
* Harden the H5HL deserialize functionality
Diffstat (limited to 'src/H5Bpkg.h')
-rw-r--r-- | src/H5Bpkg.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/H5Bpkg.h b/src/H5Bpkg.h index ef9f56e..f50bd48 100644 --- a/src/H5Bpkg.h +++ b/src/H5Bpkg.h @@ -44,21 +44,21 @@ /* The B-tree node as stored in memory... */ typedef struct H5B_t { H5AC_info_t cache_info; /* Information for H5AC cache functions */ - /* _must_ be first field in structure */ - H5UC_t *rc_shared; /*ref-counted shared info */ - unsigned level; /*node level */ - unsigned nchildren; /*number of child pointers */ - haddr_t left; /*address of left sibling */ - haddr_t right; /*address of right sibling */ - uint8_t *native; /*array of keys in native format */ - haddr_t *child; /*2k child pointers */ + /* MUST be first field in structure */ + H5UC_t *rc_shared; /* Ref-counted shared info */ + unsigned level; /* Node level */ + unsigned nchildren; /* Number of child pointers */ + haddr_t left; /* Address of left sibling */ + haddr_t right; /* Address of right sibling */ + uint8_t *native; /* Array of keys in native format */ + haddr_t *child; /* 2k child pointers */ } H5B_t; /* Callback info for loading a B-tree node into the cache */ typedef struct H5B_cache_ud_t { - H5F_t *f; /* File that B-tree node is within */ - const struct H5B_class_t *type; /* Type of tree */ - H5UC_t *rc_shared; /* Ref-counted shared info */ + H5F_t *f; /* File that B-tree node is within */ + const struct H5B_class_t *type; /* Type of tree */ + H5UC_t *rc_shared; /* Ref-counted shared info */ } H5B_cache_ud_t; /*****************************/ |