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/udptunnel-1.1/host2ip.h
Examining data/udptunnel-1.1/udptunnel.c
Examining data/udptunnel-1.1/host2ip.c

FINAL RESULTS:

data/udptunnel-1.1/udptunnel.c:97: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, argv, "s:c:rvh")) != EOF) {
data/udptunnel-1.1/udptunnel.c:35: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[UDPBUFFERSIZE];
data/udptunnel-1.1/udptunnel.c:49: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[TCPBUFFERSIZE];
data/udptunnel-1.1/udptunnel.c:278: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(&udp_recv_addr, &(relay->udpaddr), sizeof(struct sockaddr_in));
data/udptunnel-1.1/host2ip.c:48: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).
    if (yp_match(domain, "hosts.byname", host, strlen(host), &value, &value_len) == 0) {
data/udptunnel-1.1/udptunnel.c:523:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((read_len = read(relay->tcp_sock, relay->buf_ptr,

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 694 in approximately 0.03 seconds (26138 lines/second)
Physical Source Lines of Code (SLOC) = 524
Hits@level = [0]  24 [1]   2 [2]   3 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  30 [1+]   6 [2+]   4 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 57.2519 [1+] 11.4504 [2+] 7.63359 [3+] 1.9084 [4+]   0 [5+]   0
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.