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/partitionmanager-4.2.0/src/config/advancedpagewidget.cpp
Examining data/partitionmanager-4.2.0/src/config/advancedpagewidget.h
Examining data/partitionmanager-4.2.0/src/config/configureoptionsdialog.cpp
Examining data/partitionmanager-4.2.0/src/config/configureoptionsdialog.h
Examining data/partitionmanager-4.2.0/src/config/filesystemcolorspagewidget.cpp
Examining data/partitionmanager-4.2.0/src/config/filesystemcolorspagewidget.h
Examining data/partitionmanager-4.2.0/src/config/generalpagewidget.cpp
Examining data/partitionmanager-4.2.0/src/config/generalpagewidget.h
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdetailswidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdetailswidget.h
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdialog.h
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/applyprogressdialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/createpartitiontabledialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/createpartitiontabledialog.h
Examining data/partitionmanager-4.2.0/src/gui/createpartitiontablewidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/createpartitiontablewidget.h
Examining data/partitionmanager-4.2.0/src/gui/createvolumegroupdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/createvolumegroupdialog.h
Examining data/partitionmanager-4.2.0/src/gui/devicepropsdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/devicepropsdialog.h
Examining data/partitionmanager-4.2.0/src/gui/devicepropswidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/devicepropswidget.h
Examining data/partitionmanager-4.2.0/src/gui/editmountoptionsdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/editmountoptionsdialog.h
Examining data/partitionmanager-4.2.0/src/gui/editmountoptionsdialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/editmountoptionsdialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/editmountpointdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/editmountpointdialog.h
Examining data/partitionmanager-4.2.0/src/gui/editmountpointdialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/editmountpointdialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/filesystemsupportdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/filesystemsupportdialog.h
Examining data/partitionmanager-4.2.0/src/gui/filesystemsupportdialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/filesystemsupportdialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/formattedspinbox.cpp
Examining data/partitionmanager-4.2.0/src/gui/formattedspinbox.h
Examining data/partitionmanager-4.2.0/src/gui/infopane.cpp
Examining data/partitionmanager-4.2.0/src/gui/infopane.h
Examining data/partitionmanager-4.2.0/src/gui/insertdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/insertdialog.h
Examining data/partitionmanager-4.2.0/src/gui/listdevices.cpp
Examining data/partitionmanager-4.2.0/src/gui/listdevices.h
Examining data/partitionmanager-4.2.0/src/gui/listoperations.cpp
Examining data/partitionmanager-4.2.0/src/gui/listoperations.h
Examining data/partitionmanager-4.2.0/src/gui/listphysicalvolumes.cpp
Examining data/partitionmanager-4.2.0/src/gui/listphysicalvolumes.h
Examining data/partitionmanager-4.2.0/src/gui/mainwindow.cpp
Examining data/partitionmanager-4.2.0/src/gui/mainwindow.h
Examining data/partitionmanager-4.2.0/src/gui/newdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/newdialog.h
Examining data/partitionmanager-4.2.0/src/gui/partitionmanagerwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/partitionmanagerwidget.h
Examining data/partitionmanager-4.2.0/src/gui/partpropsdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/partpropsdialog.h
Examining data/partitionmanager-4.2.0/src/gui/partpropswidget.h
Examining data/partitionmanager-4.2.0/src/gui/parttablewidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/parttablewidget.h
Examining data/partitionmanager-4.2.0/src/gui/resizedialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/resizedialog.h
Examining data/partitionmanager-4.2.0/src/gui/resizevolumegroupdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/resizevolumegroupdialog.h
Examining data/partitionmanager-4.2.0/src/gui/scanprogressdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/scanprogressdialog.h
Examining data/partitionmanager-4.2.0/src/gui/sizedetailswidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/sizedetailswidget.h
Examining data/partitionmanager-4.2.0/src/gui/sizedialogbase.cpp
Examining data/partitionmanager-4.2.0/src/gui/sizedialogbase.h
Examining data/partitionmanager-4.2.0/src/gui/sizedialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/sizedialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/smartdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/smartdialog.h
Examining data/partitionmanager-4.2.0/src/gui/smartdialogwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/smartdialogwidget.h
Examining data/partitionmanager-4.2.0/src/gui/treelog.cpp
Examining data/partitionmanager-4.2.0/src/gui/treelog.h
Examining data/partitionmanager-4.2.0/src/gui/volumegroupdialog.cpp
Examining data/partitionmanager-4.2.0/src/gui/volumegroupdialog.h
Examining data/partitionmanager-4.2.0/src/gui/volumegroupwidget.cpp
Examining data/partitionmanager-4.2.0/src/gui/volumegroupwidget.h
Examining data/partitionmanager-4.2.0/src/main.cpp
Examining data/partitionmanager-4.2.0/src/util/guihelpers.cpp
Examining data/partitionmanager-4.2.0/src/util/guihelpers.h

FINAL RESULTS:

data/partitionmanager-4.2.0/src/config/configureoptionsdialog.cpp:75:108:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (generalPageWidget().radioButton->isChecked() != (Config::shredSource() == Config::EnumShredSource::random)) {
data/partitionmanager-4.2.0/src/config/generalpagewidget.cpp:52:79:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    radioButton->setChecked(Config::shredSource() == Config::EnumShredSource::random);
data/partitionmanager-4.2.0/src/gui/partitionmanagerwidget.cpp:561:68:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (shred && Config::shredSource() == Config::EnumShredSource::random)
data/partitionmanager-4.2.0/src/gui/applyprogressdialog.cpp:408: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 (tempFile.open()) {
data/partitionmanager-4.2.0/src/gui/applyprogressdialog.cpp:434: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()) {
data/partitionmanager-4.2.0/src/gui/mainwindow.cpp:909: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(QFile::ReadOnly))
data/partitionmanager-4.2.0/src/gui/mainwindow.cpp:920: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 (!tempFile.open()) {
data/partitionmanager-4.2.0/src/gui/mainwindow.cpp:933: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(QFile::ReadOnly))
data/partitionmanager-4.2.0/src/gui/mainwindow.cpp:1085: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 (!tempFile.open()) {
data/partitionmanager-4.2.0/src/gui/smartdialog.cpp:211: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 (tempFile.open()) {
data/partitionmanager-4.2.0/src/gui/treelog.cpp:109: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 (!tempFile.open()) {

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 9936 in approximately 0.29 seconds (33725 lines/second)
Physical Source Lines of Code (SLOC) = 7191
Hits@level = [0]   0 [1]   0 [2]   8 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]  11 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.52969 [1+] 1.52969 [2+] 1.52969 [3+] 0.417188 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.