hdf5/release_docs
vchoi-hdfgroup 0cb5808087
Hdffv 11052 (#2303)
* 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.

Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-15 05:32:23 -08:00
..
HISTORY-1_0-1_8_0_rc3.txt spelling fixes (#1561) 2022-03-31 10:42:30 -05:00
HISTORY-1_8_0-1_10_0.txt spelling fixes (#1561) 2022-03-31 10:42:30 -05:00
HISTORY-1_8.txt Fixes codespell issues (#2032) 2022-08-17 16:31:54 -07:00
HISTORY-1_10_0-1_12_0.txt Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
HISTORY-1_10.txt Fixes codespell issues (#2032) 2022-08-17 16:31:54 -07:00
HISTORY-1_12.txt Update release text files (#109) 2020-11-23 12:04:49 -06:00
HISTORY-1_13.txt Update link for Software Changes in RELEASE.txt. (#2205) 2022-11-01 16:14:52 -05:00
INSTALL Set default level to minimum time (#1722) 2022-05-17 11:54:05 -05:00
INSTALL_CMake.txt Removes the memory allocation sanity checks feature (#2218) 2022-11-03 16:30:08 -07:00
INSTALL_Cygwin.txt Fixed Spelling Errors (#1166) 2021-12-07 08:27:29 -06:00
INSTALL_parallel Updated the parallel install docs. 2018-12-31 05:07:30 -08:00
INSTALL_Warnings.txt Removed mentions of Wdeclaration-after-statement now that C99 is requ… (#447) 2021-05-03 09:08:37 -05:00
INSTALL_Windows.txt
README_HDF5_CMake Update examples reference to single-source version 2.0.1 (#2107) 2022-09-20 17:21:15 -05:00
README_HPC Update CMake code to 3.18 minimum version (#2080) 2022-09-02 17:31:29 -07:00
RELEASE.txt Hdffv 11052 (#2303) 2022-12-15 05:32:23 -08:00
USING_CMake_Examples.txt Update CMake code to 3.18 minimum version (#2080) 2022-09-02 17:31:29 -07:00
USING_HDF5_CMake.txt Update CMake code to 3.18 minimum version (#2080) 2022-09-02 17:31:29 -07:00
USING_HDF5_VS.txt Update examples and fix old version references. 2020-02-26 13:54:34 -06:00