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/display-dhammapada-1.0/src/display-dhammapada.c

FINAL RESULTS:

data/display-dhammapada-1.0/src/display-dhammapada.c:211:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(s2, s);
data/display-dhammapada-1.0/src/display-dhammapada.c:259:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
     srand ((unsigned int) time (NULL));
data/display-dhammapada-1.0/src/display-dhammapada.c:51: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.
       char begin[mark_length], end[mark_length];
data/display-dhammapada-1.0/src/display-dhammapada.c:136:6:  [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.
     char s[max_string_length];
data/display-dhammapada-1.0/src/display-dhammapada.c:161:6:  [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.
     char s[max_string_length];
data/display-dhammapada-1.0/src/display-dhammapada.c:193:6:  [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.
     char s[max_string_length];
data/display-dhammapada-1.0/src/display-dhammapada.c:196:6:  [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.
     char s2[max_string_length*2];
data/display-dhammapada-1.0/src/display-dhammapada.c:249:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (number <= atoi (marks[index].end))
data/display-dhammapada-1.0/src/display-dhammapada.c:288:6:  [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.
     char dp_filename [200];
data/display-dhammapada-1.0/src/display-dhammapada.c:363:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	     dp = fopen (dp_filename, "rt");
data/display-dhammapada-1.0/src/display-dhammapada.c:213:17:  [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).
	      inleft = strlen(s2);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 385 in approximately 0.10 seconds (3946 lines/second)
Physical Source Lines of Code (SLOC) = 353
Hits@level = [0]  11 [1]   1 [2]   8 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  22 [1+]  11 [2+]  10 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 62.3229 [1+] 31.1615 [2+] 28.3286 [3+] 5.66572 [4+] 2.83286 [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.