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/lisaac-0.39~rc1/install_lisaac.c
Examining data/lisaac-0.39~rc1/lib/unstable/freetype/font.h
Examining data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3ext.h
Examining data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3.h
Examining data/lisaac-0.39~rc1/bin/lisaac.c

FINAL RESULTS:

data/lisaac-0.39~rc1/bin/lisaac.c:37795:7:  [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(((char*)((li__GJTU))));
data/lisaac-0.39~rc1/bin/lisaac.c:89909:45:  [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.
    li__UXUF=li__J2XB(li__MHB__,((__li__K )(system(((char*)((li__HGFG)))))));
data/lisaac-0.39~rc1/install_lisaac.c:1474:13:  [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(((char*)(("mkdir -p ~/.vim/syntax"))));
data/lisaac-0.39~rc1/install_lisaac.c:1475:13:  [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(((char*)(("mkdir -p ~/.vim/indent"))));
data/lisaac-0.39~rc1/install_lisaac.c:1476:13:  [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(((char*)(("mkdir -p ~/.vim/backup"))));
data/lisaac-0.39~rc1/install_lisaac.c:1477:13:  [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(((char*)(("mkdir -p ~/.vim/temp"))));
data/lisaac-0.39~rc1/install_lisaac.c:1484:18:  [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.
if ((((__li__K )(system(((char*)((li__FK0)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1495:18:  [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.
if ((((__li__K )(system(((char*)((li__FK0)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1607:18:  [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.
if ((((__li__K )(system(((char*)((li__XBZ)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1622:13:  [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(((char*)(("mkdir -p ~/.kde/share/apps/katepart/syntax"))));
data/lisaac-0.39~rc1/install_lisaac.c:1629:18:  [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.
if ((((__li__K )(system(((char*)((li__FK0)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1647:18:  [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.
if ((((__li__K )(system(((char*)((li__FK0)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1837:18:  [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.
if ((((__li__K )(system(((char*)((li__YL0)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1932:18:  [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.
if ((((__li__K )(system(((char*)((li__DZB)))))) !=  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1950:7:  [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(((char*)(("copy make.lip.sample make.lip"))));
data/lisaac-0.39~rc1/install_lisaac.c:1954:7:  [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(((char*)(("cp make.lip.sample make.lip"))));
data/lisaac-0.39~rc1/install_lisaac.c:1982:18:  [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.
if ((((__li__K )(system(((char*)((((__li__U *)li__YJB)->li__UB)))))) ==  0)) {
data/lisaac-0.39~rc1/install_lisaac.c:1986:7:  [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(((char*)((((__li__U *)li__XJB)->li__UB))));
data/lisaac-0.39~rc1/install_lisaac.c:2001:5:  [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(((char*)(("mkdir doc\\html"))));
data/lisaac-0.39~rc1/install_lisaac.c:2004:5:  [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(((char*)(("mkdir -p doc/html"))));
data/lisaac-0.39~rc1/install_lisaac.c:2012:18:  [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.
if ((((__li__K )(system(((char*)((li__4UB)))))) ==  0)) {
data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3ext.h:130:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  char * (*snprintf)(int,char*,const char*,...);
data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3ext.h:312:53:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define sqlite3_snprintf               sqlite3_api->snprintf
data/lisaac-0.39~rc1/bin/lisaac.c:17122:24:  [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.
  li__V0H=((__li__3 *)(getenv((char*)("LISAAC_DIRECTORY"))));
data/lisaac-0.39~rc1/install_lisaac.c:957:23:  [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.
  li__AE=((__li__3 *)(getenv((char*)(((__li__U *)li__UD)->li__UB))));
data/lisaac-0.39~rc1/bin/lisaac.c:8364:27:  [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).
    li__BXCV=((__li__CB )(fopen((char*)(li__21E),"w+b")));
data/lisaac-0.39~rc1/bin/lisaac.c:8377:27:  [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).
    li__BXCV=((__li__CB )(fopen((char*)(li__21E),"wb")));
data/lisaac-0.39~rc1/bin/lisaac.c:13344:24:  [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).
  li__QCN=((__li__CB )(fopen((char*)(li__21E),"w+b")));
data/lisaac-0.39~rc1/bin/lisaac.c:13359:24:  [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).
  li__QCN=((__li__CB )(fopen((char*)(li__21E),"wb")));
data/lisaac-0.39~rc1/bin/lisaac.c:13478:27:  [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).
    li__BXCV=((__li__CB )(fopen((char*)(li__GGSU),"wb")));
data/lisaac-0.39~rc1/bin/lisaac.c:16663:24:  [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).
  li__L5H=((__li__CB )(fopen((char*)(li__BOI),"rb")));
data/lisaac-0.39~rc1/bin/lisaac.c:17948:29:  [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).
      li__VV3=(((__li__CB )(fopen((char*)(((__li__U *)((__li__KIE *)li__HYZ)->li__LIE.li__WTC)->li__3C),"r+b"))) != (void *)NULL);
data/lisaac-0.39~rc1/bin/lisaac.c:38173:24:  [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).
  li__3WN=((__li__CB )(fopen((char*)(li__4LTU),"rb")));
data/lisaac-0.39~rc1/bin/lisaac.c:41422:31:  [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).
        li__QJKB=((__li__CB )(fopen((char*)(li__LVTU),"rb")));
data/lisaac-0.39~rc1/bin/lisaac.c:91759:31:  [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).
        li__V3PB=((__li__CB )(fopen((char*)(li__QTWU),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:526:25:  [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).
    li__KJ=((__li__CB )(fopen((char*)(li__QI0),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:1518:36:  [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).
              li__OND=((__li__CB )(fopen((char*)(li__XBZ),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:1588:38:  [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).
                li__JRD=((__li__CB )(fopen((char*)(li__5BZ),"wb")));
data/lisaac-0.39~rc1/install_lisaac.c:1744:24:  [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).
  li__ANB=((__li__CB )(fopen((char*)(li__RXB),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:1811:24:  [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).
  li__ANB=((__li__CB )(fopen((char*)(li__RXB),"wb")));
data/lisaac-0.39~rc1/install_lisaac.c:2299:24:  [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).
  li__C5B=((__li__CB )(fopen((char*)(li__I3Y),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:2371:26:  [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).
    li__3CC=((__li__CB )(fopen((char*)(li__Q3Y),"wb")));
data/lisaac-0.39~rc1/install_lisaac.c:2574:24:  [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).
  li__SHC=((__li__CB )(fopen((char*)(li__VHC),"w+b")));
data/lisaac-0.39~rc1/install_lisaac.c:2599:24:  [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).
  li__YYC=((__li__CB )(fopen((char*)(li__HQY),"rb")));
data/lisaac-0.39~rc1/install_lisaac.c:2664:24:  [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).
  li__YYC=((__li__CB )(fopen((char*)(li__HQY),"wb")));
data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3ext.h:107:10:  [2] (misc) open:
  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).
  int  (*open)(const char*,sqlite3**);
data/lisaac-0.39~rc1/lib/unstable/sqlite-binding/sqlite3ext.h:287:53:  [2] (misc) open:
  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).
#define sqlite3_open                   sqlite3_api->open
data/lisaac-0.39~rc1/bin/lisaac.c:221988:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  li__5IBH=((__li__3 )(fgetc(stdin)));
data/lisaac-0.39~rc1/bin/lisaac.c:221992:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    li__E22G=((__li__3 )(fgetc(stdin)));
data/lisaac-0.39~rc1/bin/lisaac.c:221995:28:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      li__E22G=((__li__3 )(fgetc(stdin)));
data/lisaac-0.39~rc1/install_lisaac.c:1127:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      li__EEE=((__li__3 )(fgetc(stdin)));
data/lisaac-0.39~rc1/install_lisaac.c:1130:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        li__EEE=((__li__3 )(fgetc(stdin)));
data/lisaac-0.39~rc1/install_lisaac.c:1853:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    li__BNC=((__li__3 )(fgetc(stdin)));

ANALYSIS SUMMARY:

Hits = 53
Lines analyzed = 260992 in approximately 7.33 seconds (35620 lines/second)
Physical Source Lines of Code (SLOC) = 241847
Hits@level = [0]   5 [1]   6 [2]  22 [3]   2 [4]  23 [5]   0
Hits@level+ = [0+]  58 [1+]  53 [2+]  47 [3+]  25 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 0.239821 [1+] 0.219147 [2+] 0.194338 [3+] 0.103371 [4+] 0.0951014 [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.