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/q4wine-1.3.11/src/q4wine-cli/q4wine-cli.h
Examining data/q4wine-1.3.11/src/q4wine-cli/q4wine-cli.cpp
Examining data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.h
Examining data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp
Examining data/q4wine-1.3.11/src/main.cpp
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile.h
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtsingleapplication.h
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile_win.cpp
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile_unix.cpp
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlocalpeer.cpp
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlocalpeer.h
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtsingleapplication.cpp
Examining data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile.cpp
Examining data/q4wine-1.3.11/src/q4wine-helper/wineobject.h
Examining data/q4wine-1.3.11/src/q4wine-helper/q4wine-helper.cpp
Examining data/q4wine-1.3.11/src/q4wine-helper/wineobject.cpp
Examining data/q4wine-1.3.11/src/q4wine-helper/q4wine-helper.h
Examining data/q4wine-1.3.11/src/core/database/sysconfig.h
Examining data/q4wine-1.3.11/src/core/database/prefix.cpp
Examining data/q4wine-1.3.11/src/core/database/icon.h
Examining data/q4wine-1.3.11/src/core/database/image.cpp
Examining data/q4wine-1.3.11/src/core/database/table.cpp
Examining data/q4wine-1.3.11/src/core/database/last_run_icon.cpp
Examining data/q4wine-1.3.11/src/core/database/sysconfig.cpp
Examining data/q4wine-1.3.11/src/core/database/versions.cpp
Examining data/q4wine-1.3.11/src/core/database/last_run_icon.h
Examining data/q4wine-1.3.11/src/core/database/prefix.h
Examining data/q4wine-1.3.11/src/core/database/db.h
Examining data/q4wine-1.3.11/src/core/database/db.cpp
Examining data/q4wine-1.3.11/src/core/database/icon.cpp
Examining data/q4wine-1.3.11/src/core/database/dir.cpp
Examining data/q4wine-1.3.11/src/core/database/logging.cpp
Examining data/q4wine-1.3.11/src/core/database/dir.h
Examining data/q4wine-1.3.11/src/core/database/table.h
Examining data/q4wine-1.3.11/src/core/database/logging.h
Examining data/q4wine-1.3.11/src/core/database/image.h
Examining data/q4wine-1.3.11/src/core/database/versions.h
Examining data/q4wine-1.3.11/src/core/appdbstructs.h
Examining data/q4wine-1.3.11/src/core/xmlparser.h
Examining data/q4wine-1.3.11/src/core/registry.h
Examining data/q4wine-1.3.11/src/core/xmlparser.cpp
Examining data/q4wine-1.3.11/src/core/httpcore.cpp
Examining data/q4wine-1.3.11/src/core/httpcore.h
Examining data/q4wine-1.3.11/src/core/registry.cpp
Examining data/q4wine-1.3.11/src/darwin/ps.h
Examining data/q4wine-1.3.11/src/darwin/ps.c
Examining data/q4wine-1.3.11/src/q4wine-gui/imagemanager.h
Examining data/q4wine-1.3.11/src/q4wine-gui/fakedrivesettings.h
Examining data/q4wine-1.3.11/src/q4wine-gui/about.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/mainwindow.h
Examining data/q4wine-1.3.11/src/q4wine-gui/fakedrivesettings.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/appsettings.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixconfigwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixconfigwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixcontrolwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/drivelistwidgetitem.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixcontrolwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/wineprocesswidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/iconlisttoolbar.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreetoolbar.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/lineitemwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbscrollwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbscrollwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/linkitemwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appinfowidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/commentwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/apptestwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/commentwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/lineitemwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/linkitemwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/apptestwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbheaderwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appinfowidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/appdb/appdbheaderwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/drivelistwidgetitem.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/iconlistwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/versionlistwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreewidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/loggingwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreetoolbar.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreewidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/loggingwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/wineprocesswidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/iconlisttoolbar.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/versionlistwidget.h
Examining data/q4wine-1.3.11/src/q4wine-gui/widgets/iconlistwidget.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/iconsettings.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/process.h
Examining data/q4wine-1.3.11/src/q4wine-gui/appsettings.h
Examining data/q4wine-1.3.11/src/q4wine-gui/versions.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/iconsettings.h
Examining data/q4wine-1.3.11/src/q4wine-gui/prefixsettings.h
Examining data/q4wine-1.3.11/src/q4wine-gui/imagemanager.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/winedrivedialog.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/process.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/progress.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/winedrivedialog.h
Examining data/q4wine-1.3.11/src/q4wine-gui/wizard.h
Examining data/q4wine-1.3.11/src/q4wine-gui/run.h
Examining data/q4wine-1.3.11/src/q4wine-gui/about.h
Examining data/q4wine-1.3.11/src/q4wine-gui/wizard.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/iconsview.h
Examining data/q4wine-1.3.11/src/q4wine-gui/progress.h
Examining data/q4wine-1.3.11/src/q4wine-gui/mainwindow.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/iconsview.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/authors.h
Examining data/q4wine-1.3.11/src/q4wine-gui/run.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/prefixsettings.cpp
Examining data/q4wine-1.3.11/src/q4wine-gui/versions.h
Examining data/q4wine-1.3.11/src/plugins/winetricks.h
Examining data/q4wine-1.3.11/src/plugins/sysmenu.h
Examining data/q4wine-1.3.11/src/plugins/sysmenu.cpp
Examining data/q4wine-1.3.11/src/plugins/winetricks.cpp

