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/obconf-qt-0.14.1/src/appearance.cpp
Examining data/obconf-qt-0.14.1/src/archive.cpp
Examining data/obconf-qt-0.14.1/src/archive.h
Examining data/obconf-qt-0.14.1/src/desktops.cpp
Examining data/obconf-qt-0.14.1/src/dock.cpp
Examining data/obconf-qt-0.14.1/src/fontbutton.cpp
Examining data/obconf-qt-0.14.1/src/fontbutton.h
Examining data/obconf-qt-0.14.1/src/maindialog.cpp
Examining data/obconf-qt-0.14.1/src/maindialog.h
Examining data/obconf-qt-0.14.1/src/margins.cpp
Examining data/obconf-qt-0.14.1/src/mouse.cpp
Examining data/obconf-qt-0.14.1/src/moveresize.cpp
Examining data/obconf-qt-0.14.1/src/obconf-qt.cpp
Examining data/obconf-qt-0.14.1/src/obconf-qt.h
Examining data/obconf-qt-0.14.1/src/preview.c
Examining data/obconf-qt-0.14.1/src/preview.h
Examining data/obconf-qt-0.14.1/src/preview_update.c
Examining data/obconf-qt-0.14.1/src/preview_update.h
Examining data/obconf-qt-0.14.1/src/theme.cpp
Examining data/obconf-qt-0.14.1/src/tree.cpp
Examining data/obconf-qt-0.14.1/src/tree.h
Examining data/obconf-qt-0.14.1/src/windows.cpp

FINAL RESULTS:

data/obconf-qt-0.14.1/src/obconf-qt.cpp:189:38:  [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.
  qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
data/obconf-qt-0.14.1/src/obconf-qt.cpp:193:43:  [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.
  translator.load("obconf-qt_" + QLocale::system().name(), PACKAGE_DATA_DIR "/translations");
data/obconf-qt-0.14.1/src/archive.cpp:111:43:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    dir = g_build_path(G_DIR_SEPARATOR_S, g_get_home_dir(), ".themes", NULL);
data/obconf-qt-0.14.1/src/theme.cpp:60:24:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  p = g_build_filename(g_get_home_dir(), ".themes", NULL);
data/obconf-qt-0.14.1/src/appearance.cpp:172:22:  [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).
  qfont.setPointSize(atoi(size));
data/obconf-qt-0.14.1/src/appearance.cpp:182:35:  [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).
  font = RrFontOpen(rrinst, name, atoi(size), rr_weight, rr_slant);
data/obconf-qt-0.14.1/src/moveresize.cpp:88:32:  [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).
  ui.fixed_x_pos->setValue(MAX(atoi(fixed_pos), 0));
data/obconf-qt-0.14.1/src/moveresize.cpp:99:32:  [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).
  ui.fixed_y_pos->setValue(MAX(atoi(s), 0));
data/obconf-qt-0.14.1/src/preview.c:475:23:  [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).
    gint numbuttons = strlen(titlelayout);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 3242 in approximately 0.09 seconds (35837 lines/second)
Physical Source Lines of Code (SLOC) = 2144
Hits@level = [0]   0 [1]   1 [2]   4 [3]   2 [4]   2 [5]   0
Hits@level+ = [0+]   9 [1+]   9 [2+]   8 [3+]   4 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 4.19776 [1+] 4.19776 [2+] 3.73134 [3+] 1.86567 [4+] 0.932836 [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.