summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper.c
Commit message (Collapse)AuthorAgeFilesLines
* H5F_LIBVER_LATEST changes for move to 1.15 (#2288)Allen Byrne2022-12-211-0/+1
| | | | | | | | | | | | | | | * H5F_LIBVER_LATEST changes for move to 1.15 * Add new default api check * Format fixes * Fix default configure * fix lib version tests * Fix another version variable * Add 1.14 doc link
* CVE 2021 46242 develop (#2255)Egbert Eich2022-12-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | * When evicting driver info block, NULL the corresponding entry Since H5C_expunge_entry() called (from H5AC_expunge_entry()) sets the flag H5C__FLUSH_INVALIDATE_FLAG, the driver info block will be freed. NULLing the pointer in f->shared->drvinfo will prevent use-after-free when it is used in other functions (like H5F__dest()) - as other places will check whether the pointer is initialized before using its value. This fixes CVE-2021-46242 / Bug #2254 Signed-off-by: Egbert Eich <eich@suse.com> * When evicting the superblock, NULL the corresponding entry The call to H5AC_expunge_entry() will free the corresonding structure, to avoid a use-after-free, the corrsponding pointer entry will be NULLed. Signed-off-by: Egbert Eich <eich@suse.com> Signed-off-by: Egbert Eich <eich@suse.com>
* Update copyright headers (#2184)Larry Knox2022-11-011-1/+0
| | | | | * Updated source file copyright headers to remove "Copyright by the Board of Trustees of the University of Illinois", which is kept in the top-level COPYING file.
* Develop clang 13 format (#1933)Allen Byrne2022-07-261-5/+5
| | | | | * Update format source to clang 13 * More format changes
* Convert assertion on (possibly corrupt) file contents to normal error check ↵jhendersonHDF2022-07-081-1/+3
| | | | | | | | | (#1861) * Convert assertion on (possibly corrupt) file contents to normal error check * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Removes the STATIC flavor of FUNC_ENTER macros (#1622)Dana Robinson2022-04-081-2/+2
| | | | | * Removes the STATIC flavor of FUNC_ENTER macros
* Fixed Spelling Errors (#1166)Scot Breitenfeld2021-12-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed missed closing of a dataset * fixed missed closing of a dataset * fixed typo in error return * Committing clang-format changes * minor edits * code format * Committing clang-format changes * code format * minor edit * switched from using MPI_count, to actual bytes written for H5FD_mpio_debug rw debugging * Committing clang-format changes * changed size_i in printf to reflect the I/O. * Committing clang-format changes * Fixed seg fault with xlf on BE with -qintsize=8 * fixed error function string * spelling corrections via codespell, added new spell check github actions * Committing clang-format changes * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * Committing clang-format changes * misc * misc * misc * misc * misc * misc * Committing clang-format changes * misc * work around for https://github.com/codespell-project/codespell/issues/2137 * misc * added missing file * misc * misc. * misc * switch to using Codespell with GitHub Actions * misc. * misc. * fixed more sp errors * Fix new typos found by codespell. * fixed proceed with precede * fixed variable in fortran test * fixed minnum * updated spelling list Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
* Fix several warnings (#720)jhendersonHDF2021-09-141-1/+1
|
* Update clang config (#473)Quincey Koziol2021-03-171-1/+4
| | | | | | | * Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Update license url (#332)Larry Knox2021-02-171-1/+1
| | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - src and test directories.
* develop revert source to clang-format version 11 (#293)Allen Byrne2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * OESS-98 convert plugin option to FetchContent, add tests * Fixes for pkcfg files because of plugin option * OESS-98 fix tools test for plugins * Keep doxygen comments under 100 chars long - format hint * Whitespace * HDFFV-11144 - Reclassify CMake messages * HDFFV-11099/11100 added help text * Reworked switch statement to compare string instead * Fix typo * Update CDash mode * Correct name of threadsafe * Correct option name * Undo accidental commit * Note LLVM 10 to 11 format default changes * Update format plugin * Undo clang-format version 11 changes * One more correction
* Basic alignment with async branch (#115)Quincey Koziol2020-11-231-7/+7
| | | | | | | * Basic alignment with async branch - trivial changes to reduce clutter in overall diff. * Update minor error code to reflect change within library * Update the error output to match library
* Clang-format of source filesAllen Byrne2020-09-301-416/+423
|
* Clean up private / package / static namespace issues (function naming, whichQuincey Koziol2020-08-061-4/+1
| | | | | | header file, FUNC_ENTER / LEAVE, etc). Removed remaining personal email addresses from library source code (still needs cleaned from other directories). Misc. warning, style, and whitespace cleanup.
* Changed wording in comment.Binh-Minh Ribler2020-06-301-2/+2
|
* - added comment to explain a klugeBinh-Minh Ribler2020-06-291-0/+2
| | | | - added the associated entry to release notes
* Fix HDFFV-11053Binh-Minh Ribler2020-05-261-0/+4
| | | | | | | | | | | | | | | | | | | | | Description: A superblock pointer was set to a temporary structure, as a kluge, and meant to be reset back to NULL after the processing was completed. However, in the case of failure before the completion, this setting caused the superblock pointer to be unpinned twice in the error recovery process. As a result, that generated a segfault in h5clear. The fix resets the superblock pointer to NULL after H5F__super_ext_remove_msg fails so that h5clear can fail properly. Note: After the fix, when built in debug mode, there will be an assertion failure with the user's file, which appeared to be corrupted: H5MM_final_sanity_check: Assertion `0 == H5MM_curr_alloc_bytes_s' failed. This did not happen on a good file or on the corrupted file with the library built in production mode. The un-freed memory were allocated during error recovery. Platforms tested: Linux/64 (jelly)
* Yanked -Wc++-compat from the flags used to build the C library in bothDana Robinson2019-12-041-1/+1
| | | | the Autotools and CMake.
* Update versioning to next major versionAllen Byrne2019-09-251-68/+69
|
* Add support for GCC9, update warnhist script, and clean up warnings.Quincey Koziol2019-07-031-1/+0
|
* Merge branch 'develop' into feature/update_gcc_flagsQuincey Koziol2019-06-281-86/+41
|\
| * Merge pull request #1781 in HDFFV/hdf5 from ↵Dana Robinson2019-06-281-56/+4
| |\ | | | | | | | | | | | | | | | | | | ~DEROBINS/hdf5_der:develop_minor_pr to develop * commit 'f83d034105e2c72210dd41723044acca37a6d735': Refactored some fsinfo code from H5Fsuper.c to H5Ofsinfo.c.
| | * Refactored some fsinfo code from H5Fsuper.c to H5Ofsinfo.c.Dana Robinson2019-06-271-56/+4
| | |
| * | (1) Add/remove comments.Vailin Choi2019-06-271-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (2) A temporary fix to address the test/objcopy.c: test_copy_group_deep() test failure with the family driver. The test failure occurs with these configurations in objcopy.c: --with shared src messages (CONFIG_SHARE_SRC) --without shared dst messages (CONFIG_SHARE_DST) --with latest format for source file (CONFIG_SRC_NEW_FORMAT) --without dense attributes (CONFIG_DENSE) --with latest format for destination file (CONFIG_DST_NEW_FORMAT) The temporary fix is in src/H5MFaggr.c (see comments above #ifdef REPLACE/#endif).
| * | Merge branch 'develop' of ↵Vailin Choi2019-06-261-0/+63
| |\ \ | | |/ | | | | | | https://bitbucket.hdfgroup.org/scm/~vchoi/my_third_fork into bugfix/new_shutdown_fsm
| * | Merge pull request #8 in ~VCHOI/my_third_fork from develop to ↵Vailin Choi2019-06-241-7/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix/new_shutdown_fsm * commit '35fd0ec8ceffe96cee352187154da15c967fb990': Updated H5Tcopy() to get the dataset's datatype through the VOL when that is passed in as the object ID. Fix fortran test and test library linking Update GCC 6 & 7 flags for CMake builds Move -Wnormalized down into GCC 6.x flags Put the memcpy overlap check back into H5MM. Fixed the heap overflow in t_filters_parallel Fixed some low-hanging fruit from -fsanitize in t_filters_parallel. Add lib dir for testing plugins Add support for GCC 7.x warnings, update warnhist script to account for them, clean up warnings. Add H5_HLDLL prefix for windows link HDFFV-10805 cleanup examples and test code Fix minor typo in H5S_select_iter_release Add missing fortran mods HDFFV-10805 Fix test of library libinfo Cleanup possible CMake target conflicts Correct CMake issues
| * | | Checkin for new shutting down free-space manager.Vailin Choi2019-06-201-16/+22
| | | |
* | | | Updated configure & CMake compiler flags for GCC 8.x, along with correspondingQuincey Koziol2019-06-281-8/+9
| |_|/ |/| | | | | | | | | | | changes to warnhist script (and some extra improvements for condensing C++ and Java warnings), and fixed a bunch of warnings.
* | | Add release notes.Vailin Choi2019-06-251-2/+1
| | |
* | | Fix for HDFFV-10808 H5Pset_file_space_strategy succeeds when using ↵Vailin Choi2019-06-241-0/+64
| |/ |/| | | | | | | | | | | H5Pset_libver_bounds v18,v18. Fails file creation when non-default free-space info is set in fcpl and the library version high bound is less than v110 because free-space info message is introduced in library release v110.
* | Add support for GCC 7.x warnings, update warnhist script to account for them,Quincey Koziol2019-06-211-7/+4
|/ | | | clean up warnings.
* Set V112 as the latest format and extend the arrays of version bounds.Vailin Choi2019-04-041-0/+1
|
* Added an H5MM_memcpy call that checks for buffer overlap.Dana Robinson2019-03-161-1/+1
|
* Remainder of vol_normalization changes (dataset, attribute, files, objects).Dana Robinson2018-09-241-56/+59
|
* Fixed HDFFV-10404Binh-Minh Ribler2018-07-131-3/+3
| | | | | | | | | Description: Applied the typo fixes from user's report. The previous pull request couldn't be merged because it was too old, and it was too complicated for me to resolve conflicts. Platform tested: Linux/64 (jelly) - very minor
* Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into ↵Quincey Koziol2018-03-181-56/+196
|\ | | | | | | | | | | merge_func_enter_vol Plus initial steps toward merging API context push into FUNC_ENTER_API* macros
| * Enhancement to the tool h5clear (HDFFV-10360)Vailin Choi2018-03-121-27/+85
| |
| * Fix bounds check for the generation of cache image.Vailin Choi2018-01-221-4/+0
| |
| * Changes made based on code reviews.Vailin Choi2018-01-121-17/+70
| |
| * (1) Merge branch 'develop' into bugfix/version_boundsVailin Choi2017-11-251-0/+4
| |\ | | | | | | | | | | | | | | | (2) Add two new options to h5repack for low and high bounds as in H5Pset_libver_bounds. (3) Modify message pre_copy callbacks so that H5Ocopy can handle version bounds check. (4) Add version bounds check for cache image feature.
| * \ Merge branch 'develop' into bugfix/version_boundsVailin Choi2017-10-171-40/+87
| |\ \ | | |/
| * | Initial checkin for library version boundsVailin Choi2017-10-031-13/+33
| | | | | | | | | | | | Code changes to provide versioning support when adding to the enumerated defines for H5F_libver_t.
* | | Add API context interface and use it throughout the library.Quincey Koziol2018-03-151-155/+125
| |/ |/|
* | Try to address most of the issues raised by Dana in the code reviewRichard Warren2017-10-111-51/+51
| |
* | Add a test for parallel reads of independent files using MPI subgroupsRichard Warren2017-10-091-11/+7
| |
* | Edits to the file open optimization and associated testmainzer2017-10-051-11/+36
| | | | | | | | | | | | | | code to bring them closer to the HDF5 library's unwritten coding standards. Also bug fix to repair a hang in testphdf5. Tested parallel/debug on Charis and Jelly, parallel/production on Jelly.
* | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into ↵Richard Warren2017-09-281-0/+3
|\ \ | |/ | | | | optimize_superblock_read
| * Style cleanups and misc. bugfixes discovered during full SWMR development.Quincey Koziol2017-09-231-0/+3
| |
* | The initial coding for the superblock read optizationRichard Warren2017-09-281-2/+28
|/
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.