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/qtav-1.13.0+ds/config.tests/avcodec/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/avdevice/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/avfilter/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/avformat/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/avresample/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/avutil/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/d3d11va/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/direct2d/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/dsound/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/dx/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/dxcompat.h
Examining data/qtav-1.13.0+ds/config.tests/dxva/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/gdiplus/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/gl/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/libass/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/libcedarv/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/openal/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/portaudio/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/pulseaudio/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/sse4_1/sse4_1.cpp
Examining data/qtav-1.13.0+ds/config.tests/swresample/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/swscale/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/uchardet/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/vaapi/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/videotoolbox/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/x11/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/xaudio2/main.cpp
Examining data/qtav-1.13.0+ds/config.tests/xv/main.cpp
Examining data/qtav-1.13.0+ds/examples/QMLPlayer/qtquick2applicationviewer/qtquick2applicationviewer.cpp
Examining data/qtav-1.13.0+ds/examples/QMLPlayer/qtquick2applicationviewer/qtquick2applicationviewer.h
Examining data/qtav-1.13.0+ds/examples/QMLPlayer/main.cpp
Examining data/qtav-1.13.0+ds/examples/audiopipeline/main.cpp
Examining data/qtav-1.13.0+ds/examples/common/Config.cpp
Examining data/qtav-1.13.0+ds/examples/common/Config.h
Examining data/qtav-1.13.0+ds/examples/common/ScreenSaver.cpp
Examining data/qtav-1.13.0+ds/examples/common/ScreenSaver.h
Examining data/qtav-1.13.0+ds/examples/common/common.cpp
Examining data/qtav-1.13.0+ds/examples/common/common.h
Examining data/qtav-1.13.0+ds/examples/common/common_export.h
Examining data/qtav-1.13.0+ds/examples/common/qoptions.cpp
Examining data/qtav-1.13.0+ds/examples/common/qoptions.h
Examining data/qtav-1.13.0+ds/examples/filters/SimpleFilter.cpp
Examining data/qtav-1.13.0+ds/examples/filters/SimpleFilter.h
Examining data/qtav-1.13.0+ds/examples/filters/main.cpp
Examining data/qtav-1.13.0+ds/examples/framereader/main.cpp
Examining data/qtav-1.13.0+ds/examples/glslfilter/main.cpp
Examining data/qtav-1.13.0+ds/examples/player/ClickableMenu.cpp
Examining data/qtav-1.13.0+ds/examples/player/ClickableMenu.h
Examining data/qtav-1.13.0+ds/examples/player/EventFilter.cpp
Examining data/qtav-1.13.0+ds/examples/player/EventFilter.h
Examining data/qtav-1.13.0+ds/examples/player/MainWindow.cpp
Examining data/qtav-1.13.0+ds/examples/player/MainWindow.h
Examining data/qtav-1.13.0+ds/examples/player/Slider.cpp
Examining data/qtav-1.13.0+ds/examples/player/Slider.h
Examining data/qtav-1.13.0+ds/examples/player/StatisticsView.cpp
Examining data/qtav-1.13.0+ds/examples/player/StatisticsView.h
Examining data/qtav-1.13.0+ds/examples/player/TVView.cpp
Examining data/qtav-1.13.0+ds/examples/player/TVView.h
Examining data/qtav-1.13.0+ds/examples/player/config/AVFilterConfigPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/AVFilterConfigPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/AVFormatConfigPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/AVFormatConfigPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/CaptureConfigPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/CaptureConfigPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/ConfigDialog.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/ConfigDialog.h
Examining data/qtav-1.13.0+ds/examples/player/config/ConfigPageBase.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/ConfigPageBase.h
Examining data/qtav-1.13.0+ds/examples/player/config/DecoderConfigPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/DecoderConfigPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/MiscPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/MiscPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/PropertyEditor.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/PropertyEditor.h
Examining data/qtav-1.13.0+ds/examples/player/config/ShaderPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/ShaderPage.h
Examining data/qtav-1.13.0+ds/examples/player/config/VideoEQConfigPage.cpp
Examining data/qtav-1.13.0+ds/examples/player/config/VideoEQConfigPage.h
Examining data/qtav-1.13.0+ds/examples/player/filters/AVFilterSubtitle.cpp
Examining data/qtav-1.13.0+ds/examples/player/filters/AVFilterSubtitle.h
Examining data/qtav-1.13.0+ds/examples/player/filters/OSD.cpp
Examining data/qtav-1.13.0+ds/examples/player/filters/OSD.h
Examining data/qtav-1.13.0+ds/examples/player/filters/OSDFilter.cpp
Examining data/qtav-1.13.0+ds/examples/player/filters/OSDFilter.h
Examining data/qtav-1.13.0+ds/examples/player/main.cpp
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayList.cpp
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayList.h
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListDelegate.cpp
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListDelegate.h
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListItem.cpp
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListItem.h
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListModel.cpp
Examining data/qtav-1.13.0+ds/examples/player/playlist/PlayListModel.h
Examining data/qtav-1.13.0+ds/examples/qmlvumeter/VUMeterFilter.cpp
Examining data/qtav-1.13.0+ds/examples/qmlvumeter/VUMeterFilter.h
Examining data/qtav-1.13.0+ds/examples/qmlvumeter/main.cpp
Examining data/qtav-1.13.0+ds/examples/shader/main.cpp
Examining data/qtav-1.13.0+ds/examples/sharedoutput/main.cpp
Examining data/qtav-1.13.0+ds/examples/sharedoutput/widget.cpp
Examining data/qtav-1.13.0+ds/examples/sharedoutput/widget.h
Examining data/qtav-1.13.0+ds/examples/simpleplayer/main.cpp
Examining data/qtav-1.13.0+ds/examples/simpleplayer/playerwindow.cpp
Examining data/qtav-1.13.0+ds/examples/simpleplayer/playerwindow.h
Examining data/qtav-1.13.0+ds/examples/simpletranscode/main.cpp
Examining data/qtav-1.13.0+ds/examples/videocapture/main.cpp
Examining data/qtav-1.13.0+ds/examples/videocapture/playerwindow.cpp
Examining data/qtav-1.13.0+ds/examples/videocapture/playerwindow.h
Examining data/qtav-1.13.0+ds/examples/videographicsitem/main.cpp
Examining data/qtav-1.13.0+ds/examples/videographicsitem/videoplayer.cpp
Examining data/qtav-1.13.0+ds/examples/videographicsitem/videoplayer.h
Examining data/qtav-1.13.0+ds/examples/videogroup/main.cpp
Examining data/qtav-1.13.0+ds/examples/videogroup/videogroup.cpp
Examining data/qtav-1.13.0+ds/examples/videogroup/videogroup.h
Examining data/qtav-1.13.0+ds/examples/videowall/VideoWall.cpp
Examining data/qtav-1.13.0+ds/examples/videowall/VideoWall.h
Examining data/qtav-1.13.0+ds/examples/videowall/main.cpp
Examining data/qtav-1.13.0+ds/examples/window/main.cpp
Examining data/qtav-1.13.0+ds/qml/MediaMetaData.cpp
Examining data/qtav-1.13.0+ds/qml/QQuickItemRenderer.cpp
Examining data/qtav-1.13.0+ds/qml/QmlAV/Export.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/MediaMetaData.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QQuickItemRenderer.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QmlAVPlayer.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QuickFBORenderer.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QuickFilter.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QuickSubtitle.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QuickSubtitleItem.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/QuickVideoPreview.h
Examining data/qtav-1.13.0+ds/qml/QmlAV/SGVideoNode.h
Examining data/qtav-1.13.0+ds/qml/QmlAVPlayer.cpp
Examining data/qtav-1.13.0+ds/qml/QuickFBORenderer.cpp
Examining data/qtav-1.13.0+ds/qml/QuickFilter.cpp
Examining data/qtav-1.13.0+ds/qml/QuickSubtitle.cpp
Examining data/qtav-1.13.0+ds/qml/QuickSubtitleItem.cpp
Examining data/qtav-1.13.0+ds/qml/QuickVideoPreview.cpp
Examining data/qtav-1.13.0+ds/qml/plugin.cpp
Examining data/qtav-1.13.0+ds/qml/SGVideoNode.cpp
Examining data/qtav-1.13.0+ds/src/AVClock.cpp
Examining data/qtav-1.13.0+ds/src/AVCompat.cpp
Examining data/qtav-1.13.0+ds/src/AVDemuxThread.cpp
Examining data/qtav-1.13.0+ds/src/AVDemuxThread.h
Examining data/qtav-1.13.0+ds/src/AVDemuxer.cpp
Examining data/qtav-1.13.0+ds/src/AVError.cpp
Examining data/qtav-1.13.0+ds/src/AVMuxer.cpp
Examining data/qtav-1.13.0+ds/src/AVPlayer.cpp
Examining data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp
Examining data/qtav-1.13.0+ds/src/AVPlayerPrivate.h
Examining data/qtav-1.13.0+ds/src/AVThread.cpp
Examining data/qtav-1.13.0+ds/src/AVThread.h
Examining data/qtav-1.13.0+ds/src/AVThread_p.h
Examining data/qtav-1.13.0+ds/src/AVTranscoder.cpp
Examining data/qtav-1.13.0+ds/src/AudioFormat.cpp
Examining data/qtav-1.13.0+ds/src/AudioFrame.cpp
Examining data/qtav-1.13.0+ds/src/AudioResampler.cpp
Examining data/qtav-1.13.0+ds/src/AudioResamplerFF.cpp
Examining data/qtav-1.13.0+ds/src/AudioResamplerLibav.cpp
Examining data/qtav-1.13.0+ds/src/AudioResamplerTemplate.cpp
Examining data/qtav-1.13.0+ds/src/AudioThread.cpp
Examining data/qtav-1.13.0+ds/src/AudioThread.h
Examining data/qtav-1.13.0+ds/src/ColorTransform.cpp
Examining data/qtav-1.13.0+ds/src/ColorTransform.h
Examining data/qtav-1.13.0+ds/src/Frame.cpp
Examining data/qtav-1.13.0+ds/src/FrameReader.cpp
Examining data/qtav-1.13.0+ds/src/ImageConverter.cpp
Examining data/qtav-1.13.0+ds/src/ImageConverter.h
Examining data/qtav-1.13.0+ds/src/ImageConverterFF.cpp
Examining data/qtav-1.13.0+ds/src/ImageConverterIPP.cpp
Examining data/qtav-1.13.0+ds/src/ImageConverter_p.h
Examining data/qtav-1.13.0+ds/src/Packet.cpp
Examining data/qtav-1.13.0+ds/src/PacketBuffer.cpp
Examining data/qtav-1.13.0+ds/src/PacketBuffer.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVClock.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVDecoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVDemuxer.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVEncoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVError.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVMuxer.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVOutput.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVPlayer.h
Examining data/qtav-1.13.0+ds/src/QtAV/AVTranscoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioDecoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioEncoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioFormat.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioFrame.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioOutput.h
Examining data/qtav-1.13.0+ds/src/QtAV/AudioResampler.h
Examining data/qtav-1.13.0+ds/src/QtAV/ConvolutionShader.h
Examining data/qtav-1.13.0+ds/src/QtAV/EncodeFilter.h
Examining data/qtav-1.13.0+ds/src/QtAV/FactoryDefine.h
Examining data/qtav-1.13.0+ds/src/QtAV/Filter.h
Examining data/qtav-1.13.0+ds/src/QtAV/Frame.h
Examining data/qtav-1.13.0+ds/src/QtAV/FrameReader.h
Examining data/qtav-1.13.0+ds/src/QtAV/GLSLFilter.h
Examining data/qtav-1.13.0+ds/src/QtAV/Geometry.h
Examining data/qtav-1.13.0+ds/src/QtAV/GeometryRenderer.h
Examining data/qtav-1.13.0+ds/src/QtAV/LibAVFilter.h
Examining data/qtav-1.13.0+ds/src/QtAV/MediaIO.h
Examining data/qtav-1.13.0+ds/src/QtAV/OpenGLRendererBase.h
Examining data/qtav-1.13.0+ds/src/QtAV/OpenGLTypes.h
Examining data/qtav-1.13.0+ds/src/QtAV/OpenGLVideo.h
Examining data/qtav-1.13.0+ds/src/QtAV/OpenGLWindowRenderer.h
Examining data/qtav-1.13.0+ds/src/QtAV/Packet.h
Examining data/qtav-1.13.0+ds/src/QtAV/QPainterRenderer.h
Examining data/qtav-1.13.0+ds/src/QtAV/QtAV.h
Examining data/qtav-1.13.0+ds/src/QtAV/QtAV_Global.h
Examining data/qtav-1.13.0+ds/src/QtAV/Statistics.h
Examining data/qtav-1.13.0+ds/src/QtAV/SubImage.h
Examining data/qtav-1.13.0+ds/src/QtAV/Subtitle.h
Examining data/qtav-1.13.0+ds/src/QtAV/SubtitleFilter.h
Examining data/qtav-1.13.0+ds/src/QtAV/SurfaceInterop.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoCapture.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoDecoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoEncoder.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoFormat.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoFrame.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoFrameExtractor.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoOutput.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoRenderer.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoShader.h
Examining data/qtav-1.13.0+ds/src/QtAV/VideoShaderObject.h
Examining data/qtav-1.13.0+ds/src/QtAV/dptr.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AVCompat.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AVDecoder_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AVEncoder_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AVOutput_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AudioOutputBackend.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/AudioResampler_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/Filter_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/Frame_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/MediaIO_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/OpenGLRendererBase_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/PlayerSubtitle.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/QPainterRenderer_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/SubtitleProcessor.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/VideoRenderer_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/VideoShader_p.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/factory.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/mkid.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/prepost.h
Examining data/qtav-1.13.0+ds/src/QtAV/private/singleton.h
Examining data/qtav-1.13.0+ds/src/QtAV/version.h
Examining data/qtav-1.13.0+ds/src/QtAV/FilterContext.h
Examining data/qtav-1.13.0+ds/src/QtAV_Global.cpp
Examining data/qtav-1.13.0+ds/src/Statistics.cpp
Examining data/qtav-1.13.0+ds/src/VideoCapture.cpp
Examining data/qtav-1.13.0+ds/src/VideoFormat.cpp
Examining data/qtav-1.13.0+ds/src/VideoFrame.cpp
Examining data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp
Examining data/qtav-1.13.0+ds/src/VideoThread.cpp
Examining data/qtav-1.13.0+ds/src/VideoThread.h
Examining data/qtav-1.13.0+ds/src/capi/ass_api.cpp
Examining data/qtav-1.13.0+ds/src/capi/ass_api.h
Examining data/qtav-1.13.0+ds/src/capi/egl_api.cpp
Examining data/qtav-1.13.0+ds/src/capi/egl_api.h
Examining data/qtav-1.13.0+ds/src/capi/openal_api.cpp
Examining data/qtav-1.13.0+ds/src/capi/openal_api.h
Examining data/qtav-1.13.0+ds/src/codec/AVDecoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/AVEncoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/audio/AudioDecoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/audio/AudioDecoderFFmpeg.cpp
Examining data/qtav-1.13.0+ds/src/codec/audio/AudioEncoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/audio/AudioEncoderFFmpeg.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCUDA.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCUDA.h
Examining data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCV.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCV.h
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCUDA.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D.h
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D11.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderDXVA.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpeg.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegBase.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegBase.h
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegHW.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegHW.h
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegHW_p.h
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderMediaCodec.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVAAPI.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVDA.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVideoToolbox.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoEncoder.cpp
Examining data/qtav-1.13.0+ds/src/codec/video/VideoEncoderFFmpeg.cpp
Examining data/qtav-1.13.0+ds/src/compat/msvc/inttypes.h
Examining data/qtav-1.13.0+ds/src/compat/msvc/stdint.h
Examining data/qtav-1.13.0+ds/src/cuda/cuda_api.cpp
Examining data/qtav-1.13.0+ds/src/cuda/cuda_api.h
Examining data/qtav-1.13.0+ds/src/cuda/dllapi/cuda.cpp
Examining data/qtav-1.13.0+ds/src/cuda/dllapi/cuviddec.cpp
Examining data/qtav-1.13.0+ds/src/cuda/dllapi/nv_inc.h
Examining data/qtav-1.13.0+ds/src/cuda/dllapi/nvcuvid.cpp
Examining data/qtav-1.13.0+ds/src/cuda/dynlink_cuda.h
Examining data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h
Examining data/qtav-1.13.0+ds/src/cuda/dynlink_nvcuvid.h
Examining data/qtav-1.13.0+ds/src/cuda/helper_cuda.h
Examining data/qtav-1.13.0+ds/src/directx/D3D11VP.cpp
Examining data/qtav-1.13.0+ds/src/directx/D3D11VP.h
Examining data/qtav-1.13.0+ds/src/directx/DXVAHDVP.cpp
Examining data/qtav-1.13.0+ds/src/directx/DXVAHDVP.h
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D11.cpp
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D11.h
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D11EGL.cpp
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D11GL.cpp
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D9.cpp
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D9.h
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D9EGL.cpp
Examining data/qtav-1.13.0+ds/src/directx/SurfaceInteropD3D9GL.cpp
Examining data/qtav-1.13.0+ds/src/directx/dxcompat.h
Examining data/qtav-1.13.0+ds/src/filter/EncodeFilter.cpp
Examining data/qtav-1.13.0+ds/src/filter/Filter.cpp
Examining data/qtav-1.13.0+ds/src/filter/FilterContext.cpp
Examining data/qtav-1.13.0+ds/src/filter/FilterManager.cpp
Examining data/qtav-1.13.0+ds/src/filter/FilterManager.h
Examining data/qtav-1.13.0+ds/src/filter/GLSLFilter.cpp
Examining data/qtav-1.13.0+ds/src/filter/LibAVFilter.cpp
Examining data/qtav-1.13.0+ds/src/filter/SubtitleFilter.cpp
Examining data/qtav-1.13.0+ds/src/filter/X11FilterContext.cpp
Examining data/qtav-1.13.0+ds/src/io/AndroidIO.cpp
Examining data/qtav-1.13.0+ds/src/io/MediaIO.cpp
Examining data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp
Examining data/qtav-1.13.0+ds/src/io/WinRTIO.cpp
Examining data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp
Examining data/qtav-1.13.0+ds/src/opengl/ConvolutionShader.cpp
Examining data/qtav-1.13.0+ds/src/opengl/Geometry.cpp
Examining data/qtav-1.13.0+ds/src/opengl/GeometryRenderer.cpp
Examining data/qtav-1.13.0+ds/src/opengl/OpenGLHelper.cpp
Examining data/qtav-1.13.0+ds/src/opengl/OpenGLHelper.h
Examining data/qtav-1.13.0+ds/src/opengl/OpenGLTypes.cpp
Examining data/qtav-1.13.0+ds/src/opengl/OpenGLVideo.cpp
Examining data/qtav-1.13.0+ds/src/opengl/ShaderManager.cpp
Examining data/qtav-1.13.0+ds/src/opengl/ShaderManager.h
Examining data/qtav-1.13.0+ds/src/opengl/SubImagesGeometry.cpp
Examining data/qtav-1.13.0+ds/src/opengl/SubImagesGeometry.h
Examining data/qtav-1.13.0+ds/src/opengl/SubImagesRenderer.cpp
Examining data/qtav-1.13.0+ds/src/opengl/SubImagesRenderer.h
Examining data/qtav-1.13.0+ds/src/opengl/VideoShader.cpp
Examining data/qtav-1.13.0+ds/src/opengl/VideoShaderObject.cpp
Examining data/qtav-1.13.0+ds/src/opengl/gl_api.cpp
Examining data/qtav-1.13.0+ds/src/opengl/gl_api.h
Examining data/qtav-1.13.0+ds/src/output/AVOutput.cpp
Examining data/qtav-1.13.0+ds/src/output/OutputSet.cpp
Examining data/qtav-1.13.0+ds/src/output/OutputSet.h
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutput.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputAudioToolbox.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputBackend.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputNull.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenAL.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputPortAudio.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputPulse.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/AudioOutputXAudio2.cpp
Examining data/qtav-1.13.0+ds/src/output/audio/xaudio2_compat.h
Examining data/qtav-1.13.0+ds/src/output/video/OpenGLRendererBase.cpp
Examining data/qtav-1.13.0+ds/src/output/video/OpenGLWindowRenderer.cpp
Examining data/qtav-1.13.0+ds/src/output/video/QPainterRenderer.cpp
Examining data/qtav-1.13.0+ds/src/output/video/VideoOutput.cpp
Examining data/qtav-1.13.0+ds/src/output/video/VideoRenderer.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/CharsetDetector.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/CharsetDetector.h
Examining data/qtav-1.13.0+ds/src/subtitle/PlainText.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/PlainText.h
Examining data/qtav-1.13.0+ds/src/subtitle/PlayerSubtitle.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/SubImage.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/Subtitle.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessor.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorFFmpeg.cpp
Examining data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorLibASS.cpp
Examining data/qtav-1.13.0+ds/src/utils/BlockingQueue.h
Examining data/qtav-1.13.0+ds/src/utils/CopyFrame_SSE2.cpp
Examining data/qtav-1.13.0+ds/src/utils/CopyFrame_SSE4.cpp
Examining data/qtav-1.13.0+ds/src/utils/DirectXHelper.cpp
Examining data/qtav-1.13.0+ds/src/utils/DirectXHelper.h
Examining data/qtav-1.13.0+ds/src/utils/GPUMemCopy.cpp
Examining data/qtav-1.13.0+ds/src/utils/GPUMemCopy.h
Examining data/qtav-1.13.0+ds/src/utils/Logger.cpp
Examining data/qtav-1.13.0+ds/src/utils/Logger.h
Examining data/qtav-1.13.0+ds/src/utils/SharedPtr.h
Examining data/qtav-1.13.0+ds/src/utils/internal.cpp
Examining data/qtav-1.13.0+ds/src/utils/internal.h
Examining data/qtav-1.13.0+ds/src/utils/ring.h
Examining data/qtav-1.13.0+ds/src/vaapi/SurfaceInteropVAAPI.cpp
Examining data/qtav-1.13.0+ds/src/vaapi/SurfaceInteropVAAPI.h
Examining data/qtav-1.13.0+ds/src/vaapi/vaapi_helper.cpp
Examining data/qtav-1.13.0+ds/src/vaapi/vaapi_helper.h
Examining data/qtav-1.13.0+ds/tests/ao/main.cpp
Examining data/qtav-1.13.0+ds/tests/arch/arch.cpp
Examining data/qtav-1.13.0+ds/tests/arch/qprocessordetection.h
Examining data/qtav-1.13.0+ds/tests/decoder/main.cpp
Examining data/qtav-1.13.0+ds/tests/extract/main.cpp
Examining data/qtav-1.13.0+ds/tests/playerthread/main.cpp
Examining data/qtav-1.13.0+ds/tests/qiodevice/main.cpp
Examining data/qtav-1.13.0+ds/tests/qrc/main.cpp
Examining data/qtav-1.13.0+ds/tests/subtitle/main.cpp
Examining data/qtav-1.13.0+ds/tests/transcode/main.cpp
Examining data/qtav-1.13.0+ds/tools/templates/COPYRIGHT.h
Examining data/qtav-1.13.0+ds/tools/templates/base.cpp
Examining data/qtav-1.13.0+ds/tools/templates/base.h
Examining data/qtav-1.13.0+ds/tools/templates/base_p.h
Examining data/qtav-1.13.0+ds/tools/templates/derived.cpp
Examining data/qtav-1.13.0+ds/tools/templates/derived.h
Examining data/qtav-1.13.0+ds/tools/templates/derived_p.h
Examining data/qtav-1.13.0+ds/tools/templates/final.cpp
Examining data/qtav-1.13.0+ds/tools/templates/final.h
Examining data/qtav-1.13.0+ds/tools/templates/vo.cpp
Examining data/qtav-1.13.0+ds/tools/templates/vo.h
Examining data/qtav-1.13.0+ds/widgets/Direct2DRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/GDIRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/GLWidgetRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/GLWidgetRenderer2.cpp
Examining data/qtav-1.13.0+ds/widgets/GraphicsItemRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/OpenGLWidgetRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/QOpenGLWidget.cpp
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/GLWidgetRenderer.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/GLWidgetRenderer2.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/GraphicsItemRenderer.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/OpenGLWidgetRenderer.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/QOpenGLWidget.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/QtAVWidgets.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/VideoPreviewWidget.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/WidgetRenderer.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/global.h
Examining data/qtav-1.13.0+ds/widgets/QtAVWidgets/version.h
Examining data/qtav-1.13.0+ds/widgets/VideoPreviewWidget.cpp
Examining data/qtav-1.13.0+ds/widgets/WidgetRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/X11Renderer.cpp
Examining data/qtav-1.13.0+ds/widgets/XVRenderer.cpp
Examining data/qtav-1.13.0+ds/widgets/global.cpp

