mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
4db4393e69
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. |
||
---|---|---|
.. | ||
obsolete | ||
cache.c | ||
cdf.c | ||
CMakeLists.txt | ||
common.c | ||
constraints.c | ||
constraints.h | ||
cvt | ||
dapattr.c | ||
dapcvt.c | ||
dapdebug.c | ||
dapdebug.h | ||
dapdump.c | ||
dapdump.h | ||
dapincludes.h | ||
dapnc.h | ||
dapodom.c | ||
dapodom.h | ||
daputil.c | ||
daputil.h | ||
dce.y | ||
dceconstraints.c | ||
dceconstraints.h | ||
dcelex.c | ||
dceparse.c | ||
dceparselex.h | ||
dcetab.c | ||
dcetab.h | ||
env | ||
getvara.c | ||
getvara.h | ||
main.c | ||
Make0 | ||
Makefile.am | ||
nccommon.h | ||
ncd2dispatch.c | ||
ncd2dispatch.h | ||
ncdap.c | ||
ncdapa.c | ||
ncdaperr.c | ||
test1.sh | ||
test_vara.c | ||
todo | ||
translation.html |