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/siscone-2.0.6/examples/spherical.cpp
Examining data/siscone-2.0.6/examples/area.cpp
Examining data/siscone-2.0.6/examples/test.cpp
Examining data/siscone-2.0.6/examples/sample.cpp
Examining data/siscone-2.0.6/examples/options.cpp
Examining data/siscone-2.0.6/examples/options.h
Examining data/siscone-2.0.6/examples/times.cpp
Examining data/siscone-2.0.6/examples/main.cpp
Examining data/siscone-2.0.6/siscone/geom_2d.cpp
Examining data/siscone-2.0.6/siscone/split_merge.cpp
Examining data/siscone-2.0.6/siscone/geom_2d.h
Examining data/siscone-2.0.6/siscone/siscone.h
Examining data/siscone-2.0.6/siscone/area.cpp
Examining data/siscone-2.0.6/siscone/vicinity.cpp
Examining data/siscone-2.0.6/siscone/circulator.h
Examining data/siscone-2.0.6/siscone/ranlux.cpp
Examining data/siscone-2.0.6/siscone/reference.cpp
Examining data/siscone-2.0.6/siscone/momentum.cpp
Examining data/siscone-2.0.6/siscone/hash.h
Examining data/siscone-2.0.6/siscone/split_merge.h
Examining data/siscone-2.0.6/siscone/protocones.cpp
Examining data/siscone-2.0.6/siscone/area.h
Examining data/siscone-2.0.6/siscone/siscone_error.h
Examining data/siscone-2.0.6/siscone/vicinity.h
Examining data/siscone-2.0.6/siscone/spherical/geom_2d.cpp
Examining data/siscone-2.0.6/siscone/spherical/split_merge.cpp
Examining data/siscone-2.0.6/siscone/spherical/geom_2d.h
Examining data/siscone-2.0.6/siscone/spherical/siscone.h
Examining data/siscone-2.0.6/siscone/spherical/vicinity.cpp
Examining data/siscone-2.0.6/siscone/spherical/momentum.cpp
Examining data/siscone-2.0.6/siscone/spherical/hash.h
Examining data/siscone-2.0.6/siscone/spherical/split_merge.h
Examining data/siscone-2.0.6/siscone/spherical/protocones.cpp
Examining data/siscone-2.0.6/siscone/spherical/vicinity.h
Examining data/siscone-2.0.6/siscone/spherical/momentum.h
Examining data/siscone-2.0.6/siscone/spherical/siscone.cpp
Examining data/siscone-2.0.6/siscone/spherical/protocones.h
Examining data/siscone-2.0.6/siscone/spherical/hash.cpp
Examining data/siscone-2.0.6/siscone/momentum.h
Examining data/siscone-2.0.6/siscone/siscone.cpp
Examining data/siscone-2.0.6/siscone/defines.h
Examining data/siscone-2.0.6/siscone/quadtree.cpp
Examining data/siscone-2.0.6/siscone/reference.h
Examining data/siscone-2.0.6/siscone/ranlux.h
Examining data/siscone-2.0.6/siscone/protocones.h
Examining data/siscone-2.0.6/siscone/hash.cpp
Examining data/siscone-2.0.6/siscone/siscone_error.cpp
Examining data/siscone-2.0.6/siscone/quadtree.h

FINAL RESULTS:

data/siscone-2.0.6/examples/options.cpp:158: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(ev_name, optarg);
data/siscone-2.0.6/examples/options.cpp:163: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(tmp, optarg);
data/siscone-2.0.6/examples/options.cpp:194: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(ev_name, DEFAULT_EVENT);
data/siscone-2.0.6/examples/options.cpp:108:17:  [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.
    opt_param = getopt_long(argc, argv, "hvqN:R:f:p:n:e:s:", 
data/siscone-2.0.6/examples/test.cpp:69:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(timestamp.tv_usec);
data/siscone-2.0.6/examples/times.cpp:84:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(timestamp.tv_usec);
data/siscone-2.0.6/examples/area.cpp:44: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 fline[512];
data/siscone-2.0.6/examples/area.cpp:67:10:  [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).
  flux = fopen(opts.ev_name, "r");
data/siscone-2.0.6/examples/area.cpp:74:11:  [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).
  fpart = fopen("particles.dat", "w+");
data/siscone-2.0.6/examples/area.cpp:109:10:  [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).
  flux = fopen("jets_with_area.dat", "w+");
data/siscone-2.0.6/examples/main.cpp:43: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 fline[512];
data/siscone-2.0.6/examples/main.cpp:66:10:  [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).
  flux = fopen(opts.ev_name, "r");
data/siscone-2.0.6/examples/main.cpp:74:11:  [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).
  fpart = fopen("particles.dat", "w+");
data/siscone-2.0.6/examples/main.cpp:109:10:  [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).
  flux = fopen("jets.dat", "w+");
data/siscone-2.0.6/examples/options.cpp:162: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 tmp[512];
data/siscone-2.0.6/examples/sample.cpp:46: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 fline[512];                // line to read from a file
data/siscone-2.0.6/examples/sample.cpp:50:10:  [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).
  flux = fopen("events/single-event.dat", "r");
data/siscone-2.0.6/examples/spherical.cpp:48: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 fline[512];                // line to read from a file
data/siscone-2.0.6/examples/spherical.cpp:52:10:  [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).
  flux = fopen("events/single-event.dat", "r");
data/siscone-2.0.6/examples/test.cpp:73:10:  [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).
  flux = fopen("particles.dat", "w+");
data/siscone-2.0.6/examples/test.cpp:103:10:  [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).
  flux = fopen("protocones.dat", "w+");
data/siscone-2.0.6/examples/times.cpp:86:10:  [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).
  flux = fopen("times.dat", "w+");
data/siscone-2.0.6/examples/options.cpp:157:21:  [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).
	ev_name = new char[strlen(optarg)+1];
data/siscone-2.0.6/examples/options.cpp:193:24:  [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).
    ev_name = new char[strlen(DEFAULT_EVENT)+1];

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 11658 in approximately 0.27 seconds (42413 lines/second)
Physical Source Lines of Code (SLOC) = 4708
Hits@level = [0]  54 [1]   2 [2]  16 [3]   3 [4]   3 [5]   0
Hits@level+ = [0+]  78 [1+]  24 [2+]  22 [3+]   6 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 16.5675 [1+] 5.09771 [2+] 4.6729 [3+] 1.27443 [4+] 0.637213 [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.