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/packetsender-7.0.5/src/about.cpp
Examining data/packetsender-7.0.5/src/about.h
Examining data/packetsender-7.0.5/src/brucethepoodle.cpp
Examining data/packetsender-7.0.5/src/brucethepoodle.h
Examining data/packetsender-7.0.5/src/cloudui.cpp
Examining data/packetsender-7.0.5/src/cloudui.h
Examining data/packetsender-7.0.5/src/globals.h
Examining data/packetsender-7.0.5/src/main.cpp
Examining data/packetsender-7.0.5/src/mainwindow.cpp
Examining data/packetsender-7.0.5/src/mainwindow.h
Examining data/packetsender-7.0.5/src/multicastsetup.cpp
Examining data/packetsender-7.0.5/src/multicastsetup.h
Examining data/packetsender-7.0.5/src/packet.cpp
Examining data/packetsender-7.0.5/src/packet.h
Examining data/packetsender-7.0.5/src/packetlogmodel.cpp
Examining data/packetsender-7.0.5/src/packetlogmodel.h
Examining data/packetsender-7.0.5/src/packetnetwork.cpp
Examining data/packetsender-7.0.5/src/packetnetwork.h
Examining data/packetsender-7.0.5/src/persistentconnection.cpp
Examining data/packetsender-7.0.5/src/persistentconnection.h
Examining data/packetsender-7.0.5/src/sendpacketbutton.cpp
Examining data/packetsender-7.0.5/src/sendpacketbutton.h
Examining data/packetsender-7.0.5/src/settings.cpp
Examining data/packetsender-7.0.5/src/settings.h
Examining data/packetsender-7.0.5/src/subnetcalc.cpp
Examining data/packetsender-7.0.5/src/subnetcalc.h
Examining data/packetsender-7.0.5/src/tcpthread.cpp
Examining data/packetsender-7.0.5/src/tcpthread.h
Examining data/packetsender-7.0.5/src/threadedtcpserver.cpp
Examining data/packetsender-7.0.5/src/threadedtcpserver.h
Examining data/packetsender-7.0.5/src/udpflooding.cpp
Examining data/packetsender-7.0.5/src/udpflooding.h

FINAL RESULTS:

data/packetsender-7.0.5/src/packet.cpp:794:2:  [3] (random) srand:
  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.
	srand(time(NULL));
data/packetsender-7.0.5/src/main.cpp:425:26:  [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 (dataFile.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/main.cpp:747: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(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:164:25:  [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 (starterfile.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:357:26:  [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 (snakeoilCert.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:361:22:  [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 (certfile.open(QFile::WriteOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:368:25:  [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 (snakeoilKey.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:372:21:  [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 (keyfile.open(QFile::WriteOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:1913: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(QFile::WriteOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:2044: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 (jsonFile.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:2119: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 (jsonFile.open(QFile::WriteOnly)) {
data/packetsender-7.0.5/src/mainwindow.cpp:2318: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 (loadFile.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/persistentconnection.cpp:480: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 (loadFile.open(QFile::ReadOnly)) {
data/packetsender-7.0.5/src/tcpthread.cpp:105: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).
        certfile.open(QIODevice::ReadOnly);
data/packetsender-7.0.5/src/tcpthread.cpp:112:17:  [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).
        keyfile.open(QIODevice::ReadOnly);
data/packetsender-7.0.5/src/main.cpp:428:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    QByteArray dataArray = dataFile.read(1024 * 1024 * 100);;
data/packetsender-7.0.5/src/main.cpp:432:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    QByteArray dataArray = dataFile.read(1024 * 1024 * 10);
data/packetsender-7.0.5/src/tcpthread.cpp:481:33:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            QObject().thread()->usleep(1000 * sendPacket.delayAfterConnect);
data/packetsender-7.0.5/src/udpflooding.cpp:201:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(1);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 9800 in approximately 0.21 seconds (47605 lines/second)
Physical Source Lines of Code (SLOC) = 6804
Hits@level = [0]   1 [1]   4 [2]  14 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  20 [1+]  19 [2+]  15 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.93945 [1+] 2.79248 [2+] 2.20459 [3+] 0.146972 [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.