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/filezilla-3.51.0/src/fzshellext/resource.h
Examining data/filezilla-3.51.0/src/fzshellext/shellext.cpp
Examining data/filezilla-3.51.0/src/fzshellext/shellext.h
Examining data/filezilla-3.51.0/src/include/commands.h
Examining data/filezilla-3.51.0/src/include/directorylisting.h
Examining data/filezilla-3.51.0/src/include/engine_context.h
Examining data/filezilla-3.51.0/src/include/engine_options.h
Examining data/filezilla-3.51.0/src/include/externalipresolver.h
Examining data/filezilla-3.51.0/src/include/FileZillaEngine.h
Examining data/filezilla-3.51.0/src/include/httpheaders.h
Examining data/filezilla-3.51.0/src/include/libfilezilla_engine.h
Examining data/filezilla-3.51.0/src/include/local_path.h
Examining data/filezilla-3.51.0/src/include/logging.h
Examining data/filezilla-3.51.0/src/include/misc.h
Examining data/filezilla-3.51.0/src/include/notification.h
Examining data/filezilla-3.51.0/src/include/optionsbase.h
Examining data/filezilla-3.51.0/src/include/s3sse.h
Examining data/filezilla-3.51.0/src/include/server.h
Examining data/filezilla-3.51.0/src/include/serverpath.h
Examining data/filezilla-3.51.0/src/include/setup.h
Examining data/filezilla-3.51.0/src/include/sizeformatting_base.h
Examining data/filezilla-3.51.0/src/include/version.h
Examining data/filezilla-3.51.0/src/include/visibility.h
Examining data/filezilla-3.51.0/src/include/xmlutils.h
Examining data/filezilla-3.51.0/src/include/xml_string_writer.h
Examining data/filezilla-3.51.0/src/engine/ftp/chmod.h
Examining data/filezilla-3.51.0/src/engine/ftp/cwd.h
Examining data/filezilla-3.51.0/src/engine/ftp/delete.h
Examining data/filezilla-3.51.0/src/engine/ftp/filetransfer.h
Examining data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.h
Examining data/filezilla-3.51.0/src/engine/ftp/list.h
Examining data/filezilla-3.51.0/src/engine/ftp/logon.h
Examining data/filezilla-3.51.0/src/engine/ftp/mkd.h
Examining data/filezilla-3.51.0/src/engine/ftp/rename.h
Examining data/filezilla-3.51.0/src/engine/ftp/rawcommand.h
Examining data/filezilla-3.51.0/src/engine/ftp/rawtransfer.h
Examining data/filezilla-3.51.0/src/engine/ftp/rmd.h
Examining data/filezilla-3.51.0/src/engine/ftp/transfersocket.h
Examining data/filezilla-3.51.0/src/engine/ftp/chmod.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/cwd.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/delete.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/filetransfer.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/list.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/logon.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/mkd.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/rawcommand.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/rawtransfer.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/rename.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/rmd.cpp
Examining data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp
Examining data/filezilla-3.51.0/src/engine/http/connect.h
Examining data/filezilla-3.51.0/src/engine/http/digest.h
Examining data/filezilla-3.51.0/src/engine/http/filetransfer.h
Examining data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.h
Examining data/filezilla-3.51.0/src/engine/http/internalconnect.h
Examining data/filezilla-3.51.0/src/engine/http/request.h
Examining data/filezilla-3.51.0/src/engine/http/digest.cpp
Examining data/filezilla-3.51.0/src/engine/http/filetransfer.cpp
Examining data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp
Examining data/filezilla-3.51.0/src/engine/http/internalconnect.cpp
Examining data/filezilla-3.51.0/src/engine/http/request.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/chmod.h
Examining data/filezilla-3.51.0/src/engine/sftp/connect.h
Examining data/filezilla-3.51.0/src/engine/sftp/cwd.h
Examining data/filezilla-3.51.0/src/engine/sftp/delete.h
Examining data/filezilla-3.51.0/src/engine/sftp/event.h
Examining data/filezilla-3.51.0/src/engine/sftp/filetransfer.h
Examining data/filezilla-3.51.0/src/engine/sftp/input_thread.h
Examining data/filezilla-3.51.0/src/engine/sftp/list.h
Examining data/filezilla-3.51.0/src/engine/sftp/mkd.h
Examining data/filezilla-3.51.0/src/engine/sftp/rename.h
Examining data/filezilla-3.51.0/src/engine/sftp/rmd.h
Examining data/filezilla-3.51.0/src/engine/sftp/sftpcontrolsocket.h
Examining data/filezilla-3.51.0/src/engine/sftp/chmod.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/connect.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/cwd.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/delete.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/filetransfer.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/list.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/mkd.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/rename.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/rmd.cpp
Examining data/filezilla-3.51.0/src/engine/sftp/sftpcontrolsocket.cpp
Examining data/filezilla-3.51.0/src/engine/storj/connect.h
Examining data/filezilla-3.51.0/src/engine/storj/delete.h
Examining data/filezilla-3.51.0/src/engine/storj/event.h
Examining data/filezilla-3.51.0/src/engine/storj/file_transfer.h
Examining data/filezilla-3.51.0/src/engine/storj/input_thread.h
Examining data/filezilla-3.51.0/src/engine/storj/list.h
Examining data/filezilla-3.51.0/src/engine/storj/mkd.h
Examining data/filezilla-3.51.0/src/engine/storj/rmd.h
Examining data/filezilla-3.51.0/src/engine/storj/storjcontrolsocket.h
Examining data/filezilla-3.51.0/src/engine/storj/connect.cpp
Examining data/filezilla-3.51.0/src/engine/storj/delete.cpp
Examining data/filezilla-3.51.0/src/engine/storj/file_transfer.cpp
Examining data/filezilla-3.51.0/src/engine/storj/input_thread.cpp
Examining data/filezilla-3.51.0/src/engine/storj/list.cpp
Examining data/filezilla-3.51.0/src/engine/storj/mkd.cpp
Examining data/filezilla-3.51.0/src/engine/storj/rmd.cpp
Examining data/filezilla-3.51.0/src/engine/storj/storjcontrolsocket.cpp
Examining data/filezilla-3.51.0/src/engine/controlsocket.h
Examining data/filezilla-3.51.0/src/engine/directorycache.h
Examining data/filezilla-3.51.0/src/engine/directorylistingparser.h
Examining data/filezilla-3.51.0/src/engine/engineprivate.h
Examining data/filezilla-3.51.0/src/engine/filezilla.h
Examining data/filezilla-3.51.0/src/engine/iothread.h
Examining data/filezilla-3.51.0/src/engine/logging_private.h
Examining data/filezilla-3.51.0/src/engine/lookup.h
Examining data/filezilla-3.51.0/src/engine/oplock_manager.h
Examining data/filezilla-3.51.0/src/engine/pathcache.h
Examining data/filezilla-3.51.0/src/engine/proxy.h
Examining data/filezilla-3.51.0/src/engine/rtt.h
Examining data/filezilla-3.51.0/src/engine/servercapabilities.h
Examining data/filezilla-3.51.0/src/engine/commands.cpp
Examining data/filezilla-3.51.0/src/engine/controlsocket.cpp
Examining data/filezilla-3.51.0/src/engine/directorycache.cpp
Examining data/filezilla-3.51.0/src/engine/directorylisting.cpp
Examining data/filezilla-3.51.0/src/engine/directorylistingparser.cpp
Examining data/filezilla-3.51.0/src/engine/engine_context.cpp
Examining data/filezilla-3.51.0/src/engine/engine_options.cpp
Examining data/filezilla-3.51.0/src/engine/engineprivate.cpp
Examining data/filezilla-3.51.0/src/engine/externalipresolver.cpp
Examining data/filezilla-3.51.0/src/engine/FileZillaEngine.cpp
Examining data/filezilla-3.51.0/src/engine/iothread.cpp
Examining data/filezilla-3.51.0/src/engine/local_path.cpp
Examining data/filezilla-3.51.0/src/engine/logging.cpp
Examining data/filezilla-3.51.0/src/engine/lookup.cpp
Examining data/filezilla-3.51.0/src/engine/misc.cpp
Examining data/filezilla-3.51.0/src/engine/notification.cpp
Examining data/filezilla-3.51.0/src/engine/oplock_manager.cpp
Examining data/filezilla-3.51.0/src/engine/optionsbase.cpp
Examining data/filezilla-3.51.0/src/engine/pathcache.cpp
Examining data/filezilla-3.51.0/src/engine/proxy.cpp
Examining data/filezilla-3.51.0/src/engine/rtt.cpp
Examining data/filezilla-3.51.0/src/engine/server.cpp
Examining data/filezilla-3.51.0/src/engine/servercapabilities.cpp
Examining data/filezilla-3.51.0/src/engine/serverpath.cpp
Examining data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp
Examining data/filezilla-3.51.0/src/engine/version.cpp
Examining data/filezilla-3.51.0/src/engine/xmlutils.cpp
Examining data/filezilla-3.51.0/src/pugixml/pugixml.cpp
Examining data/filezilla-3.51.0/src/pugixml/pugixml.hpp
Examining data/filezilla-3.51.0/src/pugixml/pugiconfig.hpp
Examining data/filezilla-3.51.0/src/dbus/dbushandler.h
Examining data/filezilla-3.51.0/src/dbus/desktop_notification.h
Examining data/filezilla-3.51.0/src/dbus/power_management_inhibitor.h
Examining data/filezilla-3.51.0/src/dbus/session_manager.h
Examining data/filezilla-3.51.0/src/dbus/wxdbusconnection.h
Examining data/filezilla-3.51.0/src/dbus/wxdbusmessage.h
Examining data/filezilla-3.51.0/src/dbus/dbushandler.cpp
Examining data/filezilla-3.51.0/src/dbus/desktop_notification.cpp
Examining data/filezilla-3.51.0/src/dbus/power_management_inhibitor.cpp
Examining data/filezilla-3.51.0/src/dbus/session_manager.cpp
Examining data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp
Examining data/filezilla-3.51.0/src/dbus/wxdbusmessage.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_active.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_ftp.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_passive.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_sftp.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_dateformatting.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_debug.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_edit.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_edit_associations.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_fileexists.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_filelists.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_filetype.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_ftpproxy.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_interface.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_language.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_logging.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_passwords.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_proxy.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_sizeformatting.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_themes.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_transfer.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_updatecheck.h
Examining data/filezilla-3.51.0/src/interface/settings/settingsdialog.h
Examining data/filezilla-3.51.0/src/interface/settings/optionspage.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_active.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_ftp.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_passive.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_connection_sftp.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_dateformatting.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_debug.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_edit.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_edit_associations.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_fileexists.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_filelists.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_filetype.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_ftpproxy.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_interface.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_language.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_logging.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_passwords.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_proxy.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_sizeformatting.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_themes.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_transfer.cpp
Examining data/filezilla-3.51.0/src/interface/settings/optionspage_updatecheck.cpp
Examining data/filezilla-3.51.0/src/interface/settings/settingsdialog.cpp
Examining data/filezilla-3.51.0/src/interface/wxext/spinctrlex.h
Examining data/filezilla-3.51.0/src/interface/wxext/spinctrlex.cpp
Examining data/filezilla-3.51.0/src/interface/aboutdialog.h
Examining data/filezilla-3.51.0/src/interface/asksavepassworddialog.h
Examining data/filezilla-3.51.0/src/interface/asyncrequestqueue.h
Examining data/filezilla-3.51.0/src/interface/aui_notebook_ex.h
Examining data/filezilla-3.51.0/src/interface/auto_ascii_files.h
Examining data/filezilla-3.51.0/src/interface/bookmarks_dialog.h
Examining data/filezilla-3.51.0/src/interface/buildinfo.h
Examining data/filezilla-3.51.0/src/interface/chmoddialog.h
Examining data/filezilla-3.51.0/src/interface/clearprivatedata.h
Examining data/filezilla-3.51.0/src/interface/cmdline.h
Examining data/filezilla-3.51.0/src/interface/commandqueue.h
Examining data/filezilla-3.51.0/src/interface/conditionaldialog.h
Examining data/filezilla-3.51.0/src/interface/context_control.h
Examining data/filezilla-3.51.0/src/interface/customheightlistctrl.h
Examining data/filezilla-3.51.0/src/interface/defaultfileexistsdlg.h
Examining data/filezilla-3.51.0/src/interface/dialogex.h
Examining data/filezilla-3.51.0/src/interface/dndobjects.h
Examining data/filezilla-3.51.0/src/interface/dragdropmanager.h
Examining data/filezilla-3.51.0/src/interface/drop_target_ex.h
Examining data/filezilla-3.51.0/src/interface/edithandler.h
Examining data/filezilla-3.51.0/src/interface/encoding_converter.h
Examining data/filezilla-3.51.0/src/interface/export.h
Examining data/filezilla-3.51.0/src/interface/fileexistsdlg.h
Examining data/filezilla-3.51.0/src/interface/filelistctrl.h
Examining data/filezilla-3.51.0/src/interface/filelist_statusbar.h
Examining data/filezilla-3.51.0/src/interface/filezilla.h
Examining data/filezilla-3.51.0/src/interface/filezillaapp.h
Examining data/filezilla-3.51.0/src/interface/filter.h
Examining data/filezilla-3.51.0/src/interface/filter_conditions_dialog.h
Examining data/filezilla-3.51.0/src/interface/filteredit.h
Examining data/filezilla-3.51.0/src/interface/file_utils.h
Examining data/filezilla-3.51.0/src/interface/fzputtygen_interface.h
Examining data/filezilla-3.51.0/src/interface/graphics.h
Examining data/filezilla-3.51.0/src/interface/import.h
Examining data/filezilla-3.51.0/src/interface/infotext.h
Examining data/filezilla-3.51.0/src/interface/inputdialog.h
Examining data/filezilla-3.51.0/src/interface/ipcmutex.h
Examining data/filezilla-3.51.0/src/interface/led.h
Examining data/filezilla-3.51.0/src/interface/listctrlex.h
Examining data/filezilla-3.51.0/src/interface/listingcomparison.h
Examining data/filezilla-3.51.0/src/interface/list_search_panel.h
Examining data/filezilla-3.51.0/src/interface/local_recursive_operation.h
Examining data/filezilla-3.51.0/src/interface/locale_initializer.h
Examining data/filezilla-3.51.0/src/interface/LocalListView.h
Examining data/filezilla-3.51.0/src/interface/LocalTreeView.h
Examining data/filezilla-3.51.0/src/interface/loginmanager.h
Examining data/filezilla-3.51.0/src/interface/Mainfrm.h
Examining data/filezilla-3.51.0/src/interface/manual_transfer.h
Examining data/filezilla-3.51.0/src/interface/menu_bar.h
Examining data/filezilla-3.51.0/src/interface/msgbox.h
Examining data/filezilla-3.51.0/src/interface/netconfwizard.h
Examining data/filezilla-3.51.0/src/interface/Options.h
Examining data/filezilla-3.51.0/src/interface/option_change_event_handler.h
Examining data/filezilla-3.51.0/src/interface/overlay.h
Examining data/filezilla-3.51.0/src/interface/power_management.h
Examining data/filezilla-3.51.0/src/interface/queue.h
Examining data/filezilla-3.51.0/src/interface/queue_storage.h
Examining data/filezilla-3.51.0/src/interface/QueueView.h
Examining data/filezilla-3.51.0/src/interface/queueview_failed.h
Examining data/filezilla-3.51.0/src/interface/queueview_successful.h
Examining data/filezilla-3.51.0/src/interface/quickconnectbar.h
Examining data/filezilla-3.51.0/src/interface/recentserverlist.h
Examining data/filezilla-3.51.0/src/interface/recursive_operation.h
Examining data/filezilla-3.51.0/src/interface/recursive_operation_status.h
Examining data/filezilla-3.51.0/src/interface/remote_recursive_operation.h
Examining data/filezilla-3.51.0/src/interface/RemoteListView.h
Examining data/filezilla-3.51.0/src/interface/RemoteTreeView.h
Examining data/filezilla-3.51.0/src/interface/search.h
Examining data/filezilla-3.51.0/src/interface/serverdata.h
Examining data/filezilla-3.51.0/src/interface/sftp_crypt_info_dlg.h
Examining data/filezilla-3.51.0/src/interface/sitemanager.h
Examining data/filezilla-3.51.0/src/interface/sitemanager_controls.h
Examining data/filezilla-3.51.0/src/interface/sitemanager_dialog.h
Examining data/filezilla-3.51.0/src/interface/sitemanager_site.h
Examining data/filezilla-3.51.0/src/interface/sizeformatting.h
Examining data/filezilla-3.51.0/src/interface/speedlimits_dialog.h
Examining data/filezilla-3.51.0/src/interface/splitter.h
Examining data/filezilla-3.51.0/src/interface/state.h
Examining data/filezilla-3.51.0/src/interface/statuslinectrl.h
Examining data/filezilla-3.51.0/src/interface/statusbar.h
Examining data/filezilla-3.51.0/src/interface/StatusView.h
Examining data/filezilla-3.51.0/src/interface/systemimagelist.h
Examining data/filezilla-3.51.0/src/interface/textctrlex.h
Examining data/filezilla-3.51.0/src/interface/themeprovider.h
Examining data/filezilla-3.51.0/src/interface/timeformatting.h
Examining data/filezilla-3.51.0/src/interface/toolbar.h
Examining data/filezilla-3.51.0/src/interface/treectrlex.h
Examining data/filezilla-3.51.0/src/interface/updater.h
Examining data/filezilla-3.51.0/src/interface/updater_cert.h
Examining data/filezilla-3.51.0/src/interface/update_dialog.h
Examining data/filezilla-3.51.0/src/interface/verifycertdialog.h
Examining data/filezilla-3.51.0/src/interface/verifyhostkeydialog.h
Examining data/filezilla-3.51.0/src/interface/view.h
Examining data/filezilla-3.51.0/src/interface/viewheader.h
Examining data/filezilla-3.51.0/src/interface/volume_enumerator.h
Examining data/filezilla-3.51.0/src/interface/welcome_dialog.h
Examining data/filezilla-3.51.0/src/interface/window_state_manager.h
Examining data/filezilla-3.51.0/src/interface/wrapengine.h
Examining data/filezilla-3.51.0/src/interface/wxfilesystem_blob_handler.h
Examining data/filezilla-3.51.0/src/interface/xh_text_ex.h
Examining data/filezilla-3.51.0/src/interface/xmlfunctions.h
Examining data/filezilla-3.51.0/src/interface/xrc_helper.h
Examining data/filezilla-3.51.0/src/interface/storj_key_interface.h
Examining data/filezilla-3.51.0/src/interface/osx_sandbox_userdirs.h
Examining data/filezilla-3.51.0/src/interface/aboutdialog.cpp
Examining data/filezilla-3.51.0/src/interface/asksavepassworddialog.cpp
Examining data/filezilla-3.51.0/src/interface/asyncrequestqueue.cpp
Examining data/filezilla-3.51.0/src/interface/aui_notebook_ex.cpp
Examining data/filezilla-3.51.0/src/interface/auto_ascii_files.cpp
Examining data/filezilla-3.51.0/src/interface/bookmarks_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/buildinfo.cpp
Examining data/filezilla-3.51.0/src/interface/chmoddialog.cpp
Examining data/filezilla-3.51.0/src/interface/clearprivatedata.cpp
Examining data/filezilla-3.51.0/src/interface/cmdline.cpp
Examining data/filezilla-3.51.0/src/interface/commandqueue.cpp
Examining data/filezilla-3.51.0/src/interface/conditionaldialog.cpp
Examining data/filezilla-3.51.0/src/interface/context_control.cpp
Examining data/filezilla-3.51.0/src/interface/customheightlistctrl.cpp
Examining data/filezilla-3.51.0/src/interface/defaultfileexistsdlg.cpp
Examining data/filezilla-3.51.0/src/interface/dialogex.cpp
Examining data/filezilla-3.51.0/src/interface/dndobjects.cpp
Examining data/filezilla-3.51.0/src/interface/dragdropmanager.cpp
Examining data/filezilla-3.51.0/src/interface/drop_target_ex.cpp
Examining data/filezilla-3.51.0/src/interface/edithandler.cpp
Examining data/filezilla-3.51.0/src/interface/encoding_converter.cpp
Examining data/filezilla-3.51.0/src/interface/export.cpp
Examining data/filezilla-3.51.0/src/interface/fileexistsdlg.cpp
Examining data/filezilla-3.51.0/src/interface/filelistctrl.cpp
Examining data/filezilla-3.51.0/src/interface/filelist_statusbar.cpp
Examining data/filezilla-3.51.0/src/interface/FileZilla.cpp
Examining data/filezilla-3.51.0/src/interface/filter.cpp
Examining data/filezilla-3.51.0/src/interface/filter_conditions_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/filteredit.cpp
Examining data/filezilla-3.51.0/src/interface/file_utils.cpp
Examining data/filezilla-3.51.0/src/interface/fzputtygen_interface.cpp
Examining data/filezilla-3.51.0/src/interface/graphics.cpp
Examining data/filezilla-3.51.0/src/interface/import.cpp
Examining data/filezilla-3.51.0/src/interface/infotext.cpp
Examining data/filezilla-3.51.0/src/interface/inputdialog.cpp
Examining data/filezilla-3.51.0/src/interface/ipcmutex.cpp
Examining data/filezilla-3.51.0/src/interface/led.cpp
Examining data/filezilla-3.51.0/src/interface/listctrlex.cpp
Examining data/filezilla-3.51.0/src/interface/listingcomparison.cpp
Examining data/filezilla-3.51.0/src/interface/list_search_panel.cpp
Examining data/filezilla-3.51.0/src/interface/local_recursive_operation.cpp
Examining data/filezilla-3.51.0/src/interface/locale_initializer.cpp
Examining data/filezilla-3.51.0/src/interface/LocalListView.cpp
Examining data/filezilla-3.51.0/src/interface/LocalTreeView.cpp
Examining data/filezilla-3.51.0/src/interface/loginmanager.cpp
Examining data/filezilla-3.51.0/src/interface/Mainfrm.cpp
Examining data/filezilla-3.51.0/src/interface/manual_transfer.cpp
Examining data/filezilla-3.51.0/src/interface/menu_bar.cpp
Examining data/filezilla-3.51.0/src/interface/msgbox.cpp
Examining data/filezilla-3.51.0/src/interface/netconfwizard.cpp
Examining data/filezilla-3.51.0/src/interface/Options.cpp
Examining data/filezilla-3.51.0/src/interface/option_change_event_handler.cpp
Examining data/filezilla-3.51.0/src/interface/overlay.cpp
Examining data/filezilla-3.51.0/src/interface/power_management.cpp
Examining data/filezilla-3.51.0/src/interface/queue.cpp
Examining data/filezilla-3.51.0/src/interface/queue_storage.cpp
Examining data/filezilla-3.51.0/src/interface/QueueView.cpp
Examining data/filezilla-3.51.0/src/interface/queueview_failed.cpp
Examining data/filezilla-3.51.0/src/interface/queueview_successful.cpp
Examining data/filezilla-3.51.0/src/interface/quickconnectbar.cpp
Examining data/filezilla-3.51.0/src/interface/recentserverlist.cpp
Examining data/filezilla-3.51.0/src/interface/recursive_operation.cpp
Examining data/filezilla-3.51.0/src/interface/recursive_operation_status.cpp
Examining data/filezilla-3.51.0/src/interface/remote_recursive_operation.cpp
Examining data/filezilla-3.51.0/src/interface/RemoteListView.cpp
Examining data/filezilla-3.51.0/src/interface/RemoteTreeView.cpp
Examining data/filezilla-3.51.0/src/interface/search.cpp
Examining data/filezilla-3.51.0/src/interface/serverdata.cpp
Examining data/filezilla-3.51.0/src/interface/sftp_crypt_info_dlg.cpp
Examining data/filezilla-3.51.0/src/interface/sitemanager.cpp
Examining data/filezilla-3.51.0/src/interface/sitemanager_controls.cpp
Examining data/filezilla-3.51.0/src/interface/sitemanager_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/sitemanager_site.cpp
Examining data/filezilla-3.51.0/src/interface/sizeformatting.cpp
Examining data/filezilla-3.51.0/src/interface/speedlimits_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/splitter.cpp
Examining data/filezilla-3.51.0/src/interface/state.cpp
Examining data/filezilla-3.51.0/src/interface/statusbar.cpp
Examining data/filezilla-3.51.0/src/interface/statuslinectrl.cpp
Examining data/filezilla-3.51.0/src/interface/StatusView.cpp
Examining data/filezilla-3.51.0/src/interface/systemimagelist.cpp
Examining data/filezilla-3.51.0/src/interface/textctrlex.cpp
Examining data/filezilla-3.51.0/src/interface/themeprovider.cpp
Examining data/filezilla-3.51.0/src/interface/timeformatting.cpp
Examining data/filezilla-3.51.0/src/interface/toolbar.cpp
Examining data/filezilla-3.51.0/src/interface/treectrlex.cpp
Examining data/filezilla-3.51.0/src/interface/updater.cpp
Examining data/filezilla-3.51.0/src/interface/updater_cert.cpp
Examining data/filezilla-3.51.0/src/interface/update_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/verifycertdialog.cpp
Examining data/filezilla-3.51.0/src/interface/verifyhostkeydialog.cpp
Examining data/filezilla-3.51.0/src/interface/view.cpp
Examining data/filezilla-3.51.0/src/interface/viewheader.cpp
Examining data/filezilla-3.51.0/src/interface/volume_enumerator.cpp
Examining data/filezilla-3.51.0/src/interface/welcome_dialog.cpp
Examining data/filezilla-3.51.0/src/interface/window_state_manager.cpp
Examining data/filezilla-3.51.0/src/interface/wrapengine.cpp
Examining data/filezilla-3.51.0/src/interface/wxfilesystem_blob_handler.cpp
Examining data/filezilla-3.51.0/src/interface/xh_text_ex.cpp
Examining data/filezilla-3.51.0/src/interface/xmlfunctions.cpp
Examining data/filezilla-3.51.0/src/interface/xrc_helper.cpp
Examining data/filezilla-3.51.0/src/interface/storj_key_interface.cpp
Examining data/filezilla-3.51.0/src/interface/osx_sandbox_userdirs.cpp
Examining data/filezilla-3.51.0/src/putty/unix/unix.h
Examining data/filezilla-3.51.0/src/putty/unix/uxcons.c
Examining data/filezilla-3.51.0/src/putty/unix/uxmisc.c
Examining data/filezilla-3.51.0/src/putty/unix/uxnoise.c
Examining data/filezilla-3.51.0/src/putty/unix/uxpoll.c
Examining data/filezilla-3.51.0/src/putty/unix/uxstore.c
Examining data/filezilla-3.51.0/src/putty/unix/uxutils.c
Examining data/filezilla-3.51.0/src/putty/unix/uxsftp.c
Examining data/filezilla-3.51.0/src/putty/unix/uxagentc.c
Examining data/filezilla-3.51.0/src/putty/unix/uxsel.c
Examining data/filezilla-3.51.0/src/putty/unix/uxnet.c
Examining data/filezilla-3.51.0/src/putty/unix/uxpeer.c
Examining data/filezilla-3.51.0/src/putty/windows/wincapi.h
Examining data/filezilla-3.51.0/src/putty/windows/winsecur.h
Examining data/filezilla-3.51.0/src/putty/windows/winstuff.h
Examining data/filezilla-3.51.0/src/putty/windows/rcstuff.h
Examining data/filezilla-3.51.0/src/putty/windows/wincons.c
Examining data/filezilla-3.51.0/src/putty/windows/winmisc.c
Examining data/filezilla-3.51.0/src/putty/windows/winmiscs.c
Examining data/filezilla-3.51.0/src/putty/windows/winnohlp.c
Examining data/filezilla-3.51.0/src/putty/windows/winnoise.c
Examining data/filezilla-3.51.0/src/putty/windows/winnojmp.c
Examining data/filezilla-3.51.0/src/putty/windows/winstore.c
Examining data/filezilla-3.51.0/src/putty/windows/wincapi.c
Examining data/filezilla-3.51.0/src/putty/windows/windefs.c
Examining data/filezilla-3.51.0/src/putty/windows/winhandl.c
Examining data/filezilla-3.51.0/src/putty/windows/winhsock.c
Examining data/filezilla-3.51.0/src/putty/windows/winnet.c
Examining data/filezilla-3.51.0/src/putty/windows/winnpc.c
Examining data/filezilla-3.51.0/src/putty/windows/winnps.c
Examining data/filezilla-3.51.0/src/putty/windows/winpgntc.c
Examining data/filezilla-3.51.0/src/putty/windows/winsecur.c
Examining data/filezilla-3.51.0/src/putty/windows/winsftp.c
Examining data/filezilla-3.51.0/src/putty/windows/wintime.c
Examining data/filezilla-3.51.0/src/putty/charset.h
Examining data/filezilla-3.51.0/src/putty/defs.h
Examining data/filezilla-3.51.0/src/putty/ecc.h
Examining data/filezilla-3.51.0/src/putty/fzprintf.h
Examining data/filezilla-3.51.0/src/putty/fzsftp.h
Examining data/filezilla-3.51.0/src/putty/marshal.h
Examining data/filezilla-3.51.0/src/putty/misc.h
Examining data/filezilla-3.51.0/src/putty/mpint.h
Examining data/filezilla-3.51.0/src/putty/mpint_i.h
Examining data/filezilla-3.51.0/src/putty/network.h
Examining data/filezilla-3.51.0/src/putty/pageant.h
Examining data/filezilla-3.51.0/src/putty/proxy.h
Examining data/filezilla-3.51.0/src/putty/psftp.h
Examining data/filezilla-3.51.0/src/putty/putty.h
Examining data/filezilla-3.51.0/src/putty/puttymem.h
Examining data/filezilla-3.51.0/src/putty/puttyps.h
Examining data/filezilla-3.51.0/src/putty/sftp.h
Examining data/filezilla-3.51.0/src/putty/ssh2connection.h
Examining data/filezilla-3.51.0/src/putty/ssh2transport.h
Examining data/filezilla-3.51.0/src/putty/sshblowf.h
Examining data/filezilla-3.51.0/src/putty/sshbpp.h
Examining data/filezilla-3.51.0/src/putty/sshchan.h
Examining data/filezilla-3.51.0/src/putty/sshcr.h
Examining data/filezilla-3.51.0/src/putty/sshgssc.h
Examining data/filezilla-3.51.0/src/putty/ssh.h
Examining data/filezilla-3.51.0/src/putty/sshppl.h
Examining data/filezilla-3.51.0/src/putty/sshserver.h
Examining data/filezilla-3.51.0/src/putty/sshsignals.h
Examining data/filezilla-3.51.0/src/putty/sshttymodes.h
Examining data/filezilla-3.51.0/src/putty/storage.h
Examining data/filezilla-3.51.0/src/putty/terminal.h
Examining data/filezilla-3.51.0/src/putty/tree234.h
Examining data/filezilla-3.51.0/src/putty/conf.c
Examining data/filezilla-3.51.0/src/putty/ecc.c
Examining data/filezilla-3.51.0/src/putty/import.c
Examining data/filezilla-3.51.0/src/putty/marshal.c
Examining data/filezilla-3.51.0/src/putty/memory.c
Examining data/filezilla-3.51.0/src/putty/misc.c
Examining data/filezilla-3.51.0/src/putty/mpint.c
Examining data/filezilla-3.51.0/src/putty/sshaes.c
Examining data/filezilla-3.51.0/src/putty/sshauxcrypt.c
Examining data/filezilla-3.51.0/src/putty/sshbcrypt.c
Examining data/filezilla-3.51.0/src/putty/sshblowf.c
Examining data/filezilla-3.51.0/src/putty/sshdes.c
Examining data/filezilla-3.51.0/src/putty/sshdss.c
Examining data/filezilla-3.51.0/src/putty/sshecc.c
Examining data/filezilla-3.51.0/src/putty/sshhmac.c
Examining data/filezilla-3.51.0/src/putty/sshmd5.c
Examining data/filezilla-3.51.0/src/putty/sshprng.c
Examining data/filezilla-3.51.0/src/putty/sshpubk.c
Examining data/filezilla-3.51.0/src/putty/sshrand.c
Examining data/filezilla-3.51.0/src/putty/sshrsa.c
Examining data/filezilla-3.51.0/src/putty/sshsha.c
Examining data/filezilla-3.51.0/src/putty/sshsh256.c
Examining data/filezilla-3.51.0/src/putty/sshsh512.c
Examining data/filezilla-3.51.0/src/putty/stripctrl.c
Examining data/filezilla-3.51.0/src/putty/tree234.c
Examining data/filezilla-3.51.0/src/putty/utils.c
Examining data/filezilla-3.51.0/src/putty/fzprintf.c
Examining data/filezilla-3.51.0/src/putty/wcwidth.c
Examining data/filezilla-3.51.0/src/putty/cmdgen.c
Examining data/filezilla-3.51.0/src/putty/notiming.c
Examining data/filezilla-3.51.0/src/putty/version.c
Examining data/filezilla-3.51.0/src/putty/be_misc.c
Examining data/filezilla-3.51.0/src/putty/be_none.c
Examining data/filezilla-3.51.0/src/putty/callback.c
Examining data/filezilla-3.51.0/src/putty/cproxy.c
Examining data/filezilla-3.51.0/src/putty/cmdline.c
Examining data/filezilla-3.51.0/src/putty/errsock.c
Examining data/filezilla-3.51.0/src/putty/fzsftp.c
Examining data/filezilla-3.51.0/src/putty/logging.c
Examining data/filezilla-3.51.0/src/putty/mainchan.c
Examining data/filezilla-3.51.0/src/putty/noshare.c
Examining data/filezilla-3.51.0/src/putty/nullplug.c
Examining data/filezilla-3.51.0/src/putty/portfwd.c
Examining data/filezilla-3.51.0/src/putty/psftp.c
Examining data/filezilla-3.51.0/src/putty/proxy.c
Examining data/filezilla-3.51.0/src/putty/pproxy.c
Examining data/filezilla-3.51.0/src/putty/pinger.c
Examining data/filezilla-3.51.0/src/putty/settings.c
Examining data/filezilla-3.51.0/src/putty/sftp.c
Examining data/filezilla-3.51.0/src/putty/sftpcommon.c
Examining data/filezilla-3.51.0/src/putty/ssh.c
Examining data/filezilla-3.51.0/src/putty/ssh2bpp.c
Examining data/filezilla-3.51.0/src/putty/ssh2censor.c
Examining data/filezilla-3.51.0/src/putty/ssh2connection.c
Examining data/filezilla-3.51.0/src/putty/ssh2connection-client.c
Examining data/filezilla-3.51.0/src/putty/ssh2kex-client.c
Examining data/filezilla-3.51.0/src/putty/ssh2transhk.c
Examining data/filezilla-3.51.0/src/putty/ssh2transport.c
Examining data/filezilla-3.51.0/src/putty/ssh2userauth.c
Examining data/filezilla-3.51.0/src/putty/ssharcf.c
Examining data/filezilla-3.51.0/src/putty/sshccp.c
Examining data/filezilla-3.51.0/src/putty/sshcommon.c
Examining data/filezilla-3.51.0/src/putty/sshcrc.c
Examining data/filezilla-3.51.0/src/putty/sshcrcda.c
Examining data/filezilla-3.51.0/src/putty/sshdh.c
Examining data/filezilla-3.51.0/src/putty/sshmac.c
Examining data/filezilla-3.51.0/src/putty/sshshare.c
Examining data/filezilla-3.51.0/src/putty/sshverstring.c
Examining data/filezilla-3.51.0/src/putty/sshzlib.c
Examining data/filezilla-3.51.0/src/putty/timing.c
Examining data/filezilla-3.51.0/src/putty/wildcard.c
Examining data/filezilla-3.51.0/src/putty/x11fwd.c
Examining data/filezilla-3.51.0/src/putty/time.c
Examining data/filezilla-3.51.0/src/storj/events.hpp
Examining data/filezilla-3.51.0/src/storj/fzstorj.cpp
Examining data/filezilla-3.51.0/tests/test.cpp
Examining data/filezilla-3.51.0/tests/cmpnatural.cpp
Examining data/filezilla-3.51.0/tests/dirparsertest.cpp
Examining data/filezilla-3.51.0/tests/localpathtest.cpp
Examining data/filezilla-3.51.0/tests/serverpathtest.cpp

