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/octave-stk-2.6.1/src/get_column_number.c Examining data/octave-stk-2.6.1/src/pareto.h Examining data/octave-stk-2.6.1/src/primes.h Examining data/octave-stk-2.6.1/src/stk_dist_matrixx.c Examining data/octave-stk-2.6.1/src/stk_dist_matrixy.c Examining data/octave-stk-2.6.1/src/stk_dist_pairwise.c Examining data/octave-stk-2.6.1/src/stk_distrib_bivnorm0_cdf.c Examining data/octave-stk-2.6.1/src/stk_dominatedhv_mex.c Examining data/octave-stk-2.6.1/src/stk_filldist_discr_mex.c Examining data/octave-stk-2.6.1/src/stk_gpquadform_matrixx.c Examining data/octave-stk-2.6.1/src/stk_gpquadform_matrixy.c Examining data/octave-stk-2.6.1/src/stk_gpquadform_pairwise.c Examining data/octave-stk-2.6.1/src/stk_isdominated_mex.c Examining data/octave-stk-2.6.1/src/stk_mex.h Examining data/octave-stk-2.6.1/src/stk_mindist_mex.c Examining data/octave-stk-2.6.1/src/stk_paretofind_mex.c Examining data/octave-stk-2.6.1/src/stk_sampling_sobol_mex.c Examining data/octave-stk-2.6.1/src/stk_sampling_vdc_rr2.c Examining data/octave-stk-2.6.1/src/wfg.c Examining data/octave-stk-2.6.1/src/wfg.h FINAL RESULTS: data/octave-stk-2.6.1/src/wfg.c:293: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 (Rlist->xmax[Ridx], p.objectives, p.n * sizeof (double)); data/octave-stk-2.6.1/src/wfg.c:325: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 (Rlist->xmax[Ridx], p.objectives, n * sizeof (double)); Rlist->sign[Ridx++] = sign; data/octave-stk-2.6.1/src/wfg.c:326: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 (Rlist->xmax[Ridx], q.objectives, n * sizeof (double)); Rlist->sign[Ridx++] = sign; data/octave-stk-2.6.1/src/wfg.c:393: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 (Rlist->xmax[Ridx], p.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:394: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 (Rlist->xmax[Ridx], q.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:395: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 (Rlist->xmax[Ridx], r.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:603: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 (Rlist->xmax[Ridx], p.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:604: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 (Rlist->xmax[Ridx], q.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:605: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 (Rlist->xmax[Ridx], r.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; data/octave-stk-2.6.1/src/wfg.c:606: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 (Rlist->xmax[Ridx], s.objectives, n * sizeof (double)); Rlist->sign[Ridx ++] = sign; ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 6310 in approximately 0.37 seconds (17273 lines/second) Physical Source Lines of Code (SLOC) = 4483 Hits@level = [0] 0 [1] 0 [2] 10 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 10 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.23065 [1+] 2.23065 [2+] 2.23065 [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.