FINAL RESULTS:

data/q4wine-1.3.11/src/darwin/ps.c:137:9:  [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(p_info->name, name);
data/q4wine-1.3.11/src/darwin/ps.c:142:9:  [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(p_info->args, env);
data/q4wine-1.3.11/src/q4wine-gui/widgets/wineprocesswidget.cpp:223: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.
        if (system(cmd.toLatin1().data())==-1){
data/q4wine-1.3.11/src/q4wine-helper/wineobject.cpp:329:10:  [4] (shell) popen:
  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.
    fp = popen(codec->fromUnicode(run_string).data(), "r");
data/q4wine-1.3.11/src/q4wine-helper/wineobject.cpp:402:10:  [4] (shell) popen:
  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.
    fp = popen(codec->fromUnicode(run_string).data(), "r");
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:498:46:  [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.
    lang = QString("q4wine_%1").arg(QLocale::system().name());
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:507:29:  [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.
    QString lang = QLocale::system().name();
data/q4wine-1.3.11/src/q4wine-gui/fakedrivesettings.cpp:250:38:  [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.
    userDir.append(QString::fromUtf8(getenv("USER")));
data/q4wine-1.3.11/src/q4wine-gui/fakedrivesettings.cpp:1276:41:  [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.
    prefixPath.append(QString::fromUtf8(getenv("USER")));
data/q4wine-1.3.11/src/q4wine-gui/fakedrivesettings.cpp:1341:41:  [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.
    txtOwner->setText(QString::fromUtf8(getenv("USER")));
data/q4wine-1.3.11/src/q4wine-gui/mainwindow.cpp:930:45:  [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.
        prefixPath.append(QString::fromUtf8(getenv("USER")));
data/q4wine-1.3.11/src/q4wine-gui/process.cpp:182:11:  [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.
			lang = getenv("LANG");
data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreetoolbar.cpp:118:45:  [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.
        prefixPath.append(QString::fromUtf8(getenv("USER")));
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:1696:37:  [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.
                    QString shell = getenv("SHELL");
data/q4wine-1.3.11/src/core/database/db.cpp:43:13:  [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).
    if (!db.open()){
data/q4wine-1.3.11/src/core/httpcore.cpp:104:19:  [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).
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/q4wine-1.3.11/src/core/httpcore.cpp:126:14:  [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).
    if (file.open(QIODevice::WriteOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/core/registry.cpp:129:7:  [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).
	file.open(QIODevice::WriteOnly);
data/q4wine-1.3.11/src/core/registry.cpp:164:12:  [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).
	if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/core/registry.cpp:206:12:  [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).
	if (!file.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/plugins/sysmenu.cpp:239:15:  [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).
    if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
data/q4wine-1.3.11/src/plugins/sysmenu.cpp:286:15:  [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).
    if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
data/q4wine-1.3.11/src/plugins/winetricks.cpp:62:15:  [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).
    if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/q4wine-1.3.11/src/plugins/winetricks.cpp:229:19:  [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).
        if (!file.open(QIODevice::ReadWrite | QIODevice::Text)){
data/q4wine-1.3.11/src/plugins/winetricks.cpp:234:19:  [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).
        if (!file.open(QIODevice::ReadWrite | QIODevice::Text)){
data/q4wine-1.3.11/src/plugins/winetricks.cpp:327:15:  [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).
    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/q4wine-1.3.11/src/q4wine-gui/progress.cpp:182:15:  [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).
    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/q4wine-1.3.11/src/q4wine-gui/widgets/loggingwidget.cpp:323:23:  [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).
            if (!file.open(QIODevice::WriteOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-gui/widgets/prefixtreewidget.cpp:485: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).
    file.open(QIODevice::ReadOnly | QIODevice::Text);
data/q4wine-1.3.11/src/q4wine-helper/wineobject.cpp:210:5:  [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 path[PATH_MAX];
data/q4wine-1.3.11/src/q4wine-helper/wineobject.cpp:382:5:  [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 path[PATH_MAX];
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:93:20:  [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).
        if (file_c.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:112:28:  [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).
                if (file_s.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:131:36:  [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).
                        if (file_e.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:178:5:  [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[_POSIX2_LINE_MAX];
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:748:18:  [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).
        if (file.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:764:34:  [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).
                        if (file.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:847:34:  [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).
                        if (file.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:1119:23:  [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).
            if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:1551:28:  [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).
                if (file_e.open(QIODevice::ReadOnly | QIODevice::Text)){
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:1985:31:  [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).
                    if (!file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate))
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:2021:31:  [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).
                    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/q4wine-1.3.11/src/qtsingleapplication/qtlocalpeer.cpp:107:14:  [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).
    lockFile.open(QIODevice::ReadWrite);
data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile.cpp:123:20:  [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).
bool QtLockedFile::open(OpenMode mode)
data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile.cpp:129:19:  [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).
    return QFile::open(mode);
data/q4wine-1.3.11/src/qtsingleapplication/qtlockedfile.h:76: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).
    bool open(OpenMode mode);
data/q4wine-1.3.11/src/darwin/ps.c:136:38:  [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).
        p_info->name = (char*)malloc(strlen(name) + 1);
data/q4wine-1.3.11/src/darwin/ps.c:141:38:  [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).
        p_info->args = (char*)malloc(strlen(env) + 1);
data/q4wine-1.3.11/src/q4wine-lib/q4wine-lib.cpp:98:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                comm_char = in.read(1).toLatin1();
data/q4wine-1.3.11/src/qtsingleapplication/qtlocalpeer.cpp:166:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            res &= (socket.read(qstrlen(ack)) == ack);

ANALYSIS SUMMARY:

Hits = 50
Lines analyzed = 27599 in approximately 0.85 seconds (32646 lines/second)
Physical Source Lines of Code (SLOC) = 19093
Hits@level = [0]   0 [1]   4 [2]  32 [3]   7 [4]   7 [5]   0
Hits@level+ = [0+]  50 [1+]  50 [2+]  46 [3+]  14 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 2.61876 [1+] 2.61876 [2+] 2.40926 [3+] 0.733253 [4+] 0.366627 [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.