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/qtwebchannel-opensource-src-5.15.2/examples/webchannel/chatserver-cpp/chatserver.cpp Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/chatserver-cpp/chatserver.h Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/chatserver-cpp/main.cpp Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/shared/websocketclientwrapper.cpp Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/shared/websocketclientwrapper.h Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/shared/websockettransport.cpp Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/shared/websockettransport.h Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/standalone/core.h Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/standalone/dialog.cpp Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/standalone/dialog.h Examining data/qtwebchannel-opensource-src-5.15.2/examples/webchannel/standalone/main.cpp Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/5.15.2/QtWebChannel/private/qmetaobjectpublisher_p.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/5.15.2/QtWebChannel/private/qqmlwebchannelattached_p.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/5.15.2/QtWebChannel/private/qwebchannel_p.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/5.15.2/QtWebChannel/private/signalhandler_p.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/5.15.2/QtWebChannel/private/variantargument_p.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/qqmlwebchannel.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/qtwebchannelversion.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/qwebchannel.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/qwebchannelabstracttransport.h Examining data/qtwebchannel-opensource-src-5.15.2/include/QtWebChannel/qwebchannelglobal.h Examining data/qtwebchannel-opensource-src-5.15.2/src/imports/webchannel/plugin.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher_p.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qqmlwebchannel.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qqmlwebchannel.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qqmlwebchannelattached.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qqmlwebchannelattached_p.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannel.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannel.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannel_p.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannelabstracttransport.cpp Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannelabstracttransport.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qwebchannelglobal.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/signalhandler_p.h Examining data/qtwebchannel-opensource-src-5.15.2/src/webchannel/variantargument_p.h Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/qml.cpp Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testobject.cpp Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testobject.h Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testtransport.cpp Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testtransport.h Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testwebchannel.cpp Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/qml/testwebchannel.h Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/webchannel/tst_webchannel.cpp Examining data/qtwebchannel-opensource-src-5.15.2/tests/auto/webchannel/tst_webchannel.h FINAL RESULTS: data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp:274:27: [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. } else if (method.access() == QMetaMethod::Public) { data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp:442:23: [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. } else if (method.access() != QMetaMethod::Public) { data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp:505:27: [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. || method.access() != QMetaMethod::Public data/qtwebchannel-opensource-src-5.15.2/tests/auto/webchannel/tst_webchannel.cpp:161: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 (!webChannelJS.open(QFile::ReadOnly)) data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp:257:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). propertyInfo.append(wrapResult(prop.read(object), transport)); data/qtwebchannel-opensource-src-5.15.2/src/webchannel/qmetaobjectpublisher.cpp:392:82: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). properties[QString::number(propertyIndex)] = wrapResult(property.read(object), Q_NULLPTR, objectId); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 6041 in approximately 0.22 seconds (26854 lines/second) Physical Source Lines of Code (SLOC) = 3312 Hits@level = [0] 0 [1] 2 [2] 1 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 4 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 1.81159 [1+] 1.81159 [2+] 1.20773 [3+] 0.905797 [4+] 0.905797 [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.