hdf5/test
vchoi-hdfgroup 6b6bcdead6
Hdffv 11052 (#2315)
* Fix for HDFFV-11052: h5debug fails on a corrupted file (h5_nrefs_POC) producing a core dump.
When h5debug closes the corrupted file, the library calls H5F__dest() which performs all the
closing operations for the file "f" (H5F_t *) but just keeping note of errors in "ret_value"
all the way till the end of the routine.  The user-provided corrupted file has an illegal
file size causing failure when reading the image during the closing process.
At the end of this routine it sets f->shared to NULL and then frees "f".
This is done whether there is error or not in "ret_value".
Due to the failure in reading the file earlier, the routine then returns error.
The error return from H5F__dest() causes the file object "f" not being removed from the
ID node table.  When the library finally exits, it will try to close the
file objects in the table.  This causes assert failure when H5F_ID_EXISTS(f) or H5F_NREFS(f).
Fix:
a) H5F_dest(): free the f only when there is no error in "ret_value" at the end of the routine.
b) H5VL__native_file_close(): if f->shared is NULL, free "f"; otherwise, perform closing on "f" as before.
c) h5debug.c main(): track error return from H5Fclose().

* Committing clang-format changes

* Add test and release note info for fix to HDFFV-11052 which is merged via PR#2291.

* Committing clang-format changes

* Add the test file to Cmake.

* Skip test_misc37() for drivers that is not default compatible as it is using a pre-generated file.

