hdf5/test
Dana Robinson b0af7cf58b
Fixed asserts due to H5Pset_est_link_info() values (#4081)
* Fixed asserts due to H5Pset_est_link_info() values

If large values for est_num_entries and/or est_name_len were passed
to H5Pset_est_link_info(), the library would attempt to create an
object header NIL message to reserve enough space to hold the links in
compact form (i.e., concatenated), which could exceed allowable object
header message size limits and trip asserts in the library.

This bug only occurred when using the HDF5 1.8 file format or later and
required the product of the two values to be ~64k more than the size
of any links written to the group, which would cause the library to
write out a too-large NIL spacer message to reserve the space for the
unwritten links.

The library now inspects the phase change values to see if the dataset
is likely to be compact and checks the size to ensure any NIL spacer
messages won't be larger than the library allows.

Fixes GitHub #1632

* Fix copy-paste comments
2024-03-07 18:36:58 -08:00
..
API Close and reopen file during dset vlen IO API tests (#4050) 2024-03-07 09:07:05 -08:00
testfiles Develop tools move (#3580) 2023-09-26 13:46:55 -07:00
accum_swmr_reader.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
accum.c Remove printf format warning on Windows oneAPI. (#3838) 2023-11-10 11:14:07 -06:00
app_ref.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
atomic_reader.c Use HDoff_t with lseek consistently (#3600) 2023-09-26 11:38:07 -07:00
atomic_writer.c Use HDoff_t with lseek consistently (#3600) 2023-09-26 11:38:07 -07:00
AtomicWriterReader.txt
big.c Use HDoff_t with lseek consistently (#3600) 2023-09-26 11:38:07 -07:00
bittests.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
btree2.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
cache_api.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
cache_common.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
cache_common.h Improve performance of flushing single objects (#4017) 2024-02-23 09:06:06 -08:00
cache_image.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
cache_logging.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
cache_tagging.c Improve performance of flushing single objects (#4017) 2024-02-23 09:06:06 -08:00
cache.c Improve performance of flushing single objects (#4017) 2024-02-23 09:06:06 -08:00
chunk_info.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
CMakeLists.txt Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859) 2023-11-22 07:51:30 -06:00
CMakePassthroughVOLTests.cmake Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859) 2023-11-22 07:51:30 -06:00
CMakeTests.cmake Rename incorrectly named option (#4067) 2024-03-05 09:07:16 -08:00
CMakeVFDTests.cmake Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859) 2023-11-22 07:51:30 -06:00
cmpd_dset.c Fix uninitialized bytes in cmpd_dset test (#4072) 2024-03-05 14:33:09 -08:00
cmpd_dtransform.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
cork.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
cross_read.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
dangle.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
del_many_dense_attrs.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
direct_chunk.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
dsets.c Use props for includes and remove global includes (#3921) 2024-01-04 12:06:36 -06:00
dt_arith.c Remove oneapi return value warning. (#4028) 2024-02-19 11:08:38 -06:00
dtransform.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
dtypes.c Fix issue where H5Tset_fields does not account for datatype offsets (#4061) 2024-03-05 08:23:34 -06:00
earray.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
efc.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
enc_dec_plist_cross_platform.c Develop tools move (#3580) 2023-09-26 13:46:55 -07:00
enc_dec_plist.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
enum.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
err_compat.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
error_test.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
event_set.c Add 'warning density' computation to the warnhist script (#3910) 2023-12-29 08:42:35 -06:00
evict_on_close.c Fix H5Pset_evict_on_close failing regardless of actual parallel use (#3761) 2023-10-24 12:51:55 -05:00
extend.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
external_common.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
external_common.h Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
external_env.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
external_fname.h Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
external.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
farray.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
fheap.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
file_image.c Use HDoff_t with lseek consistently (#3600) 2023-09-26 11:38:07 -07:00
filenotclosed.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
fillval.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
filter_fail.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
filter_plugin1_dsets.c
filter_plugin2_dsets.c
filter_plugin3_dsets.c
filter_plugin4_groups.c
filter_plugin.c Issue #1824: Replaced most remaining sprintf with safer snprint (#4003) 2024-02-13 08:22:17 -06:00
flush1.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
flush2.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
flushrefresh.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
flushrefreshTest.cmake
freespace.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
gen_bad_compound.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_bad_offset.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_bad_ohdr.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
gen_bogus.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
gen_bounds.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_cross.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
gen_deflate.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_file_image.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_filespace.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_filters.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_mergemsg.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_new_array.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_new_fill.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_new_group.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_new_mtime.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_new_super.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_noencoder.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_nullspace.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_old_array.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_old_group.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
gen_old_layout.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_old_mtime.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_plist.c Develop tools move (#3580) 2023-09-26 13:46:55 -07:00
gen_sizes_lheap.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_specmetaread.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
gen_udlinks.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
genall5.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
genall5.h Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
getname.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
gheap.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
h5test.c Fix issue with FAPL file locking setting inheriting test (#4053) 2024-03-01 07:38:17 -06:00
h5test.h Fix issue with FAPL file locking setting inheriting test (#4053) 2024-03-01 07:38:17 -06:00
H5srcdir_str.h.in
H5srcdir.h Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
hdfs.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
hyperslab.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
istore.c Use HDoff_t with lseek consistently (#3600) 2023-09-26 11:38:07 -07:00
lheap.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
links_env.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
links.c Fix issue with FAPL file locking setting inheriting test (#4053) 2024-03-01 07:38:17 -06:00
Makefile.am Fix file names in tfile.c (#3743) 2023-10-21 19:08:12 -05:00
mdset.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
mf.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
mirror_vfd.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
mount.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
mtime.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
ntypes.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
null_vfd_plugin.c
null_vfd_plugin.h
null_vol_connector.c
null_vol_connector.h
objcopy_ref.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
objcopy.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
ohdr.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
onion.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
page_buffer.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
POSIX_Order_Write_Test_Report.docx
POSIX_Order_Write_Test_Report.pdf
reserved.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
ros3.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
s3comms.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
select_io_dset.c Fix uninitialized bytes in selection I/O test (#4073) 2024-03-06 07:48:28 -08:00
set_extent.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
ShellTests.cmake Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859) 2023-11-22 07:51:30 -06:00
space_overflow.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
stab.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
swmr_addrem_writer.c Remove HD from HDmem* calls (#3211) 2023-06-29 12:33:46 -07:00
swmr_common.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
swmr_common.h
swmr_generator.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
SWMR_POSIX_Order_UG.txt
swmr_reader.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
swmr_remove_reader.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
swmr_remove_writer.c Rename HDexit() and related to exit(), etc. (#3202) 2023-06-29 08:18:01 -07:00
swmr_sparse_reader.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
swmr_sparse_writer.c Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
swmr_start_write.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
SWMR_UseCase_UG.txt
swmr_writer.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
swmr.c Fix several spelling/grammar issues (#3621) 2023-10-03 09:01:28 -07:00
tarray.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tattr.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tcheck_version.c Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
tchecksum.c Remove HD from HDmem* calls (#3211) 2023-06-29 12:33:46 -07:00
tconfig.c Fixes the last of the -Wextra-semi-stmt warnings (#3326) 2023-08-02 17:46:26 -05:00
tcoords.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
test_abort_fail.sh.in
test_check_version.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
test_error.sh.in Fix spelling issues flagged by codespell (#3130) 2023-06-14 18:59:09 -07:00
test_external_env.sh.in
test_flush_refresh.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
test_libinfo.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
test_links_env.sh.in
test_mirror.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
test_plugin.sh.in
test_swmr.pwsh.in
test_swmr.sh.in
test_use_cases.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
test_vds_env.sh.in
test_vds_swmr.pwsh.in
test_vds_swmr.sh.in Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
testframe.c Print some messages in parallel tests on MPI rank 0 only (#3785) 2023-10-27 21:18:24 -07:00
testhdf5.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
testhdf5.h Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
testmeta.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
tfile.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tgenprop.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
th5_system.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
th5o.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
th5s.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
thread_id.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
tid.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
timer.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
titerate.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tmeta.c Remove HD from HDmem* calls (#3211) 2023-06-29 12:33:46 -07:00
tmisc.c Fixed asserts due to H5Pset_est_link_info() values (#4081) 2024-03-07 18:36:58 -08:00
trefer_deprec.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
trefer_shutdown.c Rename HD(f)printf() to (f)printf() (#3194) 2023-06-28 08:31:32 -07:00
trefer.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
trefstr.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
tselect.c Fix unused variable in tselect.c (#3701) 2023-10-17 12:14:24 -07:00
tskiplist.c Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
tsohm.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
ttime.c Fixes the last of the -Wextra-semi-stmt warnings (#3326) 2023-08-02 17:46:26 -05:00
ttsafe_acreate.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
ttsafe_attr_vlen.c
ttsafe_cancel.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
ttsafe_dcreate.c Remove HD from HDmem* calls (#3211) 2023-06-29 12:33:46 -07:00
ttsafe_error.c Remove programmer/date from comments (#3210) 2023-06-29 12:13:29 -07:00
ttsafe.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
ttsafe.h
tunicode.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tvlstr.c HDF5 API test updates (#3835) 2023-11-13 13:49:38 -06:00
tvltypes.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
twriteorder.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
unlink.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
unregister.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use_append_chunk_mirror.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use_append_chunk.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use_append_mchunks.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use_common.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use_disable_mdc_flushes.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
use.h Convert hbool_t --> bool in test (#3494) 2023-09-05 13:11:52 -07:00
vds_env.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
vds_swmr_gen.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
vds_swmr_reader.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
vds_swmr_writer.c Consistent initialization of hid_t in the tests (#3521) 2023-09-08 18:06:23 -05:00
vds_swmr.h
vds.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
vfd_plugin.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
vfd.c Replaces HDgetenv with getenv (#3599) 2023-09-26 13:11:22 -07:00
vol_plugin.c Strip HD prefix from string/char C API calls (#3540) 2023-09-15 15:13:18 -07:00
vol.c Fix issue with FAPL file locking setting inheriting test (#4053) 2024-03-01 07:38:17 -06:00