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/mpfrc++-3.6.8+ds/example/example.cpp
Examining data/mpfrc++-3.6.8+ds/mpreal.h

FINAL RESULTS:

data/mpfrc++-3.6.8+ds/mpreal.h:451:25:  [3] (random) random:
  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.
    friend const mpreal random(unsigned int seed);
data/mpfrc++-3.6.8+ds/mpreal.h:2727:21:  [3] (random) random:
  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.
inline const mpreal random(unsigned int seed = 0)
data/mpfrc++-3.6.8+ds/mpreal.h:2744:27:  [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.
    if(seed != 0)    std::srand(seed);
data/mpfrc++-3.6.8+ds/mpreal.h:620:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(mpfr_ptr(), u, sizeof(mpfr_t));
data/mpfrc++-3.6.8+ds/mpreal.h:1810:17:  [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).
        slen  = strlen(s);
data/mpfrc++-3.6.8+ds/mpreal.h:1811:17:  [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).
        nslen = strlen(ns);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 3370 in approximately 0.10 seconds (33096 lines/second)
Physical Source Lines of Code (SLOC) = 2475
Hits@level = [0]   0 [1]   2 [2]   1 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   4 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.42424 [1+] 2.42424 [2+] 1.61616 [3+] 1.21212 [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.