netcdf-c/oc2
Dennis Heimbigner 4db4393e69 Begin changing over to use strlcat instead of strncat because
strlcat provides better protection against buffer overflows.

Code is taken from the FreeBSD project source code. Specifically:
https://github.com/freebsd/freebsd/blob/master/lib/libc/string/strlcat.c
License appears to be acceptable, but needs to be checked by e.g. Debian.

Step 1:
1. Add to netcdf-c/include/ncconfigure.h to use our version
   if not already available as determined by HAVE_STRLCAT in config.h.
2. Add the strlcat code to libdispatch/dstring.c
3. Turns out that strlcat was already defined in several places.
   So remove it from:
	ncgen3/genlib.c
	ncdump/dumplib.c
3. Define strlcat extern definition in ncconfigure.h.
4. Modify following directories to use strlcat:
	libdap2 libdap4 ncdap_test dap4_test
   Will do others in subsequent steps.
2017-11-23 10:55:24 -07:00
..
auth.html.in Github issue 152: https://github.com/Unidata/netcdf-c/issues/152 2015-11-29 20:38:12 -07:00
CMakeLists.txt Removed dangling reference to old file. 2017-11-03 16:07:39 -06:00
dap.y Fix for github issue https://github.com/Unidata/netcdf-c/issues/310. 2017-06-28 13:51:01 -06:00
daplex.c Fix https://github.com/Unidata/netcdf-c/issues/569 2017-11-02 13:04:03 -06:00
dapparse.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
dapparselex.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
dapy.c Fix for github issue https://github.com/Unidata/netcdf-c/issues/310. 2017-06-28 13:51:01 -06:00
dapy.h Fix for Github issue 314. 2016-09-01 22:06:07 -06:00
dodsrc.example move from oc1.0 to oc2.0; create new dir oc2 2012-07-31 20:34:13 +00:00
Make0 Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
Makefile.am Merge branch 'master' into newrc.dmh 2017-11-03 14:57:27 -06:00
oc.c Removed dangling reference to old file. 2017-11-03 16:07:39 -06:00
oc.css Github issue 152: https://github.com/Unidata/netcdf-c/issues/152 2015-11-29 20:38:12 -07:00
oc.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
occompile.c upgrade new oc files to nclist/ncbytes 2017-03-17 17:20:02 -06:00
occompile.h move from oc1.0 to oc2.0; create new dir oc2 2012-07-31 20:34:13 +00:00
occonstraints.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
occurlflags.c re: pull request: https://github.com/Unidata/netcdf-c/issues/487 2017-09-18 16:44:31 -06:00
occurlfunctions.c Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
occurlfunctions.h Merge master and resolve conflicts 2017-10-28 13:57:23 -06:00
ocdata.c upgrade new oc files to nclist/ncbytes 2017-03-17 17:20:02 -06:00
ocdata.h 1. synch with oc lib 2015-03-02 20:26:39 -07:00
ocdatatypes.h move from oc1.0 to oc2.0; create new dir oc2 2012-07-31 20:34:13 +00:00
ocdebug.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
ocdebug.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
ocdump.c Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
ocdump.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
ochttp.c Merge master and resolve conflicts 2017-10-28 13:57:23 -06:00
ochttp.h Initial version 2017-08-31 14:19:56 -06:00
ocinternal.c Merge branch 'master' into newrc.dmh 2017-11-03 14:57:27 -06:00
ocinternal.h This pr should probably be delayed until after Version 4.5. 2017-09-02 18:09:36 -06:00
ocnode.c Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
ocnode.h upgrade new oc files to nclist/ncbytes 2017-03-17 17:20:02 -06:00
ocread.c This pr should probably be delayed until after Version 4.5. 2017-09-02 18:09:36 -06:00
ocread.h move from oc1.0 to oc2.0; create new dir oc2 2012-07-31 20:34:13 +00:00
ocutil.c This pr should probably be delayed until after Version 4.5. 2017-09-02 18:09:36 -06:00
ocutil.h Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
ocx.h move from oc1.0 to oc2.0; create new dir oc2 2012-07-31 20:34:13 +00:00
xxdr.c This pr should probably be delayed until after Version 4.5. 2017-09-02 18:09:36 -06:00
xxdr.h 1. synch with oc lib 2015-03-02 20:26:39 -07:00