Commit Graph
24138 Commits
Author SHA1 Message Date
jhendersonHDF a8ceb1d95b Fix CVE-2025-6857 (#5799)
Add additional checks for v1 B-tree corruption
2025-09-20 08:25:00 -05:00
Dana Robinson fe8de456ae Use SSIZE_T for ssize_t on Windows (#5811)
The PR adds a compile assert to ensure that size_t and ssize_t
have the same size, just to be sure.

* Use SSIZE_T for ssize_t on Windows

* Use SSIZE_T and SSIZE_T_MAX

* Add missing header

* Exclude MinGW from ssize_t ifdefs
2025-09-19 08:09:58 -05:00
Allen Byrne ceea2c35de Allow cygwin to finish (#5844)
* Use env var to only show test output if there is a failure

* Remove the -VV from the command line

* Increase time and do one V
2025-09-17 22:09:14 -05:00
Dana Robinson c656ed8a27 Fix protection for __builtin_expect() in H5public.h (#5840)
This feature is required to be in H5public.h, but is protected by
an HDF5 feature test macro that will soon be private. There is also
no guarantee that the compiler used to build the software has the
same support for __builtin_expect() that the application compiler
has.

This PR updates the feature test checks for __builtin_expect()

Partial fix for #5819
2025-09-16 22:05:55 -05:00
Lori Cooper 6caaf23f6c Replace the RELEASE.txt file with CHANGELOG.md (#5778) 2025-09-16 15:41:39 -05:00
jhendersonHDF ea4b483d98 Unlink file free space section on failure to update data structures (#5815)
When linking a file free space section into a free space manager's
internal data structures, the library previously wouldn't unlink
the free space section when it failed to update the free space
manager's internal data structures. This could eventually result
in a use-after-free issue due to the stale reference kept around.
2025-09-16 13:14:21 -05:00
dependabot[bot] 957a509151 Bump lycheeverse/lychee-action from 1.9.3 to 2.0.2 in /.github/workflows (#5836) 2025-09-16 07:55:32 -05:00
jhendersonHDF f380be8c40 Update some incorrect macros in H5Fprivate.h (#5830)
Update some macros that were out of date due to not being
used inside the H5F package
2025-09-16 05:12:23 -05:00
Dana Robinson 3b47e2d227 Remove hbool_t from the public API (#5802)
* Remove hbool_t from the public API

This was previously removed from the source code, but the API calls
retained hbool_t in the public API calls. This commit removes
hbool_t from the public APIs.

hbool_t is retained as a typedef for bool in H5public.h so existing
code doesn't break.
2025-09-15 17:36:22 -05:00
Scot Breitenfeld 336318301c fixed linkchecker filename (#5827) 2025-09-15 14:46:42 -05:00
Dana Robinson f475d00cce Move H5pubconf.h.in from config to src (#5822) 2025-09-15 14:45:53 -05:00
Dana Robinson 5be9b57ccc Remove checks for sys/types.h (#5821)
This is present on all systems we support, including Windows. There is
no reason to check for it or hide its inclusion behind ifdefs.
2025-09-15 12:38:08 -05:00
jhendersonHDF 07c2dca003 Skip unicode tests for specific VFDs (#5823)
During testing, specific VFDs create files with names that
are different than the "base" filename passed to H5Fcreate().
The unicode tests are setup to expect specific filenames, so
these tests are skipped when the test utility function
h5_fixname() would modify the "base" filename.
2025-09-15 11:42:54 -05:00
Dana Robinson 8bcb79444b Don't include features.h in H5public.h (#5818)
This file is intended for internal glibc use and should not be included
from user code. Instead, you are supposed to set appropriate feature
test macros like _POSIX_C_SOURCE before including C/POSIX library
headers, which we already do.
2025-09-15 08:16:53 -05:00
Dana Robinson ecb4d5a8ef Update the include guard in H5pubconf.h (#5820) 2025-09-15 08:15:01 -05:00
Dana Robinson de775251ab Fix an snprintf warning in H5match_types.c (#5825)
gcc complains about writing too many characters into a buffer since
we're writing from a 2D array. This limits the output and quiets
the warnings.
2025-09-15 08:06:36 -05:00
Matt L 0a73bd9b57 Merge h5dump test macros (#5752) 2025-09-15 08:00:53 -05:00
Glenn Song 0a57195ca6 Fix CVE-2025-2924 (#5814) 2025-09-15 07:56:54 -05:00
Neil Fortner 57a2805f71 Doxygen updates for functions that use printf expansion (#5816)
* Doxygen updates related to printf parsing in family, multi, and split
drivers, and VDS. Update error message.
2025-09-15 07:54:47 -05:00
Scot Breitenfeld 54d34a2505 Link Checker Fix (#5826)
* Fixed the link checker error where table headers
  contained (\# of rows) and (\# of columns) with escaped hash symbols that Doxygen was
  incorrectly interpreting as malformed links.
2025-09-15 07:32:04 -05:00
Dana Robinson 683f80ac4b Remove 'cmake' from GitHub workflow yml filenames (#5824)
Now that we are CMake-only, there is no need to use cmake in the
GitHub CI yml filenames.
2025-09-14 20:40:39 -05:00
Scot Breitenfeld 0d3045f7cb Switched link checker (#5807)
Switch link checker to Lychee in GitHub workflow to reduce false positives and update workflow schedules and documentation links.
2025-09-12 22:08:22 -05:00
Dana Robinson 2a756b087f Remove "CMake" from CI names, descriptions, etc. (#5813)
These are leftovers from when the CI included Autotools builds.

Also changes ctest --> CTest in a few places.
2025-09-12 09:24:12 -05:00
Larry Knox fcfda621ba Allow setting CTEST_BUILD_NAME (#5812)
to set the test configuration Build Name for CDash.
2025-09-11 21:59:01 -05:00
jhendersonHDF 7461a98cb2 Revise approach to Unicode filenames on Windows (#5794)
Treat filenames as UTF-8 initially and fall back to ANSI functions
if conversion to UTF-16 fails

Adds new HDF5_PREFER_WINDOWS_CODE_PAGE environment variable to
prefer interpreting filenames according to the active Windows code
page rather than assuming UTF-8 encoding
2025-09-11 16:50:31 -05:00
jhendersonHDF b21c848829 Remove unused variables in test (#5808)
Fixes several warnings in Developer builds about variables declared past the start of the function
2025-09-11 14:56:42 -05:00
Dana Robinson 3776a66e8a Rename libhdf5.settings.cmake.in -> libhdf5.settings.in (#5805)
The `cmake` part of the name is an artifact from when there were
Autotools and CMake versions of this file.
2025-09-11 08:32:00 -05:00
Larry Knox ecc9b615ec Increment version subrelease digit to -2 (#5797) 2025-09-10 13:23:05 -05:00
Scot Breitenfeld ffbc655699 Resolve issue with left-hand side panel (#5762)
* enforce light mode for doxygen docs: removed dark theme elements

* fix TOC
2025-09-09 13:53:53 -05:00
Larry Knox f8d89333eb Remove setting HDF5 version for configure.ac (#5789)
Add setting HDF5 version for config/examples/HDF5AsSubdirMacros.cmake in bin/h5vers.
Set HDF5 version to 2.0.0-1 for snapshot release.
2025-09-09 08:21:32 -05:00
Neil Fortner 71f6b426ed Delay VDS mapping decoding until after the layout is copied to the dataset struct (#5779)
* Delay decoding VDS global heap block until the dataset is initialized,
so the layout in the ohdr does not have the VDS info. Also decode VDS
info before layout message copy.

* Add macro for searching for VDS source names in a hash table and adding
them if not found to reduce code duplication.
2025-09-08 11:47:46 -05:00
Allen Byrne 016639a526 add the s3-build workflow to release (#5787) 2025-09-08 07:37:28 -05:00
H. Joe Lee 54b7af8e83 chore: add space between publish and release (#5784)
`publishrelease` -> `publish release`
2025-09-08 07:35:42 -05:00
H. Joe Lee bd49cc0cb2 chore: remove duplicate options in comment (#5783) 2025-09-07 16:05:16 -05:00
Scot Breitenfeld 5b8af7182e Fixes warning message indicating that the H5_addr_defined(bt->right) macro might be evaluated with a null bt pointer (#5781) 2025-09-07 16:04:41 -05:00
Scot Breitenfeld 6826420421 moved link checking to only mergers (#5777)
Modify linkchecker.yml to run link checks only on merged pull requests to the develop branch.
2025-09-05 08:13:33 -05:00
Allen Byrne 57edfdab09 Generalize and ref source file for presets.dox tgz files (#5775)
Generalize TGZ file versioning and update source paths in Presets.dox for plugin and compression variables.
2025-09-05 07:49:02 -05:00
Scot Breitenfeld 0a106e22e6 skip doxygen processing of file and last PR comments updates (#5776)
Exclude CONTRIBUTING.md from Doxygen processing and update hyperlink and typo in CONTRIBUTING.md.
2025-09-04 11:31:26 -05:00
Scot Breitenfeld 6e0b7e5726 Updates CONTRIBUTING.md (#5768)
Updates CONTRIBUTING.md with a comprehensive guide for contributors, modifies a link in README.md, and renames a file path for consistency.
2025-09-04 08:05:14 -05:00
Larry Knox e3012ddc32 Set *PROVIDES* variables for all that are used in conditions for (#5757) 2025-09-04 08:03:43 -05:00
Matt L baa182a743 Add external ref test files to h5dumpgentest (#5761)
The trefer_extR test depends upon this pair of files, but always uses the pre-generated ones checked into the repo. This adds a routine to generate them, which will soon be used by the h5dump VOL tests.
2025-09-03 22:52:10 -05:00
Matt L 3d6d43ba87 Merge h5ls add-test macros (#5766)
Refactor ADD_H5_TEST macro in CMakeTests.cmake to consolidate test definitions and improve consistency.

Macros:
Consolidated ADD_H5_TEST and ADD_H5_ERR_TEST into a single ADD_H5_TEST macro in CMakeTests.cmake.
ADD_H5_TEST now accepts RESULT_CODE and optional RESULT_ERRCHECK as keyword arguments.

Test Definitions:
Updated all test invocations to use the new ADD_H5_TEST macro format with RESULT_CODE and RESULT_ERRCHECK where applicable.
Removed redundant ADD_H5_ERR_TEST macro usage.

Behavior:
Ensures consistent test setup and error handling across all h5ls tests.
2025-09-03 22:51:14 -05:00
Matt L 5ce77b3fea Separate test file generation from testing in external link reference test (#5760)
Move the portion of test_reference_external() in charge of test file creation to its own dedicated function. This will eventually be helpful if/when we change the test file creation here to used a shared routine.
2025-09-03 22:47:48 -05:00
Matt L 8093d2dd90 Remove unused args from h5diff test macro (#5753) 2025-09-02 06:43:06 -05:00
Scot Breitenfeld 2ae060f2fb enforce light mode for doxygen docs: removed dark theme elements (#5754) 2025-08-30 08:04:53 -05:00
Allen Byrne 00c0438cbe Fix conditional check for CMAKE_BUILD_TYPE (#5751)
The default is the empty string therefore it is defined
2025-08-29 11:14:53 -05:00
Scot Breitenfeld 0ab9576cb9 fixed color and only run the action from main repo (#5750) 2025-08-29 11:08:34 -05:00
Allen Byrne 05ce57609c Rename the install config variables to indicate library state (#5716)
This update systematically renames variables across 2.0+ CMake files in the HDF5Examples directory and configuration templates. The goal is to change variables from sounding like build "options" (e.g., HDF5_BUILD_TOOLS, HDF5_ENABLE_PARALLEL) to reflecting library "state" (e.g., what features the installed library provides).
2025-08-28 10:06:37 -05:00
Allen Byrne 09b81e98e3 Make sure there is a CMAKE_BUILD_TYPE available (#5741) 2025-08-28 08:38:49 -05:00
Scot Breitenfeld b58574e706 Fix the Gist path (#5749)
* updated gist id, fix path
2025-08-27 23:01:59 -05:00