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/smplayer-20.6.0~ds0/webserver/main.c
Examining data/smplayer-20.6.0~ds0/webserver/mongoose.h
Examining data/smplayer-20.6.0~ds0/webserver/mongoose.c
Examining data/smplayer-20.6.0~ds0/src/shutdown.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayeroptions.cpp
Examining data/smplayer-20.6.0~ds0/src/filesettings.cpp
Examining data/smplayer-20.6.0~ds0/src/inputdvddirectory.cpp
Examining data/smplayer-20.6.0~ds0/src/images.h
Examining data/smplayer-20.6.0~ds0/src/lineedit_with_icon.h
Examining data/smplayer-20.6.0~ds0/src/reminderdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/vdpauproperties.cpp
Examining data/smplayer-20.6.0~ds0/src/minigui.h
Examining data/smplayer-20.6.0~ds0/src/prefnetwork.cpp
Examining data/smplayer-20.6.0~ds0/src/filters.cpp
Examining data/smplayer-20.6.0~ds0/src/global.cpp
Examining data/smplayer-20.6.0~ds0/src/timedialog.cpp
Examining data/smplayer-20.6.0~ds0/src/mycombobox.cpp
Examining data/smplayer-20.6.0~ds0/src/recents.cpp
Examining data/smplayer-20.6.0~ds0/src/tracks.h
Examining data/smplayer-20.6.0~ds0/src/subreader.h
Examining data/smplayer-20.6.0~ds0/src/seekwidget.cpp
Examining data/smplayer-20.6.0~ds0/src/version.h
Examining data/smplayer-20.6.0~ds0/src/inputmplayerversion.cpp
Examining data/smplayer-20.6.0~ds0/src/smplayer.h
Examining data/smplayer-20.6.0~ds0/src/mpvprocess.h
Examining data/smplayer-20.6.0~ds0/src/prefplaylist.h
Examining data/smplayer-20.6.0~ds0/src/prefinterface.cpp
Examining data/smplayer-20.6.0~ds0/src/inforeadermplayer.cpp
Examining data/smplayer-20.6.0~ds0/src/inforeader.cpp
Examining data/smplayer-20.6.0~ds0/src/chromecast.h
Examining data/smplayer-20.6.0~ds0/src/sharedialog.cpp
Examining data/smplayer-20.6.0~ds0/src/shutdowndialog.h
Examining data/smplayer-20.6.0~ds0/src/timedialog.h
Examining data/smplayer-20.6.0~ds0/src/prefwidget.cpp
Examining data/smplayer-20.6.0~ds0/src/timeslider.cpp
Examining data/smplayer-20.6.0~ds0/src/multilineinputdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/mediasettings.h
Examining data/smplayer-20.6.0~ds0/src/seekwidget.h
Examining data/smplayer-20.6.0~ds0/src/audioequalizer.cpp
Examining data/smplayer-20.6.0~ds0/src/preferencesdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/subreader.cpp
Examining data/smplayer-20.6.0~ds0/src/preferences.cpp
Examining data/smplayer-20.6.0~ds0/src/old/images.h
Examining data/smplayer-20.6.0~ds0/src/old/images.cpp
Examining data/smplayer-20.6.0~ds0/src/old/floatingwidget.cpp
Examining data/smplayer-20.6.0~ds0/src/old/videoequalizer.cpp
Examining data/smplayer-20.6.0~ds0/src/old/floatingwidget.h
Examining data/smplayer-20.6.0~ds0/src/old/videoequalizer.h
Examining data/smplayer-20.6.0~ds0/src/shutdown.h
Examining data/smplayer-20.6.0~ds0/src/autohidewidget.cpp
Examining data/smplayer-20.6.0~ds0/src/clhelp.h
Examining data/smplayer-20.6.0~ds0/src/prefassociations.h
Examining data/smplayer-20.6.0~ds0/src/audioequalizer.h
Examining data/smplayer-20.6.0~ds0/src/verticaltext.h
Examining data/smplayer-20.6.0~ds0/src/stereo3ddialog.cpp
Examining data/smplayer-20.6.0~ds0/src/basegui.h
Examining data/smplayer-20.6.0~ds0/src/chromecast.cpp
Examining data/smplayer-20.6.0~ds0/src/images.cpp
Examining data/smplayer-20.6.0~ds0/src/myactiongroup.cpp
Examining data/smplayer-20.6.0~ds0/src/mpvprocess.cpp
Examining data/smplayer-20.6.0~ds0/src/mylineedit.cpp
Examining data/smplayer-20.6.0~ds0/src/clhelp.cpp
Examining data/smplayer-20.6.0~ds0/src/screensaver.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlocalpeer.h
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile.h
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile_unix.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile_win.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtsinglecoreapplication.h
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtsingleapplication.h
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtsingleapplication.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlocalpeer.cpp
Examining data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtsinglecoreapplication.cpp
Examining data/smplayer-20.6.0~ds0/src/bookmarkdialog.h
Examining data/smplayer-20.6.0~ds0/src/prefinput.h
Examining data/smplayer-20.6.0~ds0/src/winfileassoc.cpp
Examining data/smplayer-20.6.0~ds0/src/recents.h
Examining data/smplayer-20.6.0~ds0/src/inputurl.h
Examining data/smplayer-20.6.0~ds0/src/audioequalizerlist.cpp
Examining data/smplayer-20.6.0~ds0/src/sharedata.cpp
Examining data/smplayer-20.6.0~ds0/src/paths.cpp
Examining data/smplayer-20.6.0~ds0/src/playerid.h
Examining data/smplayer-20.6.0~ds0/src/prefgeneral.cpp
Examining data/smplayer-20.6.0~ds0/src/infofile.cpp
Examining data/smplayer-20.6.0~ds0/src/mpvoptions.cpp
Examining data/smplayer-20.6.0~ds0/src/cleanconfig.h
Examining data/smplayer-20.6.0~ds0/src/config.h
Examining data/smplayer-20.6.0~ds0/src/assstyles.cpp
Examining data/smplayer-20.6.0~ds0/src/editabletoolbar.h
Examining data/smplayer-20.6.0~ds0/src/favorites.cpp
Examining data/smplayer-20.6.0~ds0/src/myslider.cpp
Examining data/smplayer-20.6.0~ds0/src/prefplaylist.cpp
Examining data/smplayer-20.6.0~ds0/src/eqslider.h
Examining data/smplayer-20.6.0~ds0/src/tracks.cpp
Examining data/smplayer-20.6.0~ds0/src/qrcode/openwithdevicedialog.h
Examining data/smplayer-20.6.0~ds0/src/qrcode/qrcodelabel.cpp
Examining data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.h
Examining data/smplayer-20.6.0~ds0/src/qrcode/openwithdevicedialog.cpp
Examining data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.c
Examining data/smplayer-20.6.0~ds0/src/qrcode/qrcodelabel.h
Examining data/smplayer-20.6.0~ds0/src/winfileassoc.h
Examining data/smplayer-20.6.0~ds0/src/filesettings.h
Examining data/smplayer-20.6.0~ds0/src/prefperformance.h
Examining data/smplayer-20.6.0~ds0/src/prefnetwork.h
Examining data/smplayer-20.6.0~ds0/src/tvlist.cpp
Examining data/smplayer-20.6.0~ds0/src/discname.h
Examining data/smplayer-20.6.0~ds0/src/preftv.h
Examining data/smplayer-20.6.0~ds0/src/preferences.h
Examining data/smplayer-20.6.0~ds0/src/mediasettings.cpp
Examining data/smplayer-20.6.0~ds0/src/tvsettings.cpp
Examining data/smplayer-20.6.0~ds0/src/minigui.cpp
Examining data/smplayer-20.6.0~ds0/src/shutdowndialog.cpp
Examining data/smplayer-20.6.0~ds0/src/languages/main.cpp
Examining data/smplayer-20.6.0~ds0/src/filesettingshash.h
Examining data/smplayer-20.6.0~ds0/src/playlist.cpp
Examining data/smplayer-20.6.0~ds0/src/deviceinfo.cpp
Examining data/smplayer-20.6.0~ds0/src/mpris2/mediaplayer2player.cpp
Examining data/smplayer-20.6.0~ds0/src/mpris2/mpris2.cpp
Examining data/smplayer-20.6.0~ds0/src/mpris2/mediaplayer2.cpp
Examining data/smplayer-20.6.0~ds0/src/mpris2/mediaplayer2.h
Examining data/smplayer-20.6.0~ds0/src/mpris2/mediaplayer2player.h
Examining data/smplayer-20.6.0~ds0/src/mpris2/mpris2.h
Examining data/smplayer-20.6.0~ds0/src/timeslider.h
Examining data/smplayer-20.6.0~ds0/src/mpcgui/mpcstyles.h
Examining data/smplayer-20.6.0~ds0/src/mpcgui/mpcgui.cpp
Examining data/smplayer-20.6.0~ds0/src/mpcgui/mpcgui.h
Examining data/smplayer-20.6.0~ds0/src/mpcgui/mpcstyles.cpp
Examining data/smplayer-20.6.0~ds0/src/updatechecker.cpp
Examining data/smplayer-20.6.0~ds0/src/prefgeneral.h
Examining data/smplayer-20.6.0~ds0/src/skingui/mediabarpanel.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/panelseeker.h
Examining data/smplayer-20.6.0~ds0/src/skingui/myicon.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/myicon.h
Examining data/smplayer-20.6.0~ds0/src/skingui/qpropertysetter.h
Examining data/smplayer-20.6.0~ds0/src/skingui/mediabarpanel.h
Examining data/smplayer-20.6.0~ds0/src/skingui/mediapanel.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/actiontools.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/volumecontrolpanel.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/panelseeker.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/volumecontrolpanel.h
Examining data/smplayer-20.6.0~ds0/src/skingui/skingui.h
Examining data/smplayer-20.6.0~ds0/src/skingui/skingui.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/mybutton.h
Examining data/smplayer-20.6.0~ds0/src/skingui/mediapanel.h
Examining data/smplayer-20.6.0~ds0/src/skingui/playcontrol.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/actiontools.h
Examining data/smplayer-20.6.0~ds0/src/skingui/playcontrol.h
Examining data/smplayer-20.6.0~ds0/src/skingui/mybutton.cpp
Examining data/smplayer-20.6.0~ds0/src/skingui/qpropertysetter.cpp
Examining data/smplayer-20.6.0~ds0/src/core.h
Examining data/smplayer-20.6.0~ds0/src/playlistdock.cpp
Examining data/smplayer-20.6.0~ds0/src/core.cpp
Examining data/smplayer-20.6.0~ds0/src/statewidget.h
Examining data/smplayer-20.6.0~ds0/src/filters.h
Examining data/smplayer-20.6.0~ds0/src/inputmplayerversion.h
Examining data/smplayer-20.6.0~ds0/src/myslider.h
Examining data/smplayer-20.6.0~ds0/src/widgetactions.h
Examining data/smplayer-20.6.0~ds0/src/audioequalizerlist.h
Examining data/smplayer-20.6.0~ds0/src/prefupdates.cpp
Examining data/smplayer-20.6.0~ds0/src/myscroller.h
Examining data/smplayer-20.6.0~ds0/src/languages.h
Examining data/smplayer-20.6.0~ds0/src/chapters.h
Examining data/smplayer-20.6.0~ds0/src/shortcutgetter.h
Examining data/smplayer-20.6.0~ds0/src/prefdrives.cpp
Examining data/smplayer-20.6.0~ds0/src/about.cpp
Examining data/smplayer-20.6.0~ds0/src/translator.h
Examining data/smplayer-20.6.0~ds0/src/subtracks.h
Examining data/smplayer-20.6.0~ds0/src/assstyles.h
Examining data/smplayer-20.6.0~ds0/src/defaultgui.cpp
Examining data/smplayer-20.6.0~ds0/src/helper.cpp
Examining data/smplayer-20.6.0~ds0/src/extensions.cpp
Examining data/smplayer-20.6.0~ds0/src/myprocess.h
Examining data/smplayer-20.6.0~ds0/src/urlhistory.cpp
Examining data/smplayer-20.6.0~ds0/src/prefdrives.h
Examining data/smplayer-20.6.0~ds0/src/mplayerversion.cpp
Examining data/smplayer-20.6.0~ds0/src/errordialog.h
Examining data/smplayer-20.6.0~ds0/src/selectcolorbutton.cpp
Examining data/smplayer-20.6.0~ds0/src/playlist.h
Examining data/smplayer-20.6.0~ds0/src/multilineinputdialog.h
Examining data/smplayer-20.6.0~ds0/src/global.h
Examining data/smplayer-20.6.0~ds0/src/myaction.cpp
Examining data/smplayer-20.6.0~ds0/src/fontcache.h
Examining data/smplayer-20.6.0~ds0/src/favorites.h
Examining data/smplayer-20.6.0~ds0/src/errordialog.cpp
Examining data/smplayer-20.6.0~ds0/src/lineedit_with_icon.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayerwindow.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayerwindow.h
Examining data/smplayer-20.6.0~ds0/src/videoequalizer.cpp
Examining data/smplayer-20.6.0~ds0/src/vdpauproperties.h
Examining data/smplayer-20.6.0~ds0/src/defaultgui.h
Examining data/smplayer-20.6.0~ds0/src/colorutils.h
Examining data/smplayer-20.6.0~ds0/src/filesettingshash.cpp
Examining data/smplayer-20.6.0~ds0/src/stereo3ddialog.h
Examining data/smplayer-20.6.0~ds0/src/prefinput.cpp
Examining data/smplayer-20.6.0~ds0/src/preftv.cpp
Examining data/smplayer-20.6.0~ds0/src/chapters.cpp
Examining data/smplayer-20.6.0~ds0/src/mytablewidget.cpp
Examining data/smplayer-20.6.0~ds0/src/filepropertiesdialog.h
Examining data/smplayer-20.6.0~ds0/src/filehash.h
Examining data/smplayer-20.6.0~ds0/src/eqslider.cpp
Examining data/smplayer-20.6.0~ds0/src/updatecheckerdata.h
Examining data/smplayer-20.6.0~ds0/src/sharewidget.h
Examining data/smplayer-20.6.0~ds0/src/videoequalizer.h
Examining data/smplayer-20.6.0~ds0/src/myactiongroup.h
Examining data/smplayer-20.6.0~ds0/src/myprocess.cpp
Examining data/smplayer-20.6.0~ds0/src/tristatecombo.cpp
Examining data/smplayer-20.6.0~ds0/src/playerprocess.cpp
Examining data/smplayer-20.6.0~ds0/src/toolbareditor.cpp
Examining data/smplayer-20.6.0~ds0/src/filesettingsbase.cpp
Examining data/smplayer-20.6.0~ds0/src/baseguiplus.h
Examining data/smplayer-20.6.0~ds0/src/shortcutgetter.cpp
Examining data/smplayer-20.6.0~ds0/src/sharedialog.h
Examining data/smplayer-20.6.0~ds0/src/prefsubtitles.h
Examining data/smplayer-20.6.0~ds0/src/inputurl.cpp
Examining data/smplayer-20.6.0~ds0/src/version.cpp
Examining data/smplayer-20.6.0~ds0/src/videopreview/videopreviewconfigdialog.h
Examining data/smplayer-20.6.0~ds0/src/videopreview/videopreview.cpp
Examining data/smplayer-20.6.0~ds0/src/videopreview/videopreviewconfigdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/videopreview/main.cpp
Examining data/smplayer-20.6.0~ds0/src/videopreview/videopreview.h
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcuts_linux.cpp
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcutsdialog.h
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcuts_win.cpp
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcuts.cpp
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcuts.h
Examining data/smplayer-20.6.0~ds0/src/globalshortcuts/globalshortcutsdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/about.h
Examining data/smplayer-20.6.0~ds0/src/bookmarkdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/hdpisupport.cpp
Examining data/smplayer-20.6.0~ds0/src/logwindow.h
Examining data/smplayer-20.6.0~ds0/src/infoprovider.h
Examining data/smplayer-20.6.0~ds0/src/hdpisupport.h
Examining data/smplayer-20.6.0~ds0/src/prefinterface.h
Examining data/smplayer-20.6.0~ds0/src/inforeadermpv.cpp
Examining data/smplayer-20.6.0~ds0/src/verticaltext.cpp
Examining data/smplayer-20.6.0~ds0/src/statewidget.cpp
Examining data/smplayer-20.6.0~ds0/src/widgetactions.cpp
Examining data/smplayer-20.6.0~ds0/src/mycombobox.h
Examining data/smplayer-20.6.0~ds0/src/updatecheckerdata.cpp
Examining data/smplayer-20.6.0~ds0/src/tvsettings.h
Examining data/smplayer-20.6.0~ds0/src/mytablewidget.h
Examining data/smplayer-20.6.0~ds0/src/preferencesdialog.h
Examining data/smplayer-20.6.0~ds0/src/smplayer.cpp
Examining data/smplayer-20.6.0~ds0/src/extensions.h
Examining data/smplayer-20.6.0~ds0/src/titletracks.cpp
Examining data/smplayer-20.6.0~ds0/src/playerprocess.h
Examining data/smplayer-20.6.0~ds0/src/deviceinfo.h
Examining data/smplayer-20.6.0~ds0/src/mediadata.h
Examining data/smplayer-20.6.0~ds0/src/inforeader.h
Examining data/smplayer-20.6.0~ds0/src/sharewidget.cpp
Examining data/smplayer-20.6.0~ds0/src/myaction.h
Examining data/smplayer-20.6.0~ds0/src/inputbookmark.h
Examining data/smplayer-20.6.0~ds0/src/prefperformance.cpp
Examining data/smplayer-20.6.0~ds0/src/guiconfig.h
Examining data/smplayer-20.6.0~ds0/src/colorutils.cpp
Examining data/smplayer-20.6.0~ds0/src/prefadvanced.cpp
Examining data/smplayer-20.6.0~ds0/src/inputbookmark.cpp
Examining data/smplayer-20.6.0~ds0/src/reminderdialog.h
Examining data/smplayer-20.6.0~ds0/src/desktopinfo.cpp
Examining data/smplayer-20.6.0~ds0/src/infofile.h
Examining data/smplayer-20.6.0~ds0/src/deviceinfo_pulse.cpp
Examining data/smplayer-20.6.0~ds0/src/infowindow.cpp
Examining data/smplayer-20.6.0~ds0/src/filehash.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayerprocess.cpp
Examining data/smplayer-20.6.0~ds0/src/myscroller.cpp
Examining data/smplayer-20.6.0~ds0/src/fontcache.cpp
Examining data/smplayer-20.6.0~ds0/src/favoriteeditor.cpp
Examining data/smplayer-20.6.0~ds0/src/cleanconfig.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayerversion.h
Examining data/smplayer-20.6.0~ds0/src/subtracks.cpp
Examining data/smplayer-20.6.0~ds0/src/tristatecombo.h
Examining data/smplayer-20.6.0~ds0/src/editabletoolbar.cpp
Examining data/smplayer-20.6.0~ds0/src/discname.cpp
Examining data/smplayer-20.6.0~ds0/src/filepropertiesdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/playerid.cpp
Examining data/smplayer-20.6.0~ds0/src/actionseditor.cpp
Examining data/smplayer-20.6.0~ds0/src/favoriteeditor.h
Examining data/smplayer-20.6.0~ds0/src/filedialog.h
Examining data/smplayer-20.6.0~ds0/src/infowindow.h
Examining data/smplayer-20.6.0~ds0/src/main.cpp
Examining data/smplayer-20.6.0~ds0/src/desktopinfo.h
Examining data/smplayer-20.6.0~ds0/src/infoprovider.cpp
Examining data/smplayer-20.6.0~ds0/src/myapplication.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/fixsubs.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/subchooserdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/subchooserdialog.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaFault.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcServer.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcServerConnection.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcClient.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaObject.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcClient.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaFault.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcServer.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaXmlRpcServerConnection.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/maia/maiaObject.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/osclient.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitlesconfigdialog.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/osclient.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/osparser.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/osparser.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/fixsubs.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitlesconfigdialog.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/main.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/filedownloader/filedownloader.cpp
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/filedownloader/filedownloader.h
Examining data/smplayer-20.6.0~ds0/src/findsubtitles/filedownloader/main.cpp
Examining data/smplayer-20.6.0~ds0/src/toolbareditor.h
Examining data/smplayer-20.6.0~ds0/src/mylineedit.h
Examining data/smplayer-20.6.0~ds0/src/playlistdock.h
Examining data/smplayer-20.6.0~ds0/src/urlhistory.h
Examining data/smplayer-20.6.0~ds0/src/myapplication.h
Examining data/smplayer-20.6.0~ds0/src/titletracks.h
Examining data/smplayer-20.6.0~ds0/src/translator.cpp
Examining data/smplayer-20.6.0~ds0/src/prefsubtitles.cpp
Examining data/smplayer-20.6.0~ds0/src/filechooser.h
Examining data/smplayer-20.6.0~ds0/src/filechooser.cpp
Examining data/smplayer-20.6.0~ds0/src/constants.h
Examining data/smplayer-20.6.0~ds0/src/languages.cpp
Examining data/smplayer-20.6.0~ds0/src/prefupdates.h
Examining data/smplayer-20.6.0~ds0/src/updatechecker.h
Examining data/smplayer-20.6.0~ds0/src/tvlist.h
Examining data/smplayer-20.6.0~ds0/src/helper.h
Examining data/smplayer-20.6.0~ds0/src/selectcolorbutton.h
Examining data/smplayer-20.6.0~ds0/src/inforeadermpv.h
Examining data/smplayer-20.6.0~ds0/src/prefwidget.h
Examining data/smplayer-20.6.0~ds0/src/prefassociations.cpp
Examining data/smplayer-20.6.0~ds0/src/mplayerprocess.h
Examining data/smplayer-20.6.0~ds0/src/prefadvanced.h
Examining data/smplayer-20.6.0~ds0/src/inforeadermplayer.h
Examining data/smplayer-20.6.0~ds0/src/mediadata.cpp
Examining data/smplayer-20.6.0~ds0/src/logwindow.cpp
Examining data/smplayer-20.6.0~ds0/src/inputdvddirectory.h
Examining data/smplayer-20.6.0~ds0/src/filesettingsbase.h
Examining data/smplayer-20.6.0~ds0/src/youtube/codedownloader.cpp
Examining data/smplayer-20.6.0~ds0/src/youtube/codedownloader.h
Examining data/smplayer-20.6.0~ds0/src/youtube/loadpage.h
Examining data/smplayer-20.6.0~ds0/src/youtube/loadpage.cpp
Examining data/smplayer-20.6.0~ds0/src/youtube/retrieveyoutubeurl.h
Examining data/smplayer-20.6.0~ds0/src/youtube/retrieveyoutubeurl.cpp
Examining data/smplayer-20.6.0~ds0/src/actionseditor.h
Examining data/smplayer-20.6.0~ds0/src/autohidewidget.h
Examining data/smplayer-20.6.0~ds0/src/screensaver.h
Examining data/smplayer-20.6.0~ds0/src/filedialog.cpp
Examining data/smplayer-20.6.0~ds0/src/sharedata.h
Examining data/smplayer-20.6.0~ds0/src/paths.h
Examining data/smplayer-20.6.0~ds0/src/baseguiplus.cpp
Examining data/smplayer-20.6.0~ds0/src/links.h
Examining data/smplayer-20.6.0~ds0/src/basegui.cpp
Examining data/smplayer-20.6.0~ds0/dxlist/main.cpp

