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-tsa-4.6.2/src/kalman_maar.cpp
Examining data/octave-tsa-4.6.2/src/kalman_maar.h

FINAL RESULTS:

data/octave-tsa-4.6.2/src/kalman_maar.cpp:125:9:  [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.
		const char *fieldnames[8] = { "G", "H", "Kp", "Q1", "Q2", "errCov", "x", "yr" };
data/octave-tsa-4.6.2/src/kalman_maar.cpp:207:2:  [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( mxGetPr( out.x ), mxGetPr( outKalman.x ), L*sizeof(double) );
data/octave-tsa-4.6.2/src/kalman_maar.h:122:9:  [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( outKalman->Q2, inKalman->Q2, sizeof(double)*M*M );
data/octave-tsa-4.6.2/src/kalman_maar.h:129:9:  [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( outKalman->Q2, inKalman->errCov, sizeof(double)*M*M );
data/octave-tsa-4.6.2/src/kalman_maar.h:173:9:  [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( outKalman->Q1, inKalman->Q1, sizeof(double)*L*L );

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 620 in approximately 0.03 seconds (22967 lines/second)
Physical Source Lines of Code (SLOC) = 400
Hits@level = [0]   1 [1]   0 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   5 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+]  15 [1+] 12.5 [2+] 12.5 [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.