* Committing clang-format changes

Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-16 13:47:29 -08:00
..
testfiles Multi Dataset (#2120) 2022-10-19 09:13:15 -07:00
accum_swmr_reader.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
accum.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
aggr.h5
app_ref.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
atomic_reader.c
atomic_writer.c Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
AtomicWriterReader.txt spelling fixes (#1561) 2022-03-31 10:42:30 -05:00
bad_compound.h5
bad_offset.h5
be_data.h5
be_extlink1.h5
be_extlink2.h5
big.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
bittests.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
btree2.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
btree_idx_1_6.h5
btree_idx_1_8.h5
cache_api.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cache_common.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cache_common.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cache_image.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cache_logging.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cache_tagging.c [WIP] Add Developer build mode to CMake (#1659) 2022-08-19 17:18:30 -07:00
cache.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
chunk_info.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
CMakeLists.txt Multi Dataset (#2120) 2022-10-19 09:13:15 -07:00
CMakePassthroughVOLTests.cmake Set default level to minimum time (#1722) 2022-05-17 11:54:05 -05:00
CMakeTests.cmake Hdffv 11052 (#2303) 2022-12-15 05:32:23 -08:00
CMakeVFDTests.cmake Subfiling VFD (#1883) 2022-07-22 13:03:12 -07:00
cmpd_dset.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cmpd_dtransform.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
cork.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
corrupt_stab_msg.h5
cross_read.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
cve_2020_10810.h5 Fixes a bad memory read and unfreed memory in fsinfo code (#893) 2021-08-12 07:21:50 -05:00
cve_2020_10812.h5 Hdffv 11052 (#2303) 2022-12-15 05:32:23 -08:00
dangle.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
deflate.h5
del_many_dense_attrs.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
direct_chunk.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
dsets.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
dt_arith.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
dtransform.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
dtypes.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
earray.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
efc.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
enc_dec_plist_cross_platform.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
enc_dec_plist.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
enum.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
err_compat.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
error_test.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
event_set.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
evict_on_close.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
extend.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
external_common.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
external_common.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
external_env.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
external_fname.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
external.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
family_v16-000000.h5 VFD plugins (#602) 2021-09-29 13:28:12 -05:00
family_v16-000001.h5 VFD plugins (#602) 2021-09-29 13:28:12 -05:00
family_v16-000002.h5 VFD plugins (#602) 2021-09-29 13:28:12 -05:00
family_v16-000003.h5 VFD plugins (#602) 2021-09-29 13:28:12 -05:00
farray.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
fheap.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
file_image_core_test.h5
file_image.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filenotclosed.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filespace_1_6.h5
filespace_1_8.h5
fill18.h5
fill_old.h5
fillval.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_error.h5
filter_fail.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_plugin1_dsets.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_plugin2_dsets.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_plugin3_dsets.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_plugin4_groups.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
filter_plugin.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
flush1.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
flush2.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
flushrefresh.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
flushrefreshTest.cmake
freespace.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
fsm_aggr_nopersist.h5
fsm_aggr_persist.h5
gen_bad_compound.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_bad_offset.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_bad_ohdr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_bogus.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_bounds.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_cross.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_deflate.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_file_image.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_filespace.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_filters.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_mergemsg.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_new_array.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_new_fill.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_new_group.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_new_mtime.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_new_super.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_noencoder.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_nullspace.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_old_array.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_old_group.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_old_layout.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_old_mtime.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_plist.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_sizes_lheap.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_specmetaread.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gen_udlinks.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
genall5.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
genall5.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
getname.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
gheap.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
group_old.h5
h5fc_ext1_f.h5
h5fc_ext1_i.h5
h5fc_ext2_if.h5
h5fc_ext2_sf.h5
h5fc_ext3_isf.h5
h5fc_ext_none.h5
h5test.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
h5test.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
H5srcdir_str.h.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
H5srcdir.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
hdfs.c Fix typos found in the rest of the hdf5 code-base (#1985) 2022-08-10 13:57:26 -07:00
hyperslab.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
istore.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
le_data.h5
le_extlink1.h5
le_extlink2.h5
lheap.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
links_env.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
links.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
Makefile.am Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
mdset.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
memleak_H5O_dtype_decode_helper_H5Odtype.h5
mergemsg.h5
mf.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
mirror_vfd.c GitHub workflow cleanup (#2047) 2022-08-22 08:21:27 -07:00
mount.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
mtime.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
multi_file_v16-r.h5
multi_file_v16-s.h5
noencoder.h5
none.h5
ntypes.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
null_vfd_plugin.c Merge initial version of selection I/O feature into develop (#1367) 2022-03-26 14:30:53 -05:00
null_vfd_plugin.h VFD plugins (#602) 2021-09-29 13:28:12 -05:00
null_vol_connector.c Updates VOL capabilities flags (#2105) 2022-09-17 09:49:38 -07:00
null_vol_connector.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
objcopy_ref.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
objcopy.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ohdr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
onion.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
page_buffer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
paged_nopersist.h5
paged_persist.h5
POSIX_Order_Write_Test_Report.docx
POSIX_Order_Write_Test_Report.pdf
reserved.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ros3.c Fix typos found in the rest of the hdf5 code-base (#1985) 2022-08-10 13:57:26 -07:00
s3comms.c Fix typos found in the rest of the hdf5 code-base (#1985) 2022-08-10 13:57:26 -07:00
set_extent.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ShellTests.cmake Plugin test cleanup (#1479) 2022-03-10 12:22:16 -06:00
space_overflow.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
specmetaread.h5
stab.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_addrem_writer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_common.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_common.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_generator.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
SWMR_POSIX_Order_UG.txt Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
swmr_reader.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_remove_reader.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_remove_writer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_sparse_reader.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_sparse_writer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr_start_write.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
SWMR_UseCase_UG.txt Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
swmr_writer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
swmr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tarray.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tarrold.h5
tattr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tbad_msg_count.h5
tbogus.h5
tcheck_version.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tchecksum.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tconfig.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tcoords.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_abort_fail.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_check_version.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_error.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_external_env.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_filters_be.h5
test_filters_le.h5
test_flush_refresh.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_libinfo.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_links_env.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_mirror.sh.in Correct concurrency bugs when running tests, along with a bugfix & small warning cleanup (#1683) 2022-04-26 11:07:15 -05:00
test_plugin.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_swmr.pwsh.in Plugin test cleanup (#1479) 2022-03-10 12:22:16 -06:00
test_swmr.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_use_cases.sh.in Plugin test cleanup (#1479) 2022-03-10 12:22:16 -06:00
test_vds_env.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
test_vds_swmr.pwsh.in Plugin test cleanup (#1479) 2022-03-10 12:22:16 -06:00
test_vds_swmr.sh.in Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
testframe.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
testhdf5.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
testhdf5.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
testmeta.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tfile.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tgenprop.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
th5_system.c Use case-insensitive comparison for headers fix #2100 (#2101) 2022-09-21 11:50:17 -05:00
th5o.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
th5s.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
th5s.h5
thread_id.c
tid.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
timer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
titerate.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tlayouto.h5
tmeta.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tmisc.c Hdffv 11052 (#2315) 2022-12-16 13:47:29 -08:00
tmtimen.h5
tmtimeo.h5
trefer_deprec.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
trefer_shutdown.c
trefer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
trefstr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tselect.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tsizeslheap.h5
tskiplist.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tsohm.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttime.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe_acreate.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe_attr_vlen.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe_cancel.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe_dcreate.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe_error.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
ttsafe.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tunicode.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tvlstr.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
tvltypes.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
twriteorder.c Fix typos found in the rest of the hdf5 code-base (#1985) 2022-08-10 13:57:26 -07:00
unlink.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
unregister.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
use_append_chunk_mirror.c Cleanup of mirror VFD test code (#1949) 2022-07-30 10:29:51 -07:00
use_append_chunk.c Fix compilation issues with Mingw (#1342) 2022-01-07 22:29:25 -06:00
use_append_mchunks.c Fix compilation issues with Mingw (#1342) 2022-01-07 22:29:25 -06:00
use_common.c Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
use_disable_mdc_flushes.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
use.h Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
vds_env.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
vds_swmr_gen.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
vds_swmr_reader.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
vds_swmr_writer.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
vds_swmr.h Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
vds.c Develop clang 13 format (#1933) 2022-07-26 14:45:46 -07:00
vfd_plugin.c Make sure plugin interface is initialized before property list interface phase 2 (#1216) 2021-11-23 08:04:11 -06:00
vfd.c Update copyright headers (#2184) 2022-11-01 16:02:27 -05:00
vol_plugin.c VFD plugins (#602) 2021-09-29 13:28:12 -05:00
vol.c Bug Fix: Segfault in H5CX_get_vol_wrap_ctx when H5VLwrap_register is called from an application (#2248) 2022-11-17 16:29:21 -06:00