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/shotcut-20.09.27+ds/CuteLogger/include/AbstractAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/AbstractStringAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/AndroidAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/ConsoleAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/CuteLogger_global.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/FileAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/Logger.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/OutputDebugAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/include/RollingFileAppender.h Examining data/shotcut-20.09.27+ds/CuteLogger/src/AbstractAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/AndroidAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/ConsoleAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/FileAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/Logger.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/OutputDebugAppender.cpp Examining data/shotcut-20.09.27+ds/CuteLogger/src/RollingFileAppender.cpp Examining data/shotcut-20.09.27+ds/drmingw/include/exchndl.h Examining data/shotcut-20.09.27+ds/src/abstractproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/abstractproducerwidget.h Examining data/shotcut-20.09.27+ds/src/autosavefile.cpp Examining data/shotcut-20.09.27+ds/src/autosavefile.h Examining data/shotcut-20.09.27+ds/src/commands/playlistcommands.cpp Examining data/shotcut-20.09.27+ds/src/commands/playlistcommands.h Examining data/shotcut-20.09.27+ds/src/commands/timelinecommands.cpp Examining data/shotcut-20.09.27+ds/src/commands/timelinecommands.h Examining data/shotcut-20.09.27+ds/src/commands/undohelper.cpp Examining data/shotcut-20.09.27+ds/src/commands/undohelper.h Examining data/shotcut-20.09.27+ds/src/controllers/filtercontroller.cpp Examining data/shotcut-20.09.27+ds/src/controllers/filtercontroller.h Examining data/shotcut-20.09.27+ds/src/controllers/scopecontroller.cpp Examining data/shotcut-20.09.27+ds/src/controllers/scopecontroller.h Examining data/shotcut-20.09.27+ds/src/database.cpp Examining data/shotcut-20.09.27+ds/src/database.h Examining data/shotcut-20.09.27+ds/src/dataqueue.h Examining data/shotcut-20.09.27+ds/src/defaultlayouts.h Examining data/shotcut-20.09.27+ds/src/dialogs/addencodepresetdialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/addencodepresetdialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/customprofiledialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/customprofiledialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/durationdialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/durationdialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/filedatedialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/filedatedialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/listselectiondialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/listselectiondialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/longuitask.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/longuitask.h Examining data/shotcut-20.09.27+ds/src/dialogs/slideshowgeneratordialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/slideshowgeneratordialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/systemsyncdialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/systemsyncdialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/textviewerdialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/textviewerdialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/transcodedialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/transcodedialog.h Examining data/shotcut-20.09.27+ds/src/dialogs/unlinkedfilesdialog.cpp Examining data/shotcut-20.09.27+ds/src/dialogs/unlinkedfilesdialog.h Examining data/shotcut-20.09.27+ds/src/docks/encodedock.cpp Examining data/shotcut-20.09.27+ds/src/docks/encodedock.h Examining data/shotcut-20.09.27+ds/src/docks/filtersdock.cpp Examining data/shotcut-20.09.27+ds/src/docks/filtersdock.h Examining data/shotcut-20.09.27+ds/src/docks/jobsdock.cpp Examining data/shotcut-20.09.27+ds/src/docks/jobsdock.h Examining data/shotcut-20.09.27+ds/src/docks/keyframesdock.cpp Examining data/shotcut-20.09.27+ds/src/docks/keyframesdock.h Examining data/shotcut-20.09.27+ds/src/docks/playlistdock.cpp Examining data/shotcut-20.09.27+ds/src/docks/playlistdock.h Examining data/shotcut-20.09.27+ds/src/docks/recentdock.cpp Examining data/shotcut-20.09.27+ds/src/docks/recentdock.h Examining data/shotcut-20.09.27+ds/src/docks/scopedock.cpp Examining data/shotcut-20.09.27+ds/src/docks/scopedock.h Examining data/shotcut-20.09.27+ds/src/docks/timelinedock.cpp Examining data/shotcut-20.09.27+ds/src/docks/timelinedock.h Examining data/shotcut-20.09.27+ds/src/glwidget.cpp Examining data/shotcut-20.09.27+ds/src/glwidget.h Examining data/shotcut-20.09.27+ds/src/htmleditor/highlighter.cpp Examining data/shotcut-20.09.27+ds/src/htmleditor/highlighter.h Examining data/shotcut-20.09.27+ds/src/htmleditor/htmleditor.cpp Examining data/shotcut-20.09.27+ds/src/htmleditor/htmleditor.h Examining data/shotcut-20.09.27+ds/src/jobqueue.cpp Examining data/shotcut-20.09.27+ds/src/jobqueue.h Examining data/shotcut-20.09.27+ds/src/jobs/abstractjob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/abstractjob.h Examining data/shotcut-20.09.27+ds/src/jobs/encodejob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/encodejob.h Examining data/shotcut-20.09.27+ds/src/jobs/ffmpegjob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/ffmpegjob.h Examining data/shotcut-20.09.27+ds/src/jobs/ffprobejob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/ffprobejob.h Examining data/shotcut-20.09.27+ds/src/jobs/meltjob.h Examining data/shotcut-20.09.27+ds/src/jobs/postjobaction.cpp Examining data/shotcut-20.09.27+ds/src/jobs/postjobaction.h Examining data/shotcut-20.09.27+ds/src/jobs/qimagejob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/qimagejob.h Examining data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.cpp Examining data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.h Examining data/shotcut-20.09.27+ds/src/jobs/meltjob.cpp Examining data/shotcut-20.09.27+ds/src/leapnetworklistener.cpp Examining data/shotcut-20.09.27+ds/src/leapnetworklistener.h Examining data/shotcut-20.09.27+ds/src/macos.h Examining data/shotcut-20.09.27+ds/src/main.cpp Examining data/shotcut-20.09.27+ds/src/mainwindow.cpp Examining data/shotcut-20.09.27+ds/src/mainwindow.h Examining data/shotcut-20.09.27+ds/src/mltcontroller.cpp Examining data/shotcut-20.09.27+ds/src/mltcontroller.h Examining data/shotcut-20.09.27+ds/src/mltxmlchecker.cpp Examining data/shotcut-20.09.27+ds/src/mltxmlchecker.h Examining data/shotcut-20.09.27+ds/src/models/attachedfiltersmodel.cpp Examining data/shotcut-20.09.27+ds/src/models/attachedfiltersmodel.h Examining data/shotcut-20.09.27+ds/src/models/audiolevelstask.cpp Examining data/shotcut-20.09.27+ds/src/models/audiolevelstask.h Examining data/shotcut-20.09.27+ds/src/models/keyframesmodel.cpp Examining data/shotcut-20.09.27+ds/src/models/keyframesmodel.h Examining data/shotcut-20.09.27+ds/src/models/metadatamodel.cpp Examining data/shotcut-20.09.27+ds/src/models/metadatamodel.h Examining data/shotcut-20.09.27+ds/src/models/multitrackmodel.cpp Examining data/shotcut-20.09.27+ds/src/models/multitrackmodel.h Examining data/shotcut-20.09.27+ds/src/models/playlistmodel.cpp Examining data/shotcut-20.09.27+ds/src/models/playlistmodel.h Examining data/shotcut-20.09.27+ds/src/openotherdialog.cpp Examining data/shotcut-20.09.27+ds/src/openotherdialog.h Examining data/shotcut-20.09.27+ds/src/player.cpp Examining data/shotcut-20.09.27+ds/src/player.h Examining data/shotcut-20.09.27+ds/src/proxymanager.cpp Examining data/shotcut-20.09.27+ds/src/proxymanager.h Examining data/shotcut-20.09.27+ds/src/qmltypes/colorpickeritem.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/colorpickeritem.h Examining data/shotcut-20.09.27+ds/src/qmltypes/colorwheelitem.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/colorwheelitem.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlapplication.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlapplication.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlfile.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlfile.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlhtmleditor.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlhtmleditor.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlmetadata.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlmetadata.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlproducer.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlproducer.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlprofile.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlprofile.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlrichtext.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlrichtext.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlutilities.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlutilities.h Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlview.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/qmlview.h Examining data/shotcut-20.09.27+ds/src/qmltypes/thumbnailprovider.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/thumbnailprovider.h Examining data/shotcut-20.09.27+ds/src/qmltypes/timelineitems.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/timelineitems.h Examining data/shotcut-20.09.27+ds/src/qmltypes/webvfxtemplatesmodel.cpp Examining data/shotcut-20.09.27+ds/src/qmltypes/webvfxtemplatesmodel.h Examining data/shotcut-20.09.27+ds/src/scrubbar.cpp Examining data/shotcut-20.09.27+ds/src/scrubbar.h Examining data/shotcut-20.09.27+ds/src/settings.cpp Examining data/shotcut-20.09.27+ds/src/settings.h Examining data/shotcut-20.09.27+ds/src/sharedframe.cpp Examining data/shotcut-20.09.27+ds/src/sharedframe.h Examining data/shotcut-20.09.27+ds/src/shotcut_mlt_properties.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp Examining data/shotcut-20.09.27+ds/src/spatialmedia/box.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/constants.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/container.cpp Examining data/shotcut-20.09.27+ds/src/spatialmedia/container.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/mpeg4_container.cpp Examining data/shotcut-20.09.27+ds/src/spatialmedia/mpeg4_container.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.cpp Examining data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.h Examining data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp Examining data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.h Examining data/shotcut-20.09.27+ds/src/transportcontrol.h Examining data/shotcut-20.09.27+ds/src/util.cpp Examining data/shotcut-20.09.27+ds/src/util.h Examining data/shotcut-20.09.27+ds/src/widgets/alsawidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/alsawidget.h Examining data/shotcut-20.09.27+ds/src/widgets/audiometerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/audiometerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/audioscale.cpp Examining data/shotcut-20.09.27+ds/src/widgets/audioscale.h Examining data/shotcut-20.09.27+ds/src/widgets/avformatproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/avformatproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/avfoundationproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/avfoundationproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/blipproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/blipproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/colorbarswidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/colorbarswidget.h Examining data/shotcut-20.09.27+ds/src/widgets/colorproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/colorproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/colorwheel.cpp Examining data/shotcut-20.09.27+ds/src/widgets/colorwheel.h Examining data/shotcut-20.09.27+ds/src/widgets/countproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/countproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/decklinkproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/decklinkproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/directshowvideowidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/directshowvideowidget.h Examining data/shotcut-20.09.27+ds/src/widgets/fixx11h.h Examining data/shotcut-20.09.27+ds/src/widgets/gdigrabwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/gdigrabwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/gltestwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/gltestwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/iecscale.h Examining data/shotcut-20.09.27+ds/src/widgets/imageproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/imageproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/isingwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/isingwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/jackproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/jackproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/lineeditclear.cpp Examining data/shotcut-20.09.27+ds/src/widgets/lineeditclear.h Examining data/shotcut-20.09.27+ds/src/widgets/lissajouswidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/lissajouswidget.h Examining data/shotcut-20.09.27+ds/src/widgets/lumamixtransition.cpp Examining data/shotcut-20.09.27+ds/src/widgets/lumamixtransition.h Examining data/shotcut-20.09.27+ds/src/widgets/networkproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/networkproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/newprojectfolder.cpp Examining data/shotcut-20.09.27+ds/src/widgets/newprojectfolder.h Examining data/shotcut-20.09.27+ds/src/widgets/noisewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/noisewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/plasmawidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/plasmawidget.h Examining data/shotcut-20.09.27+ds/src/widgets/playlisticonview.cpp Examining data/shotcut-20.09.27+ds/src/widgets/playlisticonview.h Examining data/shotcut-20.09.27+ds/src/widgets/playlistlistview.cpp Examining data/shotcut-20.09.27+ds/src/widgets/playlistlistview.h Examining data/shotcut-20.09.27+ds/src/widgets/playlisttable.cpp Examining data/shotcut-20.09.27+ds/src/widgets/playlisttable.h Examining data/shotcut-20.09.27+ds/src/widgets/producerpreviewwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/producerpreviewwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/pulseaudiowidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/pulseaudiowidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audioloudnessscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audioloudnessscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiopeakmeterscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiopeakmeterscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiospectrumscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiospectrumscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiowaveformscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/audiowaveformscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/scopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/scopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videohistogramscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videohistogramscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videorgbparadescopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videorgbparadescopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videorgbwaveformscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videorgbwaveformscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videovectorscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videovectorscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videowaveformscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videowaveformscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videozoomscopewidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videozoomscopewidget.h Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videozoomwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/scopes/videozoomwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/screenselector.cpp Examining data/shotcut-20.09.27+ds/src/widgets/screenselector.h Examining data/shotcut-20.09.27+ds/src/widgets/servicepresetwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/servicepresetwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/slideshowgeneratorwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/slideshowgeneratorwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/textproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/textproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/timelinepropertieswidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/timelinepropertieswidget.h Examining data/shotcut-20.09.27+ds/src/widgets/timespinbox.cpp Examining data/shotcut-20.09.27+ds/src/widgets/timespinbox.h Examining data/shotcut-20.09.27+ds/src/widgets/toneproducerwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/toneproducerwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/trackpropertieswidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/trackpropertieswidget.h Examining data/shotcut-20.09.27+ds/src/widgets/video4linuxwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/video4linuxwidget.h Examining data/shotcut-20.09.27+ds/src/widgets/webvfxproducer.cpp Examining data/shotcut-20.09.27+ds/src/widgets/webvfxproducer.h Examining data/shotcut-20.09.27+ds/src/widgets/x11grabwidget.cpp Examining data/shotcut-20.09.27+ds/src/widgets/x11grabwidget.h FINAL RESULTS: data/shotcut-20.09.27+ds/CuteLogger/include/Logger.h:157:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/shotcut-20.09.27+ds/CuteLogger/include/Logger.h:196:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/shotcut-20.09.27+ds/CuteLogger/src/Logger.cpp:1088:23: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. m_block = QString().vsprintf(msg, va); data/shotcut-20.09.27+ds/CuteLogger/src/Logger.cpp:1132:73: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. m_l->write(m_level, m_file, m_line, m_function, m_category, QString().vsprintf(msg, va)); data/shotcut-20.09.27+ds/src/main.cpp:83:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. message = QString().sprintf("[%s %p] ", mlt_type, service); data/shotcut-20.09.27+ds/src/main.cpp:86:34: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. message.append(QString().vsprintf(format, args)); data/shotcut-20.09.27+ds/src/main.cpp:89:29: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. message = QString().vsprintf(format, args); data/shotcut-20.09.27+ds/src/widgets/audiometerwidget.cpp:112:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString label = QString().sprintf("%d", m_dbLabels[i]); data/shotcut-20.09.27+ds/src/widgets/audiometerwidget.cpp:154:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString label = QString().sprintf("%d", value); data/shotcut-20.09.27+ds/src/widgets/audiometerwidget.cpp:170:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString label = QString().sprintf("%d", value); data/shotcut-20.09.27+ds/src/widgets/audioscale.cpp:45:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString s = QString().sprintf("%d", i); data/shotcut-20.09.27+ds/src/widgets/audioscale.cpp:50:69: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. p.drawText(xf * 40.0/42.0 - 10, height() - 2, QString().sprintf("%d", i)); data/shotcut-20.09.27+ds/src/widgets/colorproducerwidget.cpp:32:45: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. : QString().sprintf("#%02X%02X%02X%02X", data/shotcut-20.09.27+ds/src/widgets/textproducerwidget.cpp:34:45: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. : QString().sprintf("#%02X%02X%02X%02X", data/shotcut-20.09.27+ds/CuteLogger/src/FileAppender.cpp:70: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). isOpen = m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text); data/shotcut-20.09.27+ds/CuteLogger/src/Logger.cpp:462: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(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/autosavefile.cpp:56: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). bool AutoSaveFile::open(OpenMode openmode) data/shotcut-20.09.27+ds/src/autosavefile.cpp:72: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). return QFile::open(openmode); data/shotcut-20.09.27+ds/src/autosavefile.h: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). virtual bool open(OpenMode openmode); data/shotcut-20.09.27+ds/src/database.cpp:85: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). buffer.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/database.cpp:196:8: [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). db.open(); data/shotcut-20.09.27+ds/src/dialogs/textviewerdialog.cpp:52: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). f.open(QIODevice::WriteOnly | QIODevice::Text); data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:917: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). tmp->open(); data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:926:8: [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). f1.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:1650: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 (f.open(QIODevice::WriteOnly | QIODevice::Text)) data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:1835: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). MAIN.open(m_outputFilename); data/shotcut-20.09.27+ds/src/docks/playlistdock.cpp:674: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). MAIN.open(path); data/shotcut-20.09.27+ds/src/docks/timelinedock.cpp:392: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). MAIN.open(MLT.producer()); data/shotcut-20.09.27+ds/src/docks/timelinedock.cpp:1152: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). MAIN.open(Util::removeFileScheme(url), nullptr, false /* play */ ); data/shotcut-20.09.27+ds/src/docks/timelinedock.cpp:1195: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). MAIN.open(Util::removeFileScheme(url), nullptr, false /* play */ ); data/shotcut-20.09.27+ds/src/glwidget.cpp:952: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(m_image.scanLine(0), image, imageSizeBytes); data/shotcut-20.09.27+ds/src/htmleditor/htmleditor.cpp:215: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 success = file.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/htmleditor/htmleditor.cpp:709: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 (!file.open(QFile::ReadOnly)) data/shotcut-20.09.27+ds/src/jobs/encodejob.cpp:76: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). tmp->open(); data/shotcut-20.09.27+ds/src/jobs/encodejob.cpp:93: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). f1.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/jobs/encodejob.cpp:141: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). m_xml->open(); data/shotcut-20.09.27+ds/src/jobs/encodejob.cpp:160: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). m_xml->open(); data/shotcut-20.09.27+ds/src/jobs/ffmpegjob.cpp:76: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). MAIN.open(objectName().toUtf8().constData()); data/shotcut-20.09.27+ds/src/jobs/meltjob.cpp:45: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). m_xml->open(); data/shotcut-20.09.27+ds/src/jobs/meltjob.cpp:66: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). MAIN.open(objectName().toUtf8().constData()); data/shotcut-20.09.27+ds/src/jobs/meltjob.cpp:120: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). m_xml->open(); data/shotcut-20.09.27+ds/src/jobs/postjobaction.cpp:54: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). MAIN.open(m_dstFile); data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.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). file.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.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). file.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.cpp:77: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). MAIN.open(xmlPath().toUtf8().constData()); data/shotcut-20.09.27+ds/src/jobs/videoqualityjob.cpp:90: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/shotcut-20.09.27+ds/src/leapnetworklistener.cpp:40: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). m_socket.open(url); data/shotcut-20.09.27+ds/src/main.cpp:349: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). a.mainWindow->open(a.mainWindow->untitledFileName()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:316:70: [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(m_recentDock, SIGNAL(itemActivated(QString)), this, SLOT(open(QString))); data/shotcut-20.09.27+ds/src/mainwindow.cpp:958: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). void MainWindow::open(Mlt::Producer* producer) data/shotcut-20.09.27+ds/src/mainwindow.cpp:1034: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). repaired.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1038: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). temp.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1111: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 (!stale->open(QIODevice::ReadWrite)) { data/shotcut-20.09.27+ds/src/mainwindow.cpp:1137:57: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (m_autosaveFile->isOpen() || m_autosaveFile->open(QIODevice::ReadWrite)) { data/shotcut-20.09.27+ds/src/mainwindow.cpp:1140:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_autosaveFile->open(QIODevice::ReadWrite); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1308: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). void MainWindow::open(QString url, const Mlt::Properties* properties, bool play) data/shotcut-20.09.27+ds/src/mainwindow.cpp:1372: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 (!MLT.open(QDir::fromNativeSeparators(urlToOpen), QDir::fromNativeSeparators(url)) data/shotcut-20.09.27+ds/src/mainwindow.cpp:1384: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(MLT.producer()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1410: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(paths.first()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1418: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(m_multipleFiles.first()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1421: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(Util::removeFileScheme(url)); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1439: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(filenames.first()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:1451: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(producer); data/shotcut-20.09.27+ds/src/mainwindow.cpp:2478: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). open(roleDataMap[Qt::ToolTipRole].toString()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:2558: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(dialog.newProducer(MLT.profile())); data/shotcut-20.09.27+ds/src/mainwindow.cpp:3825: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). open(MLT.producer()); data/shotcut-20.09.27+ds/src/mainwindow.cpp:3890: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). logFile.open(QIODevice::ReadOnly | QIODevice::Text); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4014: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). if (scriptFile.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/src/mainwindow.cpp:4037: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). f.open(QIODevice::WriteOnly | QIODevice::Text); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4392: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(dynamic_cast<AbstractProducerWidget*>(widget)->newProducer(MLT.profile())); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4577: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(new Mlt::Producer(MLT.profile(), "xml-string", MLT.XML(&producer).toUtf8().constData())); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4616: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). tmp->open(); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4642: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). return MLT.open(QDir::fromNativeSeparators(fileName), QDir::fromNativeSeparators(m_currentFile)); data/shotcut-20.09.27+ds/src/mainwindow.cpp:4651: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). open(MLT.producer()); data/shotcut-20.09.27+ds/src/mainwindow.h:69: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(Mlt::Producer* producer); data/shotcut-20.09.27+ds/src/mainwindow.h:190: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(QString url, const Mlt::Properties* = nullptr, bool play = true); data/shotcut-20.09.27+ds/src/mltcontroller.cpp:104: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). int Controller::open(const QString &url, const QString& urlToSave) data/shotcut-20.09.27+ds/src/mltcontroller.cpp:457: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). tmp.open(); data/shotcut-20.09.27+ds/src/mltcontroller.cpp:498:34: [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 (existingFile.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/src/mltcontroller.cpp:500: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). backupTmp.open(); data/shotcut-20.09.27+ds/src/mltcontroller.cpp:908: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(temp.scanLine(0), image, size_t(width * height * 4)); data/shotcut-20.09.27+ds/src/mltcontroller.h:77: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). virtual int open(const QString& url, const QString& urlToSave); data/shotcut-20.09.27+ds/src/mltxmlchecker.cpp:78: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 (file.open(QIODevice::ReadOnly | QIODevice::Text) && m_tempFile->open()) { data/shotcut-20.09.27+ds/src/mltxmlchecker.cpp:78:73: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly | QIODevice::Text) && m_tempFile->open()) { data/shotcut-20.09.27+ds/src/player.cpp:831: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). MAIN.open(new Mlt::Producer(MLT.savedProducer())); data/shotcut-20.09.27+ds/src/proxymanager.cpp:94: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). file.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/proxymanager.cpp:218: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). file.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/proxymanager.cpp:296: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 (file.open(QIODevice::ReadOnly | QIODevice::Text) && tempFile.open()) { data/shotcut-20.09.27+ds/src/proxymanager.cpp:296:70: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly | QIODevice::Text) && tempFile.open()) { data/shotcut-20.09.27+ds/src/qmltypes/qmlfile.cpp:102: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). inFile.open(QFile::ReadOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfile.cpp:103: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). outfile.open(QFile::WriteOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:303: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(!yamlFile.open(QIODevice::WriteOnly)) { data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:330: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). tmp->open(); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:358: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). tmpTarget->open(); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:363:8: [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). f1.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:397: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). file.open(QFile::WriteOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:569: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 (presetFile.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:576: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). if (presetFile.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:703: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). file.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:746: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). file.open(QIODevice::WriteOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlfilter.cpp:804: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). file.open(QIODevice::ReadOnly); data/shotcut-20.09.27+ds/src/qmltypes/qmlrichtext.cpp:78:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QFile::ReadOnly)) { data/shotcut-20.09.27+ds/src/qmltypes/qmlrichtext.cpp:113: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(QFile::WriteOnly | QFile::Truncate | (isHtml ? QFile::NotOpen : QFile::Text))) { data/shotcut-20.09.27+ds/src/sharedframe.cpp:94: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(copy, data, size); data/shotcut-20.09.27+ds/src/sharedframe.cpp:114: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(copy, data, size); data/shotcut-20.09.27+ds/src/sharedframe.cpp:130: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(copy, data, size); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:49: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 bytes[8]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:61: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 bytes[1]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:72: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 bytes[1]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:83: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 bytes[2]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:94: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 bytes[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:105: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 bytes[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:116: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 bytes[8]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:127: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 bytes[1]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:137: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 bytes[2]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:147: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 bytes[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:157: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 bytes[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:167: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 bytes[8]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:175:10: [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 name[5]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:176:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ( name, m_name, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:190:3: [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[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:211:3: [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 ( pNewBox->m_name, name, sizeof ( name ) ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:339: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 bytes[4]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:341:3: [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.bytes, (char *)&m_pContents[iIDX], 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:350: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 bytes[8]; data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:352:3: [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.bytes, (char *)&m_pContents[iIDX], 8 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.h:70: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 m_name[4]; data/shotcut-20.09.27+ds/src/spatialmedia/constants.h:101: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. static const char * SOUND_SAMPLE_DESCRIPTIONS[12] = { data/shotcut-20.09.27+ds/src/spatialmedia/constants.h:116: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. static const char * CONTAINERS_LIST[20] = { data/shotcut-20.09.27+ds/src/spatialmedia/container.cpp:48:3: [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[4]; data/shotcut-20.09.27+ds/src/spatialmedia/container.cpp:117:3: [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 ( pNewBox->m_name, name, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.cpp:36:3: [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 ( m_name, constants::TAG_SA3D, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.cpp:63:3: [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 tmp, name[4]; data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.cpp:107:3: [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 ( pNewBox->m_name, constants::TAG_SA3D, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp:69:3: [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->m_name, constants::TAG_UUID, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp:73:3: [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->m_pContents, SPHERICAL_UUID_ID, 16 ); data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp:74:3: [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->m_pContents+16), pMetadata, iSize ); data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp:114:11: [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[4]; data/shotcut-20.09.27+ds/src/util.cpp:316: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 (!tmp->open() || tmp->write("") < 0) { data/shotcut-20.09.27+ds/src/util.cpp:387: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 (file.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/src/widgets/avformatproducerwidget.cpp:845: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). MAIN.open(resource); data/shotcut-20.09.27+ds/src/widgets/avformatproducerwidget.cpp:993: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). tmp.open(); data/shotcut-20.09.27+ds/src/widgets/newprojectfolder.cpp:245: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). MAIN.open(m_model.itemData(index)[Qt::ToolTipRole].toString()); data/shotcut-20.09.27+ds/src/widgets/servicepresetwidget.cpp:70: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 (!yamlFile.open(QIODevice::WriteOnly)) { data/shotcut-20.09.27+ds/src/widgets/servicepresetwidget.cpp:142: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 (presetFile.open(QIODevice::ReadOnly)) { data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp:201:57: [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). if (info.indexOf(operator_call) == pos - (int)strlen(operator_call)) data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp:227:57: [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). if (info.indexOf(operator_call) == pos - (int)strlen(operator_call) + 1) data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp:231:61: [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). if (info.indexOf(operator_lessThan) == pos - (int)strlen(operator_lessThan) + 1) data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp:235:64: [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). if (info.indexOf(operator_greaterThan) == pos - (int)strlen(operator_greaterThan) + 1) data/shotcut-20.09.27+ds/CuteLogger/src/AbstractStringAppender.cpp:239:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int operatorLength = (int)strlen(operator_lessThanEqual); data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:1279:42: [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). auto x265params = other[i].mid(::strlen(x265ParamsKey)); data/shotcut-20.09.27+ds/src/docks/encodedock.cpp:1627:17: [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). if (strlen(data->get_name(i)) > 0) data/shotcut-20.09.27+ds/src/jobs/qimagejob.cpp:51:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage image(reader.read()); data/shotcut-20.09.27+ds/src/main.cpp:78:57: [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). if (!resource || resource[0] != '<' || resource[strlen(resource) - 1] != '>') data/shotcut-20.09.27+ds/src/mltcontroller.cpp:504:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (!(buffer = existingFile.read(1048576LL /*1MiB*/)).isEmpty()) { data/shotcut-20.09.27+ds/src/mltcontroller.cpp:544:19: [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(200000); data/shotcut-20.09.27+ds/src/proxymanager.cpp:417:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return reader.imageCount() == 1 && !reader.read().hasAlphaChannel(); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:51:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 8 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:63:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 1 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:74:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 1 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:85:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 2 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:96:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:107:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:118:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( buf.bytes, 8 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:195:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( name, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:294:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fsIn.read ( (char *)m_pContents, block_size ); data/shotcut-20.09.27+ds/src/spatialmedia/box.cpp:298:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fsIn.read ( (char *)m_pContents, iSize ); data/shotcut-20.09.27+ds/src/spatialmedia/container.cpp:49:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( name, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/container.cpp:96:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( (char *)&iSampleDescVersion, 2 ); data/shotcut-20.09.27+ds/src/spatialmedia/sa3d.cpp:67:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read ( name, 4 ); data/shotcut-20.09.27+ds/src/spatialmedia/spatialmedia.cpp:117:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). inFile.read ( name, 4 ); data/shotcut-20.09.27+ds/src/util.cpp:392:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fileData = file.read(1000000); ANALYSIS SUMMARY: Hits = 172 Lines analyzed = 56820 in approximately 1.58 seconds (36055 lines/second) Physical Source Lines of Code (SLOC) = 43814 Hits@level = [0] 0 [1] 27 [2] 131 [3] 0 [4] 14 [5] 0 Hits@level+ = [0+] 172 [1+] 172 [2+] 145 [3+] 14 [4+] 14 [5+] 0 Hits/KSLOC@level+ = [0+] 3.92569 [1+] 3.92569 [2+] 3.30944 [3+] 0.319533 [4+] 0.319533 [5+] 0 Dot directories skipped = 3 (--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.