summaryrefslogtreecommitdiffstats
path: root/src/H5Opkg.h
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2016-07-01 15:31:44 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2016-07-01 15:31:44 (GMT)
commitbfae878d8f2f65bc5f22f0d4bb314f326278ba7b (patch)
treebe8911f8043e17113428c44941b5036356952bf9 /src/H5Opkg.h
parent35e6928220ad9381b480f8e21e54027a9509fa36 (diff)
downloadhdf5-bfae878d8f2f65bc5f22f0d4bb314f326278ba7b.zip
hdf5-bfae878d8f2f65bc5f22f0d4bb314f326278ba7b.tar.gz
hdf5-bfae878d8f2f65bc5f22f0d4bb314f326278ba7b.tar.bz2
[svn-r30131] Fix bug reported by Cisco Talos TALOS-CAN-0178. Added check for a message that
should not be sharable being marked as sharable on disk, returns failure in this case. Needs testing. Tested: ummon
Diffstat (limited to 'src/H5Opkg.h')
-rw-r--r--src/H5Opkg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Opkg.h b/src/H5Opkg.h
index 14bb342..e40d28a 100644
--- a/src/H5Opkg.h
+++ b/src/H5Opkg.h
@@ -201,6 +201,7 @@
\
/* Set the message's "shared info", if it's shareable */ \
if((MSG)->flags & H5O_MSG_FLAG_SHAREABLE) { \
+ HDassert(msg_type->share_flags & H5O_SHARE_IS_SHARABLE); \
H5O_UPDATE_SHARED((H5O_shared_t *)(MSG)->native, H5O_SHARE_TYPE_HERE, (F), msg_type->id, (MSG)->crt_idx, (OH)->chunk[0].addr) \
} /* end if */ \
\