netcdf-c/ncgen
Dennis Heimbigner 245961de00 re: github issues
https://github.com/Unidata/netcdf-c/issues/1168
    https://github.com/Unidata/netcdf-c/issues/1163
    https://github.com/Unidata/netcdf-c/issues/1162

This PR partially fixes memory leaks in the netcdf-c library,
in the ncdump utility, and in some test cases.

The netcdf-c library now runs memory clean with the assumption
that the --disable-utilities option is used. The primary remaining
problem is ncgen. Once that is fixed, I believe the netcdf-c library
will run memory clean with no limitations.

Notes
-----------
1. Memory checking was performed using gcc -fsanitize=address.
   Valgrind-based testing has yet to be performed.
2. The pnetcdf, hdf4, and examples code has not been tested.

Misc. Non-leak changes
1. Make tst_diskless2 only run when netcdf4 is enabled (issue 1162)
2. Fix CmakeLists.txt to turn off logging if ENABLE_NETCDF_4 is OFF
3. Isolated all my debug scripts into a single top-level directory
   called debug
4. Fix some USE_NETCDF4 dependencies in nc_test and nc_test4 Makefile.am
2018-10-30 20:48:12 -06:00
..
bindata.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
bytebuffer.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
bytebuffer.h Resolve Lynton's vlen problems (partially) re: jira NCF-145 2012-02-14 00:25:32 +00:00
c0_4.cdl Tweaking cdl files so that we can compare against them. 2016-11-18 11:07:20 -07:00
c0.cdl Tweaking cdl files so that we can compare against them. 2016-11-18 11:07:20 -07:00
c5.cdl merge-squash 2015-10-09 10:12:11 -06:00
cdata.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
cdfdata.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
CMakeLists.txt Cmake 2017-06-06 16:21:04 -06:00
cmldata.c removed executable permissions from all code files 2011-10-04 16:05:11 +00:00
compound_datasize_test2.cdl support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
compound_datasize_test.cdl Reformated source cdl to allow for a diff test. 2016-11-16 10:57:36 -07:00
ctests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
cvt.c Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
data.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
data.h support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
debug.c Fix missing return statement identified by lgtm 2018-04-23 10:54:44 -06:00
debug.h Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
depend moving to trunk subdir 2010-06-03 13:24:43 +00:00
dump.c [NCF-265] 2013-09-20 20:43:09 -06:00
dump.h Refactored 'Constant' to 'NCConstant' in ncgen/ to avoid 2013-07-16 20:22:48 +00:00
env Use short "-k" codes instead of deprecated version numbers for ncgen and nccopy tests 2014-12-28 22:42:05 -07:00
escapes.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
f77data.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
foo.cdl Resolve Lynton's vlen problems (partially) re: jira NCF-145 2012-02-14 00:25:32 +00:00
ftests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
genbin.c Corrected a couple of potential memory related issues and an uninitialized variable issue. 2018-06-08 11:38:11 -06:00
genc.c Fix compression logic 2018-05-07 08:34:41 -06:00
genchar.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
gencml.c [NCF-265] 2013-09-20 20:43:09 -06:00
generate.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
generr.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
generr.h Addressed coverity issue 719941, missing varargs cleanup. 2016-07-06 15:41:49 -06:00
genf77.c re: Jira NCF-309 2014-09-18 18:26:06 -06:00
genj.c Cleaned up clang-reported issue: dead assignment. 2014-04-21 10:56:57 -06:00
genjjni.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
genjstd.c moving to trunk subdir 2010-06-03 13:24:43 +00:00
genlib.c Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
genlib.h Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
getfill.c Fix issues with Github pull request 187 2016-01-08 12:55:11 -07:00
includes.h 1. Keep up to date by merging master 2017-10-08 15:56:45 -06:00
internals.html Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
jdata.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
jdatajni.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
jdatastd.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
jtests.sh Use short "-k" codes instead of deprecated version numbers for ncgen and nccopy tests 2014-12-28 22:42:05 -07:00
lfs-tests Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
list.c fix some coverity complaints 2014-04-07 13:00:47 -06:00
list.h Added MSVC-compatibility items. 2012-08-27 21:19:25 +00:00
main.c There was a request to extend the provenance information 2018-08-25 21:44:41 -06:00
Makefile.am merge master and resolve conflicts 2017-08-12 15:50:31 -06:00
makeparser.sh Swapped /bin/bash for /bin/sh to test on osx. 2018-08-12 23:01:08 -06:00
nc_iter.c Corrected a garbage-value error reported by Clang. 2013-11-22 13:48:30 -07:00
nc_iter.h added guards for header files that needed them 2018-01-17 09:20:20 -07:00
ncf199.cdl Updating ncgen run_nc4_tests.sh script to ensure that results are tested in addition to whether or not ncgen exited successfully. 2016-11-16 11:09:14 -07:00
ncf345.cdl Misc. source comment typos 2018-04-26 23:04:01 -04:00
ncgen.1 Fix spelling errors. 2016-08-28 15:45:36 +02:00
ncgen.h Misc. source comment typos 2018-04-26 23:04:01 -04:00
ncgen.l Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgen.y Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgenl.c Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgeny.c Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgeny.h changed macro STREQ to NCSTREQ to avoid name collusion with HDF4 library 2018-05-12 08:55:51 -06:00
odom.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
odom.h re: Jira NCF-309 2014-09-18 18:26:06 -06:00
ref_camrun.cdl Misc. source comment typos 2018-04-26 23:04:01 -04:00
run_tests2.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
semantics.c Re-Implement the nc_get/put_vars operations for netcdf-4 using the 2018-05-22 16:50:52 -06:00
tst_gattenum.cdl Apparently we have no .cdl test cases that have 2017-03-18 17:57:48 -06:00
tst_usuffix.cdl re: gihub issue https://github.com/Unidata/netcdf-c/issues/380 2017-03-24 18:56:14 -06:00
util.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
util.h Add provenance info for netcdf-4 files. 2016-05-07 14:32:07 -06:00
XGetopt.c Merge from latest netcdf-cmake branch. 2012-12-05 18:35:42 +00:00