Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/netcf-0.2.8/tests/tutil.c Examining data/netcf-0.2.8/tests/tutil.h Examining data/netcf-0.2.8/tests/test-debian.c Examining data/netcf-0.2.8/tests/cutest.h Examining data/netcf-0.2.8/tests/test-suse.c Examining data/netcf-0.2.8/tests/test-redhat.c Examining data/netcf-0.2.8/tests/cutest.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_types.c Examining data/netcf-0.2.8/gnulib/tests/test-close.c Examining data/netcf-0.2.8/gnulib/tests/test-stdbool.c Examining data/netcf-0.2.8/gnulib/tests/test-dup.c Examining data/netcf-0.2.8/gnulib/tests/test-ftell3.c Examining data/netcf-0.2.8/gnulib/tests/test-posix_spawn_file_actions_adddup2.c Examining data/netcf-0.2.8/gnulib/tests/test-verify.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_uio.c Examining data/netcf-0.2.8/gnulib/tests/localename.h Examining data/netcf-0.2.8/gnulib/tests/test-fstat.c Examining data/netcf-0.2.8/gnulib/tests/spawn_faction_adddup2.c Examining data/netcf-0.2.8/gnulib/tests/test-sigprocmask.c Examining data/netcf-0.2.8/gnulib/tests/binary-io.c Examining data/netcf-0.2.8/gnulib/tests/test-stdint.c Examining data/netcf-0.2.8/gnulib/tests/test-fputc.c Examining data/netcf-0.2.8/gnulib/tests/lstat.c Examining data/netcf-0.2.8/gnulib/tests/spawn_int.h Examining data/netcf-0.2.8/gnulib/tests/test-c-strcasecmp.c Examining data/netcf-0.2.8/gnulib/tests/glthread/thread.c Examining data/netcf-0.2.8/gnulib/tests/glthread/thread.h Examining data/netcf-0.2.8/gnulib/tests/glthread/yield.h Examining data/netcf-0.2.8/gnulib/tests/test-open.c Examining data/netcf-0.2.8/gnulib/tests/test-inet_pton.c Examining data/netcf-0.2.8/gnulib/tests/test-ftello3.c Examining data/netcf-0.2.8/gnulib/tests/test-fgetc.c Examining data/netcf-0.2.8/gnulib/tests/getpagesize.c Examining data/netcf-0.2.8/gnulib/tests/test-c-strncasecmp.c Examining data/netcf-0.2.8/gnulib/tests/test-dup2.c Examining data/netcf-0.2.8/gnulib/tests/test-inet_ntop.c Examining data/netcf-0.2.8/gnulib/tests/test-malloca.c Examining data/netcf-0.2.8/gnulib/tests/test-setenv.c Examining data/netcf-0.2.8/gnulib/tests/test-thread_create.c Examining data/netcf-0.2.8/gnulib/tests/ignore-value.h Examining data/netcf-0.2.8/gnulib/tests/locale.in.h Examining data/netcf-0.2.8/gnulib/tests/test-environ.c Examining data/netcf-0.2.8/gnulib/tests/test-lstat.c Examining data/netcf-0.2.8/gnulib/tests/test-spawn.c Examining data/netcf-0.2.8/gnulib/tests/test-posix_spawn_file_actions_addopen.c Examining data/netcf-0.2.8/gnulib/tests/test-netinet_in.c Examining data/netcf-0.2.8/gnulib/tests/test-rawmemchr.c Examining data/netcf-0.2.8/gnulib/tests/langinfo.in.h Examining data/netcf-0.2.8/gnulib/tests/test-usleep.c Examining data/netcf-0.2.8/gnulib/tests/test-sched.c Examining data/netcf-0.2.8/gnulib/tests/spawnattr_setsigmask.c Examining data/netcf-0.2.8/gnulib/tests/test-ftello.c Examining data/netcf-0.2.8/gnulib/tests/spawn_faction_addopen.c Examining data/netcf-0.2.8/gnulib/tests/test-thread_self.c Examining data/netcf-0.2.8/gnulib/tests/test-setlocale1.c Examining data/netcf-0.2.8/gnulib/tests/test-symlink.h Examining data/netcf-0.2.8/gnulib/tests/test-vasprintf.c Examining data/netcf-0.2.8/gnulib/tests/spawnattr_init.c Examining data/netcf-0.2.8/gnulib/tests/test-intprops.c Examining data/netcf-0.2.8/gnulib/tests/getcwd-lgpl.c Examining data/netcf-0.2.8/gnulib/tests/test-alloca-opt.c Examining data/netcf-0.2.8/gnulib/tests/test-c-ctype.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_socket.c Examining data/netcf-0.2.8/gnulib/tests/test-read-file.c Examining data/netcf-0.2.8/gnulib/tests/test-stdio.c Examining data/netcf-0.2.8/gnulib/tests/fdopen.c Examining data/netcf-0.2.8/gnulib/tests/test-float.c Examining data/netcf-0.2.8/gnulib/tests/spawn_faction_init.c Examining data/netcf-0.2.8/gnulib/tests/getdtablesize.c Examining data/netcf-0.2.8/gnulib/tests/test-strerror_r.c Examining data/netcf-0.2.8/gnulib/tests/test-ftell.c Examining data/netcf-0.2.8/gnulib/tests/test-lstat.h Examining data/netcf-0.2.8/gnulib/tests/test-signal-h.c Examining data/netcf-0.2.8/gnulib/tests/spawnattr_setflags.c Examining data/netcf-0.2.8/gnulib/tests/test-gettimeofday.c Examining data/netcf-0.2.8/gnulib/tests/test-lseek.c Examining data/netcf-0.2.8/gnulib/tests/test-stat.h Examining data/netcf-0.2.8/gnulib/tests/test-binary-io.c Examining data/netcf-0.2.8/gnulib/tests/test-stddef.c Examining data/netcf-0.2.8/gnulib/tests/test-stdalign.c Examining data/netcf-0.2.8/gnulib/tests/test-unsetenv.c Examining data/netcf-0.2.8/gnulib/tests/test-vasnprintf.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_wait.c Examining data/netcf-0.2.8/gnulib/tests/test-inttypes.c Examining data/netcf-0.2.8/gnulib/tests/test-open.h Examining data/netcf-0.2.8/gnulib/tests/test-stdlib.c Examining data/netcf-0.2.8/gnulib/tests/test-getopt_long.h Examining data/netcf-0.2.8/gnulib/tests/putenv.c Examining data/netcf-0.2.8/gnulib/tests/zerosize-ptr.h Examining data/netcf-0.2.8/gnulib/tests/test-lock.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_wait.h Examining data/netcf-0.2.8/gnulib/tests/test-wchar.c Examining data/netcf-0.2.8/gnulib/tests/test-errno.c Examining data/netcf-0.2.8/gnulib/tests/test-safe-alloc.c Examining data/netcf-0.2.8/gnulib/tests/spawn_faction_addclose.c Examining data/netcf-0.2.8/gnulib/tests/test-stat.c Examining data/netcf-0.2.8/gnulib/tests/spawnattr_destroy.c Examining data/netcf-0.2.8/gnulib/tests/test-memchr.c Examining data/netcf-0.2.8/gnulib/tests/test-sleep.c Examining data/netcf-0.2.8/gnulib/tests/binary-io.h Examining data/netcf-0.2.8/gnulib/tests/test-symlink.c Examining data/netcf-0.2.8/gnulib/tests/test-pathmax.c Examining data/netcf-0.2.8/gnulib/tests/test-unistd.c Examining data/netcf-0.2.8/gnulib/tests/test-posix_spawn_file_actions_addclose.c Examining data/netcf-0.2.8/gnulib/tests/test-posix_spawn1.c Examining data/netcf-0.2.8/gnulib/tests/spawn_faction_destroy.c Examining data/netcf-0.2.8/gnulib/tests/localename.c Examining data/netcf-0.2.8/gnulib/tests/test-ignore-value.c Examining data/netcf-0.2.8/gnulib/tests/test-fdopen.c Examining data/netcf-0.2.8/gnulib/tests/test-getcwd-lgpl.c Examining data/netcf-0.2.8/gnulib/tests/test-getdtablesize.c Examining data/netcf-0.2.8/gnulib/tests/test-sockets.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_time.c Examining data/netcf-0.2.8/gnulib/tests/setlocale.c Examining data/netcf-0.2.8/gnulib/tests/intprops.h Examining data/netcf-0.2.8/gnulib/tests/symlink.c Examining data/netcf-0.2.8/gnulib/tests/test-ftello4.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_stat.c Examining data/netcf-0.2.8/gnulib/tests/test-strchrnul.c Examining data/netcf-0.2.8/gnulib/tests/test-sys_ioctl.c Examining data/netcf-0.2.8/gnulib/tests/test-fwrite.c Examining data/netcf-0.2.8/gnulib/tests/test-localename.c Examining data/netcf-0.2.8/gnulib/tests/signature.h Examining data/netcf-0.2.8/gnulib/tests/test-arpa_inet.c Examining data/netcf-0.2.8/gnulib/tests/test-getopt.c Examining data/netcf-0.2.8/gnulib/tests/macros.h Examining data/netcf-0.2.8/gnulib/tests/inttypes.in.h Examining data/netcf-0.2.8/gnulib/tests/fpucw.h Examining data/netcf-0.2.8/gnulib/tests/test-time.c Examining data/netcf-0.2.8/gnulib/tests/dup.c Examining data/netcf-0.2.8/gnulib/tests/test-string.c Examining data/netcf-0.2.8/gnulib/tests/same-inode.h Examining data/netcf-0.2.8/gnulib/tests/test-locale.c Examining data/netcf-0.2.8/gnulib/tests/test-fcntl-h.c Examining data/netcf-0.2.8/gnulib/tests/test-setlocale2.c Examining data/netcf-0.2.8/gnulib/tests/test-posix_spawn2.c Examining data/netcf-0.2.8/gnulib/tests/test-fread.c Examining data/netcf-0.2.8/gnulib/tests/unsetenv.c Examining data/netcf-0.2.8/gnulib/tests/test-getopt.h Examining data/netcf-0.2.8/gnulib/tests/test-langinfo.c Examining data/netcf-0.2.8/gnulib/tests/test-raise.c Examining data/netcf-0.2.8/gnulib/lib/stdbool.in.h Examining data/netcf-0.2.8/gnulib/lib/stdio-impl.h Examining data/netcf-0.2.8/gnulib/lib/sched.in.h Examining data/netcf-0.2.8/gnulib/lib/dosname.h Examining data/netcf-0.2.8/gnulib/lib/strerror-override.c Examining data/netcf-0.2.8/gnulib/lib/fd-hook.h Examining data/netcf-0.2.8/gnulib/lib/stdlib.in.h Examining data/netcf-0.2.8/gnulib/lib/c-strncasecmp.c Examining data/netcf-0.2.8/gnulib/lib/sys_types.in.h Examining data/netcf-0.2.8/gnulib/lib/setenv.c Examining data/netcf-0.2.8/gnulib/lib/spawn_int.h Examining data/netcf-0.2.8/gnulib/lib/xsize.h Examining data/netcf-0.2.8/gnulib/lib/sigprocmask.c Examining data/netcf-0.2.8/gnulib/lib/glthread/lock.c Examining data/netcf-0.2.8/gnulib/lib/glthread/threadlib.c Examining data/netcf-0.2.8/gnulib/lib/glthread/lock.h Examining data/netcf-0.2.8/gnulib/lib/fd-hook.c Examining data/netcf-0.2.8/gnulib/lib/netinet_in.in.h Examining data/netcf-0.2.8/gnulib/lib/malloc.c Examining data/netcf-0.2.8/gnulib/lib/float.in.h Examining data/netcf-0.2.8/gnulib/lib/lseek.c Examining data/netcf-0.2.8/gnulib/lib/w32sock.h Examining data/netcf-0.2.8/gnulib/lib/vasprintf.c Examining data/netcf-0.2.8/gnulib/lib/stdalign.in.h Examining data/netcf-0.2.8/gnulib/lib/read-file.c Examining data/netcf-0.2.8/gnulib/lib/waitpid.c Examining data/netcf-0.2.8/gnulib/lib/sys_ioctl.in.h Examining data/netcf-0.2.8/gnulib/lib/float+.h Examining data/netcf-0.2.8/gnulib/lib/printf-parse.c Examining data/netcf-0.2.8/gnulib/lib/sleep.c Examining data/netcf-0.2.8/gnulib/lib/sys_uio.in.h Examining data/netcf-0.2.8/gnulib/lib/stat.c Examining data/netcf-0.2.8/gnulib/lib/pathmax.h Examining data/netcf-0.2.8/gnulib/lib/stddef.in.h Examining data/netcf-0.2.8/gnulib/lib/getopt1.c Examining data/netcf-0.2.8/gnulib/lib/c-strcase.h Examining data/netcf-0.2.8/gnulib/lib/msvc-inval.c Examining data/netcf-0.2.8/gnulib/lib/verify.h Examining data/netcf-0.2.8/gnulib/lib/printf-args.h Examining data/netcf-0.2.8/gnulib/lib/msvc-nothrow.c Examining data/netcf-0.2.8/gnulib/lib/gettimeofday.c Examining data/netcf-0.2.8/gnulib/lib/malloca.c Examining data/netcf-0.2.8/gnulib/lib/safe-alloc.c Examining data/netcf-0.2.8/gnulib/lib/xsize.c Examining data/netcf-0.2.8/gnulib/lib/signal.in.h Examining data/netcf-0.2.8/gnulib/lib/msvc-nothrow.h Examining data/netcf-0.2.8/gnulib/lib/getopt.c Examining data/netcf-0.2.8/gnulib/lib/read-file.h Examining data/netcf-0.2.8/gnulib/lib/printf-parse.h Examining data/netcf-0.2.8/gnulib/lib/spawni.c Examining data/netcf-0.2.8/gnulib/lib/sockets.c Examining data/netcf-0.2.8/gnulib/lib/printf-args.c Examining data/netcf-0.2.8/gnulib/lib/close.c Examining data/netcf-0.2.8/gnulib/lib/stdint.in.h Examining data/netcf-0.2.8/gnulib/lib/sys_socket.in.h Examining data/netcf-0.2.8/gnulib/lib/pthread.in.h Examining data/netcf-0.2.8/gnulib/lib/pthread.c Examining data/netcf-0.2.8/gnulib/lib/rawmemchr.c Examining data/netcf-0.2.8/gnulib/lib/getopt_int.h Examining data/netcf-0.2.8/gnulib/lib/asnprintf.c Examining data/netcf-0.2.8/gnulib/lib/time.in.h Examining data/netcf-0.2.8/gnulib/lib/ftell.c Examining data/netcf-0.2.8/gnulib/lib/unistd.in.h Examining data/netcf-0.2.8/gnulib/lib/wchar.in.h Examining data/netcf-0.2.8/gnulib/lib/unistd.c Examining data/netcf-0.2.8/gnulib/lib/alloca.in.h Examining data/netcf-0.2.8/gnulib/lib/c-ctype.h Examining data/netcf-0.2.8/gnulib/lib/memchr.c Examining data/netcf-0.2.8/gnulib/lib/safe-alloc.h Examining data/netcf-0.2.8/gnulib/lib/size_max.h Examining data/netcf-0.2.8/gnulib/lib/itold.c Examining data/netcf-0.2.8/gnulib/lib/fcntl.in.h Examining data/netcf-0.2.8/gnulib/lib/strerror-override.h Examining data/netcf-0.2.8/gnulib/lib/usleep.c Examining data/netcf-0.2.8/gnulib/lib/float.c Examining data/netcf-0.2.8/gnulib/lib/vasnprintf.c Examining data/netcf-0.2.8/gnulib/lib/fstat.c Examining data/netcf-0.2.8/gnulib/lib/sockets.h Examining data/netcf-0.2.8/gnulib/lib/gettext.h Examining data/netcf-0.2.8/gnulib/lib/spawn.in.h Examining data/netcf-0.2.8/gnulib/lib/asprintf.c Examining data/netcf-0.2.8/gnulib/lib/string.in.h Examining data/netcf-0.2.8/gnulib/lib/sys_stat.in.h Examining data/netcf-0.2.8/gnulib/lib/c-ctype.c Examining data/netcf-0.2.8/gnulib/lib/strchrnul.c Examining data/netcf-0.2.8/gnulib/lib/realloc.c Examining data/netcf-0.2.8/gnulib/lib/stdio.in.h Examining data/netcf-0.2.8/gnulib/lib/inet_pton.c Examining data/netcf-0.2.8/gnulib/lib/getopt.in.h Examining data/netcf-0.2.8/gnulib/lib/open.c Examining data/netcf-0.2.8/gnulib/lib/arpa_inet.in.h Examining data/netcf-0.2.8/gnulib/lib/spawnp.c Examining data/netcf-0.2.8/gnulib/lib/ftello.c Examining data/netcf-0.2.8/gnulib/lib/vasnprintf.h Examining data/netcf-0.2.8/gnulib/lib/raise.c Examining data/netcf-0.2.8/gnulib/lib/c-strcasecmp.c Examining data/netcf-0.2.8/gnulib/lib/sys_socket.c Examining data/netcf-0.2.8/gnulib/lib/sys_wait.in.h Examining data/netcf-0.2.8/gnulib/lib/malloca.h Examining data/netcf-0.2.8/gnulib/lib/dup2.c Examining data/netcf-0.2.8/gnulib/lib/errno.in.h Examining data/netcf-0.2.8/gnulib/lib/strerror_r.c Examining data/netcf-0.2.8/gnulib/lib/msvc-inval.h Examining data/netcf-0.2.8/gnulib/lib/inet_ntop.c Examining data/netcf-0.2.8/gnulib/lib/socket.c Examining data/netcf-0.2.8/gnulib/lib/sys_time.in.h Examining data/netcf-0.2.8/build-aux/snippet/arg-nonnull.h Examining data/netcf-0.2.8/build-aux/snippet/c++defs.h Examining data/netcf-0.2.8/build-aux/snippet/_Noreturn.h Examining data/netcf-0.2.8/build-aux/snippet/warn-on-use.h Examining data/netcf-0.2.8/src/xslt_ext.c Examining data/netcf-0.2.8/src/dutil_posix.c Examining data/netcf-0.2.8/src/ref.h Examining data/netcf-0.2.8/src/ncftransform.c Examining data/netcf-0.2.8/src/internal.h Examining data/netcf-0.2.8/src/dutil_mswindows.h Examining data/netcf-0.2.8/src/dutil_linux.c Examining data/netcf-0.2.8/src/netcf.c Examining data/netcf-0.2.8/src/drv_redhat.c Examining data/netcf-0.2.8/src/netcf.h Examining data/netcf-0.2.8/src/dutil_linux.h Examining data/netcf-0.2.8/src/ncftool.c Examining data/netcf-0.2.8/src/dutil.c Examining data/netcf-0.2.8/src/dutil_posix.h Examining data/netcf-0.2.8/src/drv_debian.c Examining data/netcf-0.2.8/src/drv_mswindows.c Examining data/netcf-0.2.8/src/dutil.h Examining data/netcf-0.2.8/src/list.h Examining data/netcf-0.2.8/src/dutil_mswindows.c Examining data/netcf-0.2.8/src/drv_suse.c FINAL RESULTS: data/netcf-0.2.8/gnulib/lib/stdio.in.h:725:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/netcf-0.2.8/gnulib/lib/stdio.in.h:727:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:432:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define lchmod chmod data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:436:34: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, data/netcf-0.2.8/gnulib/lib/unistd.in.h:260:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/netcf-0.2.8/gnulib/lib/unistd.in.h:274:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/netcf-0.2.8/gnulib/lib/unistd.in.h:275:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/netcf-0.2.8/gnulib/lib/unistd.in.h:277:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/netcf-0.2.8/gnulib/lib/unistd.in.h:279:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:282:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/netcf-0.2.8/gnulib/lib/unistd.in.h:285:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:287:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/netcf-0.2.8/gnulib/lib/unistd.in.h:289:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/netcf-0.2.8/gnulib/lib/unistd.in.h:291:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/netcf-0.2.8/gnulib/lib/unistd.in.h:1269:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define readlink rpl_readlink data/netcf-0.2.8/gnulib/lib/unistd.in.h:1271:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_RPL (readlink, ssize_t, data/netcf-0.2.8/gnulib/lib/unistd.in.h:1274:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_RPL (readlink, ssize_t, data/netcf-0.2.8/gnulib/lib/unistd.in.h:1278:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_SYS (readlink, ssize_t, data/netcf-0.2.8/gnulib/lib/unistd.in.h:1282:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_SYS (readlink, ssize_t, data/netcf-0.2.8/gnulib/lib/unistd.in.h:1285:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIASWARN (readlink); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1287:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/netcf-0.2.8/gnulib/lib/unistd.in.h:1289:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/netcf-0.2.8/gnulib/lib/inet_ntop.c:140:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy (dst, tmp); data/netcf-0.2.8/gnulib/lib/inet_ntop.c:255:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy (dst, tmp); data/netcf-0.2.8/gnulib/lib/stat.c:117:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (fixed_name, name); data/netcf-0.2.8/gnulib/lib/stdio.in.h:284:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf rpl_fprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:288:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/netcf-0.2.8/gnulib/lib/stdio.in.h:292:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/netcf-0.2.8/gnulib/lib/stdio.in.h:296:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:298:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:300:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (fprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:304:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef fprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:307:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:411:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:412:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:414:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...) data/netcf-0.2.8/gnulib/lib/stdio.in.h:417:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:419:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:421:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:820:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/netcf-0.2.8/gnulib/lib/stdio.in.h:821:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen rpl_popen data/netcf-0.2.8/gnulib/lib/stdio.in.h:823:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/netcf-0.2.8/gnulib/lib/stdio.in.h:825:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:828:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/netcf-0.2.8/gnulib/lib/stdio.in.h:831:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:833:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIASWARN (popen); data/netcf-0.2.8/gnulib/lib/stdio.in.h:835:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/netcf-0.2.8/gnulib/lib/stdio.in.h:837:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:848:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf __printf__ data/netcf-0.2.8/gnulib/lib/stdio.in.h:865:21: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:868:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf rpl_printf data/netcf-0.2.8/gnulib/lib/stdio.in.h:870:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (printf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:874:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:878:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:880:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (printf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:884:10: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef printf data/netcf-0.2.8/gnulib/lib/stdio.in.h:887:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1009:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1011:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/netcf-0.2.8/gnulib/lib/stdio.in.h:1019:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1022:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1023:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1025:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1028:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1031:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1033:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1039:12: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf rpl_snprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1041:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (snprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1045:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (snprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1049:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_SYS (snprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1054:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (snprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1057:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (snprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1059:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1061:18: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1078:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1080:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1083:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1085:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1087:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1089:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1091:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1197:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vfprintf rpl_vfprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1201:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1205:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1209:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1214:24: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1217:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vfprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1221:10: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vfprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1224:18: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1232:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1233:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1235:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1239:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1242:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1245:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1252:12: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vprintf rpl_vprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1256:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1260:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1264:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1269:24: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1271:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1275:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1278:18: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1286:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1287:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1289:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args) data/netcf-0.2.8/gnulib/lib/stdio.in.h:1292:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1294:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1296:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1302:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf rpl_vsnprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1304:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vsnprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1308:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vsnprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1312:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_SYS (vsnprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1317:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (vsnprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1320:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vsnprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1322:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef vsnprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1324:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1332:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1334:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1338:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1344:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/netcf-0.2.8/gnulib/lib/stdio.in.h:1347:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1349:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/netcf-0.2.8/gnulib/lib/stdio.in.h:1351:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/strerror_r.c:120:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf local_snprintf data/netcf-0.2.8/gnulib/lib/unistd.in.h:249:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "the access function is a security risk - " data/netcf-0.2.8/gnulib/lib/unistd.in.h:780:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:782:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:783:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/netcf-0.2.8/gnulib/lib/unistd.in.h:785:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/netcf-0.2.8/gnulib/lib/unistd.in.h:787:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/netcf-0.2.8/gnulib/lib/vasnprintf.c:162:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:180:21: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:182:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:184:21: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF _snprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:188:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:190:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:194:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4256:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4264:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4449:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4457:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4969:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4972:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4975:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/netcf-0.2.8/gnulib/lib/wchar.in.h:595:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/netcf-0.2.8/gnulib/lib/wchar.in.h:597:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/netcf-0.2.8/gnulib/lib/wchar.in.h:598:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/netcf-0.2.8/gnulib/lib/wchar.in.h:600:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/netcf-0.2.8/gnulib/lib/wchar.in.h:602:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/netcf-0.2.8/gnulib/lib/wchar.in.h:664:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/netcf-0.2.8/gnulib/lib/wchar.in.h:666:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/netcf-0.2.8/gnulib/lib/wchar.in.h:667:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/netcf-0.2.8/gnulib/lib/wchar.in.h:669:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/netcf-0.2.8/gnulib/lib/wchar.in.h:671:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/netcf-0.2.8/gnulib/tests/localename.c:1358:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, legacy_table[i1].unixy); data/netcf-0.2.8/gnulib/tests/localename.c:1382:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name, langtag_table[i1].unixy); data/netcf-0.2.8/gnulib/tests/localename.c:1402:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name + 3, script_table[i1].unixy); data/netcf-0.2.8/gnulib/tests/localename.c:2581:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (last_locale, locale_name); data/netcf-0.2.8/gnulib/tests/setlocale.c:703:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ll_buf + (underscore - llCC_buf), territory_end); data/netcf-0.2.8/gnulib/tests/test-lock.c:95:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define dbgprintf printf data/netcf-0.2.8/gnulib/tests/test-lock.c:97:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define dbgprintf if (0) printf data/netcf-0.2.8/gnulib/tests/test-lstat.c:57:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ignore_value (system ("rm -rf " BASE "*")); data/netcf-0.2.8/gnulib/tests/test-sigprocmask.c:70:11: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ASSERT (system (command) == 0); data/netcf-0.2.8/gnulib/tests/test-symlink.c:44:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ignore_value (system ("rm -rf " BASE "*")); data/netcf-0.2.8/src/drv_mswindows.c:193:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mac, buf); data/netcf-0.2.8/src/drv_mswindows.c:197:21: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mac, buf); data/netcf-0.2.8/src/drv_mswindows.c:200:21: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mac, buf); data/netcf-0.2.8/src/dutil.c:121:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, argv[i]); data/netcf-0.2.8/src/dutil.c:206:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, R_OK) < 0) { data/netcf-0.2.8/src/dutil.c:222:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 2, 3) data/netcf-0.2.8/src/dutil.c:299:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, R_OK) < 0) { data/netcf-0.2.8/src/dutil.h:35:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 2, 3) data/netcf-0.2.8/src/dutil.h:55:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 3, 4); data/netcf-0.2.8/src/dutil.h:59:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 3, 0); data/netcf-0.2.8/src/dutil_linux.c:259:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 4, 5) data/netcf-0.2.8/src/dutil_linux.h:76:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 4, 5) data/netcf-0.2.8/src/dutil_linux.h:89:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 3, 4) data/netcf-0.2.8/src/dutil_linux.h:92:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 3, 4) data/netcf-0.2.8/src/dutil_linux.h:95:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ATTRIBUTE_FORMAT(printf, 2, 3) data/netcf-0.2.8/src/dutil_posix.c:164:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], (char **) argv); data/netcf-0.2.8/src/ncftransform.c:43:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, ap); data/netcf-0.2.8/tests/cutest.c:225:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(*s, p); data/netcf-0.2.8/tests/tutil.c:180:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. r = system(command); data/netcf-0.2.8/gnulib/lib/getopt.c:101:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/netcf-0.2.8/gnulib/lib/getopt.c:237:47: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT"); data/netcf-0.2.8/gnulib/lib/getopt.c:1187:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt (int argc, char *const *argv, const char *optstring) data/netcf-0.2.8/gnulib/lib/getopt.c:1222:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/netcf-0.2.8/gnulib/lib/getopt.in.h:59:9: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # undef getopt data/netcf-0.2.8/gnulib/lib/getopt.in.h:60:9: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # undef getopt_long data/netcf-0.2.8/gnulib/lib/getopt.in.h:70:10: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt __GETOPT_ID (getopt) data/netcf-0.2.8/gnulib/lib/getopt.in.h:70:30: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt __GETOPT_ID (getopt) data/netcf-0.2.8/gnulib/lib/getopt.in.h:71:10: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt_long __GETOPT_ID (getopt_long) data/netcf-0.2.8/gnulib/lib/getopt.in.h:71:35: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt_long __GETOPT_ID (getopt_long) data/netcf-0.2.8/gnulib/lib/getopt.in.h:232:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) data/netcf-0.2.8/gnulib/lib/getopt.in.h:236:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, data/netcf-0.2.8/gnulib/lib/getopt1.c:40:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, data/netcf-0.2.8/gnulib/lib/getopt1.c:105:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "abc:d:0123456789", data/netcf-0.2.8/gnulib/lib/glthread/lock.c:639:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:657:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:776:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:797:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:827:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:851:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:880:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:895:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:957:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:979:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:1026:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:1027:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/netcf-0.2.8/gnulib/lib/glthread/lock.c:1046:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/netcf-0.2.8/gnulib/lib/setenv.c:372:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmp = getenv (name); data/netcf-0.2.8/gnulib/lib/spawni.c:304:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. path = getenv ("PATH"); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:558:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (random, long, (void)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:560:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (random, long, (void)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:561:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (random); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:563:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/netcf-0.2.8/gnulib/lib/stdlib.in.h:565:18: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (random, "random is unportable - " data/netcf-0.2.8/gnulib/lib/stdlib.in.h:572:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:574:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:575:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (srandom); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:577:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/netcf-0.2.8/gnulib/lib/stdlib.in.h:579:18: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (srandom, "srandom is unportable - " data/netcf-0.2.8/gnulib/lib/stdlib.in.h:603:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:605:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:606:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (setstate); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:608:9: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/netcf-0.2.8/gnulib/lib/stdlib.in.h:610:18: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (setstate, "setstate is unportable - " data/netcf-0.2.8/gnulib/lib/stdlib.in.h:756:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # define realpath rpl_realpath data/netcf-0.2.8/gnulib/lib/stdlib.in.h:758:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) data/netcf-0.2.8/gnulib/lib/stdlib.in.h:760:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:763:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) data/netcf-0.2.8/gnulib/lib/stdlib.in.h:766:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:768:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIASWARN (realpath); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:770:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # undef realpath data/netcf-0.2.8/gnulib/lib/stdlib.in.h:772:18: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " data/netcf-0.2.8/gnulib/tests/glthread/thread.c:128:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&thread->handle_lock); data/netcf-0.2.8/gnulib/tests/glthread/thread.c:142:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&thread->handle_lock); data/netcf-0.2.8/gnulib/tests/glthread/thread.c:167:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&thread->handle_lock); data/netcf-0.2.8/gnulib/tests/glthread/thread.c:186:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&thread->handle_lock); data/netcf-0.2.8/gnulib/tests/localename.c:1462:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("GETTEXT_MUI") != NULL) data/netcf-0.2.8/gnulib/tests/localename.c:2821:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv ("LC_ALL"); data/netcf-0.2.8/gnulib/tests/localename.c:2825:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv (categoryname); data/netcf-0.2.8/gnulib/tests/localename.c:2829:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. retval = getenv ("LANG"); data/netcf-0.2.8/gnulib/tests/test-getopt.c:32:18: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. SIGNATURE_CHECK (getopt_long, int, (int, char *__getopt_argv_const *, data/netcf-0.2.8/gnulib/tests/test-getopt.c:44:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *)); data/netcf-0.2.8/gnulib/tests/test-getopt.h:43:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt (argc, (char **) argv, options)) != -1) data/netcf-0.2.8/gnulib/tests/test-getopt.h:86:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. bool posixly = !!getenv ("POSIXLY_CORRECT"); data/netcf-0.2.8/gnulib/tests/test-getopt.h:1386:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. ASSERT (getopt (argc, (char **) argv, "W;") == 'W'); data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:57:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long (argc, (char **) argv, options, long_options, data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:108:10: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. return getopt_long (argc, (char **) argv, shortopts, longopts, longind); data/netcf-0.2.8/gnulib/tests/test-setenv.c:38:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ASSERT (strcmp (getenv ("a"), "==") == 0); data/netcf-0.2.8/gnulib/tests/test-setlocale1.c:50:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL) data/netcf-0.2.8/gnulib/tests/test-setlocale2.c:35:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv ("LC_ALL")); data/netcf-0.2.8/gnulib/tests/test-setlocale2.c:45:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (setlocale (LC_ALL, getenv ("LC_ALL")) != NULL) data/netcf-0.2.8/gnulib/tests/test-setlocale2.c:50:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv ("LC_ALL")); data/netcf-0.2.8/gnulib/tests/test-unsetenv.c:42:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ASSERT (getenv ("a") == NULL); data/netcf-0.2.8/gnulib/tests/unsetenv.c:119:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. while (getenv (name)) data/netcf-0.2.8/src/drv_mswindows.c:221:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. p = getenv("WINDIR"); data/netcf-0.2.8/src/drv_mswindows.c:240:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. p = getenv("WINDIR"); data/netcf-0.2.8/src/ncftool.c:742:19: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "+dhr:", options, &idx)) != -1) { data/netcf-0.2.8/src/netcf.c:65:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. root = getenv("SYSTEMDRIVE"); data/netcf-0.2.8/src/netcf.c:80:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (*ncf)->data_dir = getenv("NETCF_DATADIR"); data/netcf-0.2.8/src/netcf.c:83:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (*ncf)->debug = getenv("NETCF_DEBUG") != NULL; data/netcf-0.2.8/tests/test-debian.c:206:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_srcdir = getenv("abs_top_srcdir"); data/netcf-0.2.8/tests/test-debian.c:210:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_builddir = getenv("abs_top_builddir"); data/netcf-0.2.8/tests/test-redhat.c:215:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_srcdir = getenv("abs_top_srcdir"); data/netcf-0.2.8/tests/test-redhat.c:219:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_builddir = getenv("abs_top_builddir"); data/netcf-0.2.8/tests/test-suse.c:213:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_srcdir = getenv("abs_top_srcdir"); data/netcf-0.2.8/tests/test-suse.c:217:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. abs_top_builddir = getenv("abs_top_builddir"); data/netcf-0.2.8/gnulib/lib/fcntl.in.h:111:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/netcf-0.2.8/gnulib/lib/fcntl.in.h:112:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open rpl_open data/netcf-0.2.8/gnulib/lib/fcntl.in.h:114:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/netcf-0.2.8/gnulib/lib/fcntl.in.h:116:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/netcf-0.2.8/gnulib/lib/fcntl.in.h:118:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/netcf-0.2.8/gnulib/lib/fcntl.in.h:123:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (open); data/netcf-0.2.8/gnulib/lib/fcntl.in.h:126:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/netcf-0.2.8/gnulib/lib/fcntl.in.h:128:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/netcf-0.2.8/gnulib/lib/ftello.c:76:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *tmp = fopen ("/dev/null", "r"); data/netcf-0.2.8/gnulib/lib/gettext.h:218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/netcf-0.2.8/gnulib/lib/gettext.h:220:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/netcf-0.2.8/gnulib/lib/gettext.h:228:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/netcf-0.2.8/gnulib/lib/gettext.h:230:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/netcf-0.2.8/gnulib/lib/gettext.h:264:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/netcf-0.2.8/gnulib/lib/gettext.h:266:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/netcf-0.2.8/gnulib/lib/gettext.h:274:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/netcf-0.2.8/gnulib/lib/gettext.h:276:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/netcf-0.2.8/gnulib/lib/inet_ntop.c:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[sizeof "255.255.255.255"]; data/netcf-0.2.8/gnulib/lib/inet_ntop.c:130:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]); data/netcf-0.2.8/gnulib/lib/inet_ntop.c:161:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; data/netcf-0.2.8/gnulib/lib/inet_ntop.c:234:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf (tp, "%x", words[i]); data/netcf-0.2.8/gnulib/lib/inet_pton.c:116:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[NS_INADDRSZ], *tp; data/netcf-0.2.8/gnulib/lib/inet_pton.c:152:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dst, tmp, NS_INADDRSZ); data/netcf-0.2.8/gnulib/lib/inet_pton.c:175:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; data/netcf-0.2.8/gnulib/lib/inet_pton.c:262:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dst, tmp, NS_IN6ADDRSZ); data/netcf-0.2.8/gnulib/lib/malloca.c:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char room[HEADER_SIZE - MAGIC_SIZE]; data/netcf-0.2.8/gnulib/lib/open.c:33:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags, mode); data/netcf-0.2.8/gnulib/lib/open.c:53:1: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open (const char *filename, int flags, ...) data/netcf-0.2.8/gnulib/lib/open.c:135:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open ("/dev/null", flags, mode); data/netcf-0.2.8/gnulib/lib/printf-parse.c:122:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, a->arg, a->count * sizeof (argument)); \ data/netcf-0.2.8/gnulib/lib/printf-parse.c:599:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/netcf-0.2.8/gnulib/lib/read-file.c:140:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *stream = fopen (filename, mode); data/netcf-0.2.8/gnulib/lib/setenv.c:179:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_value, name, namelen); data/netcf-0.2.8/gnulib/lib/setenv.c:181:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_value[namelen + 1], value, vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:200:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], new_value, namelen + 1 + vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:202:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], name, namelen); data/netcf-0.2.8/gnulib/lib/setenv.c:204:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_environ[size][namelen + 1], value, vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:217:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) new_environ, (char *) __environ, data/netcf-0.2.8/gnulib/lib/setenv.c:247:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_value, name, namelen); data/netcf-0.2.8/gnulib/lib/setenv.c:249:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_value[namelen + 1], value, vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:268:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, new_value, namelen + 1 + vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:270:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, name, namelen); data/netcf-0.2.8/gnulib/lib/setenv.c:272:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&np[namelen + 1], value, vallen); data/netcf-0.2.8/gnulib/lib/setenv.c:380:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + 1, value, len + 1); data/netcf-0.2.8/gnulib/lib/spawn.in.h:179:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/netcf-0.2.8/gnulib/lib/spawn.in.h:182:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/netcf-0.2.8/gnulib/lib/spawn.in.h:183:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_]) data/netcf-0.2.8/gnulib/lib/spawn.in.h:187:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/netcf-0.2.8/gnulib/lib/spawn.in.h:190:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/netcf-0.2.8/gnulib/lib/spawn.in.h:191:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_])); data/netcf-0.2.8/gnulib/lib/spawn.in.h:196:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/netcf-0.2.8/gnulib/lib/spawn.in.h:199:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/netcf-0.2.8/gnulib/lib/spawn.in.h:200:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_]) data/netcf-0.2.8/gnulib/lib/spawn.in.h:205:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/netcf-0.2.8/gnulib/lib/spawn.in.h:208:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/netcf-0.2.8/gnulib/lib/spawn.in.h:209:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_])); data/netcf-0.2.8/gnulib/lib/spawni.c:47:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open_not_cancel open data/netcf-0.2.8/gnulib/lib/spawni.c:77:10: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. # define vfork __vfork data/netcf-0.2.8/gnulib/lib/spawni.c:167:15: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. new_pid = vfork (); data/netcf-0.2.8/gnulib/lib/spawni.c:325:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. name = (char *) memcpy (name + pathlen + 1, file, len); data/netcf-0.2.8/gnulib/lib/spawni.c:342:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. startp = (char *) memcpy (name - (p - path), path, p - path); data/netcf-0.2.8/gnulib/lib/stat.c:109:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fixed_name[PATH_MAX + 1] = {0}; data/netcf-0.2.8/gnulib/lib/stdio-impl.h:45:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/netcf-0.2.8/gnulib/lib/stdio-impl.h:46:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/netcf-0.2.8/gnulib/lib/stdio.in.h:263:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/netcf-0.2.8/gnulib/lib/stdio.in.h:264:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define fopen rpl_fopen data/netcf-0.2.8/gnulib/lib/stdio.in.h:266:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) data/netcf-0.2.8/gnulib/lib/stdio.in.h:268:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:270:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:272:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (fopen); data/netcf-0.2.8/gnulib/lib/stdio.in.h:274:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/netcf-0.2.8/gnulib/lib/stdio.in.h:276:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/netcf-0.2.8/gnulib/lib/stdio.in.h:1099:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/netcf-0.2.8/gnulib/lib/stdio.in.h:1101:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1102:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1104:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1106:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/netcf-0.2.8/gnulib/lib/stdio.in.h:1108:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/netcf-0.2.8/gnulib/lib/stdio.in.h:1110:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/netcf-0.2.8/gnulib/lib/stdlib.in.h:398:12: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # define mkstemp rpl_mkstemp data/netcf-0.2.8/gnulib/lib/stdlib.in.h:400:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:401:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:404:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:406:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:408:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIASWARN (mkstemp); data/netcf-0.2.8/gnulib/lib/stdlib.in.h:410:9: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # undef mkstemp data/netcf-0.2.8/gnulib/lib/stdlib.in.h:412:18: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " data/netcf-0.2.8/gnulib/lib/strerror_r.c:135:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, msg, len + 1); data/netcf-0.2.8/gnulib/lib/strerror_r.c:140:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, msg, buflen - 1); data/netcf-0.2.8/gnulib/lib/strerror_r.c:198:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[80]; data/netcf-0.2.8/gnulib/lib/strerror_r.c:222:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[STACKBUF_LEN]; data/netcf-0.2.8/gnulib/lib/strerror_r.c:241:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[STACKBUF_LEN]; data/netcf-0.2.8/gnulib/lib/sys_socket.in.h:111:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __ss_padding[_SS_PADSIZE]; data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:704:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:707:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:711:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, data/netcf-0.2.8/gnulib/lib/sys_stat.in.h:715:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, data/netcf-0.2.8/gnulib/lib/vasnprintf.c:143:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define DCHAR_CPY memcpy data/netcf-0.2.8/gnulib/lib/vasnprintf.c:284:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pointbuf[5]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:285:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:509:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:645:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2664:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2709:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2759:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2772:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpptr, cbuf, count); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2840:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2853:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2869:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2891:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3172:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3178:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3180:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3323:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3329:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3331:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3398:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3783:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3789:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3791:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3964:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3970:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3972:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4262:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4455:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4581:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4789:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4810:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:5509:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/netcf-0.2.8/gnulib/tests/getcwd-lgpl.c:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4032]; data/netcf-0.2.8/gnulib/tests/localename.c:1163:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1163:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1301:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1301:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1331:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1331:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/netcf-0.2.8/gnulib/tests/localename.c:1464:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namebuf[256]; data/netcf-0.2.8/gnulib/tests/localename.c:2521:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lname[LC_MAX * (LOCALE_NAME_MAX_LENGTH + 1) + 1]; data/netcf-0.2.8/gnulib/tests/localename.c:2528:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char locval[2 * LOCALE_NAME_MAX_LENGTH + 1 + 1]; data/netcf-0.2.8/gnulib/tests/localename.c:2564:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char last_locale[1000]; data/netcf-0.2.8/gnulib/tests/localename.c:2620:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char contents[100]; /* has variable size */ data/netcf-0.2.8/gnulib/tests/localename.c:2651:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_node->contents, string, size); data/netcf-0.2.8/gnulib/tests/localename.c:2900:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[256]; data/netcf-0.2.8/gnulib/tests/putenv.c:81:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name_, name, len); data/netcf-0.2.8/gnulib/tests/putenv.c:145:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name_x, string, name_end - string + 1); data/netcf-0.2.8/gnulib/tests/putenv.c:186:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ + 1, environ, (size + 1) * sizeof *new_environ); data/netcf-0.2.8/gnulib/tests/setlocale.c:631:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char llCC_buf[64]; data/netcf-0.2.8/gnulib/tests/setlocale.c:632:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ll_buf[64]; data/netcf-0.2.8/gnulib/tests/setlocale.c:633:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CC_buf[64]; data/netcf-0.2.8/gnulib/tests/setlocale.c:702:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ll_buf, llCC_buf, underscore - llCC_buf); data/netcf-0.2.8/gnulib/tests/setlocale.c:705:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (CC_buf, territory_start, territory_end - territory_start); data/netcf-0.2.8/gnulib/tests/setlocale.c:738:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64+64]; data/netcf-0.2.8/gnulib/tests/setlocale.c:742:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, part1, part1_len); data/netcf-0.2.8/gnulib/tests/setlocale.c:744:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf + part1_len + 1, part2, part2_len); data/netcf-0.2.8/gnulib/tests/setlocale.c:785:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lc_messages_name[64] = "C"; data/netcf-0.2.8/gnulib/tests/spawnattr_setsigmask.c:30:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&attr->_ss, sigmask, sizeof (sigset_t)); data/netcf-0.2.8/gnulib/tests/test-binary-io.c:38:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open ("t-bin-out0.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0600); data/netcf-0.2.8/gnulib/tests/test-dup2.c:109:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1]; data/netcf-0.2.8/gnulib/tests/test-dup2.c:111:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (file, O_CREAT | O_TRUNC | O_RDWR, 0600); data/netcf-0.2.8/gnulib/tests/test-dup2.c:173:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ASSERT (open ("/dev/null", O_WRONLY, 0600) == fd + 1); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:47:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (filename, O_RDWR | O_CREAT | O_TRUNC, 0600); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:56:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (filename, "r"); data/netcf-0.2.8/gnulib/tests/test-fputc.c:47:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (filename, "w"); data/netcf-0.2.8/gnulib/tests/test-fread.c:47:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (filename, O_RDWR | O_CREAT | O_TRUNC, 0600); data/netcf-0.2.8/gnulib/tests/test-fread.c:56:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (filename, "r"); data/netcf-0.2.8/gnulib/tests/test-fread.c:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5]; data/netcf-0.2.8/gnulib/tests/test-fread.c:73:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/netcf-0.2.8/gnulib/tests/test-fread.c:87:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/netcf-0.2.8/gnulib/tests/test-ftell3.c:36:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "w"); data/netcf-0.2.8/gnulib/tests/test-ftell3.c:47:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/netcf-0.2.8/gnulib/tests/test-ftell3.c:59:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r"); data/netcf-0.2.8/gnulib/tests/test-ftell3.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/netcf-0.2.8/gnulib/tests/test-ftello3.c:36:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "w"); data/netcf-0.2.8/gnulib/tests/test-ftello3.c:47:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/netcf-0.2.8/gnulib/tests/test-ftello3.c:59:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r"); data/netcf-0.2.8/gnulib/tests/test-ftello3.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/netcf-0.2.8/gnulib/tests/test-ftello4.c:34:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (filename, "r"); data/netcf-0.2.8/gnulib/tests/test-fwrite.c:47:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (filename, "w"); data/netcf-0.2.8/gnulib/tests/test-fwrite.c:48:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5] = "world"; data/netcf-0.2.8/gnulib/tests/test-fwrite.c:65:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5] = "world"; data/netcf-0.2.8/gnulib/tests/test-fwrite.c:80:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5] = "world"; data/netcf-0.2.8/gnulib/tests/test-getopt.h:103:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:107:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:135:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:139:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:168:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:172:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:200:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:204:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:235:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:239:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:266:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:270:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:298:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:302:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:335:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:339:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:366:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:370:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:398:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:402:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:434:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:438:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:468:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:472:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:502:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:506:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:536:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:540:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:570:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:574:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:604:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:608:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:640:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:644:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:670:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:674:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:700:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:704:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:732:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:736:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:799:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:803:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:882:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:886:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:930:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:934:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1005:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1009:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1073:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1077:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1116:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1120:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1147:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1151:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1203:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1207:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1273:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1277:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1316:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1320:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1345:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1349:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt.h:1377:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:119:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:134:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:149:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:164:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:178:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:193:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:208:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:222:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:236:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:252:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:267:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:292:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:321:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:342:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:345:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:371:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:374:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:401:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:404:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:430:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:433:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:462:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:465:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:491:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:494:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:521:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:524:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:555:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:558:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:584:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:587:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:616:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:619:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:650:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:653:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:678:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:681:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:707:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:710:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:740:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:743:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:768:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:771:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:797:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:800:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:830:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:833:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:858:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:861:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:888:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:891:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:922:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:925:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:950:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:953:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:979:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:982:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1010:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1013:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1038:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1041:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1067:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1070:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1096:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1099:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1127:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1130:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1155:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1158:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1184:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1187:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1213:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1216:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1243:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1246:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1275:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1278:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1306:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1309:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1339:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1342:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1369:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1372:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1403:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1406:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1445:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1448:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1497:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1500:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1542:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1545:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1614:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1617:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1657:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1660:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1697:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1700:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1726:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1729:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[20]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1778:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1781:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1830:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1833:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1872:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1875:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1902:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *non_options[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1905:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1945:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1961:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1977:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:1993:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2010:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2027:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2043:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2059:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2074:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2089:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2109:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-getopt_long.h:2130:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *argv[10]; data/netcf-0.2.8/gnulib/tests/test-inet_ntop.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char printable[16]; data/netcf-0.2.8/gnulib/tests/test-localename.c:396:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *unsaved_names[SIZEOF (choices)][SIZEOF (categories)]; data/netcf-0.2.8/gnulib/tests/test-localename.c:399:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *saved_names[SIZEOF (choices)][SIZEOF (categories)]; data/netcf-0.2.8/gnulib/tests/test-lock.c:526:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&once_control, &fresh_once, sizeof (gl_once_t)); data/netcf-0.2.8/gnulib/tests/test-open.c:24:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). SIGNATURE_CHECK (open, int, (char const *, int, ...)); data/netcf-0.2.8/gnulib/tests/test-open.c:40:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return test_open (open, true); data/netcf-0.2.8/gnulib/tests/test-posix_spawn1.c:78:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[3] = { (char *) "/bin/sh", (char *) CHILD_PROGRAM_FILENAME, NULL }; data/netcf-0.2.8/gnulib/tests/test-posix_spawn1.c:90:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[80]; data/netcf-0.2.8/gnulib/tests/test-posix_spawn2.c:56:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[3] = { (char *) "/bin/sh", (char *) CHILD_PROGRAM_FILENAME, NULL }; data/netcf-0.2.8/gnulib/tests/test-sigprocmask.c:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[80]; data/netcf-0.2.8/gnulib/tests/test-sigprocmask.c:69:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, (int) pid); data/netcf-0.2.8/gnulib/tests/test-stdalign.c:31:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char a[1]; } struct1; data/netcf-0.2.8/gnulib/tests/test-stdalign.c:32:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char a[2]; } struct2; data/netcf-0.2.8/gnulib/tests/test-stdalign.c:33:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char a[3]; } struct3; data/netcf-0.2.8/gnulib/tests/test-stdalign.c:34:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char a[4]; } struct4; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char a[true == 1 ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:60:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[false == 0 ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:61:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[__bool_true_false_are_defined == 1 ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:63:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d[(bool) 0.5 == true ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:72:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f[(_Bool) 0.0 == false ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:74:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char g[true]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:75:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char h[sizeof (_Bool)]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:77:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char i[sizeof s.t]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:81:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char o[sizeof n == m * sizeof n[0] ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-stdbool.c:82:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:31:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:97:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[sizeof buf] = ""; data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:123:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf, "BADFACE"); data/netcf-0.2.8/gnulib/tests/test-vasnprintf.c:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/netcf-0.2.8/gnulib/tests/test-vasnprintf.c:50:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, "DEADBEEF", 8); data/netcf-0.2.8/gnulib/tests/zerosize-ptr.h:54:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/dev/zero", O_RDONLY, 0666); data/netcf-0.2.8/src/drv_mswindows.c:142:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wName[8192]; data/netcf-0.2.8/src/drv_mswindows.c:177:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mac[BUFSIZE], *buf; data/netcf-0.2.8/src/drv_mswindows.c:185:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wName[8192]; data/netcf-0.2.8/src/dutil_linux.c:621:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mac,ifr.ifr_hwaddr.sa_data,6); data/netcf-0.2.8/src/dutil_linux.c:748:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ip_str[48]; data/netcf-0.2.8/src/dutil_linux.c:749:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix_str[16]; data/netcf-0.2.8/src/dutil_linux.c:859:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mac_str[64]; data/netcf-0.2.8/src/dutil_linux.c:910:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vlan_id_str[16]; data/netcf-0.2.8/src/dutil_linux.c:1093:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[128]; data/netcf-0.2.8/src/dutil_posix.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[128]; data/netcf-0.2.8/src/dutil_posix.c:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[128]; data/netcf-0.2.8/src/ncftool.c:525:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/netcf-0.2.8/tests/cutest.c:138:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[STRING_MAX]; data/netcf-0.2.8/tests/cutest.c:140:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "expected <%d> but was <%d>", expected, actual); data/netcf-0.2.8/tests/cutest.c:147:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[STRING_MAX]; data/netcf-0.2.8/tests/cutest.c:149:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "expected <%lf> but was <%lf>", expected, actual); data/netcf-0.2.8/tests/cutest.c:156:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[STRING_MAX]; data/netcf-0.2.8/tests/cutest.c:158:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "expected pointer <0x%p> but was <0x%p>", expected, actual); data/netcf-0.2.8/tests/cutest.c:165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[STRING_MAX]; data/netcf-0.2.8/tests/cutest.c:167:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "expected pointer <0x%p> to be different from <0x%p>", data/netcf-0.2.8/gnulib/lib/getopt.c:268:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = d->__nonoption_flags_max_len = strlen (orig_str); data/netcf-0.2.8/gnulib/lib/getopt.c:516:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (namelen == (unsigned int) strlen (p->name)) data/netcf-0.2.8/gnulib/lib/getopt.c:622:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:698:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:738:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:743:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:936:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) data/netcf-0.2.8/gnulib/lib/getopt.c:984:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:1028:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:1066:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/getopt.c:1072:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/netcf-0.2.8/gnulib/lib/gettext.h:214:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/netcf-0.2.8/gnulib/lib/gettext.h:215:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/netcf-0.2.8/gnulib/lib/gettext.h:260:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/netcf-0.2.8/gnulib/lib/gettext.h:261:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/netcf-0.2.8/gnulib/lib/inet_ntop.c:230:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tp += strlen (tp); data/netcf-0.2.8/gnulib/lib/open.c:109:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/netcf-0.2.8/gnulib/lib/open.c:160:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/netcf-0.2.8/gnulib/lib/setenv.c:118:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t namelen = strlen (name); data/netcf-0.2.8/gnulib/lib/setenv.c:119:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t vallen = value != NULL ? strlen (value) + 1 : 0; data/netcf-0.2.8/gnulib/lib/setenv.c:376:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (value); data/netcf-0.2.8/gnulib/lib/spawni.c:321:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (file) + 1; data/netcf-0.2.8/gnulib/lib/spawni.c:322:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathlen = strlen (path); data/netcf-0.2.8/gnulib/lib/stat.c:88:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/netcf-0.2.8/gnulib/lib/stat.c:110:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/netcf-0.2.8/gnulib/lib/stdio.in.h:234:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/netcf-0.2.8/gnulib/lib/stdio.in.h:235:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/netcf-0.2.8/gnulib/lib/stdio.in.h:237:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/netcf-0.2.8/gnulib/lib/stdio.in.h:238:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:240:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:242:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/netcf-0.2.8/gnulib/lib/stdio.in.h:621:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/netcf-0.2.8/gnulib/lib/stdio.in.h:622:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/netcf-0.2.8/gnulib/lib/stdio.in.h:624:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/netcf-0.2.8/gnulib/lib/stdio.in.h:625:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:627:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:629:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/netcf-0.2.8/gnulib/lib/stdio.in.h:635:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/netcf-0.2.8/gnulib/lib/stdio.in.h:636:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/netcf-0.2.8/gnulib/lib/stdio.in.h:638:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:639:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:641:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/netcf-0.2.8/gnulib/lib/stdio.in.h:643:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/netcf-0.2.8/gnulib/lib/strerror_r.c:128:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (msg); data/netcf-0.2.8/gnulib/lib/strerror_r.c:220:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!ret && strlen (buf) == buflen - 1) data/netcf-0.2.8/gnulib/lib/strerror_r.c:225:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (stackbuf); data/netcf-0.2.8/gnulib/lib/strerror_r.c:239:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ret == ERANGE && strlen (buf) < buflen - 1) data/netcf-0.2.8/gnulib/lib/string.in.h:378:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/netcf-0.2.8/gnulib/lib/string.in.h:379:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/netcf-0.2.8/gnulib/lib/string.in.h:381:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) data/netcf-0.2.8/gnulib/lib/string.in.h:383:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); data/netcf-0.2.8/gnulib/lib/string.in.h:385:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); data/netcf-0.2.8/gnulib/lib/string.in.h:387:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/netcf-0.2.8/gnulib/lib/string.in.h:389:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/netcf-0.2.8/gnulib/lib/string.in.h:391:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/netcf-0.2.8/gnulib/lib/unistd.in.h:1245:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/netcf-0.2.8/gnulib/lib/unistd.in.h:1246:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/netcf-0.2.8/gnulib/lib/unistd.in.h:1248:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/netcf-0.2.8/gnulib/lib/unistd.in.h:1250:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1255:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1257:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1540:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/netcf-0.2.8/gnulib/lib/unistd.in.h:1541:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/netcf-0.2.8/gnulib/lib/unistd.in.h:1543:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1544:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1547:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1549:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1551:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIASWARN (usleep); data/netcf-0.2.8/gnulib/lib/unistd.in.h:1553:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/netcf-0.2.8/gnulib/lib/unistd.in.h:1555:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/netcf-0.2.8/gnulib/lib/usleep.c:41:1: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (useconds_t micro) data/netcf-0.2.8/gnulib/lib/usleep.c:53:8: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. #undef usleep data/netcf-0.2.8/gnulib/lib/usleep.c:55:10: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep(x) 0 data/netcf-0.2.8/gnulib/lib/usleep.c:57:10: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. return usleep (micro % 1000000); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:229:24: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define local_wcslen wcslen data/netcf-0.2.8/gnulib/lib/vasnprintf.c:1731:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_length = strlen (arg); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:2563:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). arg_end = arg + strlen (arg); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3650:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3710:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3746:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision + 1) data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3846:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:3882:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision) data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4112:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4169:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4204:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision + 1) data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4317:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/netcf-0.2.8/gnulib/lib/vasnprintf.c:4352:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision) data/netcf-0.2.8/gnulib/lib/wchar.in.h:562:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/netcf-0.2.8/gnulib/lib/wchar.in.h:564:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/netcf-0.2.8/gnulib/lib/wchar.in.h:565:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIASWARN (wcslen); data/netcf-0.2.8/gnulib/lib/wchar.in.h:567:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # undef wcslen data/netcf-0.2.8/gnulib/lib/wchar.in.h:569:18: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/netcf-0.2.8/gnulib/lib/wchar.in.h:627:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/netcf-0.2.8/gnulib/lib/wchar.in.h:630:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/netcf-0.2.8/gnulib/lib/wchar.in.h:632:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/netcf-0.2.8/gnulib/lib/wchar.in.h:634:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/netcf-0.2.8/gnulib/lib/wchar.in.h:636:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/netcf-0.2.8/gnulib/lib/wchar.in.h:680:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/netcf-0.2.8/gnulib/lib/wchar.in.h:683:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/netcf-0.2.8/gnulib/lib/wchar.in.h:685:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/netcf-0.2.8/gnulib/lib/wchar.in.h:687:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/netcf-0.2.8/gnulib/lib/wchar.in.h:689:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/netcf-0.2.8/gnulib/tests/getcwd-lgpl.c:119:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = realloc (buf, strlen (buf) + 1); data/netcf-0.2.8/gnulib/tests/localename.c:1364:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (name) == 7 && name[2] == '-') data/netcf-0.2.8/gnulib/tests/localename.c:2534:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (locval, "_"); data/netcf-0.2.8/gnulib/tests/localename.c:2536:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). locval + strlen (locval), LOCALE_NAME_MAX_LENGTH)) data/netcf-0.2.8/gnulib/tests/localename.c:2538:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t locval_len = strlen (locval); data/netcf-0.2.8/gnulib/tests/localename.c:2574:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lname, locale_name, sizeof (lname) - 1); data/netcf-0.2.8/gnulib/tests/localename.c:2644:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen (string) + 1; data/netcf-0.2.8/gnulib/tests/lstat.c:80:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (file); data/netcf-0.2.8/gnulib/tests/putenv.c:75:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/netcf-0.2.8/gnulib/tests/setlocale.c:643:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (locale) < sizeof (llCC_buf)) data/netcf-0.2.8/gnulib/tests/setlocale.c:700:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). territory_end = territory_start + strlen (territory_start); data/netcf-0.2.8/gnulib/tests/setlocale.c:735:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part1_len = strlen (part1); data/netcf-0.2.8/gnulib/tests/setlocale.c:737:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part2_len = strlen (part2) + 1; data/netcf-0.2.8/gnulib/tests/setlocale.c:796:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1); data/netcf-0.2.8/gnulib/tests/symlink.c:35:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/netcf-0.2.8/gnulib/tests/test-dup2.c:181:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (read (fd, buffer, 1) == 1); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:22:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SIGNATURE_CHECK (fgetc, int, (FILE *)); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:60:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == EOF); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:73:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == EOF); data/netcf-0.2.8/gnulib/tests/test-fgetc.c:86:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == EOF); data/netcf-0.2.8/gnulib/tests/test-ftell.c:53:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftell.c:62:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftell.c:71:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftell.c:77:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftell3.c:52:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == 'h'); data/netcf-0.2.8/gnulib/tests/test-ftell3.c:53:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/netcf-0.2.8/gnulib/tests/test-ftello.c:55:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftello.c:66:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftello.c:77:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftello.c:84:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/netcf-0.2.8/gnulib/tests/test-ftello3.c:52:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == 'h'); data/netcf-0.2.8/gnulib/tests/test-ftello3.c:53:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/netcf-0.2.8/gnulib/tests/test-getcwd-lgpl.c:58:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (pwd1); data/netcf-0.2.8/gnulib/tests/test-open.h:69:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (read (fd, &c, 1) == 0); data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:41:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (buf) < sizeof buf); data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:48:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (buf) < sizeof buf); data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:55:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (buf) < sizeof buf); data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:80:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (buf) < sizeof buf); data/netcf-0.2.8/gnulib/tests/test-strerror_r.c:102:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (buf2); data/netcf-0.2.8/gnulib/tests/test-usleep.c:24:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. SIGNATURE_CHECK (usleep, int, (useconds_t)); data/netcf-0.2.8/gnulib/tests/test-usleep.c:34:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ASSERT (usleep (1000000) == 0); data/netcf-0.2.8/gnulib/tests/test-usleep.c:37:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ASSERT (usleep (0) == 0); data/netcf-0.2.8/gnulib/tests/unsetenv.c:68:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/netcf-0.2.8/src/drv_debian.c:529:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BAD_CAST matches[j] + strlen(intf[i]) + 1); data/netcf-0.2.8/src/drv_debian.c:924:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ERR_THROW(strlen(name) >= IFNAMSIZ, ncf, EINTERNAL, data/netcf-0.2.8/src/drv_debian.c:1059:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250000); data/netcf-0.2.8/src/drv_redhat.c:158:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path[strlen(path) - strlen(hwaddr_str)] = '\0'; data/netcf-0.2.8/src/drv_redhat.c:158:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path[strlen(path) - strlen(hwaddr_str)] = '\0'; data/netcf-0.2.8/src/drv_redhat.c:514:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BAD_CAST matches[j] + strlen(intf[i]) + 1); data/netcf-0.2.8/src/drv_redhat.c:874:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ERR_THROW(strlen(name) >= IFNAMSIZ, ncf, EINTERNAL, data/netcf-0.2.8/src/drv_redhat.c:1027:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250000); data/netcf-0.2.8/src/drv_suse.c:204:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strncmp(ifprefix, ent->d_name, strlen(ifprefix)) && data/netcf-0.2.8/src/drv_suse.c:205:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ent->d_name + strlen(ifprefix)) == strlen(name) && data/netcf-0.2.8/src/drv_suse.c:205:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ent->d_name + strlen(ifprefix)) == strlen(name) && data/netcf-0.2.8/src/drv_suse.c:205:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ent->d_name + strlen(ifprefix)) == strlen(name) && data/netcf-0.2.8/src/drv_suse.c:206:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strncmp((ent->d_name + strlen(ifprefix)),name, strlen(name))) { data/netcf-0.2.8/src/drv_suse.c:206:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strncmp((ent->d_name + strlen(ifprefix)),name, strlen(name))) { data/netcf-0.2.8/src/drv_suse.c:208:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ent->d_name + strlen(ifprefix)); data/netcf-0.2.8/src/drv_suse.c:235:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strncmp(ifprefix, ent->d_name, strlen(ifprefix))) { data/netcf-0.2.8/src/drv_suse.c:247:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strncmp(ifprefix, ent->d_name, strlen(ifprefix))) { data/netcf-0.2.8/src/drv_suse.c:249:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ent->d_name + strlen(ifprefix)); data/netcf-0.2.8/src/drv_suse.c:509:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pathoffset = strlen(aug_files) + strlen(network_scripts_path) data/netcf-0.2.8/src/drv_suse.c:509:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pathoffset = strlen(aug_files) + strlen(network_scripts_path) data/netcf-0.2.8/src/drv_suse.c:510:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(ifcfg_prefix) + 1; data/netcf-0.2.8/src/drv_suse.c:535:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). BAD_CAST matches[j] + pathoffset + strlen(intf[i]) + 1); data/netcf-0.2.8/src/drv_suse.c:605:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(!strchr(value, '.') && !strncmp("eth", value, strlen("eth"))) data/netcf-0.2.8/src/drv_suse.c:1070:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ERR_THROW(strlen(name) >= IFNAMSIZ, ncf, EINTERNAL, data/netcf-0.2.8/src/drv_suse.c:1227:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250000); data/netcf-0.2.8/src/dutil.c:111:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(argv[i]) + 1; data/netcf-0.2.8/src/dutil.c:122:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(argv[i]); data/netcf-0.2.8/src/dutil.c:160:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ALLOC_N(*out, strlen(in) + num_to_escape + 1) < 0) data/netcf-0.2.8/src/dutil_linux.c:535:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, intf, sizeof(ifr.ifr_name)); data/netcf-0.2.8/src/dutil_linux.c:606:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(cp, ":", 1); data/netcf-0.2.8/src/dutil_linux.c:618:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, intf, sizeof(ifr.ifr_name)); data/netcf-0.2.8/src/internal.h:107:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define STRPREFIX(a, b) (strncmp(a, b, strlen(b)) == 0) data/netcf-0.2.8/src/internal.h:108:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define STRSKIP(a, b) (STRPREFIX(a, b) ? (a) + strlen(b) : NULL) data/netcf-0.2.8/src/ncftool.c:699:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (STREQLEN(text, name, strlen(text))) data/netcf-0.2.8/src/ncftool.c:865:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdsize += strlen(argv[i]) + 1; data/netcf-0.2.8/src/ncftool.c:875:13: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(cmd, argv[i], cmdsize); data/netcf-0.2.8/src/ncftool.c:876:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdsize -= strlen(argv[i]); data/netcf-0.2.8/src/ncftool.c:877:13: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(cmd, " ", cmdsize--); data/netcf-0.2.8/src/netcf.c:72:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (root[strlen(root)-1] == '/') { data/netcf-0.2.8/tests/cutest.c:223:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(*s) + strlen(p) + 1; data/netcf-0.2.8/tests/cutest.c:223:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(*s) + strlen(p) + 1; ANALYSIS SUMMARY: Hits = 870 Lines analyzed = 63253 in approximately 1.78 seconds (35633 lines/second) Physical Source Lines of Code (SLOC) = 44084 Hits@level = [0] 185 [1] 186 [2] 414 [3] 86 [4] 162 [5] 22 Hits@level+ = [0+] 1055 [1+] 870 [2+] 684 [3+] 270 [4+] 184 [5+] 22 Hits/KSLOC@level+ = [0+] 23.9316 [1+] 19.7351 [2+] 15.5158 [3+] 6.12467 [4+] 4.17385 [5+] 0.499047 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.