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/dumb-init-1.2.2/VERSION.h
Examining data/dumb-init-1.2.2/dumb-init.c

FINAL RESULTS:

data/dumb-init-1.2.2/dumb-init.c:25:5:  [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.
    fprintf(stderr, "[dumb-init] " __VA_ARGS__); \
data/dumb-init-1.2.2/dumb-init.c:319:9:  [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(cmd[0], &cmd[0]);
data/dumb-init-1.2.2/dumb-init.c:192: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, "+hvVcr:", long_options, NULL)) != -1) {
data/dumb-init-1.2.2/dumb-init.c:224:23:  [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_env = getenv("DUMB_INIT_DEBUG");
data/dumb-init-1.2.2/dumb-init.c:230: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.
    char *setsid_env = getenv("DUMB_INIT_SETSID");
data/dumb-init-1.2.2/dumb-init.c:43: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 signal_temporary_ignores[MAXSIG + 1] = {[0 ... MAXSIG] = 0};

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 339 in approximately 0.05 seconds (7189 lines/second)
Physical Source Lines of Code (SLOC) = 253
Hits@level = [0]   5 [1]   0 [2]   1 [3]   3 [4]   2 [5]   0
Hits@level+ = [0+]  11 [1+]   6 [2+]   6 [3+]   5 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 43.4783 [1+] 23.7154 [2+] 23.7154 [3+] 19.7628 [4+] 7.90514 [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.