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/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c

FINAL RESULTS:

data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:39:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -cp %slib/launcher.jar beast.app.tools.AppLauncherLauncher", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:43:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -cp %slib/launcher.jar beast.app.beastapp.BeastLauncher -window -options -working", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:47:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -jar %sDensiTree.app/Contents/Java/DensiTree.jar", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:51:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -cp %slib/launcher.jar beast.app.tools.LogCombinerLauncher", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:55:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -cp %slib/launcher.jar beast.app.treeannotator.TreeAnnotatorLauncher", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:61:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "%sjre1.8.0_212/bin/java -Xmx4g -Dapple.laf.useScreenMenuBar=true -Djava.library.path=$JAVAROOT:/usr/local/lib -Duser.language=en -cp %slib/launcher.jar beast.app.beauti.BeautiLauncher -capture", path, path);
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:66:20:  [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.
    FILE* output = popen(s, "r");
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:22: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 s[1024];
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:23: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];
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:24: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 path[1024];
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:32: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).
	buf[strlen(buf) - strlen(argv[0])] = 0;
data/beast2-mcmc-2.6.3+dfsg/release/Mac/launch.c:32: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).
	buf[strlen(buf) - strlen(argv[0])] = 0;

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 74 in approximately 0.23 seconds (324 lines/second)
Physical Source Lines of Code (SLOC) = 53
Hits@level = [0]   0 [1]   2 [2]   3 [3]   0 [4]   7 [5]   0
Hits@level+ = [0+]  12 [1+]  12 [2+]  10 [3+]   7 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 226.415 [1+] 226.415 [2+] 188.679 [3+] 132.075 [4+] 132.075 [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.