Commit Graph

1835 Commits

Author SHA1 Message Date
Quincey Koziol
b3044de434 Refactored read_scale(), memio_new(), var_create_dataset() and makespecial()
to clean up resources properly on failure.

Refactored doubly-linked list code for objects in the libsrc4 directory,
    cleaning up the add/del routines, breaking out the common next/prev
    pointers into a struct and extracting the add/del operations on them,
    changed the list of dims to add new dims in the same order as the other
    types, made all add routines able to optionally return a pointer to the
    newly created object.

Removed some dead code (pg_var(), nc4_pg_var1(), nc4_pg_varm(), misc. small
    routines, etc)

Fixed fill value handling for string types in nc4_get_vara().

Changed many malloc()+strcpy() pairs into calls to strdup().

Cleaned up misc. other minor Coverity issues.
2013-12-08 03:29:26 -06:00
dmh
c6cbfb57f5 Removed old code from NCF213 2013-12-07 20:19:53 -07:00
Ward Fisher
6d26b8c27c Fixed an issue with make distclean where a test file was not being deleted. 2013-12-06 11:33:37 -07:00
Ward Fisher
45196f50ae Updated documentation for forthcoming release candidate. 2013-12-06 11:08:43 -07:00
Russ Rew
ad4ca3dfe9 Merge branch 'master' of http://github.com/Unidata/netcdf-c 2013-12-05 20:58:58 -07:00
Russ Rew
0bfdb80b68 Added entry or NCF-177. 2013-12-05 20:57:56 -07:00
Ward Fisher
0af7499eb4 Added a couple items to .gitignore.
Corrected an issue reported by Coverity static analysis where memory was allocated but was not freed.
2013-12-04 16:02:43 -07:00
Quincey Koziol
4a894dc154 Correct minor unmerged change. 2013-12-01 00:09:27 -06:00
Quincey Koziol
5ccb8a24b5 Merge branch 'master' into ncf-177 2013-11-30 23:40:26 -06:00
Quincey Koziol
e66e6e2b3a Merge remote-tracking branch 'upstream/master' 2013-11-30 23:24:44 -06:00
Quincey Koziol
e1fc13b215 Many changes to address NCF-177 (renaming dimensions and variables). Also
many cleanups to fix compiler warnings, streamline iteration over objects
in HDF5 file when opening the file, and generally straightening out the code
to be cleaner and simpler.

Tested on Mac OS/X with gcc 4.8 and OpenMPI (which uses clang).
2013-11-30 23:20:28 -06:00
Ward Fisher
538505f570 Merge branch 'master' of https://github.com/Unidata/netcdf-c 2013-11-27 17:07:36 -06:00
Ward Fisher
d484b9ac33 Corrected two possible ‘uninitialized variable’, ‘dereference null pointer’ bugs identified via clang static analysis. 2013-11-27 17:03:59 -06:00
Russ Rew
66434cdb8a Fix test for proper error return when invalid coordinate specified for
nc_get_var1_ushaort call.
2013-11-26 13:33:18 -07:00
Ward Fisher
1d7ec898ff Updated release notes. 2013-11-22 16:09:51 -07:00
Ward Fisher
7c6a9aa34a Cleaned up configure.ac a little bit, added a check for libjpeg when compiling with hdf4 support. 2013-11-22 16:03:03 -07:00
Ward Fisher
d1886a5524 CMake: Added option to run HDF4 file tests, as well as a check for ‘wget’; without wget, these tests cannot be run. 2013-11-22 15:45:53 -07:00
Ward Fisher
d1afda5c7d CMake: Added a check for libjpeg when compiling with HDF4 support. 2013-11-22 15:20:21 -07:00
Ward Fisher
842ca6b998 It appears that we will need to do another release candidate. Bumped the revision in the configuration tools. 2013-11-22 14:53:42 -07:00
Ward Fisher
18afaa9145 Corrected several convoluted chains in cache.c by which either null pointers might be dereferenced, or by which a pointer might be referenced after being freed. These were reported by Clang static analysis. 2013-11-22 13:49:21 -07:00
Ward Fisher
906f2a7513 Corrected a garbage-value error reported by Clang. 2013-11-22 13:48:30 -07:00
Ward Fisher
74fce49fe1 Corrected an issue reported by clang related to dereferencing a NULL value. 2013-11-20 14:03:55 -07:00
Ward Fisher
1d007eb101 Addressed a number of minor bugs reported by Clang. 2013-11-20 13:37:21 -07:00
dmh
ea7c0fc91b [NCF-280]/TLO-836022
Fix bug where leading backslash digit
in name was not being properly handled.
The reason was that I accidentally attemped to allow \x... and \0...
escapes in identifiers. This make identifiers
with leading escaped digits not work any more.
Also added test case.
2013-11-19 21:58:56 -07:00
dmh
cc95bd3d47 1. [NCF-276]/XXI-796914
Columbia server does not serve up proper
   opendap DDS replies. The Dataset {...} name
   changes depending on if the request has certain
   kinds of constraints.
   Code for a hack was not being used, so restore it.
   The fix is to effectively ignore differences in
   Dataset node names if the code is coming from
   columbia.edu.

