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/ntirpc-3.3/ntirpc/fpmath.h
Examining data/ntirpc-3.3/ntirpc/getpeereid.h
Examining data/ntirpc-3.3/ntirpc/intrinsic.h
Examining data/ntirpc-3.3/ntirpc/libc_private.h
Examining data/ntirpc-3.3/ntirpc/lttng/rpcping.h
Examining data/ntirpc-3.3/ntirpc/lttng/xprt.h
Examining data/ntirpc-3.3/ntirpc/misc/abstract_atomic.h
Examining data/ntirpc-3.3/ntirpc/misc/bsd_epoll.h
Examining data/ntirpc-3.3/ntirpc/misc/city.h
Examining data/ntirpc-3.3/ntirpc/misc/citycrc.h
Examining data/ntirpc-3.3/ntirpc/misc/event.h
Examining data/ntirpc-3.3/ntirpc/misc/opr.h
Examining data/ntirpc-3.3/ntirpc/misc/opr_queue.h
Examining data/ntirpc-3.3/ntirpc/misc/os_epoll.h
Examining data/ntirpc-3.3/ntirpc/misc/portable.h
Examining data/ntirpc-3.3/ntirpc/misc/queue.h
Examining data/ntirpc-3.3/ntirpc/misc/rbtree.h
Examining data/ntirpc-3.3/ntirpc/misc/rbtree_x.h
Examining data/ntirpc-3.3/ntirpc/misc/socket.h
Examining data/ntirpc-3.3/ntirpc/misc/stdint.h
Examining data/ntirpc-3.3/ntirpc/misc/stdio.h
Examining data/ntirpc-3.3/ntirpc/misc/timespec.h
Examining data/ntirpc-3.3/ntirpc/misc/wait_queue.h
Examining data/ntirpc-3.3/ntirpc/misc/winpthreads.h
Examining data/ntirpc-3.3/ntirpc/namespace.h
Examining data/ntirpc-3.3/ntirpc/netconfig.h
Examining data/ntirpc-3.3/ntirpc/reentrant.h
Examining data/ntirpc-3.3/ntirpc/rpc/auth.h
Examining data/ntirpc-3.3/ntirpc/rpc/auth_gss.h
Examining data/ntirpc-3.3/ntirpc/rpc/auth_inline.h
Examining data/ntirpc-3.3/ntirpc/rpc/auth_stat.h
Examining data/ntirpc-3.3/ntirpc/rpc/auth_unix.h
Examining data/ntirpc-3.3/ntirpc/rpc/clnt.h
Examining data/ntirpc-3.3/ntirpc/rpc/clnt_stat.h
Examining data/ntirpc-3.3/ntirpc/rpc/des.h
Examining data/ntirpc-3.3/ntirpc/rpc/des_crypt.h
Examining data/ntirpc-3.3/ntirpc/rpc/gss_internal.h
Examining data/ntirpc-3.3/ntirpc/rpc/nettype.h
Examining data/ntirpc-3.3/ntirpc/rpc/pmap_prot.h
Examining data/ntirpc-3.3/ntirpc/rpc/pmap_rmt.h
Examining data/ntirpc-3.3/ntirpc/rpc/pool_queue.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpc.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpc_cksum.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpc_com.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpc_err.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpc_msg.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpcb_clnt.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpcb_prot.h
Examining data/ntirpc-3.3/ntirpc/rpc/rpcent.h
Examining data/ntirpc-3.3/ntirpc/rpc/svc.h
Examining data/ntirpc-3.3/ntirpc/rpc/svc_auth.h
Examining data/ntirpc-3.3/ntirpc/rpc/svc_rqst.h
Examining data/ntirpc-3.3/ntirpc/rpc/tirpc_compat.h
Examining data/ntirpc-3.3/ntirpc/rpc/types.h
Examining data/ntirpc-3.3/ntirpc/rpc/work_pool.h
Examining data/ntirpc-3.3/ntirpc/rpc/xdr.h
Examining data/ntirpc-3.3/ntirpc/rpc/xdr_inline.h
Examining data/ntirpc-3.3/ntirpc/rpc/xdr_ioq.h
Examining data/ntirpc-3.3/ntirpc/rpcsvc/crypt.h
Examining data/ntirpc-3.3/ntirpc/un-namespace.h
Examining data/ntirpc-3.3/src/auth_gss.c
Examining data/ntirpc-3.3/src/auth_none.c
Examining data/ntirpc-3.3/src/auth_unix.c
Examining data/ntirpc-3.3/src/authgss_hash.c
Examining data/ntirpc-3.3/src/authgss_prot.c
Examining data/ntirpc-3.3/src/authunix_prot.c
Examining data/ntirpc-3.3/src/bindresvport.c
Examining data/ntirpc-3.3/src/bsd_epoll.c
Examining data/ntirpc-3.3/src/city-test.c
Examining data/ntirpc-3.3/src/city.c
Examining data/ntirpc-3.3/src/citycrc.h
Examining data/ntirpc-3.3/src/clnt_bcast.c
Examining data/ntirpc-3.3/src/clnt_dg.c
Examining data/ntirpc-3.3/src/clnt_generic.c
Examining data/ntirpc-3.3/src/clnt_internal.h
Examining data/ntirpc-3.3/src/clnt_perror.c
Examining data/ntirpc-3.3/src/clnt_raw.c
Examining data/ntirpc-3.3/src/clnt_rdma.c
Examining data/ntirpc-3.3/src/clnt_simple.c
Examining data/ntirpc-3.3/src/clnt_vc.c
Examining data/ntirpc-3.3/src/des_crypt.c
Examining data/ntirpc-3.3/src/des_soft.c
Examining data/ntirpc-3.3/src/getnetconfig.c
Examining data/ntirpc-3.3/src/getnetpath.c
Examining data/ntirpc-3.3/src/getpeereid.c
Examining data/ntirpc-3.3/src/getpublickey.c
Examining data/ntirpc-3.3/src/getrpcent.c
Examining data/ntirpc-3.3/src/key_call.c
Examining data/ntirpc-3.3/src/key_prot_xdr.c
Examining data/ntirpc-3.3/src/lttng/main.c
Examining data/ntirpc-3.3/src/lttng/rpcping.c
Examining data/ntirpc-3.3/src/lttng/xprt.c
Examining data/ntirpc-3.3/src/mt_misc.c
Examining data/ntirpc-3.3/src/netname.c
Examining data/ntirpc-3.3/src/netnamer.c
Examining data/ntirpc-3.3/src/pmap_prot.c
Examining data/ntirpc-3.3/src/pmap_prot2.c
Examining data/ntirpc-3.3/src/pmap_rmt.c
Examining data/ntirpc-3.3/src/portable.c
Examining data/ntirpc-3.3/src/rbtree.c
Examining data/ntirpc-3.3/src/rbtree_x.c
Examining data/ntirpc-3.3/src/rpc_callmsg.c
Examining data/ntirpc-3.3/src/rpc_com.h
Examining data/ntirpc-3.3/src/rpc_commondata.c
Examining data/ntirpc-3.3/src/rpc_crc32.c
Examining data/ntirpc-3.3/src/rpc_dplx_internal.h
Examining data/ntirpc-3.3/src/rpc_dplx_msg.c
Examining data/ntirpc-3.3/src/rpc_dtablesize.c
Examining data/ntirpc-3.3/src/rpc_generic.c
Examining data/ntirpc-3.3/src/rpc_prot.c
Examining data/ntirpc-3.3/src/rpc_raw.h
Examining data/ntirpc-3.3/src/rpc_rdma.c
Examining data/ntirpc-3.3/src/rpc_rdma.h
Examining data/ntirpc-3.3/src/rpcb_clnt.c
Examining data/ntirpc-3.3/src/rpcb_prot.c
Examining data/ntirpc-3.3/src/rpcb_st_xdr.c
Examining data/ntirpc-3.3/src/rpcdname.c
Examining data/ntirpc-3.3/src/strl.h
Examining data/ntirpc-3.3/src/strlcat.c
Examining data/ntirpc-3.3/src/strlcpy.c
Examining data/ntirpc-3.3/src/svc.c
Examining data/ntirpc-3.3/src/svc_auth.c
Examining data/ntirpc-3.3/src/svc_auth_gss.c
Examining data/ntirpc-3.3/src/svc_auth_none.c
Examining data/ntirpc-3.3/src/svc_auth_unix.c
Examining data/ntirpc-3.3/src/svc_dg.c
Examining data/ntirpc-3.3/src/svc_generic.c
Examining data/ntirpc-3.3/src/svc_internal.h
Examining data/ntirpc-3.3/src/svc_ioq.c
Examining data/ntirpc-3.3/src/svc_ioq.h
Examining data/ntirpc-3.3/src/svc_raw.c
Examining data/ntirpc-3.3/src/svc_rdma.c
Examining data/ntirpc-3.3/src/svc_rqst.c
Examining data/ntirpc-3.3/src/svc_simple.c
Examining data/ntirpc-3.3/src/svc_vc.c
Examining data/ntirpc-3.3/src/svc_xprt.c
Examining data/ntirpc-3.3/src/svc_xprt.h
Examining data/ntirpc-3.3/src/work_pool.c
Examining data/ntirpc-3.3/src/xdr.c
Examining data/ntirpc-3.3/src/xdr_float.c
Examining data/ntirpc-3.3/src/xdr_ioq.c
Examining data/ntirpc-3.3/src/xdr_mem.c
Examining data/ntirpc-3.3/src/xdr_rdma.c
Examining data/ntirpc-3.3/src/xdr_reference.c
Examining data/ntirpc-3.3/tests/rpcping.c

