hdf5/test
Dana Robinson b5c66529e9
Fixes a bad memory read and unfreed memory in fsinfo code (#893)
* Fixes a bad memory read and unfreed memory in fsinfo code

The segfaul from CVE-2020-10810 was fixed some time ago, but the
illegal memory read and unfreed memory were not.

This fix tracks some buffer sizes and errors out gracefully on errors,
ensuring buffers are cleaned up and avoiding the H5FL infinite loop +
abort on library close.

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-08-12 07:21:50 -05:00
..
testfiles err_compat test cleanup (#681) 2021-05-25 15:38:54 -05:00
accum_swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
accum.c Updates that allow accum SWMR tests to work on Windows (#493) 2021-03-26 22:07:59 -05:00
aggr.h5
app_ref.c Update license url (#332) 2021-02-17 08:52:04 -06:00
atomic_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
atomic_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
AtomicWriterReader.txt
bad_compound.h5
bad_offset.h5
be_data.h5
be_extlink1.h5
be_extlink2.h5
big.c Update license url (#332) 2021-02-17 08:52:04 -06:00
bittests.c Update license url (#332) 2021-02-17 08:52:04 -06:00
btree2.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
btree_idx_1_6.h5
btree_idx_1_8.h5
cache_api.c Removes obsolete equivalents of C99's __func__ (#800) 2021-06-28 23:58:38 -05:00
cache_common.c Removes obsolete equivalents of C99's __func__ (#800) 2021-06-28 23:58:38 -05:00
cache_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
cache_image.c Removes obsolete equivalents of C99's __func__ (#800) 2021-06-28 23:58:38 -05:00
cache_logging.c Fixes a segfault when H5Pset_mdc_log_options is called multiple times on a fapl (#601) 2021-04-29 09:33:43 -05:00
cache_tagging.c Update license url (#332) 2021-02-17 08:52:04 -06:00
cache.c OESS-168:Remove implicit conversion warnings. (#829) 2021-07-12 09:00:48 -05:00
chunk_info.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
CMakeLists.txt Makes the event_set test a single-source target (#690) 2021-05-27 09:33:46 -05:00
CMakePassthroughVOLTests.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
CMakeTests.cmake Remove version-check for relnum in H5check. (#812) 2021-07-27 15:44:05 -05:00
CMakeVFDTests.cmake Fix Direct VFD Testing in CMake (#742) 2021-06-11 07:52:04 -05:00
cmpd_dset.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
cmpd_dtransform.c Bring async branch to develop (#166) 2020-12-13 18:02:17 -06:00
cork.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
corrupt_stab_msg.h5
cross_read.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
cve_2020_10810.h5 Fixes a bad memory read and unfreed memory in fsinfo code (#893) 2021-08-12 07:21:50 -05:00
dangle.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
deflate.h5
del_many_dense_attrs.c Update license url (#332) 2021-02-17 08:52:04 -06:00
direct_chunk.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
dsets.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
dt_arith.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
dtransform.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dtypes.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
earray.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
efc.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
enc_dec_plist_cross_platform.c Update license url (#332) 2021-02-17 08:52:04 -06:00
enc_dec_plist.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
enum.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
err_compat.c Use internal version of H5Eprint2 to avoid possible stack overflow (#661) 2021-05-26 12:05:24 -05:00
error_test.c Use internal version of H5Eprint2 to avoid possible stack overflow (#661) 2021-05-26 12:05:24 -05:00
event_set.c Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00
evict_on_close.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
extend.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_common.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
external_env.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_fname.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
external.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
family_v16_00000.h5
family_v16_00001.h5
family_v16_00002.h5
family_v16_00003.h5
farray.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
fheap.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
file_image_core_test.h5
file_image.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
filenotclosed.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
filespace_1_6.h5
filespace_1_8.h5
fill18.h5
fill_old.h5
fillval.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
filter_error.h5
filter_fail.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
filter_plugin1_dsets.c Includes hdf5dev.h in hdf5.h (#728) 2021-06-06 21:04:34 -05:00
filter_plugin2_dsets.c Includes hdf5dev.h in hdf5.h (#728) 2021-06-06 21:04:34 -05:00
filter_plugin3_dsets.c Includes hdf5dev.h in hdf5.h (#728) 2021-06-06 21:04:34 -05:00
filter_plugin4_groups.c Includes hdf5dev.h in hdf5.h (#728) 2021-06-06 21:04:34 -05:00
filter_plugin.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
flush1.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
flush2.c Update license url (#332) 2021-02-17 08:52:04 -06:00
flushrefresh.c Update license url (#332) 2021-02-17 08:52:04 -06:00
flushrefreshTest.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
freespace.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
fsm_aggr_nopersist.h5
fsm_aggr_persist.h5
gen_bad_compound.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bad_offset.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bad_ohdr.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bogus.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bounds.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_cross.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
gen_deflate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_file_image.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_filespace.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_filters.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_mergemsg.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_array.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_fill.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_group.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_mtime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_super.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_noencoder.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_nullspace.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_array.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_group.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_layout.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_mtime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_plist.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
gen_sizes_lheap.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_specmetaread.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_udlinks.c Update license url (#332) 2021-02-17 08:52:04 -06:00
genall5.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
genall5.h Update license url (#332) 2021-02-17 08:52:04 -06:00
getname.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
gheap.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
group_old.h5
h5fc_ext1_f.h5
h5fc_ext1_i.h5
h5fc_ext2_if.h5
h5fc_ext2_sf.h5
h5fc_ext3_isf.h5
h5fc_ext_none.h5
h5test.c Removes develop header cruft (#828) 2021-07-09 16:27:10 -05:00
h5test.h Removes develop header cruft (#828) 2021-07-09 16:27:10 -05:00
H5srcdir_str.h.in Update license url (#332) 2021-02-17 08:52:04 -06:00
H5srcdir.h Fixed many -Wreserved-id-macro warnings by fixing header guard spelling (#361) 2021-02-22 22:29:56 -06:00
hdfs.c Fixes parallel issues from recent C99 changes (#809) 2021-06-30 10:17:35 -05:00
hyperslab.c Update license url (#332) 2021-02-17 08:52:04 -06:00
istore.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
le_data.h5
le_extlink1.h5
le_extlink2.h5
lheap.c Purges UFAIL from the library (#637) 2021-05-11 11:05:03 -05:00
links_env.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
links.c Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00
Makefile.am Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00
memleak_H5O_dtype_decode_helper_H5Odtype.h5
mergemsg.h5
mf.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
mirror_vfd.c Update license url (#332) 2021-02-17 08:52:04 -06:00
mount.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
mtime.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
multi_file_v16-r.h5
multi_file_v16-s.h5
noencoder.h5
none.h5
ntypes.c Update license url (#332) 2021-02-17 08:52:04 -06:00
null_vol_connector.c Fixes a couple of warnings: (#849) 2021-07-22 08:13:14 -05:00
null_vol_connector.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
objcopy_ref.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
objcopy.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
ohdr.c Fixes a bad memory read and unfreed memory in fsinfo code (#893) 2021-08-12 07:21:50 -05:00
page_buffer.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
paged_nopersist.h5
paged_persist.h5
pool.c Update license url (#332) 2021-02-17 08:52:04 -06:00
POSIX_Order_Write_Test_Report.docx
POSIX_Order_Write_Test_Report.pdf
reserved.c Fixes incorrect usage of H5I_BADID (#554) 2021-04-19 16:51:18 -05:00
ros3.c Fixes parallel issues from recent C99 changes (#809) 2021-06-30 10:17:35 -05:00
s3comms.c Fixes parallel issues from recent C99 changes (#809) 2021-06-30 10:17:35 -05:00
set_extent.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
ShellTests.cmake Various CMake changes (#679) 2021-05-24 08:55:08 -05:00
space_overflow.c Update license url (#332) 2021-02-17 08:52:04 -06:00
specmetaread.h5
stab.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
swmr_addrem_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_check_compat_vfd.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_common.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
swmr_generator.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
SWMR_POSIX_Order_UG.txt
swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_remove_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_remove_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_sparse_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_sparse_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_start_write.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
SWMR_UseCase_UG.txt Removes staff email addresses from the repository 2020-08-06 17:58:07 -07:00
swmr_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr.c Misc warning fixes (#495) 2021-03-24 11:25:50 -05:00
tarray.c Fixes non-C99 format strings in tarray test code (#766) 2021-06-17 20:37:01 -05:00
tarrold.h5
tattr.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
tbad_msg_count.h5
tbogus.h5
tcheck_version.c Suppresses the tcheck_version test's abort dialog on Windows (#477) 2021-03-17 14:23:07 -05:00
tchecksum.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tconfig.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tcoords.c Update license url (#332) 2021-02-17 08:52:04 -06:00
test_filter_plugin.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_filters_be.h5
test_filters_le.h5
test_mirror.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_usecases.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_vol_plugin.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testabort_fail.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testcheck_version.sh.in Remove version-check for relnum in H5check. (#812) 2021-07-27 15:44:05 -05:00
testerror.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testexternal_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testflushrefresh.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testframe.c Cleans up POSIX/C bits in H5private.h (#804) 2021-06-28 23:59:25 -05:00
testhdf5.c Removes dead H5ST package from the library (#528) 2021-03-29 21:32:52 -05:00
testhdf5.h Removes dead H5ST package from the library (#528) 2021-03-29 21:32:52 -05:00
testlibinfo.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testlinks_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testmeta.c Update license url (#332) 2021-02-17 08:52:04 -06:00
testswmr.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testvds_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testvdsswmr.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
tfile.c Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00
tgenprop.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
th5o.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
th5s.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
th5s.h5
theap.c Removes dead H5ST package from the library (#528) 2021-03-29 21:32:52 -05:00
thread_id.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tid.c Hash table replacement for skip lists in ID code (#600) 2021-05-04 15:51:26 -05:00
timer.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
titerate.c Misc warning fixes (#495) 2021-03-24 11:25:50 -05:00
tlayouto.h5
tmeta.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tmisc.c Removes gratuitous (double)x.yF casts (#632) 2021-05-07 11:45:05 -05:00
tmtimen.h5
tmtimeo.h5
trefer_deprec.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
trefer_shutdown.c Clang-format of source files 2020-09-30 09:27:10 -05:00
trefer.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
trefstr.c Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00
tselect.c Cleans up a couple of MSVC warnings in testhdf5 (#475) 2021-03-17 14:22:02 -05:00
tsizeslheap.h5
tskiplist.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tsohm.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_acreate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_attr_vlen.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_cancel.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_dcreate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_error.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe.c Fixed clang-tidy readability-redundant-control-flow warnings (#428) 2021-03-05 08:51:01 -06:00
ttsafe.h Update license url (#332) 2021-02-17 08:52:04 -06:00
tunicode.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tvlstr.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
tvltypes.c Misc warning fixes (#495) 2021-03-24 11:25:50 -05:00
twriteorder.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
unlink.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
unregister.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
use_append_chunk_mirror.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_append_chunk.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_append_mchunks.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_common.c Fix several warnings (#747) 2021-06-16 15:45:26 -05:00
use_disable_mdc_flushes.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use.h Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_env.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_gen.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr.h Update license url (#332) 2021-02-17 08:52:04 -06:00
vds.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
vfd.c Fix for a segfault when H5Pset_fapl_log is passed an invalid fapl ID (#607) 2021-04-29 06:57:02 -05:00
vol_plugin.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
vol.c Combo set of async and other changes (#161) 2021-06-02 15:29:46 -05:00