summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2020-06-30 06:04:24 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2020-06-30 06:04:24 (GMT)
commit267ff9065ba9f42fec05cdcae0caa90536a04392 (patch)
treee939e3b93db556d85078b7b5ccb767cd9ca6f27f /src
parent23cc4ce636a096a8f80905f87ee9c2f84f3154b5 (diff)
parentb155a777629e991374fa2f8609719cb861de4cc2 (diff)
downloadhdf5-267ff9065ba9f42fec05cdcae0caa90536a04392.zip
hdf5-267ff9065ba9f42fec05cdcae0caa90536a04392.tar.gz
hdf5-267ff9065ba9f42fec05cdcae0caa90536a04392.tar.bz2
Merge pull request #2609 in HDFFV/hdf5 from ~BMRIBLER/hdf5-bmr:develop to develop
Fix HDFFV-11053 (CVE-2020-10810) * commit 'b155a777629e991374fa2f8609719cb861de4cc2': Changed wording in comment. - added comment to explain a kluge - added the associated entry to release notes Fix HDFFV-11053
Diffstat (limited to 'src')
-rw-r--r--src/H5Fsuper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index e5d4cde..9fd2831 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -897,7 +897,13 @@ H5F__super_read(H5F_t *f, H5P_genplist_t *fa_plist, hbool_t initial_read)
}
else {
if(H5F__super_ext_remove_msg(f, H5O_FSINFO_ID) < 0)
+ {
+#if 1 /* bug fix test code -- tidy this up if all goes well */ /* JRM */
+ f->shared->sblock = NULL;
+#endif /* JRM */
+
HGOTO_ERROR(H5E_FILE, H5E_CANTDELETE, FAIL, "error in removing message from superblock extension")
+ }
if(H5F__super_ext_write_msg(f, H5O_FSINFO_ID, &fsinfo, TRUE, H5O_MSG_FLAG_MARK_IF_UNKNOWN) < 0)
HGOTO_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, "error in writing fsinfo message to superblock extension")