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/m17n-docs-1.6.2/utils/imdoc.c

FINAL RESULTS:

data/m17n-docs-1.6.2/utils/imdoc.c:64:4:  [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 (cur_comment->line, buf + 4);
data/m17n-docs-1.6.2/utils/imdoc.c:128:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (cmd, "convert -resize 50%% %s images/icon-%s",
data/m17n-docs-1.6.2/utils/imdoc.c:130:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	      result = system (cmd);
data/m17n-docs-1.6.2/utils/imdoc.c:9:3:  [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 line[256];
data/m17n-docs-1.6.2/utils/imdoc.c:30:3:  [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 buf[256];
data/m17n-docs-1.6.2/utils/imdoc.c:44:8:  [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).
  fp = fopen (argv[1], "r");
data/m17n-docs-1.6.2/utils/imdoc.c:124: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 cmd[1024];
data/m17n-docs-1.6.2/utils/imdoc.c:70: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).
  mt = mtext_from_data (buf, strlen (buf), MTEXT_FORMAT_US_ASCII);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 222 in approximately 0.39 seconds (568 lines/second)
Physical Source Lines of Code (SLOC) = 206
Hits@level = [0]  30 [1]   1 [2]   4 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  38 [1+]   8 [2+]   7 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 184.466 [1+] 38.835 [2+] 33.9806 [3+] 14.5631 [4+] 14.5631 [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.