FINAL RESULTS:

data/qtav-1.13.0+ds/examples/common/common.cpp:228:22:  [4] (shell) system:
  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.
        l = QLocale::system().name();
data/qtav-1.13.0+ds/examples/common/common.cpp:247:51:  [4] (shell) system:
  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.
    if (qtts.load(QLatin1String("qt_") + QLocale::system().name()))
data/qtav-1.13.0+ds/examples/player/MainWindow.cpp:1109:69:  [4] (shell) system:
  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.
    QString name = QString::fromLatin1("help-%1.html").arg(QLocale::system().name());
data/qtav-1.13.0+ds/examples/player/MainWindow.cpp:1121:87:  [4] (shell) system:
  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.
        qWarning("Failed to open help-%s.html and help.html: %s", qPrintable(QLocale::system().name()), qPrintable(f.errorString()));
data/qtav-1.13.0+ds/examples/videographicsitem/main.cpp:12:97:  [4] (shell) system:
  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.
    if (ts.load(qApp->applicationDirPath().append(QLatin1String("/i18n/QtAV_")).append(QLocale::system().name())))
data/qtav-1.13.0+ds/examples/videographicsitem/main.cpp:15:57:  [4] (shell) system:
  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.
    if (qtts.load(QString::fromLatin1("qt_") + QLocale::system().name()))
