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/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cTexteFrameComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cTexteFrameComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cTextFrame.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cTextFrame.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSpeedWaveComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSpeedWaveComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSpeedWave.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSpeedWave.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSaveWindowPosition.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cSaveWindowPosition.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cLuLoImageCache.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cLuLoImageCache.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cGrdOrientationComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cGrdOrientationComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cCustomIcon.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cCustomIcon.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cColorComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cColorComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBrushComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBrushComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBaseBrushDefinition.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBaseBrushDefinition.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBaseAppConfig.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBaseAppConfig.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBackgroundComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cBackgroundComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/Shape.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/Shape.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/QCustomHorizSplitter.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/QCustomHorizSplitter.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/QCustomComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/QCustomComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/ImageFilters.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/BasicDefines.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/BasicDefines.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/ImageFilters.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporamaStart/main.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/main.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QVideoPlayer/wgt_QVideoPlayer.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QVideoPlayer/wgt_QVideoPlayer.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QVideoPlayer/QCustomRuler.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QVideoPlayer/QCustomRuler.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/wgt_QMultimediaBrowser.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/QCustomFolderTree.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/QCustomFolderTree.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/QCustomFolderTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/QCustomFolderTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/wgt_QMultimediaBrowser/wgt_QMultimediaBrowser.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cLocation.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cLocation.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBrushDefinition.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBrushDefinition.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Variables.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Variables.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Transition.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Transition.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_StyleDefinitions.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_StyleDefinitions.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_SDL_Support.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_SDL_Support.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Model.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Model.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_GlobalDefines.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_GlobalDefines.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Diaporama.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Diaporama.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/mainwindow.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/cCustomSlideTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/cCustomSlideTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/mainwindow.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpPopup.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpPopup.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpContent.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpContent.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpBrowser.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/HelpPopup/HelpBrowser.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgffDPjrProperties/DlgffDPjrProperties.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgffDPjrProperties/DlgffDPjrProperties.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgWorkingTask/DlgWorkingTask.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgWorkingTask/DlgWorkingTask.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgTransition/DlgTransitionProperties.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgTransition/DlgTransitionProperties.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgTransition/DlgTransitionDuration.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgTransition/DlgTransitionDuration.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgText/cCustomTextEdit.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgText/cCustomTextEdit.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgText/DlgTextEdit.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgText/DlgTextEdit.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cShotComposer.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cShotComposer.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cInteractiveZone.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cInteractiveZone.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cCustomShotTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cCustomShotTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cCustomBlockTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/cCustomBlockTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgSlideProperties.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgSlideProperties.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgSlideDuration.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgSlideDuration.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgImageComposer.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgImageComposer.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgRuler/DlgRulerDef.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgSlide/DlgRuler/DlgRulerDef.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgRenderVideo/DlgRenderVideo.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgRenderVideo/DlgRenderVideo.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgMusic/DlgMusicProperties.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgMusic/DlgMusicProperties.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgManageStyle/DlgManageStyle.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgManageStyle/DlgManageStyle.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgManageFavorite/DlgManageFavorite.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgManageFavorite/DlgManageFavorite.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgInfoFile/DlgInfoFile.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgInfoFile/DlgInfoFile.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/DlgImageCorrection.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/DlgImageCorrection.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QGMapsMap/wgt_QGMapsMap.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QGMapsMap/wgt_QGMapsMap.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QGMapsMap/cCustomLocationTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QGMapsMap/cCustomLocationTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditVideo/wgt_QEditVideo.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditVideo/wgt_QEditVideo.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditImage/wgt_QEditImage.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditImage/wgt_QEditImage.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditImage/cImgInteractiveZone.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgImage/wgt_QEditImage/cImgInteractiveZone.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgGMapsLocation/DlgGMapsLocation.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgGMapsLocation/DlgGMapsLocation.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgGMapsLocation/DlgGMapsGeneration.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgGMapsLocation/DlgGMapsGeneration.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgFileExplorer/DlgFileExplorer.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgFileExplorer/DlgFileExplorer.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgExportProject/DlgExportProject.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgExportProject/DlgExportProject.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgCheckConfig/DlgCheckConfig.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgCheckConfig/DlgCheckConfig.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgChapter/DlgChapter.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgChapter/DlgChapter.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgBackground/DlgBackgroundProperties.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgBackground/DlgBackgroundProperties.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAutoTitleSlide/cCustomTitleModelTable.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAutoTitleSlide/cCustomTitleModelTable.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAutoTitleSlide/DlgAutoTitleSlide.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAutoTitleSlide/DlgAutoTitleSlide.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAppSettings/DlgApplicationSettings.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAppSettings/DlgManageDevices/DlgManageDevices.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAppSettings/DlgManageDevices/DlgManageDevices.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAppSettings/DlgApplicationSettings.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cThumbnailComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cThumbnailComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cCShapeComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cCShapeComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cCFramingComboBox.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/cCFramingComboBox.cpp Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/_QCustomDialog.h Examining data/ffdiaporama-2.1+dfsg/src/ffDiaporama/CustomCtrl/_QCustomDialog.cpp Examining data/ffdiaporama-2.1+dfsg/src/exiv2/exv_msvc.h Examining data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp Examining data/ffdiaporama-2.1+dfsg/WIKI/fake/main.cpp Examining data/ffdiaporama-2.1+dfsg/WIKI/fake/fake.h Examining data/ffdiaporama-2.1+dfsg/WIKI/fake/fake.cpp FINAL RESULTS: data/ffdiaporama-2.1+dfsg/src/exiv2/exv_msvc.h:62:37: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #if (_MSC_VER < 1400) && !defined(vsnprintf) data/ffdiaporama-2.1+dfsg/src/exiv2/exv_msvc.h:63:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define vsnprintf _vsnprintf data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:432:37: [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. CurrentLanguage =QLocale::system().name().left(2).toLower(); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:433:37: [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. CurrentSubLanguage=QLocale::system().name().toLower(); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:2042:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename,sFileName.toLocal8Bit()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:443:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(Buf,sizeof(Buf),fmt,vargs); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:749:61: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libvorbis")) strcpy(AUDIOCODECDEF[4].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:751:59: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libfaac")) strcpy(AUDIOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:753:64: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libvo_aacenc")) strcpy(AUDIOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:758:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(VIDEOCODECDEF[i].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:761:59: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libxvid")) strcpy(VIDEOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:771:61: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libvorbis")) strcpy(AUDIOCODECDEF[4].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:773:59: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libfaac")) strcpy(AUDIOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:775:64: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libvo_aacenc")) strcpy(AUDIOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:780:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(VIDEOCODECDEF[i].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:783:59: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). if (QString(p->name)==QString("libxvid")) strcpy(VIDEOCODECDEF[2].ShortName,p->name); data/ffdiaporama-2.1+dfsg/src/ffDiaporamaStart/main.cpp:39:5: [4] (format) swprintf: Potential format string problem (CWE-134). Make format string constant. swprintf(wFile,2048,L"%S","ffDiaporama.exe"); data/ffdiaporama-2.1+dfsg/src/ffDiaporamaStart/main.cpp:57:5: [4] (shell) ShellExecute: 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. ShellExecute(NULL,NULL,wFile,wParam,wFolder,SW_SHOWNORMAL); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/BasicDefines.h:55:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf_s data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgCheckConfig/DlgCheckConfig.cpp:69:138: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ui->ListWidget->addItem(new QListWidgetItem(QIcon(ICON_GREEN),QApplication::translate("DlgCheckConfig","Search path set to: %1").arg(getenv("PATH")))); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:646:43: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QString Value=getenv(Var.toLocal8Bit()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:330:47: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QString Value=getenv(Var.toLocal8Bit()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:530:43: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QString Value=getenv(Var.toLocal8Bit()); data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:401: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:435: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 (!FakeFile.open(QFile::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:458: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:503: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 (!FakeFile.open(QFile::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:523: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:552: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 (!FakeFile.open(QFile::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/WikiMake/main.cpp:586: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 (!FakeFile.open(QFile::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:51: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)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:69:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (File.open(QIODevice::ReadOnly|QIODevice::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:90:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (File.open(QIODevice::ReadOnly|QIODevice::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:110: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)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:119: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)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgAbout/DlgAbout.cpp:127: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 (File2.open(QIODevice::ReadOnly|QIODevice::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/DlgRenderVideo/DlgRenderVideo.cpp:1128:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly|QIODevice::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/mainwindow.cpp:1564:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/MainWindow/mainwindow.cpp:2249:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Diaporama.cpp:1671: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::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Diaporama.cpp:2418: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::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:541: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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:652: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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:1121:25: [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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:1146:29: [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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:1156:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:1257: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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_EncodeVideo.cpp:1281:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_GlobalDefines.cpp:80:17: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP,0,QString("kernel32.dll").toLocal8Bit(),-1,WinFileName,256+1); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_Model.cpp:195: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_SDL_Support.cpp:43: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(SDLBuf+SDLBufSize,Packet,MixedMusic.SoundPacketSize); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_SDL_Support.cpp:51: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(stream,SDLBuf,len); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/_SDL_Support.cpp:52: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(SDLBuf,SDLBuf+len,SDLBufSize-len); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:75:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:89:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:152: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 (DataFile.open(QFile::WriteOnly)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:410: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(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:446:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (File.open(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:456: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:473: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:481: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:510: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:518: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:613: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.cpp:977: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::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cApplicationConfig.h:220: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 BROWSERString[20]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:126:27: [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 unsigned char base64[256]={ data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:217: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(buffer,Vector.data(),len); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:620: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 (FileIO.open(QIODevice::ReadOnly/*|QIODevice::Text*/)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:839: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(QFile::ReadOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:1025:48: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ImageFile=Exiv2::ImageFactory::open(FileName().toLocal8Bit().data()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:1027:48: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ImageFile=Exiv2::ImageFactory::open(FileName().toUtf8().data()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:2041: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 filename[512]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:2737: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 args[512]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:441: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 Buf[16384*10]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:469: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 Buf[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:590: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 | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:647: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::WriteOnly | QFile::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:168: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 FPS[20]; // Frame per second data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:170: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 Name[100]; // Display name data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:209: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 FFD_VCODECST[10]; // ffDiaporama video codec id string data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:210: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 ShortName[50]; // short name of the codec (copy of the libav value) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:211: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 LongName[200]; // long name of the codec (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:212: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 PossibleBitrate[200]; // list of possible compression bit rate (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:213: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 DefaultBitrate[2][NBR_SIZEDEF][10]; // prefered compression bit rate for each possible size data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:225: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 ShortName[50]; // short name of the codec (copy of the libav value) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:226: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 LongName[200]; // long name of the codec (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:227: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 PossibleBitrate2CH[200]; // list of possible compression bit rate in stereo mode (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:229: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 PossibleBitrate6CH[200]; // list of possible compression bit rate in 5.1/6 chanels mode (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:230: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 Default[10]; // prefered compression bit rate data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:231: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 PossibleFrequency[200]; // list of possible audio frequency data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:258: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 ShortName[50]; // short name of the format container (copy of the libav value) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:259: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 FileExtension[10]; // prefered file extension for the format container (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:260: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 LongName[200]; // long name of the codec (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:261: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 PossibleVideoCodec[200]; // list of possible video codec for this format container (using VCODECST String define) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:262: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 PossibleAudioCodec[200]; // list of possible audio codec for this format container (define by this application) data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:263: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 PossibleFrequency[200]; // list of possible audio frequency data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.h:264: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 DefaultAudioFreq[10]; // prefered audio frequency data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:66:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP,0,PhysicalPath.toLocal8Bit(),-1,Drive,256+1); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:111:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP,0,PhysicalPath.toLocal8Bit(),-1,Drive,256+1); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:277: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 (FileIO.open(QIODevice::ReadOnly|QIODevice::Text)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:304: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 (FileIO.open(QIODevice::ReadOnly/*|QIODevice::Text*/)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:364:5: [2] (buffer) TCHAR: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. TCHAR winUserName[UNLEN+1]; // UNLEN is defined in LMCONS.H data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDriveList.cpp:504: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 (FileIO.open(QIODevice::ReadOnly/*|QIODevice::Text*/)) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:195: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(CurOldPacket,Packet,SoundPacketSize); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:201: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(CurOldPacket,TempData,CurrentTempSize); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:230: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(Packet,TempData,CurrentTempSize); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:231: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(Packet+CurrentTempSize,CurData,DataToUse); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:236: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(Packet,CurData,SoundPacketSize); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cSoundBlockList.cpp:246: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(TempData+CurrentTempSize,CurData,DataLen); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/main.cpp:97: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(QIODevice::ReadOnly | QIODevice::Text)) exit(1); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/BasicDefines.cpp:45:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[2048]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/ImageFilters.cpp:467:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.scanLine(0),Img.scanLine(0),Img.bytesPerLine()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/ImageFilters.cpp:490:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.scanLine(h-1),Img.scanLine(h-1),Img.bytesPerLine()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cCustomIcon.cpp:57: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(dest, src, image.bytesPerLine()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cCustomIcon.cpp:146:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP,0,FileName.toLocal8Bit(),-1,WinFileName,256+1); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:57: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 (!db.open()) return false; data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:765: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:772: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:861: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:876: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:1017: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cDatabase.cpp:1044: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). BufData.open(QIODevice::WriteOnly); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cBaseMediaFile.cpp:1161:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QImage Image=ImgReader.read(); data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:444:13: [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). while ((strlen(Buf)>0)&&(Buf[strlen(Buf)-1]==32)) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:444:34: [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). while ((strlen(Buf)>0)&&(Buf[strlen(Buf)-1]==32)) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:444:59: [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). while ((strlen(Buf)>0)&&(Buf[strlen(Buf)-1]==32)) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:445:9: [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(Buf)>0) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:446: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 End=Buf[strlen(Buf)-1]; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:452: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). while ((strlen(Buf)>0)&&((Buf[strlen(Buf)-1]==10)||(Buf[strlen(Buf)-1]==13))) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:452:43: [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). while ((strlen(Buf)>0)&&((Buf[strlen(Buf)-1]==10)||(Buf[strlen(Buf)-1]==13))) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:452:69: [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). while ((strlen(Buf)>0)&&((Buf[strlen(Buf)-1]==10)||(Buf[strlen(Buf)-1]==13))) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporama/engine/cDeviceModelDef.cpp:452:95: [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). while ((strlen(Buf)>0)&&((Buf[strlen(Buf)-1]==10)||(Buf[strlen(Buf)-1]==13))) Buf[strlen(Buf)-1]=0; data/ffdiaporama-2.1+dfsg/src/ffDiaporamaStart/main.cpp:44:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (wcslen(wFolder)==0) { data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cLuLoImageCache.cpp:84:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CacheRenderImage=new QImage(Img.read()); data/ffdiaporama-2.1+dfsg/src/ffDiaporama_lib/cLuLoImageCache.cpp:190:54: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). CachePreviewImage=new QImage(Img.read()); ANALYSIS SUMMARY: Hits = 136 Lines analyzed = 60489 in approximately 2.48 seconds (24389 lines/second) Physical Source Lines of Code (SLOC) = 44241 Hits@level = [0] 3 [1] 13 [2] 100 [3] 4 [4] 19 [5] 0 Hits@level+ = [0+] 139 [1+] 136 [2+] 123 [3+] 23 [4+] 19 [5+] 0 Hits/KSLOC@level+ = [0+] 3.14188 [1+] 3.07407 [2+] 2.78023 [3+] 0.51988 [4+] 0.429466 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.