mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
9431c7a97e
Clean up various warnings & code formatting issues. Bring changes from Coverity branch to trunk: r20085: Purpose: Fix coverity issue 793 Description: Modified H5S_hyper_project_simple_higher() to free the entire span list in new_space on failure. r20091: This is a fix for coverity bug #1683. Changed the two printfs to use %lu (unsigned long) for printing "dset_size". r20162: Purpose: Fix coverity issue 785 Description: Modified H5T_enum_nameof() to free "name" on failure if it was allocated. Also clarified some code in H5S_hyper_rebuild_helper(). r20189: Addressed coverity defect 783. H5SL_new_node() in H5SL.c was failing to free space allocated in its first alloc if the second alloc failed. Added a call to H5FL_FREE to address this issue. This is purely to keep coverity happy -- if this code is ever triggered, we have much larger problems. Note that this fix will trigger an unused return value complaint from coverity next week. r20190: Fixed Coverity issues 1561 1565 and 1678 (UNUSED_VALUES) by moving checks of return values to after the function call. r20191: Fixed coverity issues 643 644 and 1678 (CHECKED_RETURN). r20232: Addressed coverity issues 923-925. Replaced calls to sprintf with calls to HDsnprintf. r20233: Fix coverity issue 662. Don't try to sort 0 attributes in H5Aint.c. r20234: Fix coverity issue 664. Check for NULL before dereferencing in H5Gdeprec.c. r20271: Purpose: Fix coverity issue 784 Description: Modified H5_debug_mask() to keep a list of files opened for use as a debugging output stream, and modified H5_term_library to close these files on exit. r20272: addressed coverity issues 838 & 955. Issue was use of strcpy() -- existing code was safe, but modified to use strncpy() to keep coverity happy. r20273: Addresed coverity issues 1388 and 1389. Initialized sel_iter->type to NULL in H5S_select_iter_init. r20275: Purpose: Fix valgrind issue in mf.c Description: Fixed bug (incomplete if statement) in test_mf_fs_alloc_free() so the retrieved node gets freed. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode |
||
---|---|---|
.. | ||
testfiles | ||
accum.c | ||
app_ref.c | ||
bad_compound.h5 | ||
be_data.h5 | ||
be_extlink1.h5 | ||
be_extlink2.h5 | ||
big.c | ||
bittests.c | ||
btree2.c | ||
cache_api.c | ||
cache_common.c | ||
cache_common.h | ||
cache_tagging.c | ||
cache.c | ||
chunk_info.c | ||
CMakeLists.txt | ||
cmpd_dset.c | ||
COPYING | ||
corrupt_stab_msg.h5 | ||
cross_read.c | ||
dangle.c | ||
deflate.h5 | ||
dsets.c | ||
dt_arith.c | ||
dtransform.c | ||
dtypes.c | ||
earray.c | ||
efc.c | ||
enum.c | ||
err_compat.c | ||
error_test.c | ||
extend.c | ||
external.c | ||
family_v16_00000.h5 | ||
family_v16_00001.h5 | ||
family_v16_00002.h5 | ||
family_v16_00003.h5 | ||
farray.c | ||
fheap.c | ||
filespace_1_6.h5 | ||
filespace_1_8.h5 | ||
fill_old.h5 | ||
fillval.c | ||
filter_fail.c | ||
flush1.c | ||
flush2.c | ||
freespace.c | ||
gen_bad_compound.c | ||
gen_bad_ohdr.c | ||
gen_bogus.c | ||
gen_cross.c | ||
gen_deflate.c | ||
gen_filespace.c | ||
gen_filters.c | ||
gen_mergemsg.c | ||
gen_new_array.c | ||
gen_new_fill.c | ||
gen_new_group.c | ||
gen_new_mtime.c | ||
gen_new_super.c | ||
gen_noencoder.c | ||
gen_nullspace.c | ||
gen_old_array.c | ||
gen_old_group.c | ||
gen_old_layout.c | ||
gen_old_mtime.c | ||
gen_sizes_lheap.c | ||
gen_specmetaread.c | ||
gen_udlinks.c | ||
getname.c | ||
gheap.c | ||
group_old.h5 | ||
h5test.c | ||
h5test.h | ||
H5srcdir_str.h.in | ||
H5srcdir.h | ||
hyperslab.c | ||
istore.c | ||
le_data.h5 | ||
le_extlink1.h5 | ||
le_extlink2.h5 | ||
lheap.c | ||
links_env.c | ||
links.c | ||
Makefile.am | ||
Makefile.in | ||
mergemsg.h5 | ||
mf.c | ||
mount.c | ||
mtime.c | ||
noencoder.h5 | ||
ntypes.c | ||
objcopy.c | ||
ohdr.c | ||
pool.c | ||
reserved.c | ||
set_extent.c | ||
space_overflow.c | ||
specmetaread.h5 | ||
stab.c | ||
tarray.c | ||
tarrold.h5 | ||
tattr.c | ||
tbad_msg_count.h5 | ||
tbogus.h5 | ||
tcheck_version.c | ||
tchecksum.c | ||
tconfig.c | ||
tcoords.c | ||
test_filters_be.hdf5 | ||
test_filters_le.hdf5 | ||
testcheck_version.sh.in | ||
testerror.sh.in | ||
testframe.c | ||
testhdf5.c | ||
testhdf5.h | ||
testlibinfo.sh.in | ||
testlinks_env.sh.in | ||
testmeta.c | ||
tfile.c | ||
tgenprop.c | ||
th5o.c | ||
th5s.c | ||
th5s.h5 | ||
theap.c | ||
tid.c | ||
titerate.c | ||
tlayouto.h5 | ||
tmeta.c | ||
tmisc.c | ||
tmtimen.h5 | ||
tmtimeo.h5 | ||
trefer.c | ||
trefstr.c | ||
tselect.c | ||
tsizeslheap.h5 | ||
tskiplist.c | ||
tsohm.c | ||
ttime.c | ||
ttsafe_acreate.c | ||
ttsafe_cancel.c | ||
ttsafe_dcreate.c | ||
ttsafe_error.c | ||
ttsafe.c | ||
ttsafe.h | ||
ttst.c | ||
tunicode.c | ||
tvlstr.c | ||
tvltypes.c | ||
unlink.c | ||
vfd.c | ||
vms_data.h5 |