FINAL RESULTS:

data/ntirpc-3.3/ntirpc/misc/stdio.h:33:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1602:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#define gets(...) (pthread_testcancel(), gets(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1602:42:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#define gets(...) (pthread_testcancel(), gets(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/stdio.h:7:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:8:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:9:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/ntirpc-3.3/ntirpc/misc/stdio.h:10:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:11:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:12:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:13:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:14:8:  [4] (buffer) sscanf:
  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 sscanf
data/ntirpc-3.3/ntirpc/misc/stdio.h:34:8:  [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/ntirpc-3.3/ntirpc/misc/stdio.h:46:8:  [4] (buffer) fwscanf:
  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 fwscanf
data/ntirpc-3.3/ntirpc/misc/stdio.h:47:8:  [4] (buffer) wscanf:
  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 wscanf
data/ntirpc-3.3/ntirpc/misc/stdio.h:48:8:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef fwprintf
data/ntirpc-3.3/ntirpc/misc/stdio.h:49:8:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef wprintf
data/ntirpc-3.3/ntirpc/misc/stdio.h:50:8:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vfwprintf
data/ntirpc-3.3/ntirpc/misc/stdio.h:51:8:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vwprintf
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1512: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.
#define system(...) (pthread_testcancel(), system(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1512:44:  [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.
#define system(...) (pthread_testcancel(), system(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1514: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.
#define access(...) (pthread_testcancel(), access(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1514:44:  [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.
#define access(...) (pthread_testcancel(), access(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1550:9:  [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(...) (pthread_testcancel(), fprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1550:45:  [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(...) (pthread_testcancel(), fprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1557:9:  [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(...) (pthread_testcancel(), fscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1557:44:  [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(...) (pthread_testcancel(), fscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1565:9:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fwprintf(...) (pthread_testcancel(), fwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1565:46:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fwprintf(...) (pthread_testcancel(), fwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1567:9:  [4] (buffer) fwscanf:
  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 fwscanf(...) (pthread_testcancel(), fwscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1567:45:  [4] (buffer) fwscanf:
  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 fwscanf(...) (pthread_testcancel(), fwscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1586: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.
#define getlogin(...) (pthread_testcancel(), getlogin(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1586:46:  [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.
#define getlogin(...) (pthread_testcancel(), getlogin(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1630: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.
#define popen(...) (pthread_testcancel(), popen(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1630:43:  [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(...) (pthread_testcancel(), popen(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1672:9:  [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(...) (pthread_testcancel(), printf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1672:44:  [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(...) (pthread_testcancel(), printf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1690:9:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define scanf(...) (pthread_testcancel(), scanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1690:43:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define scanf(...) (pthread_testcancel(), scanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1706:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define syslog(...) (pthread_testcancel(), syslog(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1706:44:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define syslog(...) (pthread_testcancel(), syslog(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1715:9:  [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(...) (pthread_testcancel(), vfprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1715:46:  [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(...) (pthread_testcancel(), vfprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1716:9:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfwprintf(...) (pthread_testcancel(), vfwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1716:47:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfwprintf(...) (pthread_testcancel(), vfwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1717:9:  [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(...) (pthread_testcancel(), vprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1717:45:  [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(...) (pthread_testcancel(), vprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1718:9:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vwprintf(...) (pthread_testcancel(), vwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1718:46:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vwprintf(...) (pthread_testcancel(), vwprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1721:9:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define wprintf(...) (pthread_testcancel(), wprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1721:45:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define wprintf(...) (pthread_testcancel(), wprintf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1722:9:  [4] (buffer) wscanf:
  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. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define wscanf(...) (pthread_testcancel(), wscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1722:44:  [4] (buffer) wscanf:
  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. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define wscanf(...) (pthread_testcancel(), wscanf(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/un-namespace.h:55: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/ntirpc-3.3/ntirpc/un-namespace.h:132: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.
#undef		system
data/ntirpc-3.3/src/clnt_generic.c:175:3:  [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(nettype, netclass);
data/ntirpc-3.3/src/clnt_simple.c:152: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).
			(void)strcpy(rcp->host, host);
data/ntirpc-3.3/src/clnt_simple.c:153: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).
			(void)strcpy(rcp->nettype, nettype);
data/ntirpc-3.3/src/getnetconfig.c:674:24:  [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).
	p->nc_netid = (char *)strcpy(tmp, ncp->nc_netid);
data/ntirpc-3.3/src/getnetconfig.c:676:28:  [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).
	p->nc_protofmly = (char *)strcpy(tmp, ncp->nc_protofmly);
data/ntirpc-3.3/src/getnetconfig.c:678:24:  [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).
	p->nc_proto = (char *)strcpy(tmp, ncp->nc_proto);
data/ntirpc-3.3/src/getnetconfig.c:680:25:  [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).
	p->nc_device = (char *)strcpy(tmp, ncp->nc_device);
data/ntirpc-3.3/src/getnetconfig.c:685:30:  [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).
		p->nc_lookups[i] = (char *)strcpy(tmp, ncp->nc_lookups[i]);
data/ntirpc-3.3/src/getnetpath.c:93:3:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		syslog(LOG_ERR, "rpc: failed to open " NETCONFIG);
data/ntirpc-3.3/src/getnetpath.c:106: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).
		(void)strcpy(np_sessionp->netpath, npp);
data/ntirpc-3.3/src/getnetpath.c:148:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
					syslog(LOG_ERR,
data/ntirpc-3.3/src/getnetpath.c:260:3:  [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(np, (ep = &np[1])); /* XXX: overlapping string copy */
data/ntirpc-3.3/src/getpublickey.c:126:4:  [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(ret, lookup);
data/ntirpc-3.3/src/getpublickey.c:156:5:  [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(ret, mval);
data/ntirpc-3.3/src/netname.c:108:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(netname, "%s.%ld@%s", OPSYS, (u_long) uid, domain);
data/ntirpc-3.3/src/netname.c:135:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(netname, "%s.%s@%s", OPSYS, host, domain);
data/ntirpc-3.3/src/netnamer.c:267:24:  [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).
	     lookup[len] = 0; strcpy(ret, lookup); free(lookup);	/* yp allocated with malloc */
data/ntirpc-3.3/src/netnamer.c:289: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(ret, mval); fclose(fd); return (1);}
data/ntirpc-3.3/src/rpc_generic.c:802:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		if (sprintf
data/ntirpc-3.3/src/rpc_generic.c:822:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		if (sprintf(ret, "%s.%u.%u",
data/ntirpc-3.3/src/rpcb_clnt.c:1306:2:  [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(sun.sun_path, _PATH_RPCBINDSOCK);
data/ntirpc-3.3/src/rpcb_clnt.c:1343:4:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
			syslog(LOG_ERR, "rpc: failed to open " NETCONFIG);
data/ntirpc-3.3/src/rpcdname.c:55: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).
		(void)strcpy(default_domain, temp);
data/ntirpc-3.3/src/work_pool.c:160:2:  [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.
	snprintf(wpt->worker_name, sizeof(wpt->worker_name), "%.5s%" PRIu32,
data/ntirpc-3.3/ntirpc/misc/stdio.h:44:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:287:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(m);
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:308:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(m);
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1060:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&b->m);
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1083:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&b->m);
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1092:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&b->m);
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1592: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.
#define getopt(...) (pthread_testcancel(), getopt(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1592:44:  [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(...) (pthread_testcancel(), getopt(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1613:9:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getwd(...) (pthread_testcancel(), getwd(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1613:43:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getwd(...) (pthread_testcancel(), getwd(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1708:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam(...) (pthread_testcancel(), tmpnam(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1708:44:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam(...) (pthread_testcancel(), tmpnam(__VA_ARGS__))
data/ntirpc-3.3/src/getnetpath.c:98:8:  [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.
	npp = getenv(NETPATH);
data/ntirpc-3.3/tests/rpcping.c:273:16:  [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, "bc:m:p:t:v:w:x:",
data/ntirpc-3.3/ntirpc/misc/stdio.h:20: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).
#undef fopen
data/ntirpc-3.3/ntirpc/misc/stdio.h:43:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#undef tmpfile
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1487: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).
#define open(...) (pthread_testcancel(), open(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1487:42:  [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(...) (pthread_testcancel(), open(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1548: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).
#define fopen(...) (pthread_testcancel(), fopen(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1548:43:  [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(...) (pthread_testcancel(), fopen(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1623: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).
#define mkstemp(...) (pthread_testcancel(), mkstemp(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1623:45:  [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(...) (pthread_testcancel(), mkstemp(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1707:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile(...) (pthread_testcancel(), tmpfile(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1707:45:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile(...) (pthread_testcancel(), tmpfile(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/rpc/auth.h:96: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 c[8];
data/ntirpc-3.3/ntirpc/rpc/auth.h:108: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 oa_body[MAX_AUTH_BYTES];
data/ntirpc-3.3/ntirpc/rpc/rpc_msg.h:176: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 rq_cred_body[MAX_AUTH_BYTES];	/* size is excessive */
data/ntirpc-3.3/ntirpc/rpc/types.h:229:2:  [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(t, s, l);
data/ntirpc-3.3/ntirpc/rpc/work_pool.h:72: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 worker_name[16];
data/ntirpc-3.3/ntirpc/un-namespace.h:64: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/ntirpc-3.3/src/auth_gss.c:269: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 tmp[MAX_AUTH_BYTES];
data/ntirpc-3.3/src/auth_gss.c:295:2:  [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(auth->ah_cred.oa_body, tmp, auth->ah_cred.oa_length);
data/ntirpc-3.3/src/auth_gss.c:329:2:  [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(auth->ah_verf.oa_body, checksum.value, checksum.length);
data/ntirpc-3.3/src/auth_gss.c:355: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(gd->gc_wire_verf.value, verf->oa_body, verf->oa_length);
data/ntirpc-3.3/src/auth_none.c:74: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 marshalled_client[MAX_MARSHAL_SIZE];
data/ntirpc-3.3/src/auth_unix.c:77: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 au_marshed[MAX_AUTH_BYTES];
data/ntirpc-3.3/src/auth_unix.c:152: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 machname[MAXHOSTNAMELEN + 1];
data/ntirpc-3.3/src/authgss_prot.c:1119:11:  [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 r = sprintf(&buffer[m], "\n%10d:", i);	/* heading */
data/ntirpc-3.3/src/authgss_prot.c:1129:8:  [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.
			r = sprintf(&buffer[m], "%02X", datum[i++]);
data/ntirpc-3.3/src/city-test.c:44: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 data[1 << 20];
data/ntirpc-3.3/src/city-test.c:58: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(data + i, &u, 1);	/* uint8 -> char */
data/ntirpc-3.3/src/city.c:500: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[240];
data/ntirpc-3.3/src/city.c:501:2:  [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, s, len);
data/ntirpc-3.3/src/clnt_bcast.c:243: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 uaddress[1024];	/* A self imposed limit */
data/ntirpc-3.3/src/clnt_bcast.c:599: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(&fdlist[i].raddr, &sin,
data/ntirpc-3.3/src/clnt_dg.c:156:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(&cu->cu_raddr, svcaddr->buf, (size_t) svcaddr->len);
data/ntirpc-3.3/src/clnt_dg.c:322: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.
		(void)memcpy(info, &cu->cu_raddr, (size_t) cu->cu_rlen);
data/ntirpc-3.3/src/clnt_dg.c:340: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.
		(void)memcpy(&cu->cu_raddr, addr->buf, addr->len);
data/ntirpc-3.3/src/clnt_generic.c:159: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 nettype_array[NETIDLEN];
data/ntirpc-3.3/src/clnt_internal.h:39: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 cx_mcallc[MCALL_MSG_SIZE];	/* marshalled callmsg */
data/ntirpc-3.3/src/clnt_perror.c:230: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.
		return (char *)rpc_errlist[errnum];
data/ntirpc-3.3/src/clnt_perror.c:259: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.
		return (char *)auth_errlist[errnum];
data/ntirpc-3.3/src/clnt_simple.c:68: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 host[MAXHOSTNAMELEN];	/* Servers host */
data/ntirpc-3.3/src/clnt_simple.c:69: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 nettype[NETIDLEN];	/* Network type */
data/ntirpc-3.3/src/clnt_vc.c:220:2:  [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(&ct->ct_raddr, raddr->buf, raddr->len);
data/ntirpc-3.3/src/clnt_vc.c:385: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.
		(void)memcpy(info, &ct->ct_raddr, (size_t) ct->ct_rlen);
data/ntirpc-3.3/src/des_soft.c:31: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 partab[128] = {
data/ntirpc-3.3/src/getnetconfig.c:199:13:  [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).
		nc_file = fopen(NETCONFIG, "r");
data/ntirpc-3.3/src/getnetconfig.c:439: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).
	file = fopen(NETCONFIG, "r");
data/ntirpc-3.3/src/getpublickey.c:63: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 lookup[3 * HEXKEYBYTES];
data/ntirpc-3.3/src/getpublickey.c:87: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[1024];		/* big enough */
data/ntirpc-3.3/src/getpublickey.c:93:7:  [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).
	fd = fopen(PKFILE, "r");
data/ntirpc-3.3/src/getrpcent.c:62: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 *rpc_aliases[MAXALIASES];
data/ntirpc-3.3/src/getrpcent.c:64: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 line[BUFSIZ + 1];
data/ntirpc-3.3/src/getrpcent.c:100: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 adrstr[16];
data/ntirpc-3.3/src/getrpcent.c:109: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(adrstr, "%d", number);
data/ntirpc-3.3/src/getrpcent.c:182:13:  [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).
		d->rpcf = fopen(RPCDB, "r");
data/ntirpc-3.3/src/getrpcent.c:255:13:  [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).
		d->rpcf = fopen(RPCDB, "r");
data/ntirpc-3.3/src/getrpcent.c:294:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	d->rpc.r_number = atoi(cp);
data/ntirpc-3.3/src/netname.c:79: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.
getnetname(char name[MAXNETNAMELEN + 1])
data/ntirpc-3.3/src/netname.c:94: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.
user2netname(char netname[MAXNETNAMELEN + 1], const uid_t uid,
data/ntirpc-3.3/src/netname.c:116: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.
host2netname(char netname[MAXNETNAMELEN + 1], const char *host,
data/ntirpc-3.3/src/netname.c:120: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 hostname[MAXHOSTNAMELEN + 1];
data/ntirpc-3.3/src/netnamer.c:68: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.
netname2user(char netname[MAXNETNAMELEN + 1], uid_t *uidp, gid_t *gidp,
data/ntirpc-3.3/src/netnamer.c:76: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 val[1024];
data/ntirpc-3.3/src/netnamer.c:88:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*uidp = (uid_t) atol(p);
data/ntirpc-3.3/src/netnamer.c:92:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*gidp = (gid_t) atol(p);
data/ntirpc-3.3/src/netnamer.c:98:30:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gidlist[gidlen] = (gid_t) atol(p);
data/ntirpc-3.3/src/netnamer.c:144:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int _getgroups(char *uname, gid_t groups[NGROUPS])
data/ntirpc-3.3/src/netnamer.c:183: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.
int netname2host(char netname[MAXNETNAMELEN + 1], char *hostname, int hostlen)
data/ntirpc-3.3/src/netnamer.c:186: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 valbuf[1024];
data/ntirpc-3.3/src/netnamer.c:230: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 buf[1024];	/* big enough */
data/ntirpc-3.3/src/netnamer.c:238: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).
	     fd = fopen(NETIDFILE, "r");
data/ntirpc-3.3/src/portable.c:88: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.
	static char msg[128];
data/ntirpc-3.3/src/rpc_callmsg.c:104:4:  [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, oa->oa_body, oa->oa_length);
data/ntirpc-3.3/src/rpc_callmsg.c:111:4:  [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, oa->oa_body, oa->oa_length);
data/ntirpc-3.3/src/rpc_dplx_msg.c:100: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(buf, oa->oa_body, oa->oa_length);
data/ntirpc-3.3/src/rpc_generic.c:775: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 namebuf[INET_ADDRSTRLEN];
data/ntirpc-3.3/src/rpc_generic.c:778: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 namebuf6[INET6_ADDRSTRLEN];
data/ntirpc-3.3/src/rpc_generic.c:836:7:  [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.
		if (sprintf
data/ntirpc-3.3/src/rpc_generic.c:850:7:  [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.
		if (sprintf(ret, "%.*s",
data/ntirpc-3.3/src/rpc_generic.c:893:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		portlo = (unsigned)atoi(p + 1);
data/ntirpc-3.3/src/rpc_generic.c:899:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		porthi = (unsigned)atoi(p + 1);
data/ntirpc-3.3/src/rpc_generic.c:1103:2:  [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(nb->buf, ptr, len);
data/ntirpc-3.3/src/rpc_raw.h:57: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 raw_verf_body[MAX_AUTH_BYTES];
data/ntirpc-3.3/src/rpc_raw.h:58: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 raw_buf[0];
data/ntirpc-3.3/src/rpc_rdma.c:550: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 sun_path[108];
data/ntirpc-3.3/src/rpc_rdma.c:569: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 stats_str[256];
data/ntirpc-3.3/src/rpcb_clnt.c:207:2:  [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(ad_cache->ac_taddr->buf, taddr->buf, taddr->len);
data/ntirpc-3.3/src/rpcb_clnt.c:303: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(addr_to_delete.buf, addr->buf, addr->len);
data/ntirpc-3.3/src/rpcb_clnt.c:438: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 uidbuf[32];
data/ntirpc-3.3/src/rpcb_clnt.c:514: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 uidbuf[32];
data/ntirpc-3.3/src/rpcb_clnt.c:746: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(address->buf, remote.buf, remote.len);
data/ntirpc-3.3/src/rpcb_clnt.c:747: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(&((char *)address->buf)[sizeof(uint16_t)],
data/ntirpc-3.3/src/rpcb_clnt.c:908:2:  [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(address->buf, na->buf, (size_t) na->len);
data/ntirpc-3.3/src/rpcb_clnt.c:1063:4:  [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(addr_ptr->buf, na->buf, (size_t) na->len);
data/ntirpc-3.3/src/rpcdname.c:44: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 temp[256];
data/ntirpc-3.3/src/svc.c:684: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 saddr[INET6_ADDRSTRLEN];
data/ntirpc-3.3/src/svc_auth_gss.c:227:2:  [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(gr->gr_ctx.value, gd->ctx, sizeof(gss_union_ctx_id_desc));
data/ntirpc-3.3/src/svc_auth_gss.c:299: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(req->rq_msg.RPCM_ack.ar_verf.oa_body, checksum.value,
data/ntirpc-3.3/src/svc_auth_gss.c:338: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(buf, oa->oa_body, oa->oa_length);
data/ntirpc-3.3/src/svc_auth_gss.c:381:2:  [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(req->rq_msg.RPCM_ack.ar_verf.oa_body, checksum.value,
data/ntirpc-3.3/src/svc_auth_gss.c:802:2:  [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(pname, gd->cname.value, gd->cname.length);
data/ntirpc-3.3/src/svc_auth_unix.c:63: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 area_machname[MAX_MACHINE_NAME + 1];
data/ntirpc-3.3/src/svc_dg.c:388: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 msg_control[sizeof(struct cmsghdr) + sizeof(struct in6_pktinfo)];
data/ntirpc-3.3/src/svc_rdma.c:91:2:  [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(&xd->sm_dr.xprt.xp_local.nb.buf, ss,
data/ntirpc-3.3/src/svc_rdma.c:96:2:  [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(&xd->sm_dr.xprt.xp_remote.nb.buf, ss,
data/ntirpc-3.3/src/svc_vc.c:468:2:  [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(newxprt->xp_remote.nb.buf, &addr, len);
data/ntirpc-3.3/src/xdr_ioq.c:379:4:  [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(base, uv->v.vio_head, len);
data/ntirpc-3.3/src/xdr_ioq.c:482: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(addr, xdrs->x_data, delta);
data/ntirpc-3.3/src/xdr_ioq.c:515: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(xdrs->x_data, addr, delta);
data/ntirpc-3.3/src/xdr_mem.c:127:2:  [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(addr, xdrs->x_data, len);
data/ntirpc-3.3/src/xdr_mem.c:139:2:  [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(xdrs->x_data, addr, len);
data/ntirpc-3.3/src/xdr_rdma.c:99:11:  [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 r = sprintf(&buffer[m], "\n%10d:", i);	/* heading */
data/ntirpc-3.3/src/xdr_rdma.c:109:8:  [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.
			r = sprintf(&buffer[m], "%02X", datum[i++]);
data/ntirpc-3.3/tests/rpcping.c:278:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			count = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:281:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			nthreads = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:284:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			nworkers = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:287:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:290:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			prog = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:293:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vers = atoi(optarg);
data/ntirpc-3.3/tests/rpcping.c:296:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			proc = atoi(optarg);
data/ntirpc-3.3/ntirpc/misc/stdio.h:17:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef fgetc
data/ntirpc-3.3/ntirpc/misc/stdio.h:31:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/ntirpc-3.3/ntirpc/misc/stdio.h:32:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1495:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(...) (pthread_testcancel(), read(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1495:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(...) (pthread_testcancel(), read(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1542:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc(...) (pthread_testcancel(), fgetc(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1542:43:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc(...) (pthread_testcancel(), fgetc(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1569:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc(...) (pthread_testcancel(), getc(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1569:42:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc(...) (pthread_testcancel(), getc(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1571:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getchar(...) (pthread_testcancel(), getchar(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/misc/winpthreads.h:1571:45:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getchar(...) (pthread_testcancel(), getchar(__VA_ARGS__))
data/ntirpc-3.3/ntirpc/rpc/types.h:226: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).
	size_t l = strlen(s) + 1;
data/ntirpc-3.3/ntirpc/rpc/xdr_inline.h:970: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).
	size = strlen(*cpp);
data/ntirpc-3.3/ntirpc/rpc/xdr_inline.h:999: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).
		mem_free(*cpp, strlen(*cpp) + 1);
data/ntirpc-3.3/ntirpc/un-namespace.h:96:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef		read
data/ntirpc-3.3/src/auth_gss.c:211: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).
	sname.length = strlen(service);
data/ntirpc-3.3/src/clnt_generic.c:165: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(netclass);
data/ntirpc-3.3/src/clnt_internal.h:59:31:  [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).
		mem_free(cx->cx_c.cl_netid, strlen(cx->cx_c.cl_netid) + 1);
data/ntirpc-3.3/src/clnt_internal.h:61: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).
		mem_free(cx->cx_c.cl_tp, strlen(cx->cx_c.cl_tp) + 1);
data/ntirpc-3.3/src/clnt_perror.c:72: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:78:6:  [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).
	i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:112: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:122: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:132: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:144: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:154: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_perror.c:164: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).
		i = strlen(str);
data/ntirpc-3.3/src/clnt_simple.c:150:8:  [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(host) < (size_t) MAXHOSTNAMELEN)
data/ntirpc-3.3/src/clnt_simple.c:151: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).
		    && (strlen(nettype) < (size_t) NETIDLEN)) {
data/ntirpc-3.3/src/getnetconfig.c:411: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 (netid == NULL || strlen(netid) == 0)
data/ntirpc-3.3/src/getnetconfig.c:470: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(netid) == (size_t) len &&
data/ntirpc-3.3/src/getnetconfig.c:530: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).
	stringp[strlen(stringp) - 1] = '\0';	/* get rid of newline */
data/ntirpc-3.3/src/getnetpath.c:105: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).
		np_sessionp->netpath = mem_zalloc(strlen(npp) + 1);
data/ntirpc-3.3/src/getnetpath.c:161: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).
	while ((npp = np_sessionp->netpath) != NULL && strlen(npp) != 0) {
data/ntirpc-3.3/src/getnetpath.c:243:12:  [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 n = strlen(cp);
data/ntirpc-3.3/src/getpublickey.c:74:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(publickey, lookup, HEXKEYBYTES);
data/ntirpc-3.3/src/getpublickey.c:117: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).
			    yp_match(domain, PKMAP, key, strlen(key), &lookup,
data/ntirpc-3.3/src/getrpcent.c:111: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).
		    yp_match(d->domain, "rpc.bynumber", adrstr, strlen(adrstr),
data/ntirpc-3.3/src/getrpcent.c:262: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).
	return (interpret(d->line, strlen(d->line)));
data/ntirpc-3.3/src/getrpcent.c:276:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(d->line, val, BUFSIZ);
data/ntirpc-3.3/src/netname.c:104:6:  [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(domain) + 1 + INT_STRLEN_MAXIMUM(u_long) + 1 +
data/ntirpc-3.3/src/netname.c:105:6:  [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(OPSYS) > MAXNETNAMELEN) {
data/ntirpc-3.3/src/netname.c:131:6:  [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(domain) + 1 + strlen(host) + 1 + strlen(OPSYS) >
data/ntirpc-3.3/src/netname.c:131:27:  [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(domain) + 1 + strlen(host) + 1 + strlen(OPSYS) >
data/ntirpc-3.3/src/netname.c:131: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).
	if (strlen(domain) + 1 + strlen(host) + 1 + strlen(OPSYS) >
data/ntirpc-3.3/src/netnamer.c:116:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(val, val1, 1024);
data/ntirpc-3.3/src/netnamer.c:211:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(hostname, val, vallen);
data/ntirpc-3.3/src/netnamer.c:261: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).
	     err = yp_match(domain, NETID, key, strlen(key), &lookup, &len);
data/ntirpc-3.3/src/rpc_rdma.c:1230: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.
	} while (wait && usleep(100000));
data/ntirpc-3.3/src/rpc_rdma.c:1239: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.
	} while (wait && usleep(100000));
data/ntirpc-3.3/src/rpcdname.c:50: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).
	if ((int)strlen(temp) > 0) {
data/ntirpc-3.3/src/rpcdname.c:52: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).
		    (char *)mem_alloc((strlen(temp) + (unsigned)1));
data/ntirpc-3.3/src/strlcat.c:45: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).
		return (dlen + strlen(s));
data/ntirpc-3.3/src/svc_auth_gss.c:89: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).
	namebuf.length = strlen(service);
data/ntirpc-3.3/src/svc_rqst.c:213:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	code = read(fd, &sig, sizeof(uint32_t));

ANALYSIS SUMMARY:

Hits = 265
Lines analyzed = 48662 in approximately 1.24 seconds (39093 lines/second)
Physical Source Lines of Code (SLOC) = 32230
Hits@level = [0]  81 [1]  55 [2] 118 [3]  14 [4]  75 [5]   3
Hits@level+ = [0+] 346 [1+] 265 [2+] 210 [3+]  92 [4+]  78 [5+]   3
Hits/KSLOC@level+ = [0+] 10.7353 [1+] 8.22215 [2+] 6.51567 [3+] 2.85448 [4+] 2.42011 [5+] 0.093081
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.