Commit Graph

13885 Commits

Author SHA1 Message Date
Quincey Koziol
f97d63cb95 [svn-r24869] Description:
Clean up more compiler warnings, plus merge a few Coverity bug fixes from
the hdf5_1_8_coverity branch back to the trunk:

r20877:
Purpose: Fix coverity issue 1723

Description:
Modified test_generate in hl/test_image to close file "f" before exit, even if
an error occurs.

r20879:
Issue 63: change check of return of H5Tget_nmembers to <=0. No need to go
futher if call fails as well as empty.

r20881:
Coverity #659 in Run 46: I changed the Line 442 where it tries to check whether
FLAG_PRINTED is TRUE.  But it had just been set to FALSE.  I took out the
condition check in the print statement.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/C++, FORTRAN & Parallel
    (too minor to require h5committest)
2014-03-23 01:27:57 -05:00
Binh-Minh Ribler
67be45610f [svn-r24867] Description:
- Added a null terminator to the comment returned from the C call, in
        getComment methods
    - Some minor cleanup
Platforms tested:
    Linux/ppc64 (ostrich)
    Linux/32 2.6 (jam)
    Linux/64 2.6 (platypus)/PGI compilers
2014-03-22 15:39:44 -05:00
Scot Breitenfeld
958a762dd1 [svn-r24866] Fixed compiler warnings using gnu 4.8.1
Tested: jam( intel, gnu, pgi)
2014-03-22 15:01:58 -05:00
Binh-Minh Ribler
60df159d33 [svn-r24865] Description:
- Added another overload for char* argument:
        ssize_t getComment(const char* name, const size_t buf_size, char* comment)
    - Changed default value to 0 for the other two getComment methods
    - Added HDmemset to after every char string allocation to clear the buffer
Platforms tested:
    Linux/ppc64 (ostrich)
    Linux/32 2.6 (jam)
    Linux/64 2.6 (platypus)/PGI compilers
