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/mediawiki2latex-7.43/src/tachyon/tachyon.cpp

FINAL RESULTS:

data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:83:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd,"convert %s %s.png",fn,fn);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:84:9:  [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.
        system(cmd);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:155:3:  [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.
  system("cp -r ../../document/headers ../headers");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:170:3:  [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.
  system("cp ../../latex/my-head.tex ./myfile.tex");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:175:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(str,argv[1]);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:176:3:  [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(str2, (argv[1])+8);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:180:3:  [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.
  system(str);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:192:3:  [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.
  system("cat ../../latex/my-tail.tex >> ./myfile.tex");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:193:3:  [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.
  system("xelatex --interaction=nonstopmode myfile.tex >/dev/null"); 
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:194:3:  [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.
  system("xelatex --interaction=nonstopmode myfile.tex >/dev/null"); 
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:195:3:  [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.
  system("xelatex --interaction=nonstopmode myfile.tex >/dev/null"); 
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:78: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.
        char fn[1000];
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:80:9:  [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(fn,"./%d",filecounter);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:82: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.
        char cmd[1000];
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:85:9:  [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(fn,"./%d.png",filecounter);
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:156:10:  [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).
  pfile =fopen ("../headers/babel.tex","w");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:159:10:  [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).
  pfile =fopen ("../headers/svg.tex","w");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:162:10:  [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).
  pfile =fopen ("../headers/paper.tex","w");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:165:10:  [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).
  pfile =fopen ("../headers/title.tex","w");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:171:10:  [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).
  pfile =fopen ("myfile.tex","a");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:172: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 str[10000];
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:173: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 str2[10000];
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:174:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(str, "wget -E -H -k -p ");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:177:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(str2,".html");
data/mediawiki2latex-7.43/src/tachyon/tachyon.cpp:96:20:  [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).
          size_t l=strlen(mattrval);

ANALYSIS SUMMARY:

Hits = 25
Lines analyzed = 198 in approximately 0.04 seconds (4577 lines/second)
Physical Source Lines of Code (SLOC) = 181
Hits@level = [0]  44 [1]   1 [2]  13 [3]   0 [4]  11 [5]   0
Hits@level+ = [0+]  69 [1+]  25 [2+]  24 [3+]  11 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 381.215 [1+] 138.122 [2+] 132.597 [3+] 60.7735 [4+] 60.7735 [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.