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/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c
Examining data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.h
Examining data/libmonospaceif-0.7.15/src/locales/libmonospaceif_locales.c
Examining data/libmonospaceif-0.7.15/src/locales/libmonospaceif_locales.h
Examining data/libmonospaceif-0.7.15/src/screen_interface/screen_monospace_interface.h

FINAL RESULTS:

data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:195:8:  [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 last_left_margin_config_value_as_string[MAX_MARGIN_AS_STRING_LEN];
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:196:8:  [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 last_right_margin_config_value_as_string[MAX_MARGIN_AS_STRING_LEN];
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:3116: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 latin1_buf1[14];
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:3117: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 latin1_buf2[9];
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:3138:7:  [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(latin1_buf1, ": %d  ", parameter1);
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:3139:7:  [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(latin1_buf2, ": %d", parameter2);
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:3187:7:  [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(latin1_buf1, "%02d:%02d", parameter1, parameter2);
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:691:30:  [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).
    if ( (value == NULL) || (strlen(value) == 0) )
data/libmonospaceif-0.7.15/src/monospace_interface/monospace_interface.c:2693:24:  [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).
          input_size = strlen((char*)cmd_history_ptr);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 3823 in approximately 0.11 seconds (34594 lines/second)
Physical Source Lines of Code (SLOC) = 2733
Hits@level = [0]   2 [1]   2 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]   9 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.02488 [1+] 3.29308 [2+] 2.56129 [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.