data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp:244:35:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    statistics.format = QString().sprintf("%s - %s", fmt_ctx->iformat->name, fmt_ctx->iformat->long_name);
data/qtav-1.13.0+ds/src/QtAV/private/singleton.h:34:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, fmt, ##__VA_ARGS__); \
data/qtav-1.13.0+ds/src/QtAV_Global.cpp:262:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    QString qmsg = QString().sprintf("[FFmpeg:%s] ", c ? c->item_name(ctx) : "?") + QString().vsprintf(fmt, vl);
data/qtav-1.13.0+ds/src/QtAV_Global.cpp:262:95:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    QString qmsg = QString().sprintf("[FFmpeg:%s] ", c ? c->item_name(ctx) : "?") + QString().vsprintf(fmt, vl);
data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp:263:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            err = QString().sprintf("failed to get a packet at %lld",value);
data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp:353:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                err = QString().sprintf("out pts out of range. diff=%lld, range=%d", diff, range);
data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp:541:38:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            Q_EMIT aborted(QString().sprintf("Abort at position %lld: %s",pos,err.toLatin1().constData()));
data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp:543:36:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            Q_EMIT error(QString().sprintf("Cannot extract frame at position %lld: %s",pos,err.toLatin1().constData()));
data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCUDA.cpp:304:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    qDebug() << QString().sprintf("CUDA.D3D9 (%.*s, vendor %lu, device %lu, revision %lu)",
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderDXVA.cpp:272:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    description = QString().sprintf("DXVA2 (%.*s, vendor %lu(%s), device %lu, revision %lu)",
data/qtav-1.13.0+ds/src/opengl/gl_api.h:161:106:  [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.
    HANDLE (WINAPI* DXRegisterObjectNV)(HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
data/qtav-1.13.0+ds/src/opengl/gl_api.h:163:60:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    BOOL (WINAPI* DXObjectAccessNV)(HANDLE hObject, GLenum access);
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorLibASS.cpp:114:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, va);
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorLibASS.cpp:118:57:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    QString msg(QStringLiteral("{libass} ") + QString().vsprintf(fmt, va)); //QString.vsprintf() may crash at strlen().
data/qtav-1.13.0+ds/src/utils/Logger.cpp:52:30:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        formated = QString().vsprintf(msg, ap);
data/qtav-1.13.0+ds/src/utils/Logger.cpp:173:27:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        qmsg += QString().vsprintf(msg, ap);
data/qtav-1.13.0+ds/examples/filters/SimpleFilter.cpp:33:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(QTime::currentTime().msec());
data/qtav-1.13.0+ds/src/QtAV/private/factory.h:224:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(0));
data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCUDA.cpp:290:16:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        dll9 = LoadLibrary(TEXT("D3D9.DLL"));
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D11.cpp:119:15:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        dll = LoadLibrary(TEXT("d3d11.dll"));
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderDXVA.cpp:235:17:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    hd3d9_dll = LoadLibrary(TEXT("D3D9.DLL"));
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderDXVA.cpp:240:18:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    hdxva2_dll = LoadLibrary(TEXT("DXVA2.DLL"));
data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp:306:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    dll = LoadLibrary(TEXT("dsound.dll"));
data/qtav-1.13.0+ds/examples/audiopipeline/main.cpp:42:15:  [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 (!dec->open())
data/qtav-1.13.0+ds/examples/audiopipeline/main.cpp:72: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 (!ao->open())
data/qtav-1.13.0+ds/examples/common/Config.cpp:279: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 (!db.open())
data/qtav-1.13.0+ds/examples/common/common.cpp:200: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 (!f.open(QIODevice::WriteOnly)) {
data/qtav-1.13.0+ds/examples/common/common.cpp:208: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).
        if (fileLogger()->open(QIODevice::WriteOnly)) {
data/qtav-1.13.0+ds/examples/player/MainWindow.cpp:582: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 (!ao->open()) {
data/qtav-1.13.0+ds/examples/player/MainWindow.cpp:1120: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).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/examples/player/TVView.cpp:60: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 (!tv_file.open(QIODevice::ReadOnly))
data/qtav-1.13.0+ds/examples/player/filters/AVFilterSubtitle.cpp:46: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 (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/examples/player/filters/AVFilterSubtitle.cpp:82:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (w.open(QIODevice::WriteOnly)) {
data/qtav-1.13.0+ds/examples/player/playlist/PlayList.cpp:93: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).
    if (!f.open(QIODevice::ReadOnly))
data/qtav-1.13.0+ds/examples/player/playlist/PlayList.cpp:106: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).
    if (!f.open(QIODevice::WriteOnly)) {
data/qtav-1.13.0+ds/examples/videographicsitem/videoplayer.cpp:67:46:  [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).
    connect(openBtn, SIGNAL(clicked()), SLOT(open()));
data/qtav-1.13.0+ds/examples/videographicsitem/videoplayer.cpp:130: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).
void VideoPlayer::open()
data/qtav-1.13.0+ds/examples/videographicsitem/videoplayer.h:49:10:  [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).
    void open();
data/qtav-1.13.0+ds/qml/QmlAVPlayer.cpp:1004: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 (!ao->open()) {
data/qtav-1.13.0+ds/src/AVCompat.cpp:235:13:  [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(dst[i] + dst_offset, src[i] + src_offset, data_size);
data/qtav-1.13.0+ds/src/AVCompat.cpp:302: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(dst_data, src_data, size);
data/qtav-1.13.0+ds/src/AVCompat.cpp:338: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(data, src, size);                                        \
data/qtav-1.13.0+ds/src/AVMuxer.cpp:46:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        , open(false)
data/qtav-1.13.0+ds/src/AVMuxer.cpp:79:10:  [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/qtav-1.13.0+ds/src/AVMuxer.cpp:389:15:  [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 AVMuxer::open()
data/qtav-1.13.0+ds/src/AVMuxer.cpp:459:15:  [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).
    return d->open;
data/qtav-1.13.0+ds/src/AVPlayer.cpp:346: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 (vd->open()) {
data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp:305: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 cl[128]; //
data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp:378: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 (!adec->open()) {
data/qtav-1.13.0+ds/src/AVPlayerPrivate.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 (!ao->open()) {
data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp:523: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 (vd->open()) {
data/qtav-1.13.0+ds/src/AVPlayerPrivate.cpp:581: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 (vd->open()) {
data/qtav-1.13.0+ds/src/AVTranscoder.cpp:342: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 (!d->muxer.open()) {
data/qtav-1.13.0+ds/src/AudioFormat.cpp:277: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 cl[128];
data/qtav-1.13.0+ds/src/AudioFormat.cpp:479: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 cl[128];
data/qtav-1.13.0+ds/src/AudioFrame.cpp:172: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(dst, constBits(i) + posBytes, lenBytes);
data/qtav-1.13.0+ds/src/FrameReader.cpp:95: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).
            if (!decoder->open())
data/qtav-1.13.0+ds/src/FrameReader.cpp:106: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).
            if (!decoder->open()) {
data/qtav-1.13.0+ds/src/QtAV/AVDecoder.h:47: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).
    virtual bool open();
data/qtav-1.13.0+ds/src/QtAV/AVEncoder.h:56:10:  [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/qtav-1.13.0+ds/src/QtAV/AVMuxer.h:70:10:  [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/qtav-1.13.0+ds/src/QtAV/AudioOutput.h:104:10:  [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/qtav-1.13.0+ds/src/QtAV/OpenGLTypes.h:127: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((char*)v.data(), (const char*)data.constData(), v.size()*sizeof(T));
data/qtav-1.13.0+ds/src/QtAV/private/AVCompat.h:189:12:  [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.
    static char str[AV_ERROR_MAX_STRING_SIZE];
data/qtav-1.13.0+ds/src/QtAV/private/AVCompat.h:458: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 str[AV_ERROR_MAX_STRING_SIZE]; \
data/qtav-1.13.0+ds/src/QtAV/private/AVDecoder_p.h:109: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).
    virtual bool open() {return true;}
data/qtav-1.13.0+ds/src/QtAV/private/AVEncoder_p.h:52: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).
    virtual bool open() {return true;}
data/qtav-1.13.0+ds/src/QtAV/private/AudioOutputBackend.h:49: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).
    virtual bool open() = 0;
data/qtav-1.13.0+ds/src/VideoCapture.cpp:82: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::WriteOnly)) {
data/qtav-1.13.0+ds/src/VideoFrame.cpp:102: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(dst, src, byteWidth*height);
data/qtav-1.13.0+ds/src/VideoFrame.cpp:106: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(dst, src, byteWidth);
data/qtav-1.13.0+ds/src/VideoFrame.cpp:235: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(dst, constBits(i), plane_size);
data/qtav-1.13.0+ds/src/VideoFrameExtractor.cpp:197:36:  [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 (!cctx || !decoder->open()) {
data/qtav-1.13.0+ds/src/capi/egl_api.cpp:65:13:  [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[512];
data/qtav-1.13.0+ds/src/codec/AVDecoder.cpp:70: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).
bool AVDecoder::open()
data/qtav-1.13.0+ds/src/codec/AVDecoder.cpp:107: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).
    if (!d.open()) {
data/qtav-1.13.0+ds/src/codec/AVEncoder.cpp:92: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).
bool AVEncoder::open()
data/qtav-1.13.0+ds/src/codec/AVEncoder.cpp:98: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).
    if (!d.open()) {
data/qtav-1.13.0+ds/src/codec/audio/AudioEncoderFFmpeg.cpp:61:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/audio/AudioEncoderFFmpeg.cpp:67:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool AudioEncoderFFmpegPrivate::open()
data/qtav-1.13.0+ds/src/codec/audio/AudioEncoderFFmpeg.cpp:114:13:  [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 cl[128];
data/qtav-1.13.0+ds/src/codec/video/SurfaceInteropCUDA.cpp:532: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(rect_dst.pBits, rect_src.pBits, res[plane].W*H*3/2); // exactly w and h
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCUDA.cpp:197:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCUDA.cpp:487:31:  [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 VideoDecoderCUDAPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCUDA.cpp:518: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 devname[256];
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:102:25:  [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((unsigned char *)tarY+offset, ptr, 32);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:105:25:  [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((unsigned char *)tarY+offset, ptr, 16);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:118:14:  [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.
    unsigned char line[32];
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:135:25:  [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(line, ptr, 32);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:143:25:  [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(line, ptr, 16);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:177:25:  [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((unsigned char *)tarUV + offset, ptr, 32);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:180:25:  [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((unsigned char *)tarUV + offset, ptr, 16);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:285:10:  [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()  Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:341:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool VideoDecoderCedarvPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:375: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).
    cedarvRet = cedarv->open(cedarv);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:399: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(buf0, packet.data.constData(), bufsize0);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderCedarv.cpp:401: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(buf1, packet.data.constData() + bufsize0, bufsize1);
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D.cpp:346: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).
bool VideoDecoderD3DPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderD3D.h:74:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderDXVA.cpp:319: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(guids.data(), input_list, input_count*sizeof(GUID));
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpeg.cpp:204:10:  [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() Q_DECL_OVERRIDE {
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderFFmpegHW_p.h:67: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).
    virtual bool open() Q_DECL_OVERRIDE { return prepare();}
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVAAPI.cpp:225:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVAAPI.cpp:462:32:  [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 VideoDecoderVAAPIPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVDA.cpp:105:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVDA.cpp:420: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).
bool VideoDecoderVDAPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVideoToolbox.cpp:107:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoDecoderVideoToolbox.cpp:306:39:  [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 VideoDecoderVideoToolboxPrivate::open()
data/qtav-1.13.0+ds/src/codec/video/VideoEncoderFFmpeg.cpp:99:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/codec/video/VideoEncoderFFmpeg.cpp:114:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool VideoEncoderFFmpegPrivate::open()
data/qtav-1.13.0+ds/src/cuda/cuda_api.cpp:782: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 deviceName[256];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:275:14:  [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.
    unsigned char WeightScale4x4[6][16];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:276:14:  [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.
    unsigned char WeightScale8x8[2][64];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:318:14:  [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.
    unsigned char QuantMatrixIntra[64];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:319:14:  [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.
    unsigned char QuantMatrixInter[64];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:362:14:  [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.
    unsigned char QuantMatrixIntra[64];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:363:14:  [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.
    unsigned char QuantMatrixInter[64];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:459:14:  [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.
    unsigned char reserved1[14];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:512:14:  [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.
    unsigned char IsLongTerm[16];       // [refpic] 0=not a long-term reference, 1=long-term reference
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:513:14:  [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.
    unsigned char RefPicSetStCurrBefore[8]; // [0..NumPocStCurrBefore-1] -> refpic (0..15)
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:514:14:  [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.
    unsigned char RefPicSetStCurrAfter[8];  // [0..NumPocStCurrAfter-1] -> refpic (0..15)
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:515:14:  [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.
    unsigned char RefPicSetLtCurr[8];       // [0..NumPocLtCurr-1] -> refpic (0..15)
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:516:14:  [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.
    unsigned char RefPicSetInterLayer0[8];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:517:14:  [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.
    unsigned char RefPicSetInterLayer1[8];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:521:14:  [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.
    unsigned char ScalingList4x4[6][16];       // [matrixId][i]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:522:14:  [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.
    unsigned char ScalingList8x8[6][64];       // [matrixId][i]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:523:14:  [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.
    unsigned char ScalingList16x16[6][64];     // [matrixId][i]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:524:14:  [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.
    unsigned char ScalingList32x32[2][64];     // [matrixId][i]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:525:14:  [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.
    unsigned char ScalingListDCCoeff16x16[6];  // [matrixId]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:526:14:  [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.
    unsigned char ScalingListDCCoeff32x32[2];  // [matrixId]
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:553:14:  [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.
    unsigned char Reserved1[4];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:587:14:  [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.
    unsigned char  refFrameSignBias[4];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:605:14:  [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.
    unsigned char segmentFeatureEnable[8][4];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:607:14:  [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.
    unsigned char mb_segment_tree_probs[7];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:608:14:  [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.
    unsigned char segment_pred_probs[3];
data/qtav-1.13.0+ds/src/cuda/dynlink_cuviddec.h:609:14:  [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.
    unsigned char reservedSegment16Bits[2];
data/qtav-1.13.0+ds/src/cuda/dynlink_nvcuvid.h:142:14:  [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.
    unsigned char raw_seqhdr_data[1024];
data/qtav-1.13.0+ds/src/filter/EncodeFilter.cpp:157: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 (!d.enc->open()) { // TODO: error()
data/qtav-1.13.0+ds/src/filter/EncodeFilter.cpp:330: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 (!d.enc->open()) { // TODO: error()
data/qtav-1.13.0+ds/src/io/AndroidIO.cpp:145: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).
    qt_file.open(fd, QIODevice::ReadOnly);
data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp:238: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 (!d.file.open(QIODevice::ReadOnly))
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:91:10:  [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).
    void open(ComPtr<IStorageFile>& file);
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:210:5:  [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).
    open(file);
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:227:5:  [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).
    open(file);
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:230:15:  [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).
void WinRTIO::open(ComPtr<IStorageFile> &file)
data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp:44:7:  [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).
    f.open(QIODevice::ReadOnly);
data/qtav-1.13.0+ds/src/opengl/GeometryRenderer.cpp:121:17:  [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(p, g->constIndexData(), bs);
data/qtav-1.13.0+ds/src/opengl/GeometryRenderer.cpp:148:17:  [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(p, g->constVertexData(), bs);
data/qtav-1.13.0+ds/src/opengl/OpenGLTypes.cpp:111: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((char*)dst.data(), (const char*)v, count*sizeof(T));
data/qtav-1.13.0+ds/src/opengl/VideoShader.cpp:426: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).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/opengl/VideoShader.cpp:655:13:  [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(ptr, frame.constBits(p), pb.size());
data/qtav-1.13.0+ds/src/opengl/gl_api.cpp:56: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 f[512];
data/qtav-1.13.0+ds/src/opengl/gl_api.cpp:57: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(f, name, strlen(name));
data/qtav-1.13.0+ds/src/opengl/gl_api.cpp:60: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(p, ext[i], sizeof(ext[i]) + 1); //copy trail '\0'
data/qtav-1.13.0+ds/src/output/audio/AudioOutput.cpp:352: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).
bool AudioOutput::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutput.cpp:367: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 (!d.backend->open())
data/qtav-1.13.0+ds/src/output/audio/AudioOutputAudioToolbox.cpp:41:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputAudioToolbox.cpp:157:31:  [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 AudioOutputAudioToolbox::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputAudioToolbox.cpp:210: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(buf->mAudioData, data.constData(), data.size());
data/qtav-1.13.0+ds/src/output/audio/AudioOutputAudioToolbox.cpp:223:9:  [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).
        open();
data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp:45:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp:178: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).
bool AudioOutputDSound::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp:260: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(dst1, data.constData(), size1);
data/qtav-1.13.0+ds/src/output/audio/AudioOutputDSound.cpp:262: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(dst2, data.constData() + size1, size2);
data/qtav-1.13.0+ds/src/output/audio/AudioOutputNull.cpp:34:10:  [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() Q_DECL_OVERRIDE { return true;}
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenAL.cpp:55:10:  [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() Q_DECL_FINAL;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenAL.cpp:245: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).
bool AudioOutputOpenAL::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:62:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:140:33:  [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.
    union { unsigned short num; char buf[sizeof(unsigned short)]; } endianness;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:202: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 v[PROP_VALUE_MAX+1];
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:204:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    m_android_api_level = atoi(v);
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:264: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).
bool AudioOutputOpenSL::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputOpenSL.cpp:375: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((char*)queue_data.constData() + queue_data_write, data.constData(), data.size());
data/qtav-1.13.0+ds/src/output/audio/AudioOutputPortAudio.cpp:38:10:  [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() Q_DECL_FINAL;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputPortAudio.cpp:133:28:  [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 AudioOutputPortAudio::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputPulse.cpp:42:10:  [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() Q_DECL_FINAL;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputPulse.cpp:371:24:  [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 AudioOutputPulse::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputXAudio2.cpp:43:10:  [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() Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/output/audio/AudioOutputXAudio2.cpp:178: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).
bool AudioOutputXAudio2::open()
data/qtav-1.13.0+ds/src/output/audio/AudioOutputXAudio2.cpp:283: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((char*)queue_data.constData() + queue_data_write, data.constData(), data.size());
data/qtav-1.13.0+ds/src/subtitle/PlainText.cpp:98: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 text[512];
data/qtav-1.13.0+ds/src/subtitle/PlainText.cpp:106: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 line[512], *ret;
data/qtav-1.13.0+ds/src/subtitle/Subtitle.cpp:758: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).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/subtitle/Subtitle.cpp:814: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).
    if (buf.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/subtitle/Subtitle.cpp:831:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (w.open(QIODevice::WriteOnly)) {
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessor.cpp:55: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).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorFFmpeg.cpp:190: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 (!dev->open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorFFmpeg.cpp:278: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(codec_ctx->extradata, data.constData(), data.size());
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorLibASS.cpp:196: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 (!dev->open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/src/subtitle/SubtitleProcessorLibASS.cpp:370:13:  [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(s.data.data(), i->bitmap, i->stride*(i->h-1) + i->w);
data/qtav-1.13.0+ds/src/utils/CopyFrame_SSE2.cpp:157:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        return memcpy(dst, src, size);
data/qtav-1.13.0+ds/src/utils/DirectXHelper.cpp:32: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[32];
data/qtav-1.13.0+ds/src/utils/GPUMemCopy.cpp:140:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy(dst, src, size);
data/qtav-1.13.0+ds/src/vaapi/vaapi_helper.cpp:277: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).
            m_handle = ::open(drm_dev[i], O_RDWR);
data/qtav-1.13.0+ds/tests/ao/main.cpp:68: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).
    if (!ao.open()) {
data/qtav-1.13.0+ds/tests/decoder/main.cpp:57:10:  [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).
    dec->open();
data/qtav-1.13.0+ds/tests/qiodevice/main.cpp:37: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 (!vidfile.open(QIODevice::ReadOnly))
data/qtav-1.13.0+ds/tests/qiodevice/main.cpp:52: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).
    if (buf.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/tests/transcode/main.cpp:91:10:  [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).
    dec->open();
data/qtav-1.13.0+ds/tests/transcode/main.cpp:125:28:  [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 (!venc->open()) {
data/qtav-1.13.0+ds/tests/transcode/main.cpp:137: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 (!mux.open()) {
data/qtav-1.13.0+ds/widgets/GLWidgetRenderer.cpp:377: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).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtav-1.13.0+ds/widgets/GLWidgetRenderer.cpp:759:13:  [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(dst, src, line_size);
data/qtav-1.13.0+ds/widgets/X11Renderer.cpp:407:17:  [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(ximage->data, video_frame.constBits(0), ximage->bytes_per_line*ximage->height);
data/qtav-1.13.0+ds/widgets/XVRenderer.cpp:413:14:  [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(dst[2], src[2], width);
data/qtav-1.13.0+ds/widgets/XVRenderer.cpp:414:14:  [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(dst[1], src[1], width);
data/qtav-1.13.0+ds/examples/player/config/PropertyEditor.cpp:50:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QVariant v(mp.read(obj));
data/qtav-1.13.0+ds/src/AVThread.cpp:376:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(kWaitSlice);
data/qtav-1.13.0+ds/src/AVThread.cpp:393:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(us);
data/qtav-1.13.0+ds/src/QtAV/MediaIO.h:98:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual qint64 read(char *data, qint64 maxSize) = 0;
data/qtav-1.13.0+ds/src/QtAV/private/prepost.h:60:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#pragma section(".CRT$XIU", long, read)
data/qtav-1.13.0+ds/src/QtAV/private/prepost.h:61:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#pragma section(".CRT$XPU", long, read)
data/qtav-1.13.0+ds/src/capi/egl_api.h:74:75:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
data/qtav-1.13.0+ds/src/io/AndroidIO.cpp:53:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual qint64 read(char *data, qint64 maxSize) Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/io/AndroidIO.cpp:84:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
qint64 AndroidIO::read(char *data, qint64 maxSize)
data/qtav-1.13.0+ds/src/io/AndroidIO.cpp:86:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return qt_file.read(data, maxSize);
data/qtav-1.13.0+ds/src/io/MediaIO.cpp:91:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return io->read((char*)buf, buf_size);
data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp:49:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual qint64 read(char *data, qint64 maxSize) Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp:108:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
qint64 QIODeviceIO::read(char *data, qint64 maxSize)
data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp:113:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return d.dev->read(data, maxSize);
data/qtav-1.13.0+ds/src/io/QIODeviceIO.cpp:251:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fi.read(data.data(), data.size());
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:72:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual qint64 read(char *data, qint64 maxSize) Q_DECL_OVERRIDE;
data/qtav-1.13.0+ds/src/io/WinRTIO.cpp:125:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
qint64 WinRTIO::read(char *data, qint64 maxSize)
data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp:11:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read();
data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp:35:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void tst_MediaIO::read() {
data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp:42:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in->read(data.data(), data.size());
data/qtav-1.13.0+ds/src/io/tst_mediaio.cpp:46:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    f.read(data2.data(), data2.size());
data/qtav-1.13.0+ds/src/opengl/gl_api.cpp:57:21:  [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).
    memcpy(f, name, strlen(name));
data/qtav-1.13.0+ds/src/opengl/gl_api.cpp:58:25:  [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* const p = f + strlen(name);
data/qtav-1.13.0+ds/tests/qiodevice/main.cpp:49:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QByteArray data = vidfile.read(1024*1024);
data/qtav-1.13.0+ds/widgets/X11Renderer.cpp:479:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000);

ANALYSIS SUMMARY:

Hits = 237
Lines analyzed = 83900 in approximately 2.28 seconds (36807 lines/second)
Physical Source Lines of Code (SLOC) = 62012
Hits@level = [0]  34 [1]  25 [2] 183 [3]   7 [4]  22 [5]   0
Hits@level+ = [0+] 271 [1+] 237 [2+] 212 [3+]  29 [4+]  22 [5+]   0
Hits/KSLOC@level+ = [0+] 4.37012 [1+] 3.82184 [2+] 3.41869 [3+] 0.467651 [4+] 0.35477 [5+]   0
Dot directories skipped = 2 (--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.