diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2019-01-07 21:20:11 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2019-03-15 16:48:06 (GMT) |
commit | 0ab95e0c814ab975ccaafd6ef25dbdde13b00f11 (patch) | |
tree | a6a97478164569d6316c31374c8b7f6be8cc4399 /src/H5Obogus.c | |
parent | 79f9b443dae87482326bb9a37a1a8070c1f8669d (diff) | |
download | hdf5-0ab95e0c814ab975ccaafd6ef25dbdde13b00f11.zip hdf5-0ab95e0c814ab975ccaafd6ef25dbdde13b00f11.tar.gz hdf5-0ab95e0c814ab975ccaafd6ef25dbdde13b00f11.tar.bz2 |
Delay checking if decoded message's "shareable" flag is appropriate for
the message type until we've verified we understand the message type.
Reduce size of H5O_msg_class_g to *not* include space for
H5O_BOGUS_INVALID. Make bogus messages shareable. Add new bogus
message test with shareable messages to cover the formerly problematic
code. Re-run gen_bogus.c to add this test case and also to fix the
bogus_invalid messages that were no longer H5O_BOGUS_INVLAID due to a
new message class being added in a previous commit. Added comment to
remind developers to run gen_bogus.c when adding a new message class.
Diffstat (limited to 'src/H5Obogus.c')
-rw-r--r-- | src/H5Obogus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Obogus.c b/src/H5Obogus.c index ba9a8ad..bf002ea 100644 --- a/src/H5Obogus.c +++ b/src/H5Obogus.c @@ -48,7 +48,7 @@ const H5O_msg_class_t H5O_MSG_BOGUS_VALID[1] = {{ H5O_BOGUS_VALID_ID, /*message id number */ "bogus valid", /*message name for debugging */ 0, /*native message size */ - 0, /*messages are sharable? */ + H5O_SHARE_IS_SHARABLE, /*messages are sharable? */ H5O_bogus_decode, /*decode message */ H5O_bogus_encode, /*encode message */ NULL, /*copy the native value */ @@ -72,7 +72,7 @@ const H5O_msg_class_t H5O_MSG_BOGUS_INVALID[1] = {{ H5O_BOGUS_INVALID_ID, /*message id number */ "bogus invalid", /*message name for debugging */ 0, /*native message size */ - 0, /*messages are sharable? */ + H5O_SHARE_IS_SHARABLE, /*messages are sharable? */ H5O_bogus_decode, /*decode message */ H5O_bogus_encode, /*encode message */ NULL, /*copy the native value */ |