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/kjsembed-5.74.0/examples/kjsconsole/kjs_object_model.cpp
Examining data/kjsembed-5.74.0/examples/kjsconsole/console.cpp
Examining data/kjsembed-5.74.0/examples/kjsconsole/main.cpp
Examining data/kjsembed-5.74.0/examples/kjsconsole/kjs_object_model.h
Examining data/kjsembed-5.74.0/examples/kjsconsole/numberedtextview.h
Examining data/kjsembed-5.74.0/examples/kjsconsole/numberedtextview.cpp
Examining data/kjsembed-5.74.0/examples/kjsconsole/console.h
Examining data/kjsembed-5.74.0/src/kjscmd/kjscmd.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/qpainter_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/variant_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/jseventutils.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/rect.h
Examining data/kjsembed-5.74.0/src/kjsembed/binding_support.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/jseventmapper.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/image.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/point.h
Examining data/kjsembed-5.74.0/src/kjsembed/font.h
Examining data/kjsembed-5.74.0/src/kjsembed/kjsembed.h
Examining data/kjsembed-5.74.0/src/kjsembed/qaction_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/dom.h
Examining data/kjsembed-5.74.0/src/kjsembed/brush.h
Examining data/kjsembed-5.74.0/src/kjsembed/object_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/kjseglobal.h
Examining data/kjsembed-5.74.0/src/kjsembed/qlayout_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/eventproxy.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/filedialog_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/qlayout_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/svg_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/util.h
Examining data/kjsembed-5.74.0/src/kjsembed/application.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/dom.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/settings.h
Examining data/kjsembed-5.74.0/src/kjsembed/iosupport.h
Examining data/kjsembed-5.74.0/src/kjsembed/url.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/fileio.h
Examining data/kjsembed-5.74.0/src/kjsembed/qobject_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/fileio.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/qaction_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/color.h
Examining data/kjsembed-5.74.0/src/kjsembed/test/QByteArray_bind.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/test/QByteArray_bind.h
Examining data/kjsembed-5.74.0/src/kjsembed/QBrush_bind.h
Examining data/kjsembed-5.74.0/src/kjsembed/QBrush_bind.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/kjsembed.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/brush.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/quiloader_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/builtins.h
Examining data/kjsembed-5.74.0/src/kjsembed/qpainter_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/pixmap.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/size.h
Examining data/kjsembed-5.74.0/src/kjsembed/svg_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/jseventmapper.h
Examining data/kjsembed-5.74.0/src/kjsembed/binding_support.h
Examining data/kjsembed-5.74.0/src/kjsembed/pixmap.h
Examining data/kjsembed-5.74.0/src/kjsembed/pointer.h
Examining data/kjsembed-5.74.0/src/kjsembed/quiloader_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/jseventutils.h
Examining data/kjsembed-5.74.0/src/kjsembed/point.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/settings.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/static_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/iosupport.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/pen.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/static_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/slotproxy.h
Examining data/kjsembed-5.74.0/src/kjsembed/builtins.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/url.h
Examining data/kjsembed-5.74.0/src/kjsembed/application.h
Examining data/kjsembed-5.74.0/src/kjsembed/slotproxy.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/qformbuilder_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/rect.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/value_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/value_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/qwidget_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/qformbuilder_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/color.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/eventproxy.h
Examining data/kjsembed-5.74.0/src/kjsembed/font.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/image.h
Examining data/kjsembed-5.74.0/src/kjsembed/variant_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/kjseglobal.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/filedialog_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/qwidget_binding.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/object_binding.h
Examining data/kjsembed-5.74.0/src/kjsembed/size.cpp
Examining data/kjsembed-5.74.0/src/kjsembed/pen.h

FINAL RESULTS:

data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:60:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (method.access()) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:91:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (method.access()) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:176:54:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (validSignal(senderMetaMethod, senderImp->access()) && (!receiverImp || validSlot(receiverMetaMethod, receiverImp->access()))) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:176:127:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (validSignal(senderMetaMethod, senderImp->access()) && (!receiverImp || validSlot(receiverMetaMethod, receiverImp->access()))) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:198:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (imp->access() & QObjectBinding::ChildObjects) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:210:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    childImp->setAccess(imp->access());   // inherit access from parent
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:222:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (validSlot(member, imp->access())) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:314:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
QObjectBinding::AccessFlags QObjectBinding::access() const
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:319:60:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
void QObjectBinding::setAccess(QObjectBinding::AccessFlags access)
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:321:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    m_access = access;
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:653:97:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (metaMember.parameterTypes().size() == args.size() && validSlot(metaMember, imp->access())) {
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:816:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
if (imp->access() & QObjectBinding::GetParentObject)
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:822:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        parentImp->setAccess(imp->access());   // inherit access from child since we don't know the access-level of the parent here :-(
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:835:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
if (imp->access() & QObjectBinding::SetParentObject)
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:842:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
if (imp->access() & QObjectBinding::ChildObjects)
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.cpp:849:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        childImp->setAccess(imp->access());   // inherit access from parent
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.h:123:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    AccessFlags access() const;
data/kjsembed-5.74.0/src/kjsembed/qobject_binding.h:128:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    void setAccess(AccessFlags access);
data/kjsembed-5.74.0/examples/kjsconsole/console.cpp:95: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 (!fIn.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/kjsembed-5.74.0/src/kjsembed/fileio.cpp:39:33:  [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).
result = KJS::jsBoolean(object->open((QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0)));
data/kjsembed-5.74.0/src/kjsembed/fileio.cpp:64:11:  [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::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0)))
data/kjsembed-5.74.0/src/kjsembed/fileio.cpp:101:11:  [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/kjsembed-5.74.0/src/kjsembed/kjseglobal.cpp:62: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).
    win32_stdin.open(hConHandle, QIODevice::ReadOnly);
data/kjsembed-5.74.0/src/kjsembed/kjseglobal.cpp:66: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).
    win32_stdout.open(hConHandle, QIODevice::WriteOnly);
data/kjsembed-5.74.0/src/kjsembed/kjseglobal.cpp:70: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).
    win32_stderr.open(hConHandle, QIODevice::WriteOnly);
data/kjsembed-5.74.0/src/kjsembed/kjsembed.cpp:79:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dat, d.unicode(), len * sizeof(UChar));
data/kjsembed-5.74.0/src/kjsembed/kjsembed.cpp:212: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::ReadOnly)) {
data/kjsembed-5.74.0/src/kjsembed/qformbuilder_binding.cpp:51:16:  [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 (uiFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/kjsembed-5.74.0/src/kjsembed/quiloader_binding.cpp:128: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 (! uiFile.open(QIODevice::ReadOnly | QIODevice::Text)) {

ANALYSIS SUMMARY:

Hits = 29
Lines analyzed = 13610 in approximately 0.43 seconds (31951 lines/second)
Physical Source Lines of Code (SLOC) = 9171
Hits@level = [0]   1 [1]   0 [2]  11 [3]   0 [4]  18 [5]   0
Hits@level+ = [0+]  30 [1+]  29 [2+]  29 [3+]  18 [4+]  18 [5+]   0
Hits/KSLOC@level+ = [0+] 3.27118 [1+] 3.16214 [2+] 3.16214 [3+] 1.96271 [4+] 1.96271 [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.