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/libbrahe-1.3.2/BraheDLL/resource.h
Examining data/libbrahe-1.3.2/BraheDLL/dllmain.cpp
Examining data/libbrahe-1.3.2/src/prng.h
Examining data/libbrahe-1.3.2/src/sinusoid.c
Examining data/libbrahe-1.3.2/src/simplefft.c
Examining data/libbrahe-1.3.2/src/logtools.c
Examining data/libbrahe-1.3.2/src/trig.c
Examining data/libbrahe-1.3.2/src/rounding.c
Examining data/libbrahe-1.3.2/src/gcflcm.c
Examining data/libbrahe-1.3.2/src/mathtools.h
Examining data/libbrahe-1.3.2/src/prng.c
Examining data/libbrahe-1.3.2/src/statistics.c
Examining data/libbrahe-1.3.2/src/prettyint.c
Examining data/libbrahe-1.3.2/BraheTest/BraheTest.cpp
Examining data/libbrahe-1.3.2/BraheTest/stdafx.h
Examining data/libbrahe-1.3.2/BraheTest/targetver.h
Examining data/libbrahe-1.3.2/BraheTest/stdafx.cpp
Examining data/libbrahe-1.3.2/test/brahe_test_fft.c
Examining data/libbrahe-1.3.2/test/brahe_test_rounding.c
Examining data/libbrahe-1.3.2/test/brahe_test_gcflcm.c
Examining data/libbrahe-1.3.2/test/brahe_test_prng.c
Examining data/libbrahe-1.3.2/test/brahe_test_pretty.c
Examining data/libbrahe-1.3.2/test/brahe_test_trig.c

FINAL RESULTS:

data/libbrahe-1.3.2/src/prettyint.c:97:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(result,"%s%s", front, back);
data/libbrahe-1.3.2/src/prng.c:527:22:  [2] (misc) open:
  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).
            int fd = open("/dev/urandom", O_RDONLY);
data/libbrahe-1.3.2/src/simplefft.c:167:13:  [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(x2,x,sizeof(double) * n);
data/libbrahe-1.3.2/src/prettyint.c:96:33:  [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).
        result = (char *)malloc(strlen(front) + strlen(back) + 1);
data/libbrahe-1.3.2/src/prettyint.c:96:49:  [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).
        result = (char *)malloc(strlen(front) + strlen(back) + 1);
data/libbrahe-1.3.2/src/prng.c:533:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int n = read(fd, &s, 4);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 3466 in approximately 0.12 seconds (28333 lines/second)
Physical Source Lines of Code (SLOC) = 1563
Hits@level = [0] 116 [1]   3 [2]   2 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+] 122 [1+]   6 [2+]   3 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 78.055 [1+] 3.83877 [2+] 1.91939 [3+] 0.639795 [4+] 0.639795 [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.