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-miscellaneous-1.3.0/src/text_waitbar.cc
Examining data/octave-miscellaneous-1.3.0/src/cell2cell.cc
Examining data/octave-miscellaneous-1.3.0/src/partint.h
Examining data/octave-miscellaneous-1.3.0/src/undef-ah-octave.h
Examining data/octave-miscellaneous-1.3.0/src/sample.cc
Examining data/octave-miscellaneous-1.3.0/src/partint.cc

FINAL RESULTS:

data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:116:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      term = getenv("TERM");
data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:67:10:  [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.
  static char print_buf[BUF_SIZE];
data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:72:10:  [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.
  static char term_buffer[1024];
data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:210:22:  [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.
              static char pct_str[5];
data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:211:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf(pct_str,"%3i%%",pct_int);
data/octave-miscellaneous-1.3.0/src/text_waitbar.cc:250:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf(&(print_buf[length+3])," %3i%%\r",pct_int);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 899 in approximately 0.05 seconds (18218 lines/second)
Physical Source Lines of Code (SLOC) = 534
Hits@level = [0]   0 [1]   0 [2]   5 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   6 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 11.236 [1+] 11.236 [2+] 11.236 [3+] 1.87266 [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.