2. [NCF-278]
   The ncgen code is improperly typing int64 integer constants
   as uint64.

3. [NCF-279]
   Empty string constants were not being properly
   filled when their target array is length 1 or more.
2013-11-17 14:26:14 -07:00
dmh
d6061db87d define mode_t when under windows 2013-11-15 15:41:17 -07:00
dmh
c9bb8c0abf Add http auth test to cmake 2013-11-15 13:44:27 -07:00
dmh
d4bed07cec pull conflict 2013-11-15 11:40:01 -07:00
dmh
baed147ba4 [NCF-277]
Fix Http Basic Authorization.
The problem is really in oc2.0.
In order for it to work,
the CURLOPT_COOKIEJAR must have
a non-null value. The code
was already there, but not being
used for some reason.
1. fixed cookiejar code in oc2.0
2. synched oc2.0 with netcdf-c/oc2
3. added a test case
2013-11-15 11:38:54 -07:00
dmh
2bc308432d sync with oc2.0 2013-11-14 15:13:20 -07:00
Russ Rew
448d55692d Added entry for NCF-275 bug fix. 2013-11-13 13:49:39 -07:00
Russ Rew
3327a3c2c9 Add reference file for ncdump -bc test 2013-11-13 13:45:20 -07:00
Russ Rew
90933c7070 Add ncdump brief annotation test using -bc option 2013-11-13 13:44:03 -07:00
Russ Rew
911bdab962 Fix for bug NCF-275, ncdump -b annotation 2013-11-13 11:03:18 -07:00
Russ Rew
8e18ede2fe Fix full annotation bug described in NCF-275 2013-11-12 06:40:03 -07:00
Ward Fisher
5707513756 Updated the Windows download page to reflect latest release candidate (rc4). 2013-11-06 14:22:30 -07:00
Ward Fisher
55815fb8df Updated release notes to reflect a fix in man file generation when using CMake. 2013-11-06 14:03:04 -07:00
Ward Fisher
57521c0284 Updated RELEASE_NOTES.md 2013-11-05 16:47:55 -07:00
Ward Fisher
33e15a4495 Merge branch 'master' of https://github.com/Unidata/netcdf-c 2013-11-04 13:34:37 -07:00
Ward Fisher
001d950548 Removed a debug statement. 2013-11-04 13:34:20 -07:00
Ward Fisher
5566cbb772 Added a check for _filelengthi64 in configuration. When found, this will be used instead of fstat when computing file length. 2013-11-04 12:58:33 -07:00
dmh
7d03c2e34e Added stripped grammar to ncgen man page (ncgen.1). 2013-11-04 10:43:45 -07:00
Ward Fisher
bda59030cb Replaced call to fstat with call to filelength, on apropriate system. 2013-11-01 16:30:33 -06:00
Ward Fisher
14ba5f0385 Added definition for Windows systems to use 64-bit fstat. 2013-10-31 11:10:20 -06:00
Ward Fisher
09dab2e86a Merge branch 'master' of https://github.com/Unidata/netcdf-c 2013-10-31 10:05:45 -06:00
Ward Fisher
93a3897dab Corrected an issue in genlib.c where a strcpy was used with overlapping buffers. 2013-10-30 16:04:35 -06:00
Ward Fisher
52c27b614f Merge branch 'master' of https://github.com/Unidata/netcdf-c 2013-10-28 10:46:21 -06:00
Russ Rew
508ee74874 In load.c, follow autoconf recommendations for including config.h (www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Configuration-Headers.html) 2013-10-25 12:46:31 -06:00
Russ Rew
64af265981 Move config.h include to top of includes. 2013-10-25 12:32:02 -06:00
Russ Rew
7e69763f15 Merge branch 'master' of http://github.com/Unidata/netcdf-c 2013-10-25 12:30:33 -06:00