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/ibus-keyman-11.0.103/src/engine.c
Examining data/ibus-keyman-11.0.103/src/engine.h
Examining data/ibus-keyman-11.0.103/src/keyman-service.c
Examining data/ibus-keyman-11.0.103/src/keyman-service.h
Examining data/ibus-keyman-11.0.103/src/keymanutil.c
Examining data/ibus-keyman-11.0.103/src/keymanutil.h
Examining data/ibus-keyman-11.0.103/src/kmpdetails.c
Examining data/ibus-keyman-11.0.103/src/kmpdetails.h
Examining data/ibus-keyman-11.0.103/src/main.c
Examining data/ibus-keyman-11.0.103/src/print_kmp.c
Examining data/ibus-keyman-11.0.103/src/print_kmpdetails.c

FINAL RESULTS:

data/ibus-keyman-11.0.103/src/kmpdetails.c:314:28:  [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.
                &(details->system.keymanDeveloperVersion));
data/ibus-keyman-11.0.103/src/kmpdetails.c:316:28:  [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.
                &(details->system.fileVersion));
data/ibus-keyman-11.0.103/src/kmpdetails.c:382:50:  [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.
    g_print("system.fileVersion: %s\n", details->system.fileVersion);
data/ibus-keyman-11.0.103/src/kmpdetails.c:383:61:  [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.
    g_print("system.keymanDeveloperVersion: %s\n", details->system.keymanDeveloperVersion);
data/ibus-keyman-11.0.103/src/kmpdetails.c:458:21:  [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.
    g_free(details->system.fileVersion);
data/ibus-keyman-11.0.103/src/kmpdetails.c:459:21:  [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.
    g_free(details->system.keymanDeveloperVersion);
data/ibus-keyman-11.0.103/src/kmpdetails.h:59:16:  [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.
    kmp_system system;
data/ibus-keyman-11.0.103/src/keymanutil.c:261:14:  [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.
    xdgenv = getenv("XDG_DATA_HOME");
data/ibus-keyman-11.0.103/src/keymanutil.c:266:18:  [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.
        xdgenv = getenv("HOME");

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 2826 in approximately 0.10 seconds (29634 lines/second)
Physical Source Lines of Code (SLOC) = 2085
Hits@level = [0]   1 [1]   0 [2]   0 [3]   2 [4]   7 [5]   0
Hits@level+ = [0+]  10 [1+]   9 [2+]   9 [3+]   9 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 4.79616 [1+] 4.31655 [2+] 4.31655 [3+] 4.31655 [4+] 3.35731 [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.