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/xmds2-3.0.0+dfsg/xpdeint/includes/xpdeint_platform.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/xpdeint.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/u128simd.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/SFMTparams.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/ziggurat.cpp Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/ziggurat.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/randpool.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/dSFMT/dSFMT.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/dSFMT/dSFMT.c Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/dSFMT/dSFMT-params19937.h Examining data/xmds2-3.0.0+dfsg/xpdeint/includes/dSFMT/dSFMT-params.h FINAL RESULTS: data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:471:5: [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(Buffer, FBuffer_uniform_FP32.GetPointerFP32() + FBufPos_uniform_FP32, NumToDo * sizeof(float)); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:730:5: [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(Buffer, FBuffer_uniform_FP64.GetPointerFP64() + FBufPos_uniform_FP64, NumToDo * sizeof(double)); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:1273:5: [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(Buffer, SrcView.GetPointer() + BufPos128 * 2, NumToDo128 * 16); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:1297:3: [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(FBuffer_integer.GetPointerU8(), RandomBlock.GetDataPointer(), BufSize * 16); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:1355:5: [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(Buffer, SrcPtr + BufPos128 * 4, NumToDo128 * 16); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:1622:5: [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(Buffer, SrcView.GetPointer() + BufPos128 * 2, NumToDo128 * 16); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/prng.h:1975:5: [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(Buffer, SrcView.GetPointer() + BufPos128 * 4, NumToDo128 * 16); data/xmds2-3.0.0+dfsg/xpdeint/includes/solirte/randpool.h:149: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(NewBlock->GetDataPointer(), FBlock->GetDataPointer(), N * sizeof(uint128_t)); data/xmds2-3.0.0+dfsg/xpdeint/includes/xpdeint_platform.h:325:12: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. return memalign(alignment, size); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 7329 in approximately 0.32 seconds (22663 lines/second) Physical Source Lines of Code (SLOC) = 5407 Hits@level = [0] 2 [1] 1 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 9 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.0344 [1+] 1.66451 [2+] 1.47956 [3+] 0 [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.