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/phonon-4.11.1/demos/metadatareader/main.cpp Examining data/phonon-4.11.1/demos/metadatareader/metadatareader.cpp Examining data/phonon-4.11.1/demos/metadatareader/metadatareader.h Examining data/phonon-4.11.1/demos/phota/main.cpp Examining data/phonon-4.11.1/demos/phota/mainwindow.cpp Examining data/phonon-4.11.1/demos/phota/mainwindow.h Examining data/phonon-4.11.1/demos/phota/mediacontroller.cpp Examining data/phonon-4.11.1/demos/phota/mediacontroller.h Examining data/phonon-4.11.1/demos/phota/videoeffects.cpp Examining data/phonon-4.11.1/demos/phota/videoeffects.h Examining data/phonon-4.11.1/demos/simplecapture/capture.cpp Examining data/phonon-4.11.1/demos/simplecapture/capture.h Examining data/phonon-4.11.1/demos/simplecapture/main.cpp Examining data/phonon-4.11.1/demos/simpleplayer/main.cpp Examining data/phonon-4.11.1/demos/simpleplayer/player.cpp Examining data/phonon-4.11.1/demos/simpleplayer/player.h Examining data/phonon-4.11.1/designer/phononcollection.cpp Examining data/phonon-4.11.1/designer/seeksliderplugin.cpp Examining data/phonon-4.11.1/designer/seeksliderplugin.h Examining data/phonon-4.11.1/designer/videoplayerplugin.cpp Examining data/phonon-4.11.1/designer/videoplayerplugin.h Examining data/phonon-4.11.1/designer/videoplayertaskmenu.cpp Examining data/phonon-4.11.1/designer/videoplayertaskmenu.h Examining data/phonon-4.11.1/designer/videowidgetplugin.cpp Examining data/phonon-4.11.1/designer/videowidgetplugin.h Examining data/phonon-4.11.1/designer/volumesliderplugin.cpp Examining data/phonon-4.11.1/designer/volumesliderplugin.h Examining data/phonon-4.11.1/doc/DESIGN/Phonon-Graph.cpp Examining data/phonon-4.11.1/doc/DESIGN/use-cases/mediaplayer-audio.cpp Examining data/phonon-4.11.1/doc/DESIGN/use-cases/mediaplayer-video.cpp Examining data/phonon-4.11.1/doc/DESIGN/use-cases/moviemaker.cpp Examining data/phonon-4.11.1/doc/DESIGN/use-cases/speechtotext.cpp Examining data/phonon-4.11.1/phonon/abstractaudiooutput.cpp Examining data/phonon-4.11.1/phonon/abstractaudiooutput.h Examining data/phonon-4.11.1/phonon/abstractaudiooutput_p.cpp Examining data/phonon-4.11.1/phonon/abstractaudiooutput_p.h Examining data/phonon-4.11.1/phonon/abstractmediastream.cpp Examining data/phonon-4.11.1/phonon/abstractmediastream.h Examining data/phonon-4.11.1/phonon/abstractmediastream_p.h Examining data/phonon-4.11.1/phonon/abstractvideooutput.cpp Examining data/phonon-4.11.1/phonon/abstractvideooutput.h Examining data/phonon-4.11.1/phonon/abstractvideooutput_p.cpp Examining data/phonon-4.11.1/phonon/abstractvideooutput_p.h Examining data/phonon-4.11.1/phonon/addoninterface.h Examining data/phonon-4.11.1/phonon/audiodataoutput.cpp Examining data/phonon-4.11.1/phonon/audiodataoutput.h Examining data/phonon-4.11.1/phonon/audiodataoutput_p.h Examining data/phonon-4.11.1/phonon/audiodataoutputinterface.h Examining data/phonon-4.11.1/phonon/audiooutput.cpp Examining data/phonon-4.11.1/phonon/audiooutput.h Examining data/phonon-4.11.1/phonon/audiooutput_p.h Examining data/phonon-4.11.1/phonon/audiooutputinterface.cpp Examining data/phonon-4.11.1/phonon/audiooutputinterface.h Examining data/phonon-4.11.1/phonon/backendcapabilities.cpp Examining data/phonon-4.11.1/phonon/backendcapabilities.h Examining data/phonon-4.11.1/phonon/backendcapabilities_p.h Examining data/phonon-4.11.1/phonon/backendinterface.h Examining data/phonon-4.11.1/phonon/effect.cpp Examining data/phonon-4.11.1/phonon/effect.h Examining data/phonon-4.11.1/phonon/effect_p.h Examining data/phonon-4.11.1/phonon/effectinterface.h Examining data/phonon-4.11.1/phonon/effectparameter.cpp Examining data/phonon-4.11.1/phonon/effectparameter.h Examining data/phonon-4.11.1/phonon/effectparameter_p.h Examining data/phonon-4.11.1/phonon/effectwidget.cpp Examining data/phonon-4.11.1/phonon/effectwidget.h Examining data/phonon-4.11.1/phonon/effectwidget_p.h Examining data/phonon-4.11.1/phonon/experimental/abstractaudiodataoutput.cpp Examining data/phonon-4.11.1/phonon/experimental/abstractaudiodataoutput.h Examining data/phonon-4.11.1/phonon/experimental/abstractaudiodataoutput_p.h Examining data/phonon-4.11.1/phonon/experimental/abstractmediastream2.cpp Examining data/phonon-4.11.1/phonon/experimental/abstractmediastream2.h Examining data/phonon-4.11.1/phonon/experimental/abstractmediastream2_p.h Examining data/phonon-4.11.1/phonon/experimental/abstractvideodataoutput.cpp Examining data/phonon-4.11.1/phonon/experimental/abstractvideodataoutput.h Examining data/phonon-4.11.1/phonon/experimental/abstractvideodataoutput_p.h Examining data/phonon-4.11.1/phonon/experimental/audiodataoutput.cpp Examining data/phonon-4.11.1/phonon/experimental/audiodataoutput.h Examining data/phonon-4.11.1/phonon/experimental/audiodataoutput_p.h Examining data/phonon-4.11.1/phonon/experimental/audiodataoutputinterface.h Examining data/phonon-4.11.1/phonon/experimental/audioformat.cpp Examining data/phonon-4.11.1/phonon/experimental/audioformat.h Examining data/phonon-4.11.1/phonon/experimental/audiowriter.h Examining data/phonon-4.11.1/phonon/experimental/avcapture.cpp Examining data/phonon-4.11.1/phonon/experimental/avcapture.h Examining data/phonon-4.11.1/phonon/experimental/avcapture_p.h Examining data/phonon-4.11.1/phonon/experimental/avcaptureinterface.h Examining data/phonon-4.11.1/phonon/experimental/avwriter.cpp Examining data/phonon-4.11.1/phonon/experimental/avwriter.h Examining data/phonon-4.11.1/phonon/experimental/avwriter_p.h Examining data/phonon-4.11.1/phonon/experimental/backendcapabilities.cpp Examining data/phonon-4.11.1/phonon/experimental/backendcapabilities.h Examining data/phonon-4.11.1/phonon/experimental/backendinterface.h Examining data/phonon-4.11.1/phonon/experimental/export.h Examining data/phonon-4.11.1/phonon/experimental/factory.cpp Examining data/phonon-4.11.1/phonon/experimental/factory_p.h Examining data/phonon-4.11.1/phonon/experimental/globalconfig.cpp Examining data/phonon-4.11.1/phonon/experimental/globalconfig.h Examining data/phonon-4.11.1/phonon/experimental/lockfreequeue.cpp Examining data/phonon-4.11.1/phonon/experimental/lockfreequeue_p.h Examining data/phonon-4.11.1/phonon/experimental/mediasource.cpp Examining data/phonon-4.11.1/phonon/experimental/mediasource.h Examining data/phonon-4.11.1/phonon/experimental/mediasource_p.h Examining data/phonon-4.11.1/phonon/experimental/objectdescription.cpp Examining data/phonon-4.11.1/phonon/experimental/objectdescription.h Examining data/phonon-4.11.1/phonon/experimental/packet.cpp Examining data/phonon-4.11.1/phonon/experimental/packet.h Examining data/phonon-4.11.1/phonon/experimental/packet_p.h Examining data/phonon-4.11.1/phonon/experimental/packetpool.cpp Examining data/phonon-4.11.1/phonon/experimental/packetpool.h Examining data/phonon-4.11.1/phonon/experimental/packetpool_p.h Examining data/phonon-4.11.1/phonon/experimental/phononnamespace.h Examining data/phonon-4.11.1/phonon/experimental/rtpreceiver.h Examining data/phonon-4.11.1/phonon/experimental/snapshotinterface.h Examining data/phonon-4.11.1/phonon/experimental/streameventqueue.cpp Examining data/phonon-4.11.1/phonon/experimental/streameventqueue_p.h Examining data/phonon-4.11.1/phonon/experimental/videodataoutput.cpp Examining data/phonon-4.11.1/phonon/experimental/videodataoutput.h Examining data/phonon-4.11.1/phonon/experimental/videodataoutput2.cpp Examining data/phonon-4.11.1/phonon/experimental/videodataoutput2.h Examining data/phonon-4.11.1/phonon/experimental/videodataoutput2_p.h Examining data/phonon-4.11.1/phonon/experimental/videodataoutput_p.h Examining data/phonon-4.11.1/phonon/experimental/videodataoutputinterface.h Examining data/phonon-4.11.1/phonon/experimental/videoframe.h Examining data/phonon-4.11.1/phonon/experimental/videoframe2.h Examining data/phonon-4.11.1/phonon/experimental/videowidget.cpp Examining data/phonon-4.11.1/phonon/experimental/videowidget.h Examining data/phonon-4.11.1/phonon/experimental/videowidget_p.h Examining data/phonon-4.11.1/phonon/experimental/visualization.cpp Examining data/phonon-4.11.1/phonon/experimental/visualization.h Examining data/phonon-4.11.1/phonon/experimental/visualization_p.h Examining data/phonon-4.11.1/phonon/factory.cpp Examining data/phonon-4.11.1/phonon/factory_p.h Examining data/phonon-4.11.1/phonon/frontendinterface_p.h Examining data/phonon-4.11.1/phonon/globalconfig.cpp Examining data/phonon-4.11.1/phonon/globalconfig.h Examining data/phonon-4.11.1/phonon/globalconfig_p.h Examining data/phonon-4.11.1/phonon/globaldescriptioncontainer.h Examining data/phonon-4.11.1/phonon/globalstatic_p.h Examining data/phonon-4.11.1/phonon/iodevicestream.cpp Examining data/phonon-4.11.1/phonon/iodevicestream_p.h Examining data/phonon-4.11.1/phonon/mediacontroller.cpp Examining data/phonon-4.11.1/phonon/mediacontroller.h Examining data/phonon-4.11.1/phonon/medianode.cpp Examining data/phonon-4.11.1/phonon/medianode.h Examining data/phonon-4.11.1/phonon/medianode_p.h Examining data/phonon-4.11.1/phonon/medianodedestructionhandler_p.h Examining data/phonon-4.11.1/phonon/mediaobject.cpp Examining data/phonon-4.11.1/phonon/mediaobject.h Examining data/phonon-4.11.1/phonon/mediaobject_p.h Examining data/phonon-4.11.1/phonon/mediaobjectinterface.h Examining data/phonon-4.11.1/phonon/mediasource.cpp Examining data/phonon-4.11.1/phonon/mediasource.h Examining data/phonon-4.11.1/phonon/mediasource_p.h Examining data/phonon-4.11.1/phonon/mrl.cpp Examining data/phonon-4.11.1/phonon/mrl.h Examining data/phonon-4.11.1/phonon/objectdescription.cpp Examining data/phonon-4.11.1/phonon/objectdescription.h Examining data/phonon-4.11.1/phonon/objectdescription_p.h Examining data/phonon-4.11.1/phonon/objectdescriptionmodel.cpp Examining data/phonon-4.11.1/phonon/objectdescriptionmodel.h Examining data/phonon-4.11.1/phonon/objectdescriptionmodel_p.h Examining data/phonon-4.11.1/phonon/path.cpp Examining data/phonon-4.11.1/phonon/path.h Examining data/phonon-4.11.1/phonon/path_p.h Examining data/phonon-4.11.1/phonon/phonon_export.h Examining data/phonon-4.11.1/phonon/phonondefs.h Examining data/phonon-4.11.1/phonon/phonondefs_p.h Examining data/phonon-4.11.1/phonon/phononnamespace.cpp Examining data/phonon-4.11.1/phonon/phononnamespace_p.h Examining data/phonon-4.11.1/phonon/phononpimpl_p.h Examining data/phonon-4.11.1/phonon/platform.cpp Examining data/phonon-4.11.1/phonon/platform_p.h Examining data/phonon-4.11.1/phonon/platformplugin.h Examining data/phonon-4.11.1/phonon/pulsestream.cpp Examining data/phonon-4.11.1/phonon/pulsestream_p.h Examining data/phonon-4.11.1/phonon/pulsesupport.cpp Examining data/phonon-4.11.1/phonon/pulsesupport.h Examining data/phonon-4.11.1/phonon/qsettingsgroup_p.h Examining data/phonon-4.11.1/phonon/seekslider.cpp Examining data/phonon-4.11.1/phonon/seekslider.h Examining data/phonon-4.11.1/phonon/seekslider_p.h Examining data/phonon-4.11.1/phonon/statesvalidator.cpp Examining data/phonon-4.11.1/phonon/statesvalidator_p.h Examining data/phonon-4.11.1/phonon/streaminterface.cpp Examining data/phonon-4.11.1/phonon/streaminterface.h Examining data/phonon-4.11.1/phonon/streaminterface_p.h Examining data/phonon-4.11.1/phonon/swiftslider.cpp Examining data/phonon-4.11.1/phonon/swiftslider_p.h Examining data/phonon-4.11.1/phonon/videoplayer.cpp Examining data/phonon-4.11.1/phonon/videoplayer.h Examining data/phonon-4.11.1/phonon/videowidget.cpp Examining data/phonon-4.11.1/phonon/videowidget.h Examining data/phonon-4.11.1/phonon/videowidget_p.h Examining data/phonon-4.11.1/phonon/videowidgetinterface.h Examining data/phonon-4.11.1/phonon/volumefadereffect.cpp Examining data/phonon-4.11.1/phonon/volumefadereffect.h Examining data/phonon-4.11.1/phonon/volumefadereffect_p.h Examining data/phonon-4.11.1/phonon/volumefaderinterface.h Examining data/phonon-4.11.1/phonon/volumeslider.cpp Examining data/phonon-4.11.1/phonon/volumeslider.h Examining data/phonon-4.11.1/phonon/volumeslider_p.h Examining data/phonon-4.11.1/settings/backendselection.cpp Examining data/phonon-4.11.1/settings/backendselection.h Examining data/phonon-4.11.1/settings/devicepreference.cpp Examining data/phonon-4.11.1/settings/devicepreference.h Examining data/phonon-4.11.1/settings/main.cpp Examining data/phonon-4.11.1/settings/settings.cpp Examining data/phonon-4.11.1/settings/settings.h FINAL RESULTS: data/phonon-4.11.1/phonon/mediasource.h:367:59: [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. PHONON_DEPRECATED MediaSource(const DeviceAccess &access); data/phonon-4.11.1/phonon/pulsesupport.cpp:88:20: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. output.sprintf("%s %s (%s %p)", message.toLatin1().constData(), data/phonon-4.11.1/doc/DESIGN/use-cases/speechtotext.cpp:21: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 (!m_capture->open(PcmFormat(PcmFormat::NativeByteOrder, 16, 1, 48000, PcmFormat::DisallowSoftResampling))) { data/phonon-4.11.1/phonon/iodevicestream.cpp:39: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). ioDevice->open(QIODevice::ReadOnly); data/phonon-4.11.1/phonon/objectdescriptionmodel.cpp:59:103: [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. struct qt_meta_stringdata_Phonon__ObjectDescriptionModel_##name##_t { QByteArrayData data[1]; char stringdata[stringlenplustwo]; }; \ data/phonon-4.11.1/phonon/iodevicestream.cpp:72:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const QByteArray data = d->ioDevice->read(size); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 28859 in approximately 0.77 seconds (37525 lines/second) Physical Source Lines of Code (SLOC) = 14944 Hits@level = [0] 0 [1] 1 [2] 3 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 5 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 0.401499 [1+] 0.401499 [2+] 0.334582 [3+] 0.133833 [4+] 0.133833 [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.