Commit Graph

22641 Commits

Author SHA1 Message Date
mattjala
364145f144
Prevent buffer overrun in H5S_select_deserialize (#2931)
* Prevent buffer overrun in H5S_select_deserialize

The call to H5S_select_deserialize from H5S_decode doesn't have
the buffer size available to it, so to allow decoding there
I set it to assume a max size buffer for now.

Making the buffer size known in H5S_decode could be done by
modifying the external API's H5Sdecode, or splitting H5Sdecode
into two functions using a macro (similar to H5Sencode), with the
macro taking one argument and assuming a max buffer size.

* Conditional buffer check in H5S_select_deserialize

Moved and renamed a macro for only checking buffer overflow when
buffer size is known from H5Odtype.c to H5private.h,
so it can be used throughout the library.

Also silenced some build warnings about types.
2023-05-12 13:22:55 -07:00
Quincey Koziol
0d4a12d7cd
Move functions into more focused source code modules (#2936)
* Move functions into more focused source code modules, along with a small #
of directly secondary effects.  No actual changes to the contents of any
moved routines.

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-12 14:52:11 -05:00
Dana Robinson
2a2c2d9ebe
Bump Autoconf version to 2.71 (#2944)
Required for building with Intel's oneAPI
2023-05-11 17:04:09 -07:00
Allen Byrne
909dcc420d
Update action uses version (#2937) 2023-05-11 08:18:54 -07:00
Quincey Koziol
1a89fa23fc
More code duplication reduction (#2930)
* Add failure value where it's missing from 1+ macros.  Clean up
whitespace / continuation characters ('\').  Made hash-table macros generic
for use in both the package header and test header.  Remove duplicated
copy & pasted macros (by hoisting difference into #ifdef'd macro).
Updated and re-flowed comments to read better.

Also clean up a few compiler warnings in production builds.

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* Committing clang-format changes

* Remove unused variable warning in H5C.c (#2844)

* Remove trailing /* NDEBUG */ comment from #endif's

* Committing clang-format changes

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 15:19:18 -05:00
H. Joe Lee
80cf406647
Remove unused variable warning in H5C.c (#2844) 2023-05-09 09:11:29 -07:00
Quincey Koziol
0bbed84be2
Reduce code duplication in macros (#2914)
* Reduce code duplication in macros

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

* "insert" -> "remove" in error string

Signed-off-by: Quincey Koziol <koziol@lbl.gov>

* Remove unused macro also

Signed-off-by: Quincey Koziol <quincey@koziol.cc>

---------

Signed-off-by: Quincey Koziol <quincey@koziol.cc>
Signed-off-by: Quincey Koziol <quincey@koziol.cc>
2023-05-08 13:12:41 -05:00
Dana Robinson
930a91b587
Public header cleanup (#2923)
Removes unnecessary headers and adds missing headers, ensuring
that headers can be included independently and in any order.

Fixes #2789
2023-05-06 18:12:32 -07:00
Dana Robinson
038216e2cf
Add Doxygen for H5ES_NONE _WAIT_NONE/FOREVER (#2922) 2023-05-06 15:36:14 -07:00
Dana Robinson
6162b6f12e
Add Doxygen for H5S_ALL, _PLIST, and _BLOCK (#2921)
Fixes #688
2023-05-06 15:35:55 -07:00
Allen Byrne
4b228ec6af
Fix CMake generator expression syntax (#2909) 2023-05-05 15:57:40 -05:00
Quincey Koziol
cc4d63b026
Fix mirror VFD test timeouts (#2915)
* Close & re-open socket when looping for timeouts

* Committing clang-format changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-05 15:34:17 -05:00
jhendersonHDF
85077e83e0
Fix some compile failures in API tests (#2913) 2023-05-05 13:34:04 -07:00
Scot Breitenfeld
197e7792a1
Added summary report to test big IO (#2908) 2023-05-05 10:52:25 -07:00
Dana Robinson
89902c51dd
Move the 1.10.11 release to September (#2898) 2023-05-05 09:17:00 -07:00
Allen Byrne
2c3797d7bd
remove obsolete SZIP find module (#2901) 2023-05-05 09:07:16 -07:00
Dana Robinson
6fbbfa735f
Remove 1.8 badge from README.md (#2895) 2023-05-05 09:06:41 -07:00
Dana Robinson
b9bc465873
Remove H5TB discussion (#2899) 2023-05-05 08:28:59 -07:00
Scot Breitenfeld
654dd01525
Force lowercase Fortran module file names (#2891)
* fixed args in execvp for h5fuse

* Force lowercase Fortran module file names for Cray compilers
2023-05-03 22:03:58 -05:00
jhendersonHDF
25a8ba9fde
Add RELEASE.txt entry for API tests (#2889) 2023-05-03 14:11:38 -07:00
Allen Byrne
1054efdaf8
Add missing terminator (#2888) 2023-05-03 14:09:26 -07:00
jhendersonHDF
44fafa4a84
Remove references to old MANIFEST file (#2890) 2023-05-03 13:24:14 -07:00
jhendersonHDF
f50d67a1ba
Fix Autotools internal-debug=all builds (#2886) 2023-05-03 11:47:17 -05:00
Scot Breitenfeld
8435e5d2d9
fixed args in execvp for h5fuse (#2885) 2023-05-03 11:46:59 -05:00
jhendersonHDF
a1a5d027a2
Minor tidying of API tests files (#2878)
* Minor tidying of API tests files

* Remove old API test configuration setting
2023-05-03 11:46:31 -05:00
Allen Byrne
571990d5c4
Changes to isolate API Test option files and use fetchcontent (#2880) 2023-05-03 11:45:16 -05:00
jhendersonHDF
f8a1b3ceec
Add initial version of HDF5 API tests (#2877) 2023-05-02 12:52:39 -07:00
Scot Breitenfeld
41fd8e66a9
Fixed test failure for when REAL is promoted via a compiler flag (#2873) 2023-05-02 09:56:52 -07:00
Larry Knox
686b76524f
Redo remove selection I/O test from testphdf5 in CMake #2860. (#2874) 2023-05-02 09:02:26 -07:00
Dana Robinson
ad8c26e9f7
Add bin directory to make distclean (#2872)
This allows h5cc to be cleaned up
2023-05-01 22:25:25 -07:00
Dana Robinson
07e94155a7
Harden H5O cache deserialize calls (#2856) 2023-05-01 16:24:14 -07:00
Scot Breitenfeld
a0340338e5
Add Fortran Selection IO APIs (#2864)
new selection IO fortran APIs with tests
2023-05-01 15:21:47 -07:00
Allen Byrne
9ea976b9b6
Remove duplicate variable for configuration use (#2870) 2023-05-01 15:20:17 -07:00
Allen Byrne
a61eff84c1
Correct usage of CMAKE_BUILD_TYPE (#2863)
Fixes a problem when using multi-config builds with the CMake GUI
2023-05-01 12:46:04 -07:00
Neil Fortner
62058276a9
Skip page buffer test for "no selection I/O cause" when using split or multi driver (#2866) 2023-05-01 14:31:09 -05:00
Dana Robinson
265494b5b9
Remove "the the" from comments and docs (#2865) 2023-05-01 09:06:39 -07:00
Allen Byrne
0dceadf245
Use powershell shell to copy files (#2858) 2023-04-30 12:56:11 -07:00
Dana Robinson
5414b8c318
Fix memory leaks in H5Dwrite w/ selection I/O (#2859) 2023-04-30 12:46:33 -07:00
Dana Robinson
9fb85dbf4d
Remove selection I/O test from testphdf5 in CMake (#2860)
t_select_io_dset is a stand-alone program, not a part of testphdf5.
2023-04-30 12:10:45 -07:00
Dana Robinson
97245c3b2a
Fix TRACE macros in selection I/O plist calls (#2857) 2023-04-30 10:26:26 -07:00
Allen Byrne
2c6316ec57
Add DT workflow for creating daily binaries (#2843) 2023-04-29 12:36:17 -05:00
H. Joe Lee
c66eaccde0
chore(configure.ac): fix output message for enabling tools (#2684) (#2854)
Close #2684.
2023-04-29 12:35:33 -05:00
Dana Robinson
12907de998
Don't use strnlen when len is not known (#2855)
The datatype object header message decode function was updated to do
bounds checking on the decode buffer. This buffer may arrive with
no buffer size via H5Tdecode(), in which case the buffer size will
have been set to SIZE_MAX by the library.

This fix changes the string length calls to strlen when we don't
know the buffer size (and avoids a potential compiler bug
with icc 17).
2023-04-29 12:35:13 -05:00
Dana Robinson
46cedc2eb0
Converted H5D asserts to normal error checking (#2842)
These cases can trip when processing malformed files and it's better
to invoke normal HDF5 error handling than crash a process.
2023-04-28 17:12:51 -07:00
Neil Fortner
3236fb79ce
Implement selection I/O with type conversion (#2823)
Initial implementation of selection I/O with type conversion.  Allows
Parallel collective I/O with type conversion, as long as selection I/O
is enabled.
2023-04-28 16:58:25 -07:00
jhendersonHDF
4497feb575
Update H5Dget_space_status bug note to reference 1.14.0 (#2839) 2023-04-28 09:10:48 -07:00
H. Joe Lee
443ef49ab6
Remove unused variable warning (#2828)
Polaris FORTRAN compiler reported the unused variable warning.
2023-04-28 09:08:59 -07:00
Allen Byrne
2b7afc2727
Correct compression install files (#2838) 2023-04-28 09:02:38 -07:00
Scot Breitenfeld
8e8d98319b
h5fuse.sh fix for summit. (#2841)
* updated directory locations
2023-04-28 07:45:29 -05:00
jhendersonHDF
b5ecb0af6d
Subfiling VFD - check if MPI is finalized during VFD termination (#2683) 2023-04-27 11:52:11 -05:00