Commit Graph

22461 Commits

Author SHA1 Message Date
jhendersonHDF
41b61bfe53
Update hdfeos5 workflow concurrency group (#2766)
Changes concurrency group for hdfeos5 workflow so that it is separate from the concurrency group for the CI workflow
2023-04-16 18:37:06 -07:00
Dana Robinson
6713075fbc
Sanitize the attribute info message decode fxn (#2748)
Adds bounds checking on the buffer in the attribute info message's
decode function (H5O__ainfo_decode).
2023-04-16 18:01:33 -07:00
Dave Allured
dcd9219788
H5Spoint.c: Fix mistake in comment (#2750) 2023-04-16 13:07:02 -07:00
Dana Robinson
d5b9d52344
Remove dates and initials from RELEASE.txt entries (#2746) 2023-04-16 09:09:41 -07:00
Dana Robinson
afc2281bbf
Run parallel clang-format tasks (#2740)
Adds xargs arguments to enable running clang-format in parallel
2023-04-14 18:14:50 -07:00
Dana Robinson
f9c16de8a7
Fix memory leaks when processing OH cont messages (#2723)
Malformed object header continuation messages can result in a too-small
buffer being passed to the decode function, which could lead to reading
past the end of the buffer. Additionally, errors in processing these
malformed messages can lead to allocated memory not being cleaned up.

This fix adds bounds checking and cleanup code to the object header
continuation message processing.

Fixes #2604
2023-04-14 15:17:24 -07:00
Dana Robinson
88257af73d
Add Elena to the list of Fortran developers in CODEOWNERS (#2741) 2023-04-14 12:00:03 -07:00
Quincey Koziol
65ee20ac64
Cache macro parameter name consistency (#2738)
* More cache macro parameter consistency
2023-04-14 09:40:50 -07:00
Quincey Koziol
9de27b3591
Cache macro error consistency (#2739)
* Pass failure value consistently to all macro errors
2023-04-14 09:10:32 -07:00
Quincey Koziol
2ad5a25243
Move cache image macros (#2732)
* Move cache image stats macros to cache image source file

* Disable formatting on the macros
2023-04-14 05:55:06 -07:00
Quincey Koziol
2cb733ff1b
Cache macro tidy (#2731)
* Make cache macro parameter names more consistent
2023-04-14 05:54:00 -07:00
Kobrin Eli
10d4a6d094
Fix out of bounds in hdf5/src/H5Fint.c:2859 (#2691) 2023-04-13 14:37:10 -07:00
bmribler
65eff22348
Fixed GH-2603, heap-buffer-overflow in H5O__linfo_decode (#2697)
* Fixed GH-2603, heap-buffer-overflow in H5O__linfo_decode

Verified with valgrind -v --tool=memcheck --leak-check=full h5dump POV-GH-2603
The several invalid reads shown originally are now gone.
2023-04-13 14:35:45 -07:00
Dana Robinson
d6243791d4
Add a RELEASE.txt note for GH #2605 (#2724) 2023-04-13 14:34:50 -07:00
Quincey Koziol
4fa108dbbf
Remove unused macros (#2722)
* Remove unused macros
2023-04-13 13:33:06 -07:00
Allen Byrne
1c03b7d687
Fix java depends and pdb lib install (#2720)
* Fix java depends and pdb lib install

* Correct end of for loop depends

* fix location of set last_test
2023-04-13 12:11:35 -07:00
Quincey Koziol
18b8534174
Remove dead code for H5C__SLIST_OPT_ENABLED (#2721)
* Remove dead code for H5C__SLIST_OPT_ENABLED
2023-04-13 12:10:48 -07:00
Quincey Koziol
6e90b1fdb6
Refactor H5C_entry_in_skip_list (#2719)
* Refactor H5C__entry_in_skip_list to package scope
2023-04-13 11:25:50 -07:00
Allen Byrne
2ecfba97dd
Identify some options as advanced (#2717)
* Identify some options as advanced

Add explicit option statement to set default for CMake option

* Revert advanced setting for file locks
2023-04-13 10:36:48 -07:00
Dana Robinson
526d0d70e6
Update HDF-EOS5 workflow to mirror main.yml (#2710)
Adds paths to ignore, concurrency, etc.
2023-04-13 09:04:51 -07:00
Quincey Koziol
a55e31473d
Fix cache validate (#2718) 2023-04-13 09:01:14 -07:00
Quincey Koziol
85cdbfa02b
Refactor cache mark flush dep (#2711) 2023-04-12 22:19:46 -07:00
Quincey Koziol
e9a010aefa
Refactor cache validation (#2699)
* Correct concurrency bugs when running tests, along with a bugfix & small
warning cleanup.

* Committing clang-format changes

* Allow spaces (and tabs) in VOL connector info string from environment variable.

* Parse connector name from HDF5_PLUGIN_PATH environment variable better

* Correct H5VLquery_optional to use H5VL routine instead of H5I.  Also add an
error message to the failure return value from not finding a plugin.

* Play nice with existing plugin paths

* Use API routine to determine if native connector is terminal.

* Committing clang-format changes

* Make string size larger, to allow for connectors with longer names.

* Be more flexible about testing external pass through connectors, especially if
they have registered new optional operations.

* Make cache validation routines package local

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: AWS ParallelCluster user <ec2-user@ip-10-0-0-65.us-east-2.compute.internal>
Co-authored-by: Koziol <qkoziol@88665a374c70.ant.amazon.com>
2023-04-12 17:25:46 -07:00
jhendersonHDF
d67d709a3a
Remove duplicated H5_IS_BUFFER_OVERFLOW macro (#2700) 2023-04-12 12:56:51 -07:00
Allen Byrne
e94071fe53
Change name of test file to avoid conflict (#2701) 2023-04-12 12:50:46 -07:00
Dana Robinson
7b46484292
Revert "Added tables of CVE issues (#2685)" (#2696)
This reverts commit b749a4ef09.
2023-04-11 21:23:52 -07:00
bmribler
b749a4ef09
Added tables of CVE issues (#2685) 2023-04-11 23:08:27 -05:00
vchoi-hdfgroup
67d4b5eaf8
Fix for github issue #2599: (#2665)
* Fix for github issue #2599:
As indicated in the description, memory leak is detected when running "./h5dump pov".

The problem is: when calling H5O__add_cont_msg() from H5O__chunk_deserialize(),
memory is allocated for cont_msg_info->msgs.  Eventually, when the library tries to load
the continuation message via H5AC_protect() in H5O_protect(), error is
encountered due to illegal info in the continuation message.
Due to the error, H5O_protect() exits but the memory allocated for cont_msg_info->msgs is not freed.

When we figure out how to handle fuzzed files that we didn't generate,
a test needs to be added to run h5dump with the provided "pov" file.

* Add message to release notes for the fix to github issue #2599.
2023-04-11 23:06:29 -05:00
Dana Robinson
d1727fe8f3
Use additional CPUs in GitHub actions (#2695)
* Build: 3 CPUs
* Tests: 2 CPUs

For both Autotools and CMake
2023-04-11 20:58:39 -07:00
Quincey Koziol
82b7221208
Cache tidy (#2693)
* Correct concurrency bugs when running tests, along with a bugfix & small
warning cleanup.

* Committing clang-format changes

* Allow spaces (and tabs) in VOL connector info string from environment variable.

* Parse connector name from HDF5_PLUGIN_PATH environment variable better

* Correct H5VLquery_optional to use H5VL routine instead of H5I.  Also add an
error message to the failure return value from not finding a plugin.

* Play nice with existing plugin paths

* Use API routine to determine if native connector is terminal.

* Committing clang-format changes

* Make string size larger, to allow for connectors with longer names.

* Be more flexible about testing external pass through connectors, especially if
they have registered new optional operations.

* Bring style closer to library's agreed coding style

* Committing clang-format changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: AWS ParallelCluster user <ec2-user@ip-10-0-0-65.us-east-2.compute.internal>
Co-authored-by: Koziol <qkoziol@88665a374c70.ant.amazon.com>
2023-04-11 20:57:47 -07:00
glennsong09
367e4a3933
Clean up memory allocated when reading messages in H5Dlayout on error (#2602) (#2687) 2023-04-11 16:09:05 -05:00
mattjala
2eedc8e8f7
Fix invalid memory access in H5O__ginfo_decode (#2663) 2023-04-11 15:22:11 -05:00
jhendersonHDF
bc8fa3a477
Add buffer overrun checks to H5O__layout_decode and H5O__sdspace_decode (#2679)
Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
2023-04-11 14:47:51 -05:00
Scot Breitenfeld
2e7d8f7ed5
Perlmutter was fixed (#2677) 2023-04-11 14:41:06 -05:00
jhendersonHDF
b77cb393b8
Fix improper include of build directory (#2422, #2621) (#2667) 2023-04-11 14:31:25 -05:00
Julien Schueller
70d9616672
CMake: Let runtime checks through stdout only (#2666)
This avoids mixing emulators errors on stderr to configure results
while cross-compiling with wine.
2023-04-11 14:28:32 -05:00
H. Joe Lee
3bca79c7aa
ci: add HDF-EOS5 test action (#2415) (#2625) 2023-04-11 14:20:10 -05:00
jhendersonHDF
027ee7c633
Fix a heap buffer overflow during H5D__compact_readvv (GitHub #2606) (#2664) 2023-04-11 14:08:46 -05:00
Allen Byrne
281071907b
Remove -Wunused-but-set-variable warnings in tests (#2661) 2023-04-11 14:07:14 -05:00
Dana Robinson
92177ef21e
Update release schedule (#2692) 2023-04-11 11:01:54 -07:00
Quincey Koziol
3290889de3
Dead code removal (#2690)
* Correct concurrency bugs when running tests, along with a bugfix & small
warning cleanup.

* Committing clang-format changes

* Allow spaces (and tabs) in VOL connector info string from environment variable.

* Parse connector name from HDF5_PLUGIN_PATH environment variable better

* Correct H5VLquery_optional to use H5VL routine instead of H5I.  Also add an
error message to the failure return value from not finding a plugin.

* Play nice with existing plugin paths

* Use API routine to determine if native connector is terminal.

* Committing clang-format changes

* Make string size larger, to allow for connectors with longer names.

* Be more flexible about testing external pass through connectors, especially if
they have registered new optional operations.

* Dead code removal

* Committing clang-format changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: AWS ParallelCluster user <ec2-user@ip-10-0-0-65.us-east-2.compute.internal>
Co-authored-by: Koziol <qkoziol@88665a374c70.ant.amazon.com>
2023-04-11 09:30:02 -07:00
Quincey Koziol
49a71463a0
Comment cleanup (#2689)
* Clean up content and redundant logging in comments.
2023-04-11 09:41:32 -05:00
Dana Robinson
1ad030f669
Remove dead code hidden behind #ifdef LATER (#2686) 2023-04-10 11:39:46 -07:00
Allen Byrne
fc91e8856f
Fix #2598 sanitize leak (#2660) 2023-04-07 10:35:51 -07:00
Allen Byrne
526f0769a3
Minor fixes for CMake code and install docs (#2623) 2023-04-03 14:38:10 -07:00
Allen Byrne
fa388e6ba4
Update java logger version (#2643) 2023-04-03 14:36:23 -07:00
jhendersonHDF
b8c27cec17
Minor fixes for Subfiling VFD tests (#2633) 2023-04-03 13:09:08 -05:00
jhendersonHDF
f105dcc20a
Synchronize HDF5 tests with VOL tests (#2628) 2023-04-03 13:08:39 -05:00
Dana Robinson
1c1af33a12
Fix memory leaks and aborts in H5O EFL decode (#2656)
* Convert asserts to error handling in efl decode

The function that decodes external data files object header messages
would call assert() when parsing malformed files, causing applications
to crash when linked against the debug library.

This change converts these assert() calls to HDF5 error checks, so
the messages are sanity checked in both release and debug mode and
debug mode no longer crashes applications.

Also cleaned up some error handling usage and debug checks.

* Free memory on H5O efl decode errors

* Add buffer size checks to efl msg decode

* Add parentheses to math expressions

Fixes GitHub #2605
2023-04-03 11:06:36 -07:00
jhendersonHDF
7b426bf3ea
CMake - Match Autotools behavior for library instrumentation (#2648)
Enable library instrumentation by default for parallel debug builds
2023-03-31 22:38:15 -05:00