FINAL RESULTS:

data/smplayer-20.6.0~ds0/src/colorutils.cpp:51:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return s.sprintf("0x%02x%02x%02x", c.blue(), c.green(), c.red() );
data/smplayer-20.6.0~ds0/src/colorutils.cpp:56:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return s.sprintf("%02x%02x%02x%02x", c.red(), c.green(), c.blue(), c.alpha());
data/smplayer-20.6.0~ds0/src/colorutils.cpp:61:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return s.sprintf("%02x%02x%02x", c.red(), c.green(), c.blue());
data/smplayer-20.6.0~ds0/src/colorutils.cpp:66:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return s.sprintf("%02x%02x%02x%02x", 255 - c.alpha(), c.blue(), c.green(), c.red() );
data/smplayer-20.6.0~ds0/src/colorutils.cpp:71:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return s.sprintf("%02x%02x%02x%02x", c.alpha(), c.red(), c.green(), c.blue());
data/smplayer-20.6.0~ds0/src/paths.cpp:107:21:  [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.
		locale = QLocale::system().name();
data/smplayer-20.6.0~ds0/src/preferences.cpp:279:31:  [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.
	enca_lang = QString(QLocale::system().name()).section("_",0,0);
data/smplayer-20.6.0~ds0/src/qrcode/qrcodelabel.cpp:51:2:  [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(str, str_utf8.data());
data/smplayer-20.6.0~ds0/src/translator.cpp:48:27:  [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.
        locale = QLocale::system().name();
data/smplayer-20.6.0~ds0/webserver/mongoose.c:516:27:  [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, 1, 2)))
data/smplayer-20.6.0~ds0/webserver/mongoose.c:639:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(cs_log_file, fmt, ap);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1664:10:  [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.
  return vsnprintf(buf, buf_size, fmt, ap);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1911: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(ret, src);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2004:9:  [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.
  len = vsnprintf(*buf, size, fmt, ap_copy);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2023:13:  [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.
      len = vsnprintf(*buf, size - 1, fmt, ap_copy);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2039:13:  [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.
      len = vsnprintf(*buf, len + 1, fmt, ap_copy);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6778:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  result = sscanf(p, "bytes=%" INT64_FMT "-%" INT64_FMT, a, b);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7114:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(buf, fmt, user, pass) == 0) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7289:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(buf, "%[^:]:%[^:]:%s", f_user, f_domain, f_ha1) == 3 &&
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8657:7:  [4] (shell) execle:
  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.
      execle(cmd, cmd, (char *) 0, envp); /* (char *) 0 to squash warning */
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8659:7:  [4] (shell) execle:
  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.
      execle(interp, interp, cmd, (char *) 0, envp);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8688:9:  [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.
    n = vsnprintf(added, (size_t) space, fmt, ap);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9036:20:  [4] (shell) popen:
  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.
  } else if ((fp = popen(cmd, "r")) == NULL) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11537:26:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    for (p = line + len; sscanf(p, "%s%n", alias, &len) == 1; p += len) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12795:9:  [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.
  len = vsnprintf(*strp, BUFSIZ, fmt, ap);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12805: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.
    len = vsnprintf(*strp, len + 1, fmt, ap);
data/smplayer-20.6.0~ds0/webserver/mongoose.h:234:9:  [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
data/smplayer-20.6.0~ds0/webserver/mongoose.h:234:18:  [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
data/smplayer-20.6.0~ds0/webserver/mongoose.h:235:9:  [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/smplayer-20.6.0~ds0/webserver/mongoose.h:238:9:  [4] (shell) popen:
  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.
#define popen(x, y) _popen((x), (y))
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1352:9:  [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
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1352:18:  [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
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1354:9:  [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/smplayer-20.6.0~ds0/webserver/mongoose.h:3873:23:  [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/smplayer-20.6.0~ds0/src/paths.cpp:141:34:  [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.
		const char * XDG_CONFIG_HOME = getenv("XDG_CONFIG_HOME");
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8706:12:  [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.
  if ((s = getenv(name)) != NULL) mg_addenv(blk, "%s=%s", name, s);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8725:12:  [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.
  if ((s = getenv("SERVER_NAME")) != NULL) {
data/smplayer-20.6.0~ds0/src/actionseditor.cpp:536: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).
	if ( f.open( QIODevice::WriteOnly ) ) {
data/smplayer-20.6.0~ds0/src/actionseditor.cpp:572: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).
	if ( f.open( QIODevice::ReadOnly ) ) {
data/smplayer-20.6.0~ds0/src/assstyles.cpp:100: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).
	if (f.open(QFile::WriteOnly)) {
data/smplayer-20.6.0~ds0/src/basegui.cpp:302:4:  [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(arg);
data/smplayer-20.6.0~ds0/src/basegui.cpp:456: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).
	connect(tvlist, SIGNAL(activated(QString)), this, SLOT(open(QString)));
data/smplayer-20.6.0~ds0/src/basegui.cpp:473:60:  [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(radiolist, SIGNAL(activated(QString)), this, SLOT(open(QString)));
data/smplayer-20.6.0~ds0/src/basegui.cpp:2484: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).
            core, SLOT(open(const QString &, int)));
data/smplayer-20.6.0~ds0/src/basegui.cpp:3528: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::WriteOnly ) ) {
data/smplayer-20.6.0~ds0/src/basegui.cpp:4082:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				open( file );
data/smplayer-20.6.0~ds0/src/basegui.cpp:4085:4:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			open( file );
data/smplayer-20.6.0~ds0/src/basegui.cpp:4091:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void BaseGui::open(QString file) {
data/smplayer-20.6.0~ds0/src/basegui.cpp:4123: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).
			core->open(file);
data/smplayer-20.6.0~ds0/src/basegui.cpp:4144: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(files[0]);
data/smplayer-20.6.0~ds0/src/basegui.cpp:4147:4:  [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(files[0]);
data/smplayer-20.6.0~ds0/src/basegui.cpp:4153:4:  [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(files[0]);
data/smplayer-20.6.0~ds0/src/basegui.cpp:4288: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).
				core->open(file);
data/smplayer-20.6.0~ds0/src/basegui.cpp:4447: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).
		core->open(directory);
data/smplayer-20.6.0~ds0/src/basegui.cpp:5231: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).
		if (!file_list.isEmpty()) open(file_list[0]);
data/smplayer-20.6.0~ds0/src/basegui.cpp:5683: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).
	file.open(QFile::ReadOnly);
data/smplayer-20.6.0~ds0/src/basegui.cpp:5751: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).
		if (file.exists() && file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/basegui.h:108: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).
	virtual void open(QString file); // Generic open, autodetect type.
data/smplayer-20.6.0~ds0/src/core.cpp:458: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).
void Core::open(QString file, int seek) {
data/smplayer-20.6.0~ds0/src/core.h:73: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).
	void open(QString file, int seek=-1); 
data/smplayer-20.6.0~ds0/src/favorites.cpp:271:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( f.open( QIODevice::WriteOnly ) ) {
data/smplayer-20.6.0~ds0/src/favorites.cpp:295: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).
	if ( f.open( QIODevice::ReadOnly ) ) {
data/smplayer-20.6.0~ds0/src/filehash.cpp:33: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).
	file.open(QIODevice::ReadOnly);
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:582: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).
		file.open(QIODevice::WriteOnly);
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:611: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 out[CHUNK_SIZE];
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:662:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (file.open()) {
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:711:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!zip.open(QuaZip::mdUnzip)) {
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:795: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 (!file.open(QIODevice::ReadOnly)) {
data/smplayer-20.6.0~ds0/src/findsubtitles/findsubtitleswindow.cpp:800: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).
	if (out.open(QIODevice::WriteOnly)) {
data/smplayer-20.6.0~ds0/src/findsubtitles/fixsubs.cpp:26: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 (!file.open(QIODevice::ReadOnly)) {
data/smplayer-20.6.0~ds0/src/findsubtitles/fixsubs.cpp:42: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 (!file.open(QIODevice::WriteOnly)) {
data/smplayer-20.6.0~ds0/src/images.cpp:174: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).
		file.open(QFile::ReadOnly | QFile::Text);
data/smplayer-20.6.0~ds0/src/infofile.cpp:339: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 (file.exists() && file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/languages/main.cpp:8: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 (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/smplayer-20.6.0~ds0/src/logwindow.cpp:125: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 ( file.open( QIODevice::WriteOnly ) ) {
data/smplayer-20.6.0~ds0/src/main.cpp:30:2:  [2] (buffer) wchar_t:
  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.
	wchar_t my_path[_MAX_PATH+1];
data/smplayer-20.6.0~ds0/src/mpris2/mediaplayer2player.cpp:127: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).
	m_core->open(uri);
data/smplayer-20.6.0~ds0/src/myprocess.cpp:41: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).
	temp_file.open(); // Create temporary file
data/smplayer-20.6.0~ds0/src/myprocess.cpp:90: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).
	bool r = temp_file.open();
data/smplayer-20.6.0~ds0/src/old/images.cpp:161: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).
		file.open(QFile::ReadOnly | QFile::Text);
data/smplayer-20.6.0~ds0/src/playlist.cpp:981: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).
	if ( f.open( QIODevice::ReadOnly ) ) {
data/smplayer-20.6.0~ds0/src/playlist.cpp:1120: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).
	if (!f.open(QIODevice::ReadOnly)) {
data/smplayer-20.6.0~ds0/src/playlist.cpp:1220: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).
	if ( f.open( QIODevice::WriteOnly ) ) {
data/smplayer-20.6.0~ds0/src/playlist.cpp:1326: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).
	if (f.open( QIODevice::WriteOnly)) {
data/smplayer-20.6.0~ds0/src/playlist.cpp:2481: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).
	tf.open();
data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.c:776: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, data, len * sizeof(buf[0]));
data/smplayer-20.6.0~ds0/src/qrcode/qrcodelabel.cpp:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[str_utf8.size() + 1];
data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlocalpeer.cpp:108: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).
    lockFile.open(QIODevice::ReadWrite);
data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile.cpp:123: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 QtLockedFile::open(OpenMode mode)
data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile.cpp:129: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(mode);
data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlockedfile.h:76:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(OpenMode mode);
data/smplayer-20.6.0~ds0/src/smplayer.cpp:541: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).
		if (i.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/smplayer.cpp:562: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 (infile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/smplayer.cpp:570: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 (outfile.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/smplayer.cpp:729: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).
				output_log.open(QIODevice::WriteOnly);
data/smplayer-20.6.0~ds0/src/subreader.cpp:50:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (file.open(QIODevice::ReadOnly)) {
data/smplayer-20.6.0~ds0/src/subreader.cpp:157: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 (!file.open(QIODevice::WriteOnly)) {
data/smplayer-20.6.0~ds0/src/tvlist.cpp:58: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).
	if (!f.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/smplayer-20.6.0~ds0/src/updatechecker.cpp:101: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).
	tf.open();
data/smplayer-20.6.0~ds0/src/youtube/codedownloader.cpp:119: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 (!file.open(QIODevice::WriteOnly))  {
data/smplayer-20.6.0~ds0/src/youtube/retrieveyoutubeurl.cpp:271: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).
	if (f.open(QIODevice::WriteOnly)) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:66: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 message[MG_CTL_MSG_MESSAGE_SIZE];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:347: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.
  static const unsigned char tab[128] = {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:611: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 prefix[21];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:691: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 d_name[MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:694: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 d_name[256];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:736:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wpath[MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:747:14:  [2] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant string.
      (void) wcscat(wpath, L"\\*");
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1089:7:  [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, buf, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1092: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(p, buf, t);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1100: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(ctx->in, buf, 64);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1107: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(ctx->in, buf, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1110:28:  [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.
void cs_md5_final(unsigned char digest[16], cs_md5_ctx *ctx) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1136: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(digest, ctx->buf, 16);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1160:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char c[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1203:58:  [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.
void cs_sha1_transform(uint32_t state[5], const unsigned char buffer[64]) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1207: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(block, buffer, 64);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1327: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(&context->buffer[j], data, (i = 64 - j));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1335: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(&context->buffer[j], &data[i], len - i);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1338: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.
void cs_sha1_final(unsigned char digest[20], cs_sha1_ctx *context) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1340:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char finalcount[8], c;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1362:34:  [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.
void cs_hmac_sha1(const unsigned char *key, size_t keylen,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1363:34:  [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.
                  const unsigned char *data, size_t datalen,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1364:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  unsigned char out[20]) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1366:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf1[64], buf2[64], tmp_key[20], i;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1378: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(buf1, key, keylen);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1379: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(buf2, key, keylen);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1469:7:  [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(a->buf + off, buf, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1477:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      if (buf != NULL) memcpy(a->buf + off, buf, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1557:7:  [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(sc, s.p, s.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1669: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[40];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1859: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 buf[MAX_PATH * 2], buf2[MAX_PATH * 2], *p;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1869:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  ret = MultiByteToWideChar(CP_UTF8, 0, buf, -1, wbuf, (int) wbuf_len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2178: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(dst, src, sizeof(*dst));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2413: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 mem[MG_VPRINTF_BUFFER_SIZE], *buf = mem;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2450: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(&h, &p->ai_addr, sizeof(struct sockaddr_in *));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2460: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(ina, he->h_addr_list[0], sizeof(*ina));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2534: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 buf[100];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2845: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 host[MG_MAX_HOST_LEN];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2955: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 host[MG_MAX_HOST_LEN];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:3046: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(ctl_msg.message, data, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:3974: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(sa, &nc->sa, sizeof(*sa));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4051:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char buf[10] = {MG_SOCKS_VERSION, MG_SOCKS_CMD_CONNECT, 0,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4063:7:  [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 + 4, &d->c->sa.sin.sin_addr, 4);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4064:7:  [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 + 8, &d->c->sa.sin.sin_port, 2);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4550: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(identity, ctx->psk.buf, ctx->identity_len + 1);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4551: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(psk, ctx->psk.buf + ctx->identity_len + 1, key_len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4559:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char key[32];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5013: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 tmp[50];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5041:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char key[32];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5317: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 port_str[20];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5318:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int port_str_len = sprintf(port_str, ":%u", port);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5815:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    hm->resp_code = atoi(s);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5863: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 buf[MG_MAX_HTTP_SEND_MBUF];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6238:7:  [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 addr[32];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6265: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 boundary_buf[100];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6711: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 bbody[100], *pbody = bbody;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6715: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 bhead[150], *phead = bhead;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6776: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, header->p, header->len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6803: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 etag[50], current_time[50], last_modified[50], range[70];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6970: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 chunk_size[50];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6980: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 mem[MG_VPRINTF_BUFFER_SIZE], *buf = mem;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7000: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 mem[MG_VPRINTF_BUFFER_SIZE], *buf = mem;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7103: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 fmt[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7158: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.
void cs_md5(char buf[33], ...) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7159:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hash[16];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7184: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 ha2[33];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7197: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 ha1[33], resp[33], cnonce[40];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7229: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 username_buf[50], cnonce_buf[64], response_buf[40], uri_buf[200],
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7280: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 buf[128], f_user[sizeof(buf)], f_ha1[sizeof(buf)], f_domain[sizeof(buf)];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7281: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 expected_response[33];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7310: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 buf[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7371: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 size[64], mod[64], path[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7409: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 path[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7534: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 local_port[20] = {'%'};
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7589: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 burl[256], *purl = burl;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7747: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(p, root.p, root.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7788:11:  [2] (buffer) wchar_t:
  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.
          wchar_t buf[MG_MAX_PATH * 2];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7850: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 month_str[32];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7875: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 etag[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8112:7:  [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(fus->lfn, lfn.p, lfn.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8221: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 conn_addr_buf[2];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8479: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 buf[MG_CGI_ENVIRONMENT_SIZE];       /* Environment buffer */
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8480: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.
  const char *vars[MG_MAX_CGI_ENVIR_VARS]; /* char *envp[] */
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8502: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 buf[BUFSIZ];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8521: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 buf[BUFSIZ];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8549:3:  [2] (buffer) wchar_t:
  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.
  wchar_t buf[MG_MAX_PATH], buf2[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8561:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wcmd[MG_MAX_PATH], full_dir[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8562: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 buf[MG_MAX_PATH], buf2[MG_MAX_PATH], buf5[MG_MAX_PATH],
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8633: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 buf[500];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8719: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 buf[100];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8892: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 dir[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8975: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 buf[BUFSIZ];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8985: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 file_name[MG_MAX_PATH], path[MG_MAX_PATH], *p;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9031: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 cmd[BUFSIZ];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9058: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 buf[BUFSIZ], *p = buf + btag.len; /* p points to SSI directive */
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9201: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 mtime[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9240: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 uri[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9307: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 path[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9342:7:  [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[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9379:7:  [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[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9679:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char header[10];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9689: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(&header[2], &tmp, sizeof(tmp));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9695: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(&header[2], &tmp, sizeof(tmp));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9697: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(&header[6], &tmp, sizeof(tmp));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9760: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 mem[MG_VPRINTF_BUFFER_SIZE], *buf = mem;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9824:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char sha[20];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9825: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 b64_sha[30];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9868: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 key[25];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9977:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wpath[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9988:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wpath[MG_MAX_PATH], wmode[10];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9993:10:  [2] (misc) fopen:
  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 fopen(path, mode);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9999:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wpath[MG_MAX_PATH];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10003: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).
  return open(path, flag, mode); /* LCOV_EXCL_LINE */
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10132: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 ascii[17] = "";
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10160: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[80];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10174: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 src[60], dst[60];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10862:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy((char *) te->topic, topic.p, topic.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10884: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[100], *p = buf;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11002:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, rr->rdata.p, data_len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11009:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, rr->rdata.p, data_len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11163:20:  [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.
    if (((unsigned char *) data)[0] & 0xc0) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11280: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(dst, data, chunk_len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11380: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 rname[512];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11425: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[1024];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11450:3:  [2] (buffer) wchar_t:
  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.
  wchar_t subkey[512], value[128],
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11493: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 line[512];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11520: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 line[1024];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11522: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 alias[256];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11618: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 addr[32];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11644: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 dns_server_buff[17], nameserver_url[26];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12185: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(ptr, cm->token.p, cm->token.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12207:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ptr, opt->value.p, opt->value.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12218: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(ptr, cm->payload.p, cm->payload.len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12387: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[40], &sec, sizeof(sec));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12488: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 url[100], *p_url = url;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12621:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char reply[2] = {MG_SOCKS_VERSION, MG_SOCKS_HANDSHAKE_FAILURE};
data/smplayer-20.6.0~ds0/webserver/mongoose.c:12684: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 addr[300];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:13285: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).
int open(const char *pathname, unsigned flags, int mode) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:13475:34:  [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.
          const char c = ((const char *) buf)[i];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:13628: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 a[16];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14160:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if (remote) memcpy(sa, &nc->sa, sizeof(*sa));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14296:8:  [2] (misc) fopen:
  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).
  pf = fopen(pem_file, "r");
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14301:8:  [2] (misc) fopen:
  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).
  df = fopen(der_file, "w");
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14304: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 pem_buf[70];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14305: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 der_buf[48];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14533: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((dst)->sin6.sin6_addr.s6_addr, (src)->ip6.addr, \
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15097: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->payload, data, len);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15220:7:  [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(sa, &nc->sa, sizeof(*sa));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15228:7:  [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(sa, &nc->sa, sizeof(*sa));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15729: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 buf[10];
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15734: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).
int open(const char *filename, int oflag, int pmode) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15898: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(&nc->sa, sa, sizeof(*sa));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:15938: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 addr[17];
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1486: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).
int open(const char *filename, int oflag, int pmode);
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1760:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char in[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1798:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[64];
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1803: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.
void cs_sha1_final(unsigned char digest[20], cs_sha1_ctx *);
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1804:34:  [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.
void cs_hmac_sha1(const unsigned char *key, size_t key_len,
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1805:34:  [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.
                  const unsigned char *text, size_t text_len,
data/smplayer-20.6.0~ds0/webserver/mongoose.h:1806:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  unsigned char out[20]);
data/smplayer-20.6.0~ds0/webserver/mongoose.h:2045:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char chunk[3];
data/smplayer-20.6.0~ds0/src/helper.cpp:52:14:  [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.
	static void usleep(unsigned long usecs) {QThread::usleep(usecs);}
data/smplayer-20.6.0~ds0/src/helper.cpp:52:52:  [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.
	static void usleep(unsigned long usecs) {QThread::usleep(usecs);}
data/smplayer-20.6.0~ds0/src/helper.cpp:155:2:  [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(ms*1000);
data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.c:133:19:  [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).
	size_t textLen = strlen(text);
data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.c:786:15:  [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).
	size_t len = strlen(digits);
data/smplayer-20.6.0~ds0/src/qrcode/qrcodegen.c:820:15:  [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).
	size_t len = strlen(text);
data/smplayer-20.6.0~ds0/src/qtsingleapplication/qtlocalpeer.cpp:167:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            res &= (socket.read(qstrlen(ack)) == ack);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:601:28:  [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).
    s_filter_pattern_len = strlen(pattern);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:620:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(prefix, func, 20);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1521:28:  [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 (s != NULL) ret.len = strlen(s);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1533:15:  [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).
  size_t n2 = strlen(str2), n1 = str1->len;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1543:15:  [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).
  size_t n2 = strlen(str2), n1 = str1->len;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1861:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, path, sizeof(buf));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1865: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).
  p = buf + strlen(buf) - 1;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1889:24:  [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).
  size_t find_length = strlen(find);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:1908:16:  [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).
  size_t len = strlen(src) + 1;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2143:28:  [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 (str != NULL) s.len = strlen(str);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:2567:14:  [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).
  } else if (strlen(str) < host_len &&
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4564: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).
  key_len = strlen(key_str);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4584:23:  [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).
  ctx->identity_len = strlen(identity);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:4648:41:  [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).
  LOG(cs_level, ("%p %.*s", ctx, (int) (strlen(str) - 1), str));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5016:40:  [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).
      l = (e != NULL ? (e - s) : (int) strlen(s));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5017:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp, s, l);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5045: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).
  key_len = strlen(key_str);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5069:28:  [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).
                           strlen(identity)) != 0) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5695:14:  [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).
  path_len = strlen(path);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5710:15:  [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).
      r.len = strlen(r.p);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5716:11:  [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).
  r.len = strlen(r.p);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:5849:19:  [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).
  size_t i, len = strlen(name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6304: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).
    pd->mp_stream.boundary_len = strlen(boundary);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6745:26:  [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).
  mg_send_head(nc, code, strlen(reason),
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6747:23:  [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).
  mg_send(nc, reason, strlen(reason));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6884: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).
  if (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) > 0) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:6943:16:  [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).
    name_len = strlen(name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7029:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int ch = ' ', ch1 = ',', n = strlen(var_name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7136:45:  [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).
         (p1 != NULL && mg_match_prefix(p1, strlen(p1), path) == strlen(p1)) ||
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7136:66:  [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).
         (p1 != NULL && mg_match_prefix(p1, strlen(p1), path) == strlen(p1)) ||
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7137:45:  [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).
         (p2 != NULL && mg_match_prefix(p2, strlen(p2), path) > 0);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7200:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  cs_md5(ha1, user, (size_t) strlen(user), colon, one, auth_domain,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7201:19:  [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).
         (size_t) strlen(auth_domain), colon, one, passwd,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7202:19:  [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).
         (size_t) strlen(passwd), NULL);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7203:24:  [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).
  mg_mkmd5resp(method, strlen(method), uri, strlen(uri), ha1, sizeof(ha1) - 1,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7203:45:  [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).
  mg_mkmd5resp(method, strlen(method), uri, strlen(uri), ha1, sizeof(ha1) - 1,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7204:23:  [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).
               nonce, strlen(nonce), "1", one, cnonce, strlen(cnonce), qop,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7204:56:  [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).
               nonce, strlen(nonce), "1", one, cnonce, strlen(cnonce), qop,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7293:65:  [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).
      mg_mkmd5resp(method.p, method.len, uri.p, uri.len, f_ha1, strlen(f_ha1),
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7500: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).
  size_t path_len = strlen(path);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7726:20:  [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).
        root.len = strlen(opts->dav_document_root);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7731:20:  [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).
        root.len = strlen(opts->document_root);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7854:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (((sscanf(datetime, "%d/%3s/%d %d:%d:%d", &day, month_str, &year, &hour,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7856:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
       (sscanf(datetime, "%d %3s %d %d:%d:%d", &day, month_str, &year, &hour,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7858:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
       (sscanf(datetime, "%*3s, %d %3s %d %d:%d:%d", &day, month_str, &year,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7860:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
       (sscanf(datetime, "%d-%3s-%d %d:%d:%d", &day, month_str, &year, &hour,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:7929:48:  [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).
      (mg_match_prefix(opts->cgi_file_pattern, strlen(opts->cgi_file_pattern),
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8304:46:  [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) (path.p - host.p), host.p, strlen(post_data), (int) auth.len,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8552:41:  [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).
  WideCharToMultiByte(CP_UTF8, 0, buf2, wcslen(buf2) + 1, abs_path, len, 0, 0);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:8666:18:  [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).
    send(1, buf, strlen(buf), 0);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9008: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).
    snprintf(path + strlen(path), sizeof(path) - strlen(path), "%s", file_name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9008:50:  [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).
    snprintf(path + strlen(path), sizeof(path) - strlen(path), "%s", file_name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9019:44:  [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 (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) >
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9067:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((ch = fgetc(fp)) != EOF) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:9484:11:  [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).
    len = strlen((const char *) data);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10092:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, inet_ntoa(sa->sin.sin_addr), len - 1);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10105: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).
      int buf_len = strlen(buf);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10113:10:  [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).
  return strlen(buf);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10255:35:  [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).
  mbuf_append(buf, header_prefix, strlen(header_prefix));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10263:35:  [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).
  mbuf_append(buf, header_suffix, strlen(header_suffix));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10578:10:  [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).
  hlen = strlen(client_id);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10585:12:  [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).
    hlen = strlen(opts.will_topic);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10591:12:  [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).
    hlen = strlen(opts.will_message);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10599:12:  [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).
    hlen = strlen(opts.user_name);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10606:12:  [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).
    hlen = strlen(opts.password);
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10625:41:  [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).
  uint16_t topic_len = htons((uint16_t) strlen(topic));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10629:22:  [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).
  mg_send(nc, topic, strlen(topic));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10649:45:  [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).
    uint16_t topic_len_n = htons((uint16_t) strlen(topics[i].topic));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10651: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).
    mg_send(nc, topics[i].topic, strlen(topics[i].topic));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10683:45:  [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).
    uint16_t topic_len_n = htons((uint16_t) strlen(topics[i]));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:10685:28:  [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).
    mg_send(nc, topics[i], strlen(topics[i]));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11138:44:  [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 (mg_dns_encode_record(&pkt, rr, name, strlen(name), NULL, 0) == -1) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11397:50:  [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 (mg_dns_encode_record(reply->io, ans, name, strlen(name), rdata,
data/smplayer-20.6.0~ds0/webserver/mongoose.c:11658:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(req->name, name, sizeof(req->name));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:13421:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int read(int fd, char *buf, unsigned count) {
data/smplayer-20.6.0~ds0/webserver/mongoose.c:13576:11:  [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).
  return (strlen(path) == 1 && *path == '.') ? 0 : ENOTDIR;
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14386:29:  [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).
                            strlen(ssl_cert));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14390:29:  [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).
                            strlen(ssl_key));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14405:31:  [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).
                              strlen(ssl_ca_cert));
data/smplayer-20.6.0~ds0/webserver/mongoose.c:14417:49:  [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).
                          ctx->ssl_server_name, strlen(ctx->ssl_server_name));
data/smplayer-20.6.0~ds0/webserver/mongoose.h:3414:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define MG_RECV_FUNC(s, b, l, f) read(s, b, l)

ANALYSIS SUMMARY:

Hits = 350
Lines analyzed = 95219 in approximately 2.31 seconds (41285 lines/second)
Physical Source Lines of Code (SLOC) = 65242
Hits@level = [0] 112 [1]  88 [2] 225 [3]   3 [4]  34 [5]   0
Hits@level+ = [0+] 462 [1+] 350 [2+] 262 [3+]  37 [4+]  34 [5+]   0
Hits/KSLOC@level+ = [0+] 7.08133 [1+] 5.36464 [2+] 4.01582 [3+] 0.567119 [4+] 0.521137 [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.