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/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/bluez/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/evdev/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/gconf/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/mir/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/udev/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/config.tests/x11/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/battery-charge/battery-publisher/batterypublisher.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/battery-charge/battery-publisher/batterypublisher.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/battery-charge/battery-publisher/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/publish-subscribe/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/publish-subscribe/publisherdialog.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/publish-subscribe/publisherdialog.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/publish-subscribe/subscriberdialog.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/publishsubscribe/publish-subscribe/subscriberdialog.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/dialer/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/remotedialerservice/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/remotedialerservice/remotedialerservice.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/remotedialerservice/remotedialerservice.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/servicebrowser/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/servicebrowser/servicebrowser.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/servicebrowser/servicebrowser.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/voipdialerplugin/voipdialer.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/voipdialerplugin/voipdialer.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/voipdialerplugin/voipdialerplugin.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/serviceframework/voipdialerplugin/voipdialerplugin.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/inputinfo/inputtest.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/inputinfo/inputtest.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/inputinfo/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/qml-battery/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/qml-deviceinfo/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/qml-inputinfo/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/examples/systeminfo/stub.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/gconfitem_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/gconflayer_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/qsystemreadwritelock_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/qvaluespacemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/qvaluespace_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/qvaluespacesubscriber_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/5.4.0/QtPublishSubscribe/private/registrylayer_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/qpublishsubscribeglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/qtpublishsubscribeversion.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/qvaluespace.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/qvaluespacepublisher.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtPublishSubscribe/qvaluespacesubscriber.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/databasemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/dberror_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/instancemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/ipcendpoint_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/objectendpoint_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/objectendpoint_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/proxyobject_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qremoteserviceregister_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qremoteserviceregisterentry_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qremoteserviceregister_ls_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qremoteserviceregister_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qremoteserviceregister_unix_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qserviceclientcredentials_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qservicedebuglog_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qserviceinterfacedescriptor_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qservicemetaobject_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qserviceoperations_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qservicepackage_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qservicereply_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qservicerequest_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qsignalintercepter_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/qslotinvoker_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/servicedatabase_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/5.4.0/QtServiceFramework/private/servicemetadata_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qremoteserviceregister.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qserviceclientcredentials.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qservicefilter.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qserviceframeworkglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qservice.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qserviceinterfacedescriptor.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qservicemanager.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qserviceplugininterface.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qservicereply.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtServiceFramework/qtserviceframeworkversion.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qbatteryinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qbatteryinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qbatteryinfo_upower_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qbatteryinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qdeviceinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qdeviceinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qdeviceinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qdevicekitservice_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qinputinfomanagermir_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qinputinfomanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qinputinfomanagerudev_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qnetworkinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qnetworkinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qnetworkinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qofonowrapper_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qscreensaver_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qscreensaver_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qscreensaver_mir_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qscreensaver_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsystemalignedtimer_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsystemalignedtimer_stub_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsysteminfobackend_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsysteminfoconnection_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsysteminfodata_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsysteminfoglobal_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qsysteminfo_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qudevwrapper_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/5.4.0/QtSystemInfo/private/qwmihelper_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qbatteryinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qdeviceinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qinputinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qnetworkinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qscreensaver.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qsysteminfoglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/include/QtSystemInfo/qtsysteminfoversion.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/publishsubscribe.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacepublisher.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacepublishermetaobject.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacepublishermetaobject_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacepublisher_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacesubscriber.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/publishsubscribe/qdeclarativevaluespacesubscriber_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/serviceframework/qdeclarativeserviceold_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/serviceframework/qdeclarativeservice_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/serviceframework/serviceframework.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/serviceframework/qdeclarativeservice.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/serviceframework/qdeclarativeserviceold.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativedeviceinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativedeviceinfo_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativedisplayinfo_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativeinputdevicemodel.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativeinputdevicemodel_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativenetworkinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativenetworkinfo_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qsysteminfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/imports/systeminfo/qdeclarativedisplayinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/gconfitem.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/gconfitem_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/gconflayer.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/gconflayer_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qpublishsubscribeglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qsystemreadwritelock_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qsystemreadwritelock_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespace.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespace.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacemanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespace_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacepublisher.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacepublisher.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacesubscriber.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacesubscriber.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacesubscriber_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/registrylayer_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/registrylayer_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/databasemanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/databasemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/dberror.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/dberror_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/instancemanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/instancemanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/ipcendpoint.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/ipcendpoint_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/objectendpoint.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/objectendpoint_dbus.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/objectendpoint_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/objectendpoint_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/proxyobject_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_dbus_p.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregisterentry_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_ls_p.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_ls_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_p.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicemetaobject_dbus.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicemetaobject_dbus_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicepackage.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicepackage_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qsignalintercepter.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qsignalintercepter_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qslotinvoker.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qslotinvoker_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/proxyobject.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qremoteserviceregister.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qremoteserviceregister.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceclientcredentials.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceclientcredentials_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicedebuglog.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicedebuglog_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicefilter.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicefilter.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceframeworkglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservice.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceinterfacedescriptor.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceinterfacedescriptor.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceinterfacedescriptor_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicemanager.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceoperations.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceoperations_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceplugininterface.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceplugininterface.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicereply.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicereply.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicereply_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicerequest.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicerequest_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicemetadata.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicemetadata_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicemanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qserviceclientcredentials.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_upower.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_upower_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdevicekitservice_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdevicekitservice_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qinputinfomanagermir.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qinputinfomanagermir_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qinputinfomanagerudev.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qinputinfomanagerudev_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qofonowrapper.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qofonowrapper_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qscreensaver_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qscreensaver_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qscreensaver_mir.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qscreensaver_mir_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qsystemalignedtimer_linux.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qsystemalignedtimer_linux_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qsystemalignedtimer_stub.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qsystemalignedtimer_stub_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qudevwrapper.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qudevwrapper_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/mac/qbatteryinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/mac/qdeviceinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/mac/qnetworkinfo_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/mac/qscreensaver_mac_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qbatteryinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qbatteryinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qdeviceinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qdeviceinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qinputinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qinputinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qinputinfomanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qinputinfomanager_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qnetworkinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qnetworkinfo.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qscreensaver.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qscreensaver.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qsysteminfoglobal.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/qsysteminfoglobal_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfobackend_simulator.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfobackend_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfoconnection_simulator.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfoconnection_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfodata_simulator.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfodata_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfo_simulator.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/simulator/qsysteminfo_simulator_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qbatteryinfo_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qbatteryinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qdeviceinfo_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qdeviceinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qnetworkinfo_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qnetworkinfo_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qscreensaver_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qscreensaver_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qwmihelper_win.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qwmihelper_win_p.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/tools/servicefw/servicefw.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/tools/sfwlisten/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/cmake/test_modules/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/publishsubscribe/qvaluespace/tst_qvaluespace.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qremoteserviceregister/service.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qremoteserviceregister/tst_qremoteserviceregister.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicefilter/tst_qservicefilter.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qserviceinterfacedescriptor/tst_qserviceinterfacedescriptor.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/service/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/sampleservice2/sampleserviceplugin2.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/sampleservice2/sampleserviceplugin2.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/sampleservice/sampleserviceplugin.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/sampleservice/sampleserviceplugin.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/testservice2/testservice.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/testservice2/testserviceinterface.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/testservice2/testserviceplugin.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/testservice2/testserviceplugin.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemetadata/tst_servicemetadata.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qsfwtestutil.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qsfwtestutil.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedeletion/tst_servicedeletion.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/serviceobject/main.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/serviceobject/serviceobject_target/serviceobject_target.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/serviceobject/serviceobject_target/serviceobject_target.h Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/systeminfo/qbatteryinfo/tst_qbatteryinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/systeminfo/qdeviceinfo/tst_qdeviceinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/systeminfo/qinputdeviceinfo/tst_qinputdeviceinfo.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/systeminfo/qscreensaver/tst_qscreensaver.cpp Examining data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/manual/sysinfo-tester/main.cpp FINAL RESULTS: data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:821:17: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (-1 == ::chmod(tempLocation.toLatin1(), data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:837:29: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (doChown && (-1 == ::chown(tempLocation.toLatin1(), uid, gid))) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1026:9: [4] (shell) execlp: 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. execlp(path.toLatin1(), path.toLatin1(), NULL); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicemetaobject_dbus.cpp:277:33: [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.setAccess(mm.access()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:344:5: [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(newpath, p); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:482:31: [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. const char *times_str = ::getenv("SFW_BLOCKING_TIMES"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:342:15: [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. char *p = getenv("PATH"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/manual/sysinfo-tester/main.cpp:346:10: [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. if (!getenv("DISPLAY")) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/manual/sysinfo-tester/main.cpp:350:8: [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. if (!getenv("DBUS_SESSION_BUS_ADDRESS")) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/registrylayer_win.cpp:319:9: [2] (buffer) TCHAR: 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. TCHAR subKey[MAX_KEY_LENGTH]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/registrylayer_win.cpp:337:9: [2] (buffer) TCHAR: 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. TCHAR valueName[MAX_NAME_LENGTH]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/registrylayer_win.cpp:540:9: [2] (buffer) TCHAR: 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. TCHAR subKey[MAX_KEY_LENGTH]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/databasemanager.cpp:127:27: [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). database->open(); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/databasemanager.cpp:738: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). bool isOpen = db->open(); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:813:7: [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(name.sun_path, tempLocation.toLatin1().data(), data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:862:17: [2] (misc) fopen: 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 *f = ::fopen(pidLocation.toLatin1(), "w"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:946:7: [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(name.sun_path, fullPath.toLatin1().data(), data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1053: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 buffer[5]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1092:9: [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 buffer[INOTIFY_SIZE]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1197:15: [2] (misc) fopen: 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 *f = fopen(path.toLatin1(), "r"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicedebuglog.cpp:64: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). buffer->open(QIODevice::WriteOnly); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase.cpp:125: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). bool ServiceDatabase::open() data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase.cpp:141: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::ReadWrite)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase.cpp:171: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 (!database.open()) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicedatabase_p.h:74: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). bool open(); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/servicemetadata.cpp:227:45: [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 (!xmlDevice->isOpen() && !xmlDevice->open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:261: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 (maximum.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:756: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 (!current.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:778: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 (!remaining.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:798: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 (timeToFull.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:819: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 (!current.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:832: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). if (charger.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:846: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 (charger.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:852:29: [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 (charger.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:868: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 (!state.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:887: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 (!levelStatusFile.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_upower.cpp:447: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). if (charger.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:112: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 (!dev.open(QIODevice::ReadWrite)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:134: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 (!dev.open(QIODevice::ReadWrite)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:197: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 (!dev.open(QIODevice::ReadWrite)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:288: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)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:297: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 (release.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:331: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)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:340: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 (release.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:388: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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:400: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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:429: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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:445: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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:502: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 (file.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:529: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 (boardfile.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:536: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)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:556: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 (release.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:708: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::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:720:30: [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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qdeviceinfo_linux.cpp:731:30: [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)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qinputinfomanagerudev.cpp:161: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). int fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:343: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 (carrier.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:353: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 (carrier.open(QIODevice::ReadOnly)) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:380:21: [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 address[18]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:721: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/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:873: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 (carrier.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:888: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 (carrier.open(QIODevice::ReadOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:962:17: [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 buffer[IW_ESSID_MAX_SIZE + 1]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:988:9: [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 domainName[64]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:1011:21: [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 name[249]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qdeviceinfo_win.cpp:110:9: [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 name[256]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qdeviceinfo_win.cpp:111:9: [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 version[256]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/tools/servicefw/servicefw.cpp:321: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 (data.open(QFile::WriteOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/tools/sfwlisten/main.cpp:166: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). buff.open(QIODevice::ReadOnly); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qremoteserviceregister/tst_qremoteserviceregister.cpp:116: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 (data.open(QFile::WriteOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicefilter/tst_qservicefilter.cpp:360: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). buffer.open(QIODevice::ReadWrite); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qserviceinterfacedescriptor/tst_qserviceinterfacedescriptor.cpp:167: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). buffer.open(QIODevice::ReadWrite); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp:972: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). QVERIFY2(tempFileA->open(), "Can't open temp file A"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp:976: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). QVERIFY2(tempFileB->open(), "Can't open temp file B"); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp:1298: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). QVERIFY(file1.open(QIODevice::ReadOnly)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp:1300: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). QVERIFY(file2.open(QIODevice::ReadOnly)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:331: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 (data.open(QFile::WriteOnly)) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:343: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 newpath[strlen(p)+3]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:345:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(newpath, ":."); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:113: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:198: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:260: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:372: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:522: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:608: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:752: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:841: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:989: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). database.open(); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:1043: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:1114: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:1216: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/servicedatabase/tst_servicedatabase.cpp:1506: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). QVERIFY(database.open()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacesubscriber.cpp:136:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). list.append(qMakePair(read, handle)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/publishsubscribe/qvaluespacesubscriber.cpp:170:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). list.append(qMakePair(read, handle)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/objectendpoint.cpp:336:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = property.read(service); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_ls_p.cpp:187:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QByteArray data = socket->read(4 - pending_header.length()); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_ls_p.cpp:203:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). pending_buf.append(socket->read(readsize)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:562:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int bytes = ::read(client_fd, raw_data.data(), 4096); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1054:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(pipefd[0], buffer, 5) > 0) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qremoteserviceregister_unix_p.cpp:1094:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n = ::read(fd, buffer, INOTIFY_SIZE)) == INOTIFY_SIZE) { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/ipc/qservicemetaobject_dbus.cpp:536:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVariant value = mp.read(d->service); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicedebuglog_p.h:146:31: [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). ptr->ds.writeBytes(key, ::strlen(key)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/serviceframework/qservicedebuglog_p.h:195:31: [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). ptr->ds.writeBytes(val, ::strlen(val)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:834:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (charger.read(&online, 1) == 1 && online == '1') data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qbatteryinfo_linux.cpp:848:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (charger.read(&present, 1) == 1 && present == '1') { data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:875:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((carrier.read(&state, 1) == 1) && data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:890:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((carrier.read(&state, 1) == 1) && (state == '1')) data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/linux/qnetworkinfo_linux.cpp:970:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(iwInfo.ifr_name, fileName.toLocal8Bit().constData(), IFNAMSIZ); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/src/systeminfo/windows/qwmihelper_win.cpp:196:56: [1] (buffer) wcslen: 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). QString str((QChar*)msVariant.bstrVal, int(wcslen(msVariant.bstrVal))); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager/tst_qservicemanager.cpp:834:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(nameProperty.read(obj), QVariant("A service name")); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:343:18: [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). char newpath[strlen(p)+3]; data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:503:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceShared), propOther.read(serviceSharedOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:503:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceShared), propOther.read(serviceSharedOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:507:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void)prop.read(serviceShared); // flush data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:508:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceShared), propOther.read(serviceSharedOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:508:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceShared), propOther.read(serviceSharedOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:545:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceUnique), propOther.read(serviceUniqueOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:545:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCOMPARE(prop.read(serviceUnique), propOther.read(serviceUniqueOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:547:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVERIFY(prop.read(serviceUnique) != propOther.read(serviceUniqueOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/auto/serviceframework/qservicemanager_ipc/client/tst_qservicemanager_ipc.cpp:547:51: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QVERIFY(prop.read(serviceUnique) != propOther.read(serviceUniqueOther)); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/manual/sysinfo-tester/main.cpp:324:14: [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). int slen = strlen(str); data/qtsystems-opensource-src-5.0~git20181230.e3332ee3/tests/manual/sysinfo-tester/main.cpp:325:14: [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). int plen = strlen(pat); ANALYSIS SUMMARY: Hits = 122 Lines analyzed = 53422 in approximately 1.56 seconds (34146 lines/second) Physical Source Lines of Code (SLOC) = 31755 Hits@level = [0] 20 [1] 30 [2] 83 [3] 4 [4] 3 [5] 2 Hits@level+ = [0+] 142 [1+] 122 [2+] 92 [3+] 9 [4+] 5 [5+] 2 Hits/KSLOC@level+ = [0+] 4.47174 [1+] 3.84191 [2+] 2.89718 [3+] 0.28342 [4+] 0.157456 [5+] 0.0629822 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.