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/hddemux-0.4/hddemux.c

FINAL RESULTS:

data/hddemux-0.4/hddemux.c:190:13:  [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 *n = getenv(envname);
data/hddemux-0.4/hddemux.c:848:17:  [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 *debug = getenv("HDDEMUX_DEBUG");
data/hddemux-0.4/hddemux.c:851: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 *timeout = getenv("IDLE_TIMEOUT");
data/hddemux-0.4/hddemux.c:152: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 paddr[INET6_ADDRSTRLEN];
data/hddemux-0.4/hddemux.c:175: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(paddr, "<err> ", 6);
data/hddemux-0.4/hddemux.c:179:5:  [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(paddr, "<unknown>");
data/hddemux-0.4/hddemux.c:174:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(paddr+6, e2, sizeof(paddr)-(6+1));

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 884 in approximately 0.06 seconds (16029 lines/second)
Physical Source Lines of Code (SLOC) = 741
Hits@level = [0]  55 [1]   1 [2]   3 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  62 [1+]   7 [2+]   6 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 83.6707 [1+] 9.44669 [2+] 8.09717 [3+] 4.04858 [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.