2014-03-21 18:23:05 -05:00
Quincey Koziol
2e4302818a [svn-r24864] Description:
Remove all traces of MPI-POSIX VFD and GPFS detection/code.

    Remove remaining traces of stream VFD.

    Remove testpar/t_posix_compliant test (it's not actually verifying anything).

    Clean up H5D__mpio_opt_possible() further.

    Moved environment variable that disables MPI collective operations into
MPI-IO VFD (instead of it being in src/H5S.c).

    A few other small code cleanups.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/parallel & serial
2014-03-21 18:02:24 -05:00
Allen Byrne
c4f982abf1 [svn-r24859] Remove unnecessary use of $(srcdir).
Tested: local linux, h5committest
2014-03-21 13:50:30 -05:00
Dana Robinson
7a4727d80c [svn-r24857] --enable-threadsafe no longer requires --with-pthreads if Pthreads can
be found in the standard include and library paths.

Tested on:
    32-bit LE linux (jam)
    SunOS 5.11 (emu)
    64-bit Darwin 12.5 (kite)
    64-bit FreeBSD 8.2 (freedom)

Testing focused on making sure that Pthreads could be found on different
platforms and investigating the interaction of Fortran/C++/thread-safe
options.
2014-03-21 10:19:07 -05:00
Scot Breitenfeld
6515a1f8ac [svn-r24856] added missing common statement 2014-03-21 09:34:05 -05:00
Scot Breitenfeld
6c13c99ce9 [svn-r24855] added missing dllexport 2014-03-21 09:28:03 -05:00
Allen Byrne
da23edd24e [svn-r24851] example causes modal permission dialog to popup on windows. build but do not execute. 2014-03-20 16:18:30 -05:00
Allen Byrne
ba2c98d42a [svn-r24850] example causes modal permission dialog to popup on windows. Do not build. 2014-03-20 16:17:24 -05:00
Allen Byrne
0be0491ee4 [svn-r24849] Update to synch with latest cmake 2014-03-20 14:05:30 -05:00
Scot Breitenfeld
34bfba14d5 [svn-r24846] Bug fix for HDFFV-8689 : Mix-match of type in H5D_CHUNK_CACHE_NBYTES_DEFAULT, Review HDF5-184
Tested with -i8 flag with intel compilers and --enable-production
2014-03-20 09:06:42 -05:00
Binh-Minh Ribler
ff565cd175 [svn-r24830] Purpose: HDFFV-8623
Description:
    Applied patch from user Jason Newton.  JIRA issue HDFFV-8623, patch
    9, improve c++ compatibility with exceptions.  All additions of "throw()"
    are included.  Exception::what() is not added because it is not necessary.
    It was suggested for the name, which follows stdlib.
Platforms tested:
    Linux/ppc64 (ostrich)
    Linux/32 2.6 (jam)
    Linux/64 2.6 (koala)/PGI compilers
2014-03-18 14:31:18 -05:00
Allen Byrne
44fe3cc19b [svn-r24826] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Bump up CMake minimum versions.
Split test file into separate file for h5repack test.

Tested: local linux
2014-03-18 11:55:05 -05:00
Allen Byrne
03d10edd23 [svn-r24824] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Bump up CMake minimum versions.
Split test file into separate file for h5repack test.

Tested: local linux
2014-03-18 11:21:46 -05:00
Allen Byrne
73a72c59b8 [svn-r24822] Update GYGWIN version 2014-03-18 10:03:21 -05:00
Allen Byrne
185b3c5dee [svn-r24816] HDFFV-8695:
Add notes about defining  
-DCMAKE_BUILD_TYPE:STRING=Release
2014-03-17 17:12:46 -05:00
Quincey Koziol
164b4c7534 [svn-r24804] Description:
Brought changes from Coverity branch back to trunk, and cleaned up misc.
other warnings & formatting issues:

r20833:
Fixed Coverity 667 and 668 with real integer overflow tests this time.

r20834:
Use HDstrncpy and HDstrncat. --gh 

r20835:
Change to use strncpy - use base_len + 1 for line 156, use HDstrlen(path) + 1 for line 159

r20836:
Fixed coverity 585 by casting output of fgetc() to a char.

r20837:
Changed sprintf calls to snprintf with size 1 less than the allocated buffer to address coverity issue #967.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/C++, FORTRAN & parallel
    (too minor to require h5committest)
2014-03-15 23:44:13 -05:00
Quincey Koziol
288c7760a4 [svn-r24803] Description:
Rename GCC_DIAG_OFF/ON macros to H5_GCC_DIAG_OFF/ON and move from
src/H5private.h to src/H5public.h.  Wrap typedef of hsize_t and hssize_t
in DIAG_OFF(long-long) macros.

    Clean up a bunch of "macro '-' is unused" warnings.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/gcc 4.8.2, C++, FORTRAN, parallel
    (too minor to require h5committest)
2014-03-15 22:13:52 -05:00
Allen Byrne
f5689224b5 [svn-r24789] Bump up the minimum cmake version 2014-03-13 10:05:09 -05:00
Scot Breitenfeld
b17f3e4183 [svn-r24783] fixed typo 2014-03-12 09:20:47 -05:00
Allen Byrne
6c5e74942d [svn-r24782] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
2014-03-11 17:07:13 -05:00
Allen Byrne
a3292a77ce [svn-r24781] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Remove INCLUDE_DIRECTORIES in src for target level includes.
Change ADD_DEFINITIONS package debug defines into CMake option.
Remove -DNDEBUG
2014-03-11 16:14:57 -05:00
Quincey Koziol
5b7c8c7a7d [svn-r24772] Description:
Correct some dynamically sized arrays that fail on Windows.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/parallel
2014-03-10 13:03:35 -05:00
HDF Tester
4a9ea60adc [svn-r24770] Snapshot version 1.9 release 174 2014-03-09 05:17:47 -05:00
Quincey Koziol
ac0ef34a41 [svn-r24769] Description:
Check in Mohamad's changes to support collective I/O on point selections,
along with some other minor cleanups.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/parallel & serial
    (h5committest forthcoming)
2014-03-07 14:12:20 -05:00
Neil Fortner
e367f64e24 [svn-r24757] Change assertion to condition check/error return. Should fix periodic
assertion failure in fheap test (in test that is expected to fail cleanly).

Fix type in H5detect.c

Tested: ostrich, platypus (h5committest - jam and koala having issues)
2014-03-03 17:54:14 -05:00
HDF Tester
f683d9a035 [svn-r24753] Snapshot version 1.9 release 173 2014-03-02 04:16:37 -05:00
Allen Byrne
e1e136ea1d [svn-r24744] Correct NSIS name 2014-02-27 12:42:31 -05:00
Allen Byrne
f68f4be233 [svn-r24742] Synchronize Apple bundle packaging with latest changes discovered during hdf-java work. 2014-02-27 11:53:12 -05:00
Allen Byrne
db1b11b69b [svn-r24741] HDFFV-8684: Change Package name depending on CDASH_LOCAL configuration variable.
Tested: local linux
2014-02-27 10:43:08 -05:00
Albert Cheng
c2bf6ea162 [svn-r24739] Bug fix: HDFFV-8684
h5committest failed in platypus because cmakehdf5 failed in installation because cmake generates
a install-tarball based on incomplete version number (subrelease string is missing).

Solution:
Fixed $HDF5_PACKAGE_VERSION to contain the subrelease string.
Fixed $HDF5_PACKAGE_VERSION_STRING to be the same as $HDF5_PACKAGE_VERSION.

Tested: jam and platypus in both trunk and v18 branches because the current
version number is trunk has a null sub-release and v18 has a non-null sub-release.
That covers both grounds.
2014-02-26 16:29:55 -05:00
Quincey Koziol
1162465570 [svn-r24727] Description:
Revert change of sprintf -> snprintf, due to failures on Windows.  We'll
need to figure out the correct course of action in the future.

Tested on:
    MacOSX/64 10.9.1 (amazon) w/C++, FORTRAN
    (too minor to require h5committest)
2014-02-21 11:53:33 -05:00
Quincey Koziol
1e36b5a348 [svn-r24726] Description:
Revert some earlier usage of strncpy, which was incorrect.

    Bring Coverity changes from branch back to trunk:

r20821:
    Use HDstrncpy. --gh
    (Fixed already, with strdup)

r20822:
    (Not merged, incorrect use of HDstrncpy())

r20823:
    (Not merged, incorrect use of HDstrncpy())

r20824:
    Maintenance: Bug fix: addressed CID 666.
    Value stored at *expression_len should be used in the call to
        HD5packFstring to avoid overflow (and unnecessary arithmetic
        calculation and casting) 

r20825:
    Issue 642: Added check for error and handler with print to stderr and exit.

r20826:
    Undo revision 20818, as that issue has already been fixed in the 1.8 branch
        and trunk (but not coverity branch)

r20827:
    (Not merged, incorrect use of HDstrncpy())
    
r20828:
    Use HDstrncpy. --gh
    (Corrected use of strncpy())

r20829:
    Check return of H5Lget_val(print_udata->fid, path, targbuf,
        linfo->u.val_size + 1, H5P_DEFAULT) and if error set trgbuf[0] to 0.
        Check if  H5Lunpack_elink_val(targbuf, linfo->u.val_size, NULL,
        &filename, &objname) was successful and allow print. Otherwise filename
        and objname are not created. (init those to NULL)

r20830:
    resolved coverity issues 939, 940, 941, 944, and 947.

    all were complaints about use of sprintf, and in all cases, the
    buffers used were large enough for all eventualities.

    Resolved issue by replacing calls to sprintf with calls
    to snprintf.

r20831:
    Maintenance: Addressed CID 852
    Replaced sprintf with snprintf

r20832:
    Purpose: Fix valgrind issues with hl/examples/ex_image2

    Description:
    Modified hl/examples/ex_image2 to free global "gbuf" before exit.

Tested on:
    Mac OSX/64 10.9.1 (amaon) w/C++, FORTRAN & Threadsafety
    (too minor to require h5committest)
2014-02-20 16:29:26 -05:00
Allen Byrne
b30e37ea78 [svn-r24725] HDFFV-8629: h5repack will not attempt to remove UD filters. h5repack requires a check for UD filters that also must check if the filter can be dynamically loaded. This require a change in the library that checks for this.
Tested: locally and reviewed
2014-02-20 15:21:08 -05:00
Allen Byrne
d0ae86bc64 [svn-r24724] Fix MPI linker flags with quotes 2014-02-20 15:18:42 -05:00
Allen Byrne
bf908ca553 [svn-r24722] Set NSIS display name 2014-02-18 10:07:53 -05:00
HDF Tester
d7f00b8002 [svn-r24716] Snapshot version 1.9 release 172 2014-02-16 03:32:48 -05:00
Allen Byrne
7c54d413ae [svn-r24715] Add Windows VS version for README.txt 2014-02-14 09:30:30 -05:00
Allen Byrne
9dc573798d [svn-r24713] Update Windows VS version for README.txt 2014-02-14 09:15:28 -05:00
Mohamad Chaarawi
863ff882b6 [svn-r24709] rename H5V to H5VM since H5V is needed in the fastforward project for
view objects.  The addition of view objects in the fastforward project
is expected to be brough into the trunk sometimes in the future, which
is why we need to make this change.

Tested Manually on Jam and Ostrich.
Tested with h5commitest - Koala with intel compilers failed, but nothing had to do with those changes.
error on Koala: error while loading shared libraries: libirng.so
2014-02-13 17:12:46 -05:00
Allen Byrne
49a9979166 [svn-r24706] Add to instructions for install 2014-02-13 09:10:50 -05:00
Allen Byrne
82f62cd012 [svn-r24703] Add Binary README.txt file generation
Tested: local linux cmake
2014-02-13 09:00:00 -05:00
Allen Byrne
ab045c634c [svn-r24700] Updated packaging process to align with latest hdf cmake standards. 2014-02-11 15:22:16 -05:00
HDF Tester
1b6683e58f [svn-r24698] Snapshot version 1.9 release 171 2014-02-09 03:36:37 -05:00
Scot Breitenfeld
ecc60884a8 [svn-r24697] Fix for:
HDFFV-8651: H5F_Provisional missing from HDF5mpio.f90

Tested: jam (mpi 3.0.4/gnu)
2014-02-07 16:45:23 -05:00
Allen Byrne
6569d7437a [svn-r24682] Add IF SHARED block around Windows PDB file generation command. 2014-02-04 10:11:36 -05:00
Scot Breitenfeld
ee10548723 [svn-r24681] Description:
Fix for HDF5/HDFFV-8620 H5Rget_name with NULL name parameter fails.
The name parameter now excepts NULL, in which case the length of then
name is returned.


Tested: jam (intel and gnu)
2014-02-04 10:11:20 -05:00
HDF Tester
ddf75b10f6 [svn-r24676] Snapshot version 1.9 release 170 2014-02-02 03:34:20 -05:00