FINAL RESULTS:

data/filezilla-3.51.0/src/engine/engineprivate.cpp:649:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			case Command::chmod:
data/filezilla-3.51.0/src/engine/ftp/chmod.h:10:25:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    : COpData(Command::chmod, L"CFtpChmodOpData")
data/filezilla-3.51.0/src/engine/sftp/chmod.h:10:22:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		: COpData(Command::chmod, L"CSftpChmodOpData")
data/filezilla-3.51.0/src/include/commands.h:24:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod,
data/filezilla-3.51.0/src/include/commands.h:336:93:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
class FZC_PUBLIC_SYMBOL CChmodCommand final : public CCommandHelper<CChmodCommand, Command::chmod>
data/filezilla-3.51.0/src/interface/FileZilla.cpp:92:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		int res = readlink("/proc/self/exe", &path[0], path.size());
data/filezilla-3.51.0/src/dbus/session_manager.cpp:189:4:  [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(m_client_object_path, obj_path);
data/filezilla-3.51.0/src/engine/controlsocket.cpp:77:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring time = fz::sprintf(fztranslate("%d second", "%d seconds", elapsed), elapsed);
data/filezilla-3.51.0/src/engine/directorylisting.cpp:14:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring str = fz::sprintf(L"name=%s\nsize=%d\npermissions=%s\nownerGroup=%s\ndir=%d\nlink=%d\ntarget=%s\nunsure=%d\n",
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:631:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			combo[fz::sprintf(L"%s%02d", iter->first, iter->second)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:632:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			combo[fz::sprintf(L"%s%02d", iter->first, iter->second - 1)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:634:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				combo[fz::sprintf(L"%s%d", iter->first, iter->second)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:637:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				combo[fz::sprintf(L"%s%d", iter->first, iter->second % 10)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:640:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				combo[fz::sprintf(L"%s%d", iter->first, iter->second - 1)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:643:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				combo[fz::sprintf(L"%s%d", iter->first, (iter->second - 1) % 10)] = iter->second;
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:666:3:  [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(pData, data[i]);
data/filezilla-3.51.0/src/engine/externalipresolver.cpp:88:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	m_sendBuffer = fz::sprintf("GET %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: %s\r\nConnection: close\r\n\r\n", fz::to_utf8(address), fz::to_utf8(hostWithPort), fz::replaced_substrings(PACKAGE_STRING, " ", "/"));
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:441:17:  [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.
			std::wstring system;
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:442:89:  [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.
			capabilities cap = CServerCapabilities::GetCapability(currentServer_, syst_command, &system);
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:448:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					if (system.substr(0, 3) == L"MVS") {
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:451:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					else if (fz::str_toupper_ascii(system.substr(0, 4)) == L"Z/VM") {
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:454:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
					else if (fz::str_toupper_ascii(system.substr(0, 8)) == L"NONSTOP ") {
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:459:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				if (system.find(L"FileZilla") != std::wstring::npos) {
data/filezilla-3.51.0/src/engine/ftp/logon.cpp:611:67:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		t_loginCommand cmd = {false, false, loginCommandType::user, fz::sprintf(L"USER %s@%s", user, currentServer_.Format(ServerFormat::with_optional_port, controlSocket_.credentials_))};
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:86:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		portArguments = fz::sprintf(L"|2|%s|%d|", ip, port);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:91:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		portArguments += fz::sprintf(L",%d,%d", port / 256, port % 256);
data/filezilla-3.51.0/src/engine/http/digest.cpp:234:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	auth += ", nc=" + fz::sprintf("%x", nc);
data/filezilla-3.51.0/src/engine/http/digest.cpp:280:73:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		response = fz::hex_encode<std::string>(h(a1 + ":" + nonce + ":" + fz::sprintf("%x", nc) + ":" + cnonce + ":auth:" + ha2));
data/filezilla-3.51.0/src/engine/http/filetransfer.cpp:71:41:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			rr_.request_.headers_["Range"] = fz::sprintf("bytes=%d-", localFileSize_);
data/filezilla-3.51.0/src/engine/http/request.cpp:178:31:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				std::string command = fz::sprintf("%s %s HTTP/1.1", req.verb_, req.uri_.get_request());
data/filezilla-3.51.0/src/engine/http/request.cpp:183:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					std::string line = fz::sprintf("%s: %s", header.first, header.second);
data/filezilla-3.51.0/src/engine/local_path.cpp:459:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		*error = fz::sprintf(_("'%s' does not exist or cannot be accessed."), path);
data/filezilla-3.51.0/src/engine/local_path.cpp:471:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			*error = fz::sprintf(_("Cannot access '%s', no media inserted or drive not ready."), path);
data/filezilla-3.51.0/src/engine/local_path.cpp:477:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			*error = fz::sprintf(_("'%s' is not a directory."), path);
data/filezilla-3.51.0/src/engine/local_path.cpp:498:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			*error = fz::sprintf(_("'%s' is not a directory."), *m_path);
data/filezilla-3.51.0/src/engine/local_path.cpp:505:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			*error = fz::sprintf(_("'%s' is not a directory."), *m_path);
data/filezilla-3.51.0/src/engine/local_path.cpp:511:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			*error = fz::sprintf(_("'%s' does not exist or cannot be accessed."), *m_path);
data/filezilla-3.51.0/src/engine/logging.cpp:167:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::string const out = fz::sprintf("%s %u %u %s %s"
data/filezilla-3.51.0/src/engine/misc.cpp:28:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		return fz::sprintf(_("Unknown error %u"), err);
data/filezilla-3.51.0/src/engine/misc.cpp:58:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return fz::to_string(fz::sprintf(_("Unknown error %d"), err));
data/filezilla-3.51.0/src/engine/proxy.cpp:110:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sendBuffer_.append(fz::sprintf("CONNECT %s:%u HTTP/1.1\r\nHost: %s:%u\r\n%sUser-Agent: %s\r\n\r\n",
data/filezilla-3.51.0/src/engine/proxy.cpp:334:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
							error = fz::sprintf(_("Unassigned error code %d"), (int)buf[1]);
data/filezilla-3.51.0/src/engine/proxy.cpp:463:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
						errorMsg = fz::sprintf(_("Unassigned error code %d"), receiveBuffer_[1]);
data/filezilla-3.51.0/src/engine/server.cpp:360:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		server += fz::sprintf(L":%d", m_port);
data/filezilla-3.51.0/src/engine/serverpath.cpp:290:17:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define tstrcpy wcscpy
data/filezilla-3.51.0/src/engine/sftp/connect.cpp:84:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			std::wstring cmd = fz::sprintf(L"proxy %d \"%s\" %d", type,
data/filezilla-3.51.0/src/engine/sftp/connect.cpp:106:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			return controlSocket_.SendCommand(fz::sprintf(L"open \"%s@%s\" %d", user, controlSocket_.ConvertDomainName(currentServer_.GetHost()), currentServer_.GetPort()));
data/filezilla-3.51.0/src/engine/sftp/connect.cpp:125:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		if (controlSocket_.response_ != fz::sprintf(L"fzSftp started, protocol_version=%d", FZSFTP_PROTOCOL_VERSION)) {
data/filezilla-3.51.0/src/engine/sftp/filetransfer.cpp:130:30:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring seconds = fz::sprintf(L"%d", ticks);
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:137:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		error = fz::sprintf(L"Unknown eventType");
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:216:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			error = fz::sprintf(L"Unknown eventType %d", readType);
data/filezilla-3.51.0/src/engine/sftp/sftpcontrolsocket.cpp:579:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		AddToStream(fz::sprintf("-%d-\n", d));
data/filezilla-3.51.0/src/engine/sftp/sftpcontrolsocket.cpp:589:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		AddToStream(fz::sprintf("-%d%d,%d\n", d, b, engine_.GetOptions().get_int(d ? OPTION_SPEEDLIMIT_OUTBOUND : OPTION_SPEEDLIMIT_INBOUND)));
data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp:73:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			return fz::sprintf(fztranslate("%s byte", "%s bytes", size), result);
data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp:153:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		places = fz::sprintf(fmt, remainder);
data/filezilla-3.51.0/src/engine/storj/connect.cpp:51:41:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		return controlSocket_.SendCommand(fz::sprintf(L"host %s", currentServer_.Format(ServerFormat::with_port)));
data/filezilla-3.51.0/src/engine/storj/connect.cpp:53:41:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		return controlSocket_.SendCommand(fz::sprintf(L"key %s", currentServer_.GetUser()), fz::sprintf(L"key %s", std::wstring(currentServer_.GetUser().size(), '*')));
data/filezilla-3.51.0/src/engine/storj/connect.cpp:53:91:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		return controlSocket_.SendCommand(fz::sprintf(L"key %s", currentServer_.GetUser()), fz::sprintf(L"key %s", std::wstring(currentServer_.GetUser().size(), '*')));
data/filezilla-3.51.0/src/engine/storj/connect.cpp:61:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			return controlSocket_.SendCommand(fz::sprintf(L"pass %s", pass), fz::sprintf(L"pass %s", std::wstring(pass.size(), '*')));
data/filezilla-3.51.0/src/engine/storj/connect.cpp:61:73:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			return controlSocket_.SendCommand(fz::sprintf(L"pass %s", pass), fz::sprintf(L"pass %s", std::wstring(pass.size(), '*')));
data/filezilla-3.51.0/src/engine/storj/connect.cpp:80:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		if (controlSocket_.response_ != fz::sprintf(L"fzStorj started, protocol_version=%d", FZSTORJ_PROTOCOL_VERSION)) {
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:102:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		error = fz::sprintf(L"Unknown eventType");
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:153:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			error = fz::sprintf(L"Unknown eventType %d", readType);
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:11:10:  [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/filezilla-3.51.0/src/fzshellext/shellext.cpp:11:19:  [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/filezilla-3.51.0/src/fzshellext/shellext.cpp:252:2:  [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.
	snprintf(buffer, 99, fmt, std::forward<Args>(args)...);
data/filezilla-3.51.0/src/interface/FileZilla.cpp:690:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		wxMessageBoxEx(fz::sprintf(fztranslate("%s could not be found. Without this component of FileZilla, %s will not work.\n\nPossible solutions:\n- Make sure %s is in a directory listed in your PATH environment variable.\n- Set the full path to %s in the %s environment variable."), program, description, program, program, env),
data/filezilla-3.51.0/src/interface/Mainfrm.cpp:2287:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring const posString = fz::sprintf(
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1425:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %d file from the server?", "Really delete %d files from the server?", count_files), count_files);
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1428:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %d directory with its contents from the server?", "Really delete %d directories with their contents from the server?", count_dirs), count_dirs);
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1431:28:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring files = fz::sprintf(fztranslate("%d file", "%d files", count_files), count_files);
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1432:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring dirs = fz::sprintf(fztranslate("%d directory with its contents", "%d directories with their contents", count_dirs), count_dirs);
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1433:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %s and %s from the server?"), files, dirs);
data/filezilla-3.51.0/src/interface/buildinfo.cpp:81:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return fz::sprintf(L"%04d-%02d-%02d", year, i + 1, day);
data/filezilla-3.51.0/src/interface/buildinfo.cpp:101:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return fz::sprintf(L"Visual C++ %d", version);
data/filezilla-3.51.0/src/interface/dndobjects.cpp:29:3:  [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(p, file.c_str());
data/filezilla-3.51.0/src/interface/dndobjects.cpp:175:2:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	wcscpy((wchar_t*)(data + 2), m_dragDirectory.c_str());
data/filezilla-3.51.0/src/interface/edithandler.cpp:1037:35:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			file = m_localDir + name + fz::sprintf(L" %d", n);
data/filezilla-3.51.0/src/interface/edithandler.cpp:1040:50:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			file = m_localDir + name.substr(0, pos) + fz::sprintf(L" %d", n) + name.substr(pos);
data/filezilla-3.51.0/src/interface/file_utils.cpp:63:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			encoded += fz::sprintf(L"%%%x", c);
data/filezilla-3.51.0/src/interface/filteredit.cpp:206:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		newName = fz::sprintf(L"%s (%d)", name, ++index);
data/filezilla-3.51.0/src/interface/filteredit.cpp:318:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		newName = fz::sprintf(L"%s (%d)", name, ++index);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:230:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			PrintMessage(fz::sprintf(fztranslate("Connect failed: %s"), fz::socket_error_description(res)), 1);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:710:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			PrintMessage(fz::sprintf(fztranslate("Retrieving external IP address from %s"), address), 0);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:800:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				PrintMessage(fz::sprintf(fztranslate("Failed to create listen socket on port %d, aborting."), port), 1);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:805:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			Send(fz::sprintf(L"PREP %d", port));
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:810:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			std::wstring cmd = fz::sprintf(L"PORT %s,%d,%d", m_externalIP, m_listenPort / 256, m_listenPort % 256);
data/filezilla-3.51.0/src/interface/queue_storage.cpp:315:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				query = fz::sprintf(
data/filezilla-3.51.0/src/interface/recursive_operation_status.cpp:121:34:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring const files = fz::sprintf(fztranslate("%llu file", "%llu files", countFiles), countFiles);
data/filezilla-3.51.0/src/interface/recursive_operation_status.cpp:122:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring const dirs = fz::sprintf(fztranslate("%llu directory", "%llu directories", countDirs), countDirs);
data/filezilla-3.51.0/src/interface/search.cpp:1269:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			desc = fz::sprintf(fztranslate("Selected %d file for transfer.", "Selected %d files for transfer.", count_files), count_files);
data/filezilla-3.51.0/src/interface/search.cpp:1272:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			desc = fz::sprintf(fztranslate("Selected %d directory with its contents for transfer.", "Selected %d directories with their contents for transfer.", count_dirs), count_dirs);
data/filezilla-3.51.0/src/interface/search.cpp:1275:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			std::wstring files = fz::sprintf(fztranslate("%d file", "%d files", count_files), count_files);
data/filezilla-3.51.0/src/interface/search.cpp:1276:28:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			std::wstring dirs = fz::sprintf(fztranslate("%d directory with its contents", "%d directories with their contents", count_dirs), count_dirs);
data/filezilla-3.51.0/src/interface/search.cpp:1277:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			desc = fz::sprintf(fztranslate("Selected %s and %s for transfer."), files, dirs);
data/filezilla-3.51.0/src/interface/search.cpp:1671:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %d file from the server?", "Really delete %d files from the server?", selected_files.size()), selected_files.size());
data/filezilla-3.51.0/src/interface/search.cpp:1674:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %d directory with its contents from the server?", "Really delete %d directories with their contents from the server?", selected_dirs.size()), selected_dirs.size());
data/filezilla-3.51.0/src/interface/search.cpp:1677:28:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring files = fz::sprintf(fztranslate("%d file", "%d files", selected_files.size()), selected_files.size());
data/filezilla-3.51.0/src/interface/search.cpp:1678:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring dirs = fz::sprintf(fztranslate("%d directory with its contents", "%d directories with their contents", selected_dirs.size()), selected_dirs.size());
data/filezilla-3.51.0/src/interface/search.cpp:1679:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		question = fz::sprintf(fztranslate("Really delete %s and %s from the server?"), files, dirs);
data/filezilla-3.51.0/src/interface/sftp_crypt_info_dlg.cpp:27:34:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring fingerprints = fz::sprintf(L"SHA256: %s\nMD5: %s", pNotification->hostKeyFingerprintSHA256, pNotification->hostKeyFingerprintMD5);
data/filezilla-3.51.0/src/interface/sitemanager.cpp:566:45:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		name = _("New site").ToStdWstring() + fz::sprintf(L" %d", ++i);
data/filezilla-3.51.0/src/interface/sitemanager.cpp:580:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring msg = fz::sprintf(fztranslate("Could not write \"%s\", any changes to the Site Manager could not be saved: %s"), file.GetFileName(), file.GetError());
data/filezilla-3.51.0/src/interface/sitemanager.cpp:973:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			newName = fz::sprintf(L"%s %d", name.substr(0, 240), i++);
data/filezilla-3.51.0/src/interface/sitemanager.cpp:992:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			newName = fz::sprintf(L"%s %d", name.substr(0, 240), i++);
data/filezilla-3.51.0/src/interface/themeprovider.cpp:145:40:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring const file = path_ + fz::sprintf(L"%dx%d/%s.png", size.x, size.y, name);
data/filezilla-3.51.0/src/interface/themeprovider.cpp:153:41:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			cacheFile = cacheDir.GetPath() + fz::sprintf(L"%s_%s%dx%d.png", theme_, name, scale.x, scale.y);
data/filezilla-3.51.0/src/interface/themeprovider.cpp:222:55:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			if (fs.begin_find_files(fz::to_native(path_) + fz::sprintf(fzT("%dx%d/"), psize.first.x, psize.first.y))) {
data/filezilla-3.51.0/src/interface/themeprovider.cpp:245:34:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring path = path_ + fz::sprintf(L"%dx%d/%s.gif", size.x, size.y, name);
data/filezilla-3.51.0/src/interface/updater.cpp:169:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	qs["osversion"] = fz::sprintf("%d.%d", wxPlatformInfo::Get().GetOSMajorVersion(), wxPlatformInfo::Get().GetOSMinorVersion());
data/filezilla-3.51.0/src/interface/updater.cpp:245:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	log_ = fz::sprintf(_("Started update check on %s\n"), t.format(L"%Y-%m-%d %H:%M:%S", fz::datetime::local));
data/filezilla-3.51.0/src/interface/updater.cpp:252:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	log_ += fz::sprintf(_("Own build type: %s\n"), build);
data/filezilla-3.51.0/src/interface/updater.cpp:430:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Local file is %s\n"), local_file);
data/filezilla-3.51.0/src/interface/updater.cpp:518:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Could not create local file %s\n"), local_file);
data/filezilla-3.51.0/src/interface/updater.cpp:522:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Local file is %s\n"), local_file);
data/filezilla-3.51.0/src/interface/updater.cpp:550:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			f = dl + fn + fz::sprintf(L" (%d)", i);
data/filezilla-3.51.0/src/interface/updater.cpp:553:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			f = dl + fn.substr(0, pos) + fz::sprintf(L" (%d)", i) + fn.substr(pos);
data/filezilla-3.51.0/src/interface/updater.cpp:570:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		log_ += fz::sprintf(_T("ProcessData %u\n"), len);
data/filezilla-3.51.0/src/interface/updater.cpp:606:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	log_ += fz::sprintf(_("Parsing %d bytes of version information.\n"), static_cast<int>(raw_version_information.size()));
data/filezilla-3.51.0/src/interface/updater.cpp:627:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(L"Changelog: %s\n", version_information_.changelog_);
data/filezilla-3.51.0/src/interface/updater.cpp:635:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(L"Skipping line with one token of type %s\n", type);
data/filezilla-3.51.0/src/interface/updater.cpp:667:83:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			std::string data = host + '|' + fz::to_utf8(GetFileZillaVersion()) + '|' + fz::sprintf("%d.%d", wxPlatformInfo::Get().GetOSMajorVersion(), wxPlatformInfo::Get().GetOSMinorVersion());
data/filezilla-3.51.0/src/interface/updater.cpp:683:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				log_ += fz::sprintf(L"Ignoring eol statement not matching our version and platform.\n");
data/filezilla-3.51.0/src/interface/updater.cpp:717:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(L"Skipping line with unknown type %s\n", type);
data/filezilla-3.51.0/src/interface/updater.cpp:727:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(L"Not parsing build line with only %d tokens", tokens.size());
data/filezilla-3.51.0/src/interface/updater.cpp:738:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					log_ += fz::sprintf(L"Could not extract filename from URL: %s\n", url);
data/filezilla-3.51.0/src/interface/updater.cpp:750:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					log_ += fz::sprintf(L"Could not parse size: %s\n", sizestr);
data/filezilla-3.51.0/src/interface/updater.cpp:774:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(L"Ignoring line with inalid or missing signature for hash %s\n", hash);
data/filezilla-3.51.0/src/interface/updater.cpp:789:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				log_ += fz::sprintf(_("Invalid hash: %s\n"), hash);
data/filezilla-3.51.0/src/interface/updater.cpp:794:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Found new %s %s\n"), type, b.version_);
data/filezilla-3.51.0/src/interface/updater.cpp:826:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		log_ += fz::sprintf(_("Could not obtain size of '%s'"), file) + L"\n";
data/filezilla-3.51.0/src/interface/updater.cpp:830:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		log_ += fz::sprintf(_("Local size of '%s' does not match expected size: %d != %d"), file, filesize, size) + L"\n";
data/filezilla-3.51.0/src/interface/updater.cpp:839:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Could not open '%s'"), file) + L"\n";
data/filezilla-3.51.0/src/interface/updater.cpp:848:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			log_ += fz::sprintf(_("Could not read from '%s'"), file) + L"\n";
data/filezilla-3.51.0/src/interface/updater.cpp:856:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		log_ += fz::sprintf(_("Checksum mismatch on file %s\n"), file);
data/filezilla-3.51.0/src/interface/updater.cpp:860:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	log_ += fz::sprintf(_("Checksum match on file %s\n"), file);
data/filezilla-3.51.0/src/interface/verifyhostkeydialog.cpp:29:32:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring const host = fz::sprintf(L"%s:%d", notification.GetHost(), notification.GetPort());
data/filezilla-3.51.0/src/interface/verifyhostkeydialog.cpp:35:40:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring const fingerprints = fz::sprintf(L"SHA256: %s\nMD5: %s", notification.hostKeyFingerprintSHA256, notification.hostKeyFingerprintMD5);
data/filezilla-3.51.0/src/interface/verifyhostkeydialog.cpp:60:32:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::wstring const host = fz::sprintf(L"%s:%d", notification.GetHost(), notification.GetPort());
data/filezilla-3.51.0/src/interface/xmlfunctions.cpp:42:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::wstring err = fz::sprintf(fztranslate("The file '%s' could not be loaded."), m_fileName);
data/filezilla-3.51.0/src/interface/xmlfunctions.cpp:87:27:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			m_error += L"\n" + fz::sprintf(fztranslate("The valid backup file %s could not be restored"), redirectedName + L"~");
data/filezilla-3.51.0/src/interface/xmlfunctions.cpp:190:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		m_error += fz::sprintf(_T("%s at offset %d."), result.description(), result.offset);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:141:35:  [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 PUGI__SNPRINTF(buf, ...) snprintf(buf, sizeof(buf), __VA_ARGS__)
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:145:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#	define PUGI__SNPRINTF sprintf
data/filezilla-3.51.0/src/putty/import.c:1784:17:  [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(line + len - 1, line2);
data/filezilla-3.51.0/src/putty/logging.c:355:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(dumpdata, "  %08zx%*s\r\n", p-(p%16), 1+3*16+2+16, "");
data/filezilla-3.51.0/src/putty/misc.c:82: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(pr->result, newstr);
data/filezilla-3.51.0/src/putty/misc.c:208:13:  [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(key, q);
data/filezilla-3.51.0/src/putty/misc.h:39:32:  [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.
#define PUTTY_PRINTF_ARCHETYPE printf
data/filezilla-3.51.0/src/putty/settings.c:459:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            p += sprintf(p, "%s%s", (p > buf ? "," : ""), s);
data/filezilla-3.51.0/src/putty/settings.c:721:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf2 + strlen(buf2), "%s%d",
data/filezilla-3.51.0/src/putty/sshpubk.c:1430:9:  [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(p, comment);
data/filezilla-3.51.0/src/putty/sshpubk.c:1519:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(fingerprint_str_md5 + i*3, "%02x%s", digest[i], i==15 ? "" : ":");
data/filezilla-3.51.0/src/putty/tree234.c:36:17:  [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.
#define LOG(x) (printf x)
data/filezilla-3.51.0/src/putty/tree234.c:1080:5:  [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(stdout, fmt, ap);
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:151: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(addr.sun_path, name);
data/filezilla-3.51.0/src/putty/unix/uxcons.c:274:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, msg_batch, algname, betteralgs);
data/filezilla-3.51.0/src/putty/unix/uxmisc.c:121:12:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    user = getlogin();
data/filezilla-3.51.0/src/putty/unix/uxnet.c:733:9:  [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(u.su.sun_path, sock->addr->hostname);
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:62:10:  [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.
    fp = popen("ps -axu 2>/dev/null", "r");
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:73:10:  [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.
    fp = popen("ls -al /tmp 2>/dev/null", "r");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:126:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (xdg_dir && access(xdg_dir, F_OK) == 0) {
data/filezilla-3.51.0/src/putty/unix/uxstore.c:140:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (old_dir && access(old_dir, F_OK) == 0) {
data/filezilla-3.51.0/src/putty/unix/uxstore.c:144:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (old_dir2 && access(old_dir2, F_OK) == 0) {
data/filezilla-3.51.0/src/putty/unix/uxstore.c:149:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(old_dir3, F_OK) == 0) {
data/filezilla-3.51.0/src/putty/utils.c:246:9:  [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(p, s);
data/filezilla-3.51.0/src/putty/utils.c:269: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(p, s1);
data/filezilla-3.51.0/src/putty/utils.c:277:9:  [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(q, sn);
data/filezilla-3.51.0/src/putty/utils.c:315: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/filezilla-3.51.0/src/putty/utils.c:362:19:  [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.
        int len = vsnprintf(buf + oldlen, size - oldlen, fmt, aq);
data/filezilla-3.51.0/src/putty/windows/wincapi.c:16:20:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    static HMODULE crypt;
data/filezilla-3.51.0/src/putty/windows/wincapi.c:21:22:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        successful = crypt &&
data/filezilla-3.51.0/src/putty/windows/wincapi.c:25:47:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
            GET_WINDOWS_FUNCTION_NO_TYPECHECK(crypt, CryptProtectMemory)
data/filezilla-3.51.0/src/putty/windows/wincapi.c:27:34:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
            GET_WINDOWS_FUNCTION(crypt, CryptProtectMemory)
data/filezilla-3.51.0/src/putty/windows/winmiscs.c:52:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    VirtualProtect(minefield_admin, minefield_npages * 2, access, NULL);
data/filezilla-3.51.0/src/putty/windows/winnet.c:558: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(*canonicalname, realhost);
data/filezilla-3.51.0/src/putty/windows/winstore.c:725:13:  [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(piterator_new, add);
data/filezilla-3.51.0/src/putty/windows/winstore.c:736:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(piterator_new, piterator_old);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:33:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	std::string s = fz::sprintf(std::forward<Args>(args)...);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:166:70:  [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.
			fzprintf(storjEvent::Listentry, "%s\n%d\n%d", objectName, object->system.content_length, objectName, object->system.created);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:166:113:  [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.
			fzprintf(storjEvent::Listentry, "%s\n%d\n%d", objectName, object->system.content_length, objectName, object->system.created);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:447:69:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		project_result = uplink_config_open_project(config, access_result.access);
data/filezilla-3.51.0/tests/dirparsertest.cpp:1481:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	std::string msg = fz::sprintf("Data: %s, count: %u", entry.data, listing.size());
data/filezilla-3.51.0/tests/dirparsertest.cpp:1487:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	msg = fz::sprintf("Data: %s  Expected:\n%s\n  Got:\n%s", entry.data, entry.reference.dump(), listing[0].dump());
data/filezilla-3.51.0/tests/dirparsertest.cpp:1509:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		std::string msg = fz::sprintf("Data: %s  Expected:\n%s\n  Got:\n%s", iter->data, iter->reference.dump(), listing[i].dump());
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:64:14:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	inline void EnterCriticalSection() { m_critical_section.Enter(); }
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:145:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:178:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:235:11:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		thread->EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:238:11:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		thread->EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:258:11:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		thread->EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:261:11:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		thread->EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:353:12:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	m_thread->EnterCriticalSection();
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:364:12:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	m_thread->EnterCriticalSection();
data/filezilla-3.51.0/src/interface/Options.cpp:169:13:  [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.
		auto* v = getenv(name);
data/filezilla-3.51.0/src/interface/locale_initializer.cpp:197:32:  [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.
	std::string fzdatadir = mkstr(getenv("FZ_DATADIR"));
data/filezilla-3.51.0/src/interface/locale_initializer.cpp:212:27:  [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.
	std::string path = mkstr(getenv("PATH"));
data/filezilla-3.51.0/src/interface/locale_initializer.cpp:287:27:  [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.
	std::string path = mkstr(getenv(env.c_str()));
data/filezilla-3.51.0/src/interface/locale_initializer.h:63:17:  [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.
				char* env = getenv(fz::to_string(token.substr(1)).c_str());
data/filezilla-3.51.0/src/putty/fzsftp.c:98:23:  [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.
        char* debug = getenv("FZDEBUG");
data/filezilla-3.51.0/src/putty/sftp.h:335:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    void (*realpath)(SftpServer *srv, SftpReplyBuilder *reply,
data/filezilla-3.51.0/src/putty/sftp.h:398:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
{ srv->vt->realpath(srv, reply, path); }
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:20:21:  [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 *p = getenv("SSH_AUTH_SOCK");
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:138: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.
    name = getenv("SSH_AUTH_SOCK");
data/filezilla-3.51.0/src/putty/unix/uxcons.c:558:19:  [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.
    return dupstr(getenv("DISPLAY"));
data/filezilla-3.51.0/src/putty/unix/uxstore.c:97:15:  [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.
        env = getenv("PUTTYDIR");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:101:16:  [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.
        home = getenv("HOME");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:112:15:  [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.
        env = getenv("XDG_CONFIG_HOME");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:174:15:  [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.
        env = getenv("PUTTYSESSIONS");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:191:15:  [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.
        env = getenv("PUTTYSSHHOSTKEYS");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:206:15:  [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.
        env = getenv("PUTTYRANDOMSEED");
data/filezilla-3.51.0/src/putty/windows/winmisc.c:19:19:  [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.
    return dupstr(getenv("DISPLAY"));
data/filezilla-3.51.0/src/putty/windows/winmisc.c:238:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    ret = LoadLibrary(fullpath);
data/filezilla-3.51.0/src/dbus/desktop_notification.cpp:119: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 *hints[2];
data/filezilla-3.51.0/src/dbus/session_manager.cpp:70: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 pid[sizeof(unsigned long) * 8 + 10];
data/filezilla-3.51.0/src/dbus/session_manager.cpp:71:3:  [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.
		sprintf(pid, "FileZilla %lu", wxGetProcessId());
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:667:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(pData, "\r\n");
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:2187:4:  [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(&res[respos], &i->p[startpos], copylen);
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:2202:4:  [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(&res[respos], &iter->p[startpos], copylen);
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:3101:1:  [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 const ebcdic_table[256] = {
data/filezilla-3.51.0/src/engine/ftp/filetransfer.cpp:83:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if (!pFile->open(fz::to_native(localFile_), fz::file::writing, fz::file::existing)) {
data/filezilla-3.51.0/src/engine/ftp/filetransfer.cpp:109:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					if (!pFile->open(fz::to_native(localFile_), fz::file::writing, fz::file::empty)) {
data/filezilla-3.51.0/src/engine/ftp/filetransfer.cpp:143:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (!pFile->open(fz::to_native(localFile_), fz::file::reading)) {
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:297:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer[2];
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:330: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 discard[1024];
data/filezilla-3.51.0/src/engine/http/filetransfer.cpp:100: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(fz::to_native(localFile_),
data/filezilla-3.51.0/src/engine/http/filetransfer.cpp:216: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(q, data, len);
data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp:24:2:  [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, body_.c_str() + written_, len);
data/filezilla-3.51.0/src/engine/logging.cpp:111: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).
	m_log_fd = open(m_file.c_str(), O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0644);
data/filezilla-3.51.0/src/engine/logging.cpp:214:5:  [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 tempDir[MAX_PATH + 1];
data/filezilla-3.51.0/src/engine/logging.cpp:219:6:  [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 tempFile[MAX_PATH + 1];
data/filezilla-3.51.0/src/engine/logging.cpp:275: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).
			int fd = open(m_file.c_str(), O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0644);
data/filezilla-3.51.0/src/engine/logging.cpp:305: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).
			m_log_fd = open(m_file.c_str(), O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0644);
data/filezilla-3.51.0/src/engine/misc.cpp:64: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 buf[1000];
data/filezilla-3.51.0/src/engine/proxy.cpp:535:6:  [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(out + 2, user_.c_str(), ulen);
data/filezilla-3.51.0/src/engine/proxy.cpp:537:6:  [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(out + ulen + 3, pass_.c_str(), plen);
data/filezilla-3.51.0/src/engine/proxy.cpp:583: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(out + 5, host.c_str(), hlen);
data/filezilla-3.51.0/src/engine/proxy.cpp:652: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(buffer, receiveBuffer_.get(), size);
data/filezilla-3.51.0/src/engine/server.cpp:55:8:  [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 const* const typeNames[SERVERTYPE_MAX] = {
data/filezilla-3.51.0/src/engine/serverpath.cpp:275: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 tmp[20]; // Long enough for 2^64-1
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:67: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 buffer[buffersize];
data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp:31: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[60];
data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp:248: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 tmp[5];
data/filezilla-3.51.0/src/engine/sizeformatting_base.cpp:269: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 tmp[5];
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:32: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 buffer[buffersize];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:176:1:  [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 GLogFile[MAX_PATH] = "";
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:197:16:  [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).
		GLogHandle = fopen(GLogFile, "at");
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:248: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 buffer[100];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:263: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 FileName[MAX_PATH];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:296: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 VersionStr[100];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:430: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 ClassID[CLSID_SIZE];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:445:5:  [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 Filename[MAX_PATH];
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:545: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 ClassID[CLSID_SIZE];
data/filezilla-3.51.0/src/interface/Mainfrm.cpp:1205:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR buffer[10];
data/filezilla-3.51.0/src/interface/Options.cpp:479: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 buffer[MAX_PATH * 2 + 1];
data/filezilla-3.51.0/src/interface/Options.cpp:533: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 buffer[MAX_PATH * 2 + 1];
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1710: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 permissions[9] = {};
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1741: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_perms[9];
data/filezilla-3.51.0/src/interface/RemoteListView.cpp:1830:4:  [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 newPermissions[9]{};
data/filezilla-3.51.0/src/interface/RemoteTreeView.cpp:991: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 permissions[9] = {0};
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:58:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char const permchars[3] = { 'r', 'w', 'x' };
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:120:8:  [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 defaultPerms[9] = { 2, 2, 2, 2, 1, 2, 2, 1, 2 };
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:121: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 perms[9];
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:122:2:  [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(perms, permissions_, 9);
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:152:37:  [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 wxString& name, const char permissions[9])
data/filezilla-3.51.0/src/interface/chmoddialog.cpp:157:2:  [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_.permissions_, permissions, 9);
data/filezilla-3.51.0/src/interface/chmoddialog.h:24: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 permissions_[9]{};
data/filezilla-3.51.0/src/interface/chmoddialog.h:36:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const wxString& name, const char permissions[9]);
data/filezilla-3.51.0/src/interface/edithandler.cpp:133: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).
		int fd = open(fz::to_string(lockfile).c_str(), O_RDWR | O_CLOEXEC, 0);
data/filezilla-3.51.0/src/interface/edithandler.cpp:224:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_lockfile_descriptor = open(file.c_str(), O_CREAT | O_RDWR | O_CLOEXEC, 0600);
data/filezilla-3.51.0/src/interface/fzputtygen_interface.cpp:224: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 buffer[100];
data/filezilla-3.51.0/src/interface/ipcmutex.cpp:23: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_fd = open(fn.GetFullPath().mb_str(), O_CREAT | O_RDWR | O_CLOEXEC, 0644);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:224:20:  [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.
		PrintMessage(fz::sprintf(fztranslate("Connecting to %s"), L"probe.filezilla-project.org"), 0);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:981: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 buffer[100];
data/filezilla-3.51.0/src/interface/netconfwizard.h:79: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 m_recvBuffer[NETCONFBUFFERSIZE];
data/filezilla-3.51.0/src/interface/osx_sandbox_userdirs.cpp:34: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 buf[2048];
data/filezilla-3.51.0/src/interface/queue_storage.cpp:276:7:  [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).
	*i = atoi(*v);
data/filezilla-3.51.0/src/interface/remote_recursive_operation.cpp:362: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 permissions[9];
data/filezilla-3.51.0/src/interface/search.cpp:2008: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 (!open) {
data/filezilla-3.51.0/src/interface/state.cpp:842: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, static_cast<wchar_t const*>(file.c_str()), (file.size() + 1) * sizeof(wchar_t));
data/filezilla-3.51.0/src/interface/state.cpp:848:2:  [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(to, static_cast<wchar_t const*>(path.GetPath().c_str()), (path.GetPath().size() + 1) * sizeof(wchar_t));
data/filezilla-3.51.0/src/interface/storj_key_interface.cpp:108: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 buffer[100];
data/filezilla-3.51.0/src/interface/systemimagelist.cpp:65: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 buffer[MAX_PATH + 10];
data/filezilla-3.51.0/src/interface/updater.cpp:842: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[65536];
data/filezilla-3.51.0/src/interface/volume_enumerator.cpp:73: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 share_name[512];
data/filezilla-3.51.0/src/interface/volume_enumerator.cpp:85: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 volume_name[501];
data/filezilla-3.51.0/src/interface/wxfilesystem_blob_handler.cpp:53:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf, data.data(), data.size());
data/filezilla-3.51.0/src/interface/xmlfunctions.cpp:577:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer, data, size);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:100:50:  [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.
#define PUGI__STATIC_ASSERT(cond) { static const char condition_failed[(cond) ? 1 : -1] = {0}; (void)condition_failed[0]; }
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:122:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
using std::memcpy;
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:1840:24:  [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 chartype_table[256] =
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:1870:24:  [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 chartypex_table[256] =
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:2055:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer, contents, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:2231: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(buffer, data, prefix_length);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:2374:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, source, source_length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:2390:4:  [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, source, source_length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:3763:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer + bufsize, data, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:3773:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + offset, data, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4670: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];
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4679: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];
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4898:4:  [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(write, chunk->data, chunk->size);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:5007: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 mode_ascii[4] = {0};
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:5011:18:  [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).
		FILE* result = fopen(path_utf8, mode_ascii);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:6168: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(&result[offset], j->name, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7120:27:  [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).
		auto_deleter<FILE> file(fopen(path_, "rb"), impl::close_file);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7203:27:  [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).
		auto_deleter<FILE> file(fopen(path_, (flags & format_save_file_text) ? "w" : "wb"), impl::close_file);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7542:4:  [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 data[xpath_memory_page_size];
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7619: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(result, ptr, old_size);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7735:4:  [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(result, string, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7797:22:  [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 (!_uses_heap) memcpy(result, _buffer, target_length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7800: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(result + target_length, o._buffer, source_length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8207:18:  [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).
		int exponent = atoi(exponent_string + 1);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8234: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 mantissa_buffer[32];
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8350: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(scratch, begin, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8505: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 table[128] = {0};
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8530: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(result, table, sizeof(table));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8647: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(result->name, name, (length + 1) * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8739: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(scratch, begin, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8881:4:  [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(_end, begin_, count * sizeof(xpath_node));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:11142:4:  [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(c, value.begin, length * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:12116:4:  [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(storage, begin_, size_ * sizeof(xpath_node));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:12320: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(copy, value, size);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:12689:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer, r.c_str(), (size - 1) * sizeof(char_t));
data/filezilla-3.51.0/src/pugixml/pugixml.hpp:1005: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 _memory[192];
data/filezilla-3.51.0/src/putty/be_misc.c:16: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 addrbuf[256], *msg;
data/filezilla-3.51.0/src/putty/be_misc.c:94:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(psb->buf + psb->size, data, to_consume);
data/filezilla-3.51.0/src/putty/cmdline.c:236:51:  [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).
                    conf_set_int(conf, CONF_port, atoi(p));
data/filezilla-3.51.0/src/putty/cmdline.c:557:46:  [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).
        conf_set_int(conf, CONF_ssh_nc_port, atoi(portp + 1));
data/filezilla-3.51.0/src/putty/cmdline.c:570:14:  [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).
        fp = fopen(filename, "r");
data/filezilla-3.51.0/src/putty/cmdline.c:576: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 readbuf[4096];
data/filezilla-3.51.0/src/putty/cmdline.c:593:39:  [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).
        conf_set_int(conf, CONF_port, atoi(value));
data/filezilla-3.51.0/src/putty/cmdline.c:798:32:  [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).
                int serspeed = atoi(nextitem);
data/filezilla-3.51.0/src/putty/cproxy.c:41: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 data[260];
data/filezilla-3.51.0/src/putty/cproxy.c:42: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 outbuf[20];
data/filezilla-3.51.0/src/putty/cproxy.c:151: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 chapbuf[514];
data/filezilla-3.51.0/src/putty/cproxy.c:165:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(chapbuf+7, username, ulen);
data/filezilla-3.51.0/src/putty/fzsftp.c:38: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 buffer[21];
data/filezilla-3.51.0/src/putty/import.c:280: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 iv[32];
data/filezilla-3.51.0/src/putty/import.c:312: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 base64_bit[4];
data/filezilla-3.51.0/src/putty/import.c:426:30:  [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[3];
data/filezilla-3.51.0/src/putty/import.c:548:18:  [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 keybuf[32];
data/filezilla-3.51.0/src/putty/import.c:789: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 zero[1];
data/filezilla-3.51.0/src/putty/import.c:790: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 iv[8];
data/filezilla-3.51.0/src/putty/import.c:990:18:  [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 keybuf[32];
data/filezilla-3.51.0/src/putty/import.c:1101: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 base64_bit[4];
data/filezilla-3.51.0/src/putty/import.c:1145:26:  [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[3];
data/filezilla-3.51.0/src/putty/import.c:1324:18:  [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 keybuf[48];
data/filezilla-3.51.0/src/putty/import.c:1490: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 bcrypt_salt[16];
data/filezilla-3.51.0/src/putty/import.c:1564:22:  [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 keybuf[48];
data/filezilla-3.51.0/src/putty/import.c:1705: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 comment[256];                 /* allowing any length is overkill */
data/filezilla-3.51.0/src/putty/import.c:1719: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 base64_bit[4];
data/filezilla-3.51.0/src/putty/import.c:1810:30:  [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[3];
data/filezilla-3.51.0/src/putty/import.c:2019:18:  [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 keybuf[32], iv[8];
data/filezilla-3.51.0/src/putty/import.c:2269:18:  [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 keybuf[32], iv[8];
data/filezilla-3.51.0/src/putty/logging.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256], *event;
data/filezilla-3.51.0/src/putty/logging.c:282: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 dumpdata[128], smalldata[5];
data/filezilla-3.51.0/src/putty/logging.c:316: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[256];
data/filezilla-3.51.0/src/putty/logging.c:364:17:  [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.
                sprintf(smalldata, "XX");
data/filezilla-3.51.0/src/putty/logging.c:366:32:  [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.
                c = ((unsigned char *)data)[p];
data/filezilla-3.51.0/src/putty/logging.c:367:17:  [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.
                sprintf(smalldata, "%02x", c);
data/filezilla-3.51.0/src/putty/logging.c:380:17:  [2] (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). Risk is low because the source is a constant string.
                strcpy(dumpdata + 10+1+3*16+2+output_pos, "\r\n");
data/filezilla-3.51.0/src/putty/logging.c:451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32], *bufp;
data/filezilla-3.51.0/src/putty/logging.c:486: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.
                size = sprintf(buf, "%d", port);
data/filezilla-3.51.0/src/putty/marshal.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/filezilla-3.51.0/src/putty/marshal.c:42: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 data[2];
data/filezilla-3.51.0/src/putty/marshal.c:49: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 data[4];
data/filezilla-3.51.0/src/putty/marshal.c:56: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 data[8];
data/filezilla-3.51.0/src/putty/memory.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(toret, ptr, oldsize * eltsize);
data/filezilla-3.51.0/src/putty/misc.c:72:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newbuf, pr->result, pr->resultsize);
data/filezilla-3.51.0/src/putty/misc.c:188:22:  [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 decoded[6];
data/filezilla-3.51.0/src/putty/mpint.c:167: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(x->w, w, x->nw * sizeof(BignumInt));
data/filezilla-3.51.0/src/putty/network.h:229:18:  [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 ipv6[16];
data/filezilla-3.51.0/src/putty/network.h:230:18:  [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 ipv4[4];
data/filezilla-3.51.0/src/putty/network.h:290:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8192];
data/filezilla-3.51.0/src/putty/portfwd.c:840:17:  [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).
        sport = atoi(sports);
data/filezilla-3.51.0/src/putty/portfwd.c:866: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).
            dport = atoi(dports);
data/filezilla-3.51.0/src/putty/proxy.c:145:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char databuf[512];
data/filezilla-3.51.0/src/putty/proxy.c:149:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(databuf, data.ptr, data.len);
data/filezilla-3.51.0/src/putty/proxy.c:249: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 hostip[64];
data/filezilla-3.51.0/src/putty/proxy.c:482:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char addrbuf[256], *logmsg;
data/filezilla-3.51.0/src/putty/proxy.c:572: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, dest[512];
data/filezilla-3.51.0/src/putty/proxy.c:590:13:  [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.
            sprintf(buf2, "Proxy-Authorization: Basic ");
data/filezilla-3.51.0/src/putty/proxy.c:594:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(buf2+j, "\r\n");
data/filezilla-3.51.0/src/putty/proxy.c:761: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 hostname[512];
data/filezilla-3.51.0/src/putty/proxy.c:771:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char addr[4];
data/filezilla-3.51.0/src/putty/proxy.c:846:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[8];
data/filezilla-3.51.0/src/putty/proxy.c:989:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[2];
data/filezilla-3.51.0/src/putty/proxy.c:1023:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[2];
data/filezilla-3.51.0/src/putty/proxy.c:1089:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char hostname[512];
data/filezilla-3.51.0/src/putty/proxy.c:1134:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[5];
data/filezilla-3.51.0/src/putty/proxy.c:1151:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[256];
data/filezilla-3.51.0/src/putty/proxy.c:1153:17:  [2] (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). Risk is low because the source is a constant string.
                strcpy(buf, "Proxy error: ");
data/filezilla-3.51.0/src/putty/proxy.c:1156:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 1: strcat(buf, "General SOCKS server failure"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1157:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 2: strcat(buf, "Connection not allowed by ruleset"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1158:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 3: strcat(buf, "Network unreachable"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1159:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 4: strcat(buf, "Host unreachable"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1160:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 5: strcat(buf, "Connection refused"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1161:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 6: strcat(buf, "TTL expired"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1162:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 7: strcat(buf, "Command not supported"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1163:27:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                  case 8: strcat(buf, "Address type not supported"); break;
data/filezilla-3.51.0/src/putty/proxy.c:1164:28:  [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.
                  default: sprintf(buf+strlen(buf),
data/filezilla-3.51.0/src/putty/proxy.c:1373:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dest[512];
data/filezilla-3.51.0/src/putty/proxy.c:1453:28:  [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.
                    out += sprintf(out, "\\x%02X", (unsigned)*in & 0xFF);
data/filezilla-3.51.0/src/putty/psftp.c:484: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 buffer[4096*4];
data/filezilla-3.51.0/src/putty/psftp.c:609:18:  [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).
    portnumber = atoi(cmd->words[3]);
data/filezilla-3.51.0/src/putty/psftp.c:1422:22:  [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).
        portnumber = atoi(cmd->words[2]);
data/filezilla-3.51.0/src/putty/putty.h:159:5:  [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 unitab_scoacs[256];
data/filezilla-3.51.0/src/putty/putty.h:160:5:  [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 unitab_line[256];
data/filezilla-3.51.0/src/putty/putty.h:161:5:  [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 unitab_font[256];
data/filezilla-3.51.0/src/putty/putty.h:162:5:  [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 unitab_xterm[256];
data/filezilla-3.51.0/src/putty/putty.h:163:5:  [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 unitab_oemcp[256];
data/filezilla-3.51.0/src/putty/putty.h:164: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 unitab_ctrl[256];
data/filezilla-3.51.0/src/putty/settings.c:700: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[20], buf2[30];
data/filezilla-3.51.0/src/putty/settings.c:701:9:  [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.
        sprintf(buf, "Colour%d", i);
data/filezilla-3.51.0/src/putty/settings.c:702:9:  [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.
        sprintf(buf2, "%d,%d,%d",
data/filezilla-3.51.0/src/putty/settings.c:716: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[20], buf2[256];
data/filezilla-3.51.0/src/putty/settings.c:718:9:  [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.
        sprintf(buf, "Wordness%d", i);
data/filezilla-3.51.0/src/putty/settings.c:1136: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[20], *buf2;
data/filezilla-3.51.0/src/putty/settings.c:1138:9:  [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.
        sprintf(buf, "Colour%d", i);
data/filezilla-3.51.0/src/putty/settings.c:1165: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[20], *buf2, *p;
data/filezilla-3.51.0/src/putty/settings.c:1167:9:  [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.
        sprintf(buf, "Wordness%d", i);
data/filezilla-3.51.0/src/putty/settings.c:1176:54:  [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).
            conf_set_int_int(conf, CONF_wordness, j, atoi(q));
data/filezilla-3.51.0/src/putty/sftp.c:39: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 x[4];
data/filezilla-3.51.0/src/putty/sftp.c:723:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, data.ptr, data.len);
data/filezilla-3.51.0/src/putty/sftp.h:339: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 (*open)(SftpServer *srv, SftpReplyBuilder *reply,
data/filezilla-3.51.0/src/putty/sftp.h:402: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).
{ srv->vt->open(srv, reply, path, flags, attrs); }
data/filezilla-3.51.0/src/putty/sftpcommon.c:22: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(pkt->data + pkt->length, data, length);
data/filezilla-3.51.0/src/putty/ssh.c:672:30:  [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).
                *savedport = atoi(colon);
data/filezilla-3.51.0/src/putty/ssh.c:1211: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[64];
data/filezilla-3.51.0/src/putty/ssh2bpp.c:371:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(s->data, s->buf, s->maxlen);
data/filezilla-3.51.0/src/putty/ssh2bpp.c:388:26:  [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 len[4];
data/filezilla-3.51.0/src/putty/ssh2bpp.c:389:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(len, s->buf, 4);
data/filezilla-3.51.0/src/putty/ssh2bpp.c:421:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(s->data, s->buf, 4);
data/filezilla-3.51.0/src/putty/ssh2bpp.c:486:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(s->data, s->buf, s->cipherblk);
data/filezilla-3.51.0/src/putty/ssh2bpp.c:551:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(s->data + 5, newpayload, newlen);
data/filezilla-3.51.0/src/putty/ssh2connection.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char reason_code_buf[256];
data/filezilla-3.51.0/src/putty/ssh2connection.c:114:9:  [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.
        sprintf(reason_code_buf, "unknown reason code %#x", reason_code);
data/filezilla-3.51.0/src/putty/ssh2transport.c:103:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const kexlist_descr[NKEXLIST] = {
data/filezilla-3.51.0/src/putty/ssh2transport.c:1291:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->session_id, s->exchange_hash, sizeof(s->exchange_hash));
data/filezilla-3.51.0/src/putty/ssh2transport.h:128: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 session_id[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/ssh2transport.h:178: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 exchange_hash[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshaes.c:196:22:  [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 adata[4];
data/filezilla-3.51.0/src/putty/sshaes.c:234: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->iv, iv, 12);
data/filezilla-3.51.0/src/putty/sshaes.c:240: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 adata[4];
data/filezilla-3.51.0/src/putty/sshaes.c:338:22:  [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 adata[4];
data/filezilla-3.51.0/src/putty/sshaes.c:376: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->iv, iv, 12);
data/filezilla-3.51.0/src/putty/sshaes.c:382: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 adata[4];
data/filezilla-3.51.0/src/putty/sshaes.c:553:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *prefix, const uint16_t slices[8])
data/filezilla-3.51.0/src/putty/sshaes.c:566:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *prefix, const BignumInt slices[8])
data/filezilla-3.51.0/src/putty/sshaes.c:1176:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(inblk, key + 4*i, 4);
data/filezilla-3.51.0/src/putty/sshaes.c:1377: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->iv.cbc.prevblk, iv, 16);
data/filezilla-3.51.0/src/putty/sshaes.c:1440:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(blk, ctx->iv.cbc.prevblk, 16);
data/filezilla-3.51.0/src/putty/sshaes.c:1474:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, blk, 16 * blocks);
data/filezilla-3.51.0/src/putty/sshaes.c:1483:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ctx->iv.cbc.prevblk, output, 16);
data/filezilla-3.51.0/src/putty/sshaes.c:1484:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(output, decrypted, 16);
data/filezilla-3.51.0/src/putty/ssharcf.c:11: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 i, j, s[256];
data/filezilla-3.51.0/src/putty/ssharcf.c:36: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 tmp, k[256], *s;
data/filezilla-3.51.0/src/putty/sshauxcrypt.c:20: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 iv[16];
data/filezilla-3.51.0/src/putty/sshauxcrypt.c:52: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(keys3, vkey, 16);
data/filezilla-3.51.0/src/putty/sshauxcrypt.c:53: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(keys3 + 16, vkey, 8);
data/filezilla-3.51.0/src/putty/sshauxcrypt.c:114: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 key[8];
data/filezilla-3.51.0/src/putty/sshbcrypt.c:35:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void bcrypt_hash(const unsigned char *key, int keybytes,
data/filezilla-3.51.0/src/putty/sshbcrypt.c:36:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 const unsigned char *salt, int saltbytes,
data/filezilla-3.51.0/src/putty/sshbcrypt.c:37:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 unsigned char output[32])
data/filezilla-3.51.0/src/putty/sshbcrypt.c:45: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(output, "cyxOmorhcitawolBhsiftawSanyDetim", 32);
data/filezilla-3.51.0/src/putty/sshbcrypt.c:53:37:  [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 hashed_passphrase[64],
data/filezilla-3.51.0/src/putty/sshbcrypt.c:54:37:  [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 *salt, int saltbytes,
data/filezilla-3.51.0/src/putty/sshbcrypt.c:55:31:  [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 output[32])
data/filezilla-3.51.0/src/putty/sshbcrypt.c:57: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 hashed_salt[64];
data/filezilla-3.51.0/src/putty/sshbcrypt.c:76: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 hashed_passphrase[64];
data/filezilla-3.51.0/src/putty/sshbcrypt.c:77: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 block[32], outblock[32];
data/filezilla-3.51.0/src/putty/sshblowf.c:488: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 dummysalt[1];
data/filezilla-3.51.0/src/putty/sshccp.c:50: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 current[64];
data/filezilla-3.51.0/src/putty/sshccp.c:125:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char constant[16] = "expand 32-byte k";
data/filezilla-3.51.0/src/putty/sshccp.c:759: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 nonce[16];
data/filezilla-3.51.0/src/putty/sshccp.c:764: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 buffer[16];
data/filezilla-3.51.0/src/putty/sshccp.c:779: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 key_copy[16];
data/filezilla-3.51.0/src/putty/sshccp.c:780: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(key_copy, key.ptr, 16);
data/filezilla-3.51.0/src/putty/sshccp.c:796: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->nonce, (const char *)key.ptr + 16, 16);
data/filezilla-3.51.0/src/putty/sshccp.c:836:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->buffer, buf, len);
data/filezilla-3.51.0/src/putty/sshccp.c:865: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 mac_iv[8];
data/filezilla-3.51.0/src/putty/sshccp.c:1004: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 iv[8];
data/filezilla-3.51.0/src/putty/sshcommon.c:262: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(pkt->data + pkt->length, data, len);
data/filezilla-3.51.0/src/putty/sshcommon.c:577:29:  [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).
                    ival = (atoi(sval) != 0);
data/filezilla-3.51.0/src/putty/sshdss.c:96: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 hash[20];
data/filezilla-3.51.0/src/putty/sshdss.c:221: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 digest[20];
data/filezilla-3.51.0/src/putty/sshdss.c:394: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 digest512[64];
data/filezilla-3.51.0/src/putty/sshdss.c:432: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 digest[20];
data/filezilla-3.51.0/src/putty/sshecc.c:315: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 hash[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshecc.c:837: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 hash[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshecc.c:930: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 hash[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshecc.c:1004:18:  [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 digest[20];
data/filezilla-3.51.0/src/putty/sshecc.c:1065: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 hash[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshhmac.c:180: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(output, ctx->digest, mac->vt->len);
data/filezilla-3.51.0/src/putty/sshmac.c:12: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 correct[64]; /* at least as big as all known MACs */
data/filezilla-3.51.0/src/putty/sshmd5.c:15: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 block[64];
data/filezilla-3.51.0/src/putty/sshmd5.c:160:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->block + s->blkused, q, len);
data/filezilla-3.51.0/src/putty/sshmd5.c:167:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(s->block + s->blkused, q, BLKSIZE - s->blkused);
data/filezilla-3.51.0/src/putty/sshmd5.c:181:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->block, q, len);
data/filezilla-3.51.0/src/putty/sshmd5.c:186:24:  [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 MD5Final(unsigned char output[16], struct MD5Context *s)
data/filezilla-3.51.0/src/putty/sshmd5.c:190: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 c[64];
data/filezilla-3.51.0/src/putty/sshmd5.c:216:54:  [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 MD5Simple(void const *p, unsigned len, unsigned char output[16])
data/filezilla-3.51.0/src/putty/sshpubk.c:104:18:  [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 keybuf[16];
data/filezilla-3.51.0/src/putty/sshpubk.c:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/filezilla-3.51.0/src/putty/sshpubk.c:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/filezilla-3.51.0/src/putty/sshpubk.c:229:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/filezilla-3.51.0/src/putty/sshpubk.c:291:13:  [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).
        if (atoi(bitsp) != mp_get_nbits(key.modulus)) {
data/filezilla-3.51.0/src/putty/sshpubk.c:373:18:  [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 keybuf[16];
data/filezilla-3.51.0/src/putty/sshpubk.c:545:22:  [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 decoded[3];
data/filezilla-3.51.0/src/putty/sshpubk.c:615: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 header[40], *b, *encryption, *comment, *mac;
data/filezilla-3.51.0/src/putty/sshpubk.c:734:18:  [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[40];
data/filezilla-3.51.0/src/putty/sshpubk.c:752: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 realmac[41];
data/filezilla-3.51.0/src/putty/sshpubk.c:753:18:  [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 binary[20];
data/filezilla-3.51.0/src/putty/sshpubk.c:776:22:  [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 mackey[20];
data/filezilla-3.51.0/src/putty/sshpubk.c:801:13:  [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.
            sprintf(realmac + 2 * i, "%02x", binary[i]);
data/filezilla-3.51.0/src/putty/sshpubk.c:869: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 base64in[4];
data/filezilla-3.51.0/src/putty/sshpubk.c:870: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 base64out[3];
data/filezilla-3.51.0/src/putty/sshpubk.c:1069: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 header[40], *b;
data/filezilla-3.51.0/src/putty/sshpubk.c:1170: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 header[40], *b, *comment;
data/filezilla-3.51.0/src/putty/sshpubk.c:1235: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[4];
data/filezilla-3.51.0/src/putty/sshpubk.c:1279: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 priv_mac[20];
data/filezilla-3.51.0/src/putty/sshpubk.c:1303: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(priv_blob_encrypted, priv_blob->u, priv_blob->len);
data/filezilla-3.51.0/src/putty/sshpubk.c:1308: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(priv_blob_encrypted + priv_blob->len, priv_mac,
data/filezilla-3.51.0/src/putty/sshpubk.c:1314:18:  [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 mackey[20];
data/filezilla-3.51.0/src/putty/sshpubk.c:1336:18:  [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[40];
data/filezilla-3.51.0/src/putty/sshpubk.c:1420:18:  [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.
    p = buffer + sprintf(buffer, "%.*s ", PTRLEN_PRINTF(alg));
data/filezilla-3.51.0/src/putty/sshpubk.c:1476:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[5];
data/filezilla-3.51.0/src/putty/sshpubk.c:1506: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 digest[32];
data/filezilla-3.51.0/src/putty/sshpubk.c:1507: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 fingerprint_str_md5[16*3];
data/filezilla-3.51.0/src/putty/sshpubk.c:1508: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 fingerprint_str_sha256[45]; /* ceil(32/3)*4+1 */
data/filezilla-3.51.0/src/putty/sshpubk.c:1562:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/filezilla-3.51.0/src/putty/sshrsa.c:261: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 digest[16];
data/filezilla-3.51.0/src/putty/sshrsa.c:668: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(bytes + 2 + padding, asn1_prefix.ptr, asn1_prefix.len);
data/filezilla-3.51.0/src/putty/sshrsa.c:820:18:  [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[MAX_HASH_LEN];
data/filezilla-3.51.0/src/putty/sshrsa.c:900: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(out + outlen - in.len, in.ptr, in.len);
data/filezilla-3.51.0/src/putty/sshrsa.c:937: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 labelhash[64];
data/filezilla-3.51.0/src/putty/sshsh256.c:155: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(blk->block + blk->used, p, chunk);
data/filezilla-3.51.0/src/putty/sshsh256.c:294: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(copy, s, sizeof(*copy));
data/filezilla-3.51.0/src/putty/sshsh512.c:16: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 block[BLKSIZE];
data/filezilla-3.51.0/src/putty/sshsh512.c:228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->block + s->blkused, q, len);
data/filezilla-3.51.0/src/putty/sshsh512.c:235:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(s->block + s->blkused, q, BLKSIZE - s->blkused);
data/filezilla-3.51.0/src/putty/sshsh512.c:244:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s->block, q, len);
data/filezilla-3.51.0/src/putty/sshsh512.c:252: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 c[BLKSIZE];
data/filezilla-3.51.0/src/putty/sshsh512.c:275:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char biggerDigest[512 / 8];
data/filezilla-3.51.0/src/putty/sshsh512.c:277: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(digest, biggerDigest, 384 / 8);
data/filezilla-3.51.0/src/putty/sshsha.c:140: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(blk->block + blk->used, p, chunk);
data/filezilla-3.51.0/src/putty/sshsha.c:277: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(copy, s, sizeof(*copy));
data/filezilla-3.51.0/src/putty/sshshare.c:167: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 recvbuf[0x4010];
data/filezilla-3.51.0/src/putty/sshshare.c:982: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(msg->data, data, len);
data/filezilla-3.51.0/src/putty/sshshare.c:1242:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rewritten, pkt, pktlen);
data/filezilla-3.51.0/src/putty/sshverstring.c:29: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 prefix[PREFIX_MAXLEN];
data/filezilla-3.51.0/src/putty/sshzlib.c:109: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 data[WINSIZE];
data/filezilla-3.51.0/src/putty/sshzlib.c:112: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 pending[HASHCHARS];
data/filezilla-3.51.0/src/putty/sshzlib.c:198:18:  [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 foo[HASHCHARS];
data/filezilla-3.51.0/src/putty/sshzlib.c:363:23:  [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 mirrorbytes[256] = {
data/filezilla-3.51.0/src/putty/sshzlib.c:852: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 lenlen[19];
data/filezilla-3.51.0/src/putty/sshzlib.c:896: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 lengths[288 + 32];
data/filezilla-3.51.0/src/putty/sshzlib.c:900: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 window[WINSIZE];
data/filezilla-3.51.0/src/putty/sshzlib.c:910: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 lengths[288];
data/filezilla-3.51.0/src/putty/stripctrl.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SCC_BUFSIZE];
data/filezilla-3.51.0/src/putty/stripctrl.c:178: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 outbuf[MB_LEN_MAX];
data/filezilla-3.51.0/src/putty/stripctrl.c:220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[6];
data/filezilla-3.51.0/src/putty/stripctrl.c:320:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(scc->buf + scc->buflen, p, to_copy);
data/filezilla-3.51.0/src/putty/stripctrl.c:389: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(scc->buf, p, len);
data/filezilla-3.51.0/src/putty/terminal.h:185: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 osc_string[OSC_STR_MAX + 1];
data/filezilla-3.51.0/src/putty/terminal.h:188: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 id_string[1024];
data/filezilla-3.51.0/src/putty/tree234.c:1523: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 *expected[NSTR], *p;
data/filezilla-3.51.0/src/putty/tree234.c:1524: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 directionbuf[NSTR * 10];
data/filezilla-3.51.0/src/putty/tree234.c:1603:23:  [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 *)array[j], j);
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:30: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 sizebuf[4];
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:84:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(conn->retbuf, conn->sizebuf, 4);
data/filezilla-3.51.0/src/putty/unix/uxcons.c:203:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[32];
data/filezilla-3.51.0/src/putty/unix/uxcons.c:269:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[32];
data/filezilla-3.51.0/src/putty/unix/uxmisc.c:99:20:  [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).
        debug_fp = fopen("debug.log", "w");
data/filezilla-3.51.0/src/putty/unix/uxmisc.c:243:16:  [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(filename->path, mode);
data/filezilla-3.51.0/src/putty/unix/uxmisc.c:248: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).
        fd = open(filename->path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:75: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 oobdata[1];
data/filezilla-3.51.0/src/putty/unix/uxnet.c:110: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 hostname[512];                /* Store an unresolved host name. */
data/filezilla-3.51.0/src/putty/unix/uxnet.c:459:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, &((struct sockaddr_in *)step.ai->ai_addr)->sin_addr,
data/filezilla-3.51.0/src/putty/unix/uxnet.c:462:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, &((struct sockaddr_in6 *)step.ai->ai_addr)->sin6_addr,
data/filezilla-3.51.0/src/putty/unix/uxnet.c:471:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, (char*) &a.s_addr, 4);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:828: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 portstr[6];
data/filezilla-3.51.0/src/putty/unix/uxnet.c:923:9:  [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.
        sprintf(portstr, "%d", port);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1080:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, u.sin6.sin6_addr.s6_addr + 12, 4);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1253: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(s->oobdata, buf, len);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1298:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20480];                   /* nice big buffer for plenty of speed */
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1534:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[INET6_ADDRSTRLEN];
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1549:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pi->addr_bin.ipv4, &addr.sin.sin_addr, 4);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1557:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pi->addr_bin.ipv6, &addr.sin6.sin6_addr, 16);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1575:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char uidbuf[64], gidbuf[64];
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1576:13:  [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.
            sprintf(uidbuf, "%d", uid);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1577:13:  [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.
            sprintf(gidbuf, "%d", gid);
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:24: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).
    fd = open("/dev/urandom", O_RDONLY);
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:98: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 ((fd = open("/proc/meminfo", O_RDONLY)) >= 0) {
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:103: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 ((fd = open("/proc/stat", O_RDONLY)) >= 0) {
data/filezilla-3.51.0/src/putty/unix/uxsftp.c:135: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).
    fd = open(name, O_RDONLY);
data/filezilla-3.51.0/src/putty/unix/uxsftp.c:189: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).
    fd = open(name, O_CREAT | O_TRUNC | O_WRONLY,
data/filezilla-3.51.0/src/putty/unix/uxsftp.c:207: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).
    fd = open(name, O_APPEND | O_WRONLY);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:38:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char hex[16] = "0123456789ABCDEF";
data/filezilla-3.51.0/src/putty/unix/uxstore.c:254: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).
    fp = fopen(filename, "w");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:330: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(key, p, q-p);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:377: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).
    fp = fopen(filename, "r");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:444:16:  [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).
        return atoi(val);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:616: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).
    fp = fopen(filename, "r");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:625: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 porttext[20];
data/filezilla-3.51.0/src/putty/unix/uxstore.c:638:9:  [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.
        sprintf(porttext, "%d", port);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:698:11:  [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).
    wfp = fopen(tmpfilename, "w");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:712:15:  [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).
        wfp = fopen(tmpfilename, "w");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:721:11:  [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).
    rfp = fopen(filename, "r");
data/filezilla-3.51.0/src/putty/unix/uxstore.c:763: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).
    fd = open(fname, O_RDONLY);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:766: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[512];
data/filezilla-3.51.0/src/putty/unix/uxstore.c:785: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).
    fd = open(fname, O_CREAT | O_WRONLY, 0600);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:805: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).
        fd = open(fname, O_CREAT | O_WRONLY, 0600);
data/filezilla-3.51.0/src/putty/utils.c:141: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 set[2];
data/filezilla-3.51.0/src/putty/utils.c:148: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 set[2];
data/filezilla-3.51.0/src/putty/utils.c:307:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&a, &b, sizeof(va_list)))
data/filezilla-3.51.0/src/putty/utils.c:425: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(strbuf_append(buf_o, len), data, len);
data/filezilla-3.51.0/src/putty/utils.c:512:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/filezilla-3.51.0/src/putty/utils.c:688:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ch->tail->bufend, buf, copylen);
data/filezilla-3.51.0/src/putty/utils.c:756:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data_c, tmp->bufpos, remlen);
data/filezilla-3.51.0/src/putty/utils.c:812: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 foo[17];
data/filezilla-3.51.0/src/putty/utils.c:824:9:  [2] (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). Risk is low because the source is a constant string.
        strcpy(foo, "................");        /* sixteen dots */
data/filezilla-3.51.0/src/putty/utils.c:984: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, pl.ptr, pl.len);
data/filezilla-3.51.0/src/putty/windows/wincons.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[32];
data/filezilla-3.51.0/src/putty/windows/wincons.c:204:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[32];
data/filezilla-3.51.0/src/putty/windows/winhandl.c:99:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];                 /* the data read from the handle */
data/filezilla-3.51.0/src/putty/windows/winmisc.c:280: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 msgtext[65536]; /* maximum size for FormatMessage is 64K */
data/filezilla-3.51.0/src/putty/windows/winmisc.c:288:13:  [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.
            sprintf(msgtext,
data/filezilla-3.51.0/src/putty/windows/winmisc.c:373:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char hex[16] = "0123456789ABCDEF";
data/filezilla-3.51.0/src/putty/windows/winmisc.c:424:20:  [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).
        debug_fp = fopen("debug.log", "w");
data/filezilla-3.51.0/src/putty/windows/winmisc.c:504:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, 0, 0);
data/filezilla-3.51.0/src/putty/windows/winmisc.c:513:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (MultiByteToWideChar(CP_UTF8, 0, utf8, -1, w, len) <= 0)
data/filezilla-3.51.0/src/putty/windows/winmiscs.c:233: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(q, p, (oldsize < size ? oldsize : size));
data/filezilla-3.51.0/src/putty/windows/winnet.c:62: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 oobdata[1];
data/filezilla-3.51.0/src/putty/windows/winnet.c:95: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 hostname[512];                /* Store an unresolved host name. */
data/filezilla-3.51.0/src/putty/windows/winnet.c:448: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 realhost[8192];
data/filezilla-3.51.0/src/putty/windows/winnet.c:784:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, &((struct sockaddr_in *)step.ai->ai_addr)->sin_addr,
data/filezilla-3.51.0/src/putty/windows/winnet.c:787:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, &((struct sockaddr_in6 *)step.ai->ai_addr)->sin6_addr,
data/filezilla-3.51.0/src/putty/windows/winnet.c:797:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, (char*) &a.s_addr, 4);
data/filezilla-3.51.0/src/putty/windows/winnet.c:1513: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(s->oobdata, buf, len);
data/filezilla-3.51.0/src/putty/windows/winnet.c:1547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[20480];                   /* nice big buffer for plenty of speed */
data/filezilla-3.51.0/src/putty/windows/winnet.c:1755:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[INET6_ADDRSTRLEN];
data/filezilla-3.51.0/src/putty/windows/winnet.c:1771:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pi->addr_bin.ipv4, &((struct sockaddr_in *)&addr)->sin_addr, 4);
data/filezilla-3.51.0/src/putty/windows/winnet.c:1780:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pi->addr_bin.ipv6,
data/filezilla-3.51.0/src/putty/windows/winnet.c:1863: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 hostbuf[256]; /* MSDN docs for gethostname() promise this is enough */
data/filezilla-3.51.0/src/putty/windows/winnoise.c:54: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 winpath[MAX_PATH + 3];
data/filezilla-3.51.0/src/putty/windows/winnoise.c:58:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(winpath, "\\*");
data/filezilla-3.51.0/src/putty/windows/winpgntc.c:100: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, query->s, query->len);
data/filezilla-3.51.0/src/putty/windows/winpgntc.c:116:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ret, p, retlen);
data/filezilla-3.51.0/src/putty/windows/winstore.c:520: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 regpath[MAX_PATH + 1];
data/filezilla-3.51.0/src/putty/windows/winstore.c:551: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 profile[MAX_PATH + 1];
data/filezilla-3.51.0/src/putty/windows/winstore.c:570: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 drv[MAX_PATH], path[MAX_PATH];
data/filezilla-3.51.0/src/putty/windows/winstore.c:591: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 windir[MAX_PATH];
data/filezilla-3.51.0/src/putty/windows/winstore.c:611:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[1024];
data/filezilla-3.51.0/src/putty/windows/winstore.c:804:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_PATH + 1];
data/filezilla-3.51.0/src/putty/windows/winstore.c:821:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_PATH + 1];
data/filezilla-3.51.0/src/putty/windows/winstuff.h:533: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 shortcuts[MAX_SHORTCUTS_PER_CTRL];
data/filezilla-3.51.0/src/putty/x11fwd.c:34: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 clientid[6];
data/filezilla-3.51.0/src/putty/x11fwd.c:38: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 firstpkt[12];        /* first X data packet */
data/filezilla-3.51.0/src/putty/x11fwd.c:124:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(auth->xa1_firstblock, auth->data, 8);
data/filezilla-3.51.0/src/putty/x11fwd.c:135:9:  [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.
        sprintf(auth->datastring + i*2, "%02x",
data/filezilla-3.51.0/src/putty/x11fwd.c:244:28:  [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).
        disp->displaynum = atoi(colon);
data/filezilla-3.51.0/src/putty/x11fwd.c:246:31:  [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).
            disp->screennum = atoi(dot);
data/filezilla-3.51.0/src/putty/x11fwd.c:431:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(seen->clientid, data+8, 6);
data/filezilla-3.51.0/src/putty/x11fwd.c:516:14:  [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).
    authfp = fopen(authfilename, "rb");
data/filezilla-3.51.0/src/putty/x11fwd.c:543:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, buf + src->pos, size);
data/filezilla-3.51.0/src/putty/x11fwd.c:551:45:  [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).
        displaynum = displaynum_string[0] ? atoi(displaynum_string) : -1;
data/filezilla-3.51.0/src/putty/x11fwd.c:606:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[4];
data/filezilla-3.51.0/src/putty/x11fwd.c:619:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[16];
data/filezilla-3.51.0/src/putty/x11fwd.c:643:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(disp->localauthdata, data.ptr, data.len);
data/filezilla-3.51.0/src/putty/x11fwd.c:664: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 ipv4buf[4];
data/filezilla-3.51.0/src/putty/x11fwd.c:669: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 ipv6buf[16];
data/filezilla-3.51.0/src/putty/x11fwd.c:761:12:  [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).
    return atoi(display + n + 1);
data/filezilla-3.51.0/src/putty/x11fwd.c:891: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(reply + 2, xconn->firstpkt + 2, 4);  /* major/minor proto vsn */
data/filezilla-3.51.0/src/putty/x11fwd.c:894: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(reply + 8, full_message, msglen);
data/filezilla-3.51.0/src/putty/x11fwd.c:978: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 new_peer_addr[32];
data/filezilla-3.51.0/src/putty/x11fwd.c:1045:13:  [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.
            sprintf(new_peer_addr, "%d.%d.%d.%d", socketdata[0],
data/filezilla-3.51.0/src/putty/x11fwd.c:1049:13:  [2] (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). Risk is low because the source is a constant string.
            strcpy(new_peer_addr, "0.0.0.0");
data/filezilla-3.51.0/src/putty/x11fwd.c:1127: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 bytestr[3];
data/filezilla-3.51.0/src/putty/x11fwd.c:1150: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 realauthdata[64];
data/filezilla-3.51.0/src/putty/x11fwd.c:1173:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(realauthdata, auth_data, 8);
data/filezilla-3.51.0/src/putty/x11fwd.c:1195: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(greeting+12, authname, authnamelen);
data/filezilla-3.51.0/src/putty/x11fwd.c:1196: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(greeting+12+authnamelen_pad, authdata, authdatalen);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:270: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 (!f.open(fz::to_native(fz::to_wstring_from_utf8(file)), fz::file::reading, fz::file::existing)) {
data/filezilla-3.51.0/tests/dirparsertest.cpp:1476:2:  [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, entry.data.c_str(), len);
data/filezilla-3.51.0/tests/dirparsertest.cpp:1500: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(data, entry.data.c_str(), len);
data/filezilla-3.51.0/tests/dirparsertest.cpp:1542:4:  [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, line.c_str(), line.size());
data/filezilla-3.51.0/src/dbus/session_manager.cpp:188:36:  [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).
			m_client_object_path = new char[strlen(obj_path) + 1];
data/filezilla-3.51.0/src/dbus/wxdbusconnection.cpp:182:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(m_wakeup_pipe[0], &tmp, 1) == 1) {
data/filezilla-3.51.0/src/engine/controlsocket.cpp:772:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:664:36:  [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).
		unsigned int len = (unsigned int)strlen(data[i]);
data/filezilla-3.51.0/src/engine/directorylistingparser.cpp:2225:39:  [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).
					buffer = std::wstring(res, res + strlen(res));
data/filezilla-3.51.0/src/engine/externalipresolver.cpp:108:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/engine/externalipresolver.cpp:138:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = socket_->read(recvBuffer_.get(4096), 4096, error);
data/filezilla-3.51.0/src/engine/externalipresolver.cpp:145:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		else if (!read) {
data/filezilla-3.51.0/src/engine/externalipresolver.cpp:155:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		recvBuffer_.add(read);
data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.cpp:60:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = active_layer_->read(receiveBuffer_.get(toRead), toRead, error);
data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.cpp:61:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read < 0) {
data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.cpp:72:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!read) {
data/filezilla-3.51.0/src/engine/ftp/ftpcontrolsocket.cpp:80:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		receiveBuffer_.add(read);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:125:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:222:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int numread = active_layer_->read(pBuffer, 4096, error);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:265:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				numread = active_layer_->read(m_pTransferBuffer, m_transferBufferLen, error);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:291:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				send_event<fz::socket_event>(active_layer_, fz::socket_event_flag::read, 0);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:299:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int numread = active_layer_->read(buffer, 2, error);
data/filezilla-3.51.0/src/engine/ftp/transfersocket.cpp:332:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int numread = active_layer_->read(discard, 1024, error);
data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp:46:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto bytes_read = file_.read(data, len);
data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp:221:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = active_layer_->read(&buffer, 1, error);
data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp:222:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!read) {
data/filezilla-3.51.0/src/engine/http/httpcontrolsocket.cpp:232:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		else if (read) {
data/filezilla-3.51.0/src/engine/http/request.cpp:386:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = controlSocket_.active_layer_->read(recv_buffer_.get(recv_size), recv_size, error);
data/filezilla-3.51.0/src/engine/http/request.cpp:387:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read <= -1) {
data/filezilla-3.51.0/src/engine/http/request.cpp:394:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		recv_buffer_.add(static_cast<size_t>(read));
data/filezilla-3.51.0/src/engine/http/request.cpp:810:101:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			controlSocket_.send_event<fz::socket_event>(controlSocket_.active_layer_, fz::socket_event_flag::read, 0);
data/filezilla-3.51.0/src/engine/iothread.cpp:40:88:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool CIOThread::Create(fz::thread_pool& pool, std::unique_ptr<fz::file> && pFile, bool read, bool binary)
data/filezilla-3.51.0/src/engine/iothread.cpp:47:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_read = read;
data/filezilla-3.51.0/src/engine/iothread.cpp:50:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/filezilla-3.51.0/src/engine/iothread.cpp:299:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return m_pFile->read(pBuffer, maxLen);
data/filezilla-3.51.0/src/engine/iothread.cpp:309:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto len = m_pFile->read(r, readLen);
data/filezilla-3.51.0/src/engine/iothread.h:36:78:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool Create(fz::thread_pool& pool, std::unique_ptr<fz::file> && pFile, bool read, bool binary);
data/filezilla-3.51.0/src/engine/proxy.cpp:220:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/engine/proxy.cpp:245:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = next_layer_.read(buf, to_read, error);
data/filezilla-3.51.0/src/engine/proxy.cpp:247:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read < 0) {
data/filezilla-3.51.0/src/engine/proxy.cpp:259:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!read) {
data/filezilla-3.51.0/src/engine/proxy.cpp:266:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		receiveBuffer_.add(read);
data/filezilla-3.51.0/src/engine/proxy.cpp:646:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int CProxySocket::read(void * buffer, unsigned int size, int& error)
data/filezilla-3.51.0/src/engine/proxy.cpp:656:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return next_layer_.read(buffer, size, error);
data/filezilla-3.51.0/src/engine/proxy.h:30:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual int read(void *buffer, unsigned int size, int& error) override;
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:110:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = process_.read(reinterpret_cast<char *>(recv_buffer_.get(1024)), 1024);
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:111:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read > 0) {
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:112:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			recv_buffer_.add(read);
data/filezilla-3.51.0/src/engine/sftp/input_thread.cpp:115:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (!read) {
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:75:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int read = process_.read(reinterpret_cast<char *>(recv_buffer_.get(1024)), 1024);
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:76:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read > 0) {
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:77:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			recv_buffer_.add(read);
data/filezilla-3.51.0/src/engine/storj/input_thread.cpp:80:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (!read) {
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:191:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(GLogFile) == 0) {
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:448:43:  [1] (buffer) _tcslen:
  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).
					reinterpret_cast<LPBYTE>(Filename), (_tcslen(Filename) + 1) * sizeof(TCHAR));
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:465:41:  [1] (buffer) _tcslen:
  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).
				reinterpret_cast<LPBYTE>(ClassID), (_tcslen(ClassID) + 1) * 2);
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:895:11:  [1] (buffer) _tcslen:
  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 (_tcslen(DestFile) > DRAG_EXT_MAX_PATH) {
data/filezilla-3.51.0/src/fzshellext/shellext.cpp:899:8:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
							wcsncpy(file, DestFile, DRAG_EXT_MAX_PATH);
data/filezilla-3.51.0/src/interface/LocalListView.cpp:694:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	DWORD read, total;
data/filezilla-3.51.0/src/interface/LocalListView.cpp:706:99:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = NetShareEnum((wchar_t*)(const wchar_t*)buf, 1, &si.pShareInfoBlob, MAX_PREFERRED_LENGTH, &read, &total, &resume_handle);
data/filezilla-3.51.0/src/interface/LocalListView.cpp:713:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		for (unsigned int i = 0; i < read; ++i, ++p) {
data/filezilla-3.51.0/src/interface/dndobjects.cpp:53: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).
		size_t filelen = strlen(p);
data/filezilla-3.51.0/src/interface/fzputtygen_interface.cpp:231:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int read = m_process->read(buffer, 100);
data/filezilla-3.51.0/src/interface/fzputtygen_interface.cpp:232:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read <= 0) {
data/filezilla-3.51.0/src/interface/fzputtygen_interface.cpp:238:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			input.append(buffer, read);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:266:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:300:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		case fz::socket_event_flag::read:
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:347:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int const read = socket_->read(m_recvBuffer + m_recvBufferPos, NETCONFBUFFERSIZE - m_recvBufferPos, error);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:348:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read < 0) {
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:355:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!read) {
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:361:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_recvBufferPos += read;
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:419: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(line);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:458:19:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			m_testResult = mismatch;
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:618:8:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		case mismatch:
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:983:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int const read = data_socket_->read(buffer, 99, error);
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:984:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read) {
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:989:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read < 0) {
data/filezilla-3.51.0/src/interface/netconfwizard.cpp:996:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	buffer[read] = 0;
data/filezilla-3.51.0/src/interface/netconfwizard.h:88:3:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		mismatch,
data/filezilla-3.51.0/src/interface/storj_key_interface.cpp:115:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int read = m_process->read(buffer, 100);
data/filezilla-3.51.0/src/interface/storj_key_interface.cpp:116:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read <= 0) {
data/filezilla-3.51.0/src/interface/storj_key_interface.cpp:122:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			input.append(buffer, read);
data/filezilla-3.51.0/src/interface/updater.cpp:843:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int64_t read;
data/filezilla-3.51.0/src/interface/updater.cpp:844:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((read = f.read(buffer, sizeof(buffer))) > 0) {
data/filezilla-3.51.0/src/interface/updater.cpp:845:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			acc.update(buffer, static_cast<size_t>(read));
data/filezilla-3.51.0/src/interface/updater.cpp:847:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read < 0) {
data/filezilla-3.51.0/src/interface/volume_enumerator.cpp:225: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).
		const int drivelen = fz::strlen(pDrive);
data/filezilla-3.51.0/src/interface/window_state_manager.cpp:141:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read) {
data/filezilla-3.51.0/src/interface/window_state_manager.cpp:155:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!read) {
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:217:10:  [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).
		return wcslen(s);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:219: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(s);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:251:10:  [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).
		return wcslen(s);
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4646: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).
		assert(strlen(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4653: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).
		return strcpy_insitu(dest, header, header_mask, buf, strlen(buf));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4876:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			stream.read(chunk->data, static_cast<std::streamsize>(sizeof(chunk->data) / sizeof(T)));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:4932:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream.read(static_cast<T*>(buffer.data), static_cast<std::streamsize>(read_length));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:7244: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).
		return impl::as_wide_impl(str, strlen(str));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8191: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).
		truncate_zeros(buffer, buffer + strlen(buffer));
data/filezilla-3.51.0/src/pugixml/pugixml.cpp:8241: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 result_size = strlen(mantissa_buffer) + (exponent > 0 ? exponent : -exponent) + 4;
data/filezilla-3.51.0/src/putty/be_misc.c:39: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).
            len = strlen(msg);
data/filezilla-3.51.0/src/putty/cmdgen.c:67: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).
        line[strlen(line) - 1] = 0;
data/filezilla-3.51.0/src/putty/cmdline.c:62: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).
        smemclr(cmdline_password, strlen(cmdline_password));
data/filezilla-3.51.0/src/putty/cmdline.c:105: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).
    smemclr(cmdline_password, strlen(cmdline_password));
data/filezilla-3.51.0/src/putty/cmdline.c:317: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).
                len = strlen(hostname);
data/filezilla-3.51.0/src/putty/cmdline.c:609: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).
            smemclr(value, strlen(value));
data/filezilla-3.51.0/src/putty/cmdline.c:739: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).
                length = strlen(nextitem);
data/filezilla-3.51.0/src/putty/cproxy.c:160: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).
        ulen = strlen(username);
data/filezilla-3.51.0/src/putty/fzsftp.c:36:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        DWORD read;
data/filezilla-3.51.0/src/putty/fzsftp.c:40:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = ReadFile(hin, buffer, 20, &read, 0);
data/filezilla-3.51.0/src/putty/fzsftp.c:45:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buffer[read] = 0;
data/filezilla-3.51.0/src/putty/fzsftp.c:56:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(input_pushback, buffer, pos);
data/filezilla-3.51.0/src/putty/fzsftp.c:233:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(0, input_buf+input_buflen, 1);
data/filezilla-3.51.0/src/putty/import.c:135: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).
    char *p = str + strlen(str);
data/filezilla-3.51.0/src/putty/import.c:353: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).
    smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:446: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:471: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1125: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).
    smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1164: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1279: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1740: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).
    smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1769: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).
            len = hdrstart + strlen(line+hdrstart);
data/filezilla-3.51.0/src/putty/import.c:1782: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).
                line2len = strlen(line2);
data/filezilla-3.51.0/src/putty/import.c:1788: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).
                smemclr(line2, strlen(line2));
data/filezilla-3.51.0/src/putty/import.c:1796:38:  [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 (p[0] == '"' && p[strlen(p)-1] == '"') {
data/filezilla-3.51.0/src/putty/import.c:1798: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).
                    p[strlen(p)-1] = '\0';
data/filezilla-3.51.0/src/putty/import.c:1800:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(ret->comment, p, sizeof(ret->comment));
data/filezilla-3.51.0/src/putty/import.c:1827: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:1846: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).
        smemclr(line, strlen(line));
data/filezilla-3.51.0/src/putty/import.c:2300:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        while ((int)strlen(c) > slen) {
data/filezilla-3.51.0/src/putty/logging.c:483: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 = strlen(bufp);
data/filezilla-3.51.0/src/putty/marshal.c:78:36:  [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).
    BinarySink_put_string(bs, str, strlen(str));
data/filezilla-3.51.0/src/putty/marshal.c:89: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).
    bs->write(bs, str, strlen(str) + 1);
data/filezilla-3.51.0/src/putty/marshal.c:94: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).
    size_t len = strlen(str);
data/filezilla-3.51.0/src/putty/misc.c:81: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).
    prompt_ensure_result_size(pr, strlen(newstr) + 1);
data/filezilla-3.51.0/src/putty/misc.c:146: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).
        if (strlen(q) == 16*3 - 1 &&
data/filezilla-3.51.0/src/putty/misc.c:177: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).
        if (strlen(q) % 4 == 0 && strlen(q) > 2*4 &&
data/filezilla-3.51.0/src/putty/misc.c:177: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).
        if (strlen(q) % 4 == 0 && strlen(q) > 2*4 &&
data/filezilla-3.51.0/src/putty/misc.c:205:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(q) < minlen)
data/filezilla-3.51.0/src/putty/misc.h:178: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).
    return make_ptrlen(str, strlen(str));
data/filezilla-3.51.0/src/putty/mpint.c:228:55:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        digitval ^= (digitval ^ (digit - 'A' + 10)) & umask;
data/filezilla-3.51.0/src/putty/proxy.c:274: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).
        hostip_len = strlen(hostip);
data/filezilla-3.51.0/src/putty/proxy.c:278: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).
    hostname_len = strlen(hostname);
data/filezilla-3.51.0/src/putty/proxy.c:579:38:  [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).
        sk_write(p->sub_socket, buf, strlen(buf));
data/filezilla-3.51.0/src/putty/proxy.c:588: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).
            len = strlen(buf);
data/filezilla-3.51.0/src/putty/proxy.c:591: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).
            for (i = 0, j = strlen(buf2); i < len; i += 3, j += 4)
data/filezilla-3.51.0/src/putty/proxy.c:595:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sk_write(p->sub_socket, buf2, strlen(buf2));
data/filezilla-3.51.0/src/putty/proxy.c:1164: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).
                  default: sprintf(buf+strlen(buf),
data/filezilla-3.51.0/src/putty/proxy.c:1375:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                put_data(buf, dest, strlen(dest));
data/filezilla-3.51.0/src/putty/proxy.c:1384: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).
                put_data(buf, username, strlen(username));
data/filezilla-3.51.0/src/putty/proxy.c:1389: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).
                put_data(buf, password, strlen(password));
data/filezilla-3.51.0/src/putty/proxy.c:1394:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                put_data(buf, host, strlen(host));
data/filezilla-3.51.0/src/putty/proxy.c:1435:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *reescaped = snewn(4*strlen(formatted_cmd) + 1, char);
data/filezilla-3.51.0/src/putty/proxy.c:1464: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).
        sk_write(p->sub_socket, formatted_cmd, strlen(formatted_cmd));
data/filezilla-3.51.0/src/putty/psftp.c:134:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (pwd[strlen(pwd) - 1] == '/')
data/filezilla-3.51.0/src/putty/psftp.c:166:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (*canonname && canonname[strlen(canonname) - 1] == '/')
data/filezilla-3.51.0/src/putty/psftp.c:167: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).
            canonname[strlen(canonname) - 1] = 0;
data/filezilla-3.51.0/src/putty/psftp.c:201: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).
        i = strlen(fullname);
data/filezilla-3.51.0/src/putty/psftp.c:217:39:  [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 (*fullname && fullname[strlen(fullname) - 1] == '/')
data/filezilla-3.51.0/src/putty/psftp.c:218: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).
                fullname[strlen(fullname) - 1] = 0;
data/filezilla-3.51.0/src/putty/psftp.c:246:39:  [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 (*fullname && fullname[strlen(fullname) - 1] == '/')
data/filezilla-3.51.0/src/putty/psftp.c:247: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).
                fullname[strlen(fullname) - 1] = 0;
data/filezilla-3.51.0/src/putty/psftp.c:259:39:  [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).
                            canonname[strlen(canonname) - 1] ==
data/filezilla-3.51.0/src/putty/psftp.c:260:88:  [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).
                            '/' ? "" : "/", fullname + i + 1, (!suffix || fullname[i + strlen(fullname + i + 1)] == '/') ? "" : "/", suffix);
data/filezilla-3.51.0/src/putty/settings.c:261:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += 2 + 2 * (strlen(key) + strlen(val));   /* allow for escaping */
data/filezilla-3.51.0/src/putty/settings.c:261:39:  [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 += 2 + 2 * (strlen(key) + strlen(val));   /* allow for escaping */
data/filezilla-3.51.0/src/putty/settings.c:448: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).
            maxlen += (maxlen > 0 ? 1 : 0) + strlen(s);
data/filezilla-3.51.0/src/putty/settings.c:721: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).
            sprintf(buf2 + strlen(buf2), "%s%d",
data/filezilla-3.51.0/src/putty/sftp.h:379:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void (*read)(SftpServer *srv, SftpReplyBuilder *reply,
data/filezilla-3.51.0/src/putty/sftp.h:436:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
{ srv->vt->read(srv, reply, handle, offset, length); }
data/filezilla-3.51.0/src/putty/ssh2userauth.c:1102: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).
                        smemclr(passphrase, strlen(passphrase));
data/filezilla-3.51.0/src/putty/ssh2userauth.c:1287: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).
                        smemclr(passphrase, strlen(passphrase));
data/filezilla-3.51.0/src/putty/ssh2userauth.c:1952: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).
                            smemclr(s->password, strlen(s->password));
data/filezilla-3.51.0/src/putty/ssh2userauth.c:1970: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).
                            smemclr(s->password, strlen(s->password));
data/filezilla-3.51.0/src/putty/ssh2userauth.c:2036:38:  [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).
                smemclr(s->password, strlen(s->password));
data/filezilla-3.51.0/src/putty/sshcommon.c:716:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    put_data(buf, data, strlen(data));
data/filezilla-3.51.0/src/putty/sshcommon.c:949: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).
        assert(strlen(fingerprint) == 16*3 - 1);
data/filezilla-3.51.0/src/putty/sshdss.c:64: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 hexlen = strlen(hex);
data/filezilla-3.51.0/src/putty/sshpubk.c:55:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((ch = fgetc(fp)) != EOF)
data/filezilla-3.51.0/src/putty/sshpubk.c:376:33:  [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).
        put_data(h, passphrase, strlen(passphrase));
data/filezilla-3.51.0/src/putty/sshpubk.c:485:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc(fp);
data/filezilla-3.51.0/src/putty/sshpubk.c:489:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = fgetc(fp);
data/filezilla-3.51.0/src/putty/sshpubk.c:508:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int c = fgetc(fp);
data/filezilla-3.51.0/src/putty/sshpubk.c:511:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                c = fgetc(fp);
data/filezilla-3.51.0/src/putty/sshpubk.c:538: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).
        linelen = strlen(line);
data/filezilla-3.51.0/src/putty/sshpubk.c:622: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 passlen = passphrase ? strlen(passphrase) : 0;
data/filezilla-3.51.0/src/putty/sshpubk.c:898: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).
            if (*p == '"' && p[strlen(p)-1] == '"') {
data/filezilla-3.51.0/src/putty/sshpubk.c:899: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).
                p[strlen(p)-1] = '\0';
data/filezilla-3.51.0/src/putty/sshpubk.c:1014: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).
    pubblobsize = strlen(base64) / 4 * 3;
data/filezilla-3.51.0/src/putty/sshpubk.c:1033: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).
    alglen = strlen(line);
data/filezilla-3.51.0/src/putty/sshpubk.c:1327:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            put_data(h, passphrase, strlen(passphrase));
data/filezilla-3.51.0/src/putty/sshpubk.c:1413: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).
            alg.len = strlen(replacement_str);
data/filezilla-3.51.0/src/putty/sshpubk.c:1419: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).
                   (comment ? strlen(comment) : 0) + 3, char);
data/filezilla-3.51.0/src/putty/sshrsa.c:239: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 hexlen = strlen(hex);
data/filezilla-3.51.0/src/putty/sshshare.c:1862:36:  [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).
    sk_write(cs->sock, fullstring, strlen(fullstring));
data/filezilla-3.51.0/src/putty/sshverstring.c:168:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sv_pos = s->prefix_wanted.len + strlen(s->our_protoversion) + 1;
data/filezilla-3.51.0/src/putty/sshverstring.c:200: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).
    bufchain_add(s->bpp.out_raw, s->our_vstring, strlen(s->our_vstring));
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:66:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(conn->fd, conn->retbuf+conn->retlen,
data/filezilla-3.51.0/src/putty/unix/uxagentc.c:139: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).
    if (!name || strlen(name) >= sizeof(addr.sun_path))
data/filezilla-3.51.0/src/putty/unix/uxcons.c:123:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ret = read(fd, buf, len)) < 0 && (
data/filezilla-3.51.0/src/putty/unix/uxcons.c:516:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ret = read(infd, pr->result + len, pr->resultsize - len - 1);
data/filezilla-3.51.0/src/putty/unix/uxmisc.c:102: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).
    if (write(1, buf, strlen(buf)) < 0) {} /* 'error check' to placate gcc */
data/filezilla-3.51.0/src/putty/unix/uxnet.c:294:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret->hostname, host, lenof(ret->hostname));
data/filezilla-3.51.0/src/putty/unix/uxnet.c:326:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, addr->hostname, buflen);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:333:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(buf, "<unknown>", buflen - 1);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:341:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, inet_ntoa(a), buflen);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:731: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).
        assert(strlen(sock->addr->hostname) < sizeof u.su.sun_path);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1640: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).
    } while (strlen(hostname) >= size-1);
data/filezilla-3.51.0/src/putty/unix/uxnet.c:1754:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(u.su.sun_path, listenaddr->hostname, sizeof(u.su.sun_path)-1);
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:30:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(fd, buf+ngot, len-ngot);
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:99:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ( (ret = read(fd, buf, sizeof(buf))) > 0)
data/filezilla-3.51.0/src/putty/unix/uxnoise.c:104:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ( (ret = read(fd, buf, sizeof(buf))) > 0)
data/filezilla-3.51.0/src/putty/unix/uxsftp.c:170:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(f->fd, buffer, length);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:629: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).
        i = strlen(keytype);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:639: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).
        i = strlen(porttext);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:648: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).
        i = strlen(hostname);
data/filezilla-3.51.0/src/putty/unix/uxstore.c:768:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ( (ret = read(fd, buf, sizeof(buf))) > 0)
data/filezilla-3.51.0/src/putty/utils.c:137: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).
        return strlen(s);
data/filezilla-3.51.0/src/putty/utils.c:244: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).
        int len = strlen(s);
data/filezilla-3.51.0/src/putty/utils.c:258: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(s1);
data/filezilla-3.51.0/src/putty/utils.c:264: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).
        len += strlen(sn);
data/filezilla-3.51.0/src/putty/utils.c:270: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).
    q = p + strlen(p);
data/filezilla-3.51.0/src/putty/utils.c:278: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).
        q += strlen(q);
data/filezilla-3.51.0/src/putty/utils.c:288:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        smemclr(string, strlen(string));
data/filezilla-3.51.0/src/putty/utils.c:462:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    buf->visible.len += strlen(buf->visible.s + buf->visible.len);
data/filezilla-3.51.0/src/putty/utils.c:494: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).
        len += strlen(ret + len);
data/filezilla-3.51.0/src/putty/utils.c:531: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).
        int len = strlen(str);
data/filezilla-3.51.0/src/putty/utils.c:914: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).
    size_t len = strlen(str);
data/filezilla-3.51.0/src/putty/utils.c:991: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).
    return !memcmp(s, t, strlen(t));
data/filezilla-3.51.0/src/putty/utils.c:996: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 slen = strlen(s), tlen = strlen(t);
data/filezilla-3.51.0/src/putty/utils.c:996:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t slen = strlen(s), tlen = strlen(t);
data/filezilla-3.51.0/src/putty/wildcard.c:303: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).
    return wc_match_inner(wildcard, target, strlen(target));
data/filezilla-3.51.0/src/putty/wildcard.c:455: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).
        aret = wc_match_fragment(&f, &t, t + strlen(t));
data/filezilla-3.51.0/src/putty/windows/winmisc.c:292: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).
            int len = strlen(msgtext);
data/filezilla-3.51.0/src/putty/windows/winmisc.c:428: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).
        WriteFile(debug_hdl, buf, strlen(buf), &dw, NULL);
data/filezilla-3.51.0/src/putty/windows/winnet.c:524:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(realhost, ret->ais->ai_canonname, lenof(realhost));
data/filezilla-3.51.0/src/putty/windows/winnet.c:526:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(realhost, host, lenof(realhost));
data/filezilla-3.51.0/src/putty/windows/winnet.c:542:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(realhost, h->h_name, sizeof(realhost));
data/filezilla-3.51.0/src/putty/windows/winnet.c:554:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(realhost, host, sizeof(realhost));
data/filezilla-3.51.0/src/putty/windows/winnet.c:557: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).
    *canonicalname = snewn(1+strlen(realhost), char);
data/filezilla-3.51.0/src/putty/windows/winnet.c:574:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret->hostname, host, lenof(ret->hostname));
data/filezilla-3.51.0/src/putty/windows/winnet.c:591:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret->hostname, pipename, lenof(ret->hostname));
data/filezilla-3.51.0/src/putty/windows/winnet.c:630:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf, addr->hostname, buflen);
data/filezilla-3.51.0/src/putty/windows/winnet.c:632:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(buf, "<unknown>", buflen);
data/filezilla-3.51.0/src/putty/windows/winnet.c:641:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, p_inet_ntoa(a), buflen);
data/filezilla-3.51.0/src/putty/windows/winnet.c:644:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, addr->hostname, buflen);
data/filezilla-3.51.0/src/putty/windows/winpgntc.c:102: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).
    cds.cbData = 1 + strlen(mapname);
data/filezilla-3.51.0/src/putty/windows/winsftp.c:149:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DWORD read;
data/filezilla-3.51.0/src/putty/windows/winsftp.c:150:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!ReadFile(f->h, buffer, length, &read, NULL))
data/filezilla-3.51.0/src/putty/windows/winsftp.c:153:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;
data/filezilla-3.51.0/src/putty/windows/winstore.c:74:27:  [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).
                      1 + strlen(value));
data/filezilla-3.51.0/src/putty/windows/winstore.c:336: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).
    len = 1 + strlen(key);
data/filezilla-3.51.0/src/putty/windows/winstore.c:414: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(otherstr) + 1);
data/filezilla-3.51.0/src/putty/windows/winstore.c:458:36:  [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).
                      (BYTE *)key, strlen(key) + 1);
data/filezilla-3.51.0/src/putty/windows/winstore.c:719: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).
        new_value = snewn(value_length + (add ? strlen(add) + 1 : 0), char);
data/filezilla-3.51.0/src/putty/windows/winstore.c:726: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).
            piterator_new += strlen(piterator_new) + 1;
data/filezilla-3.51.0/src/putty/windows/winstore.c:737:38:  [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).
                    piterator_new += strlen(piterator_new) + 1;
data/filezilla-3.51.0/src/putty/windows/winstore.c:740: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).
            piterator_old += strlen(piterator_old) + 1;
data/filezilla-3.51.0/src/putty/x11fwd.c:886: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).
    msglen = strlen(full_message);
data/filezilla-3.51.0/src/putty/x11fwd.c:1158: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).
    authnamelen = strlen(authname);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:42: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).
	std::string_view msg(err->message, fz::strlen(err->message));
data/filezilla-3.51.0/src/storj/fzstorj.cpp:57:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int c = fgetc(stdin);
data/filezilla-3.51.0/src/storj/fzstorj.cpp:302:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int r = f.read(buffer.get(), buffer_size);

ANALYSIS SUMMARY:

Hits = 947
Lines analyzed = 195278 in approximately 4.35 seconds (44915 lines/second)
Physical Source Lines of Code (SLOC) = 145621
Hits@level = [0] 181 [1] 258 [2] 476 [3]  28 [4] 179 [5]   6
Hits@level+ = [0+] 1128 [1+] 947 [2+] 689 [3+] 213 [4+] 185 [5+]   6
Hits/KSLOC@level+ = [0+] 7.74614 [1+] 6.50318 [2+] 4.73146 [3+] 1.4627 [4+] 1.27042 [5+] 0.0412028
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.