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-backend-gstreamer-4.10.0/gstreamer/abstractrenderer.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/abstractrenderer.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audiodataoutput.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audiodataoutput.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audioeffect.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audioeffect.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audiooutput.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/audiooutput.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/backend.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/backend.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/debug.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/debug.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/debug_p.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/devicemanager.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/devicemanager.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/effect.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/effect.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/effectmanager.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/effectmanager.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/glrenderer.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/glrenderer.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/gsthelper.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/gsthelper.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/medianode.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/medianode.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/mediaobject.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/mediaobject.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/pipeline.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/pipeline.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/plugininstaller.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/plugininstaller.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/qwidgetvideosink.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/qwidgetvideosink.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/streamreader.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/streamreader.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/videodataoutput.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/videodataoutput.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/videowidget.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/videowidget.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/volumefadereffect.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/volumefadereffect.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/widgetrenderer.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/widgetrenderer.h Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/x11renderer.cpp Examining data/phonon-backend-gstreamer-4.10.0/gstreamer/x11renderer.h FINAL RESULTS: data/phonon-backend-gstreamer-4.10.0/gstreamer/debug.cpp:170:5: [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. access( str.toLocal8Bit().data(), F_OK ); data/phonon-backend-gstreamer-4.10.0/gstreamer/devicemanager.cpp:150:48: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void DeviceInfo::addAccess(const DeviceAccess& access) data/phonon-backend-gstreamer-4.10.0/gstreamer/devicemanager.cpp:152:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. m_accessList.append(access); data/phonon-backend-gstreamer-4.10.0/gstreamer/devicemanager.h:64:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void addAccess(const DeviceAccess &access); data/phonon-backend-gstreamer-4.10.0/gstreamer/pipeline.cpp:290:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. msgString.sprintf("Warning: %s\nMessage:%s", debug, err->message); data/phonon-backend-gstreamer-4.10.0/gstreamer/debug_p.h:45: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). NoDebugStream() { open(WriteOnly); } data/phonon-backend-gstreamer-4.10.0/gstreamer/qwidgetvideosink.cpp:92:9: [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(frame.data(), info.data, info.size); data/phonon-backend-gstreamer-4.10.0/gstreamer/streamreader.cpp:138:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, m_buffer.data(), length); data/phonon-backend-gstreamer-4.10.0/gstreamer/videowidget.cpp:358:21: [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(snapimage.scanLine(i), data/phonon-backend-gstreamer-4.10.0/gstreamer/glrenderer.cpp:244:32: [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(strlen(yuvToRgb)), gl_src); data/phonon-backend-gstreamer-4.10.0/gstreamer/gsthelper.cpp:59:30: [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). Q_ASSERT(propertyName && strlen(propertyName)); data/phonon-backend-gstreamer-4.10.0/gstreamer/gsthelper.cpp:74:30: [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). Q_ASSERT(propertyName && strlen(propertyName)); data/phonon-backend-gstreamer-4.10.0/gstreamer/pipeline.cpp:838:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). reader->read(reader->currentPos(), info.size, (char*)info.data); data/phonon-backend-gstreamer-4.10.0/gstreamer/streamreader.cpp:94:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GstFlowReturn StreamReader::read(quint64 pos, int length, char *buffer) data/phonon-backend-gstreamer-4.10.0/gstreamer/streamreader.h:52:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GstFlowReturn read(quint64 offset, int length, char * buffer); ANALYSIS SUMMARY: Hits = 15 Lines analyzed = 9357 in approximately 0.21 seconds (45510 lines/second) Physical Source Lines of Code (SLOC) = 6653 Hits@level = [0] 2 [1] 6 [2] 4 [3] 0 [4] 5 [5] 0 Hits@level+ = [0+] 17 [1+] 15 [2+] 9 [3+] 5 [4+] 5 [5+] 0 Hits/KSLOC@level+ = [0+] 2.55524 [1+] 2.25462 [2+] 1.35277 [3+] 0.751541 [4+] 0.751541 [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.