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/qtox-1.17.2/src/audio/audio.cpp
Examining data/qtox-1.17.2/src/audio/audio.h
Examining data/qtox-1.17.2/src/audio/backend/alsink.cpp
Examining data/qtox-1.17.2/src/audio/backend/alsink.h
Examining data/qtox-1.17.2/src/audio/backend/alsource.cpp
Examining data/qtox-1.17.2/src/audio/backend/alsource.h
Examining data/qtox-1.17.2/src/audio/backend/openal.cpp
Examining data/qtox-1.17.2/src/audio/backend/openal.h
Examining data/qtox-1.17.2/src/audio/iaudiocontrol.h
Examining data/qtox-1.17.2/src/audio/iaudiosettings.h
Examining data/qtox-1.17.2/src/audio/iaudiosink.h
Examining data/qtox-1.17.2/src/audio/iaudiosource.h
Examining data/qtox-1.17.2/src/chatlog/chatline.cpp
Examining data/qtox-1.17.2/src/chatlog/chatline.h
Examining data/qtox-1.17.2/src/chatlog/chatlinecontent.cpp
Examining data/qtox-1.17.2/src/chatlog/chatlinecontent.h
Examining data/qtox-1.17.2/src/chatlog/chatlinecontentproxy.cpp
Examining data/qtox-1.17.2/src/chatlog/chatlinecontentproxy.h
Examining data/qtox-1.17.2/src/chatlog/chatlog.cpp
Examining data/qtox-1.17.2/src/chatlog/chatlog.h
Examining data/qtox-1.17.2/src/chatlog/chatmessage.cpp
Examining data/qtox-1.17.2/src/chatlog/chatmessage.h
Examining data/qtox-1.17.2/src/chatlog/content/broken.cpp
Examining data/qtox-1.17.2/src/chatlog/content/broken.h
Examining data/qtox-1.17.2/src/chatlog/content/filetransferwidget.cpp
Examining data/qtox-1.17.2/src/chatlog/content/filetransferwidget.h
Examining data/qtox-1.17.2/src/chatlog/content/image.cpp
Examining data/qtox-1.17.2/src/chatlog/content/image.h
Examining data/qtox-1.17.2/src/chatlog/content/notificationicon.cpp
Examining data/qtox-1.17.2/src/chatlog/content/notificationicon.h
Examining data/qtox-1.17.2/src/chatlog/content/spinner.cpp
Examining data/qtox-1.17.2/src/chatlog/content/spinner.h
Examining data/qtox-1.17.2/src/chatlog/content/text.cpp
Examining data/qtox-1.17.2/src/chatlog/content/text.h
Examining data/qtox-1.17.2/src/chatlog/content/timestamp.cpp
Examining data/qtox-1.17.2/src/chatlog/content/timestamp.h
Examining data/qtox-1.17.2/src/chatlog/customtextdocument.cpp
Examining data/qtox-1.17.2/src/chatlog/customtextdocument.h
Examining data/qtox-1.17.2/src/chatlog/documentcache.cpp
Examining data/qtox-1.17.2/src/chatlog/documentcache.h
Examining data/qtox-1.17.2/src/chatlog/pixmapcache.cpp
Examining data/qtox-1.17.2/src/chatlog/pixmapcache.h
Examining data/qtox-1.17.2/src/chatlog/textformatter.cpp
Examining data/qtox-1.17.2/src/chatlog/textformatter.h
Examining data/qtox-1.17.2/src/chatlog/toxfileprogress.cpp
Examining data/qtox-1.17.2/src/chatlog/toxfileprogress.h
Examining data/qtox-1.17.2/src/core/contactid.cpp
Examining data/qtox-1.17.2/src/core/contactid.h
Examining data/qtox-1.17.2/src/core/core.h
Examining data/qtox-1.17.2/src/core/coreav.cpp
Examining data/qtox-1.17.2/src/core/coreav.h
Examining data/qtox-1.17.2/src/core/corefile.cpp
Examining data/qtox-1.17.2/src/core/corefile.h
Examining data/qtox-1.17.2/src/core/dhtserver.cpp
Examining data/qtox-1.17.2/src/core/dhtserver.h
Examining data/qtox-1.17.2/src/core/groupid.cpp
Examining data/qtox-1.17.2/src/core/groupid.h
Examining data/qtox-1.17.2/src/core/icorefriendmessagesender.h
Examining data/qtox-1.17.2/src/core/icoregroupmessagesender.h
Examining data/qtox-1.17.2/src/core/icoregroupquery.h
Examining data/qtox-1.17.2/src/core/icoreidhandler.h
Examining data/qtox-1.17.2/src/core/icoresettings.h
Examining data/qtox-1.17.2/src/core/receiptnum.h
Examining data/qtox-1.17.2/src/core/toxcall.cpp
Examining data/qtox-1.17.2/src/core/toxcall.h
Examining data/qtox-1.17.2/src/core/toxencrypt.cpp
Examining data/qtox-1.17.2/src/core/toxencrypt.h
Examining data/qtox-1.17.2/src/core/toxfile.cpp
Examining data/qtox-1.17.2/src/core/toxfile.h
Examining data/qtox-1.17.2/src/core/toxfilepause.h
Examining data/qtox-1.17.2/src/core/toxid.cpp
Examining data/qtox-1.17.2/src/core/toxid.h
Examining data/qtox-1.17.2/src/core/toxlogger.cpp
Examining data/qtox-1.17.2/src/core/toxlogger.h
Examining data/qtox-1.17.2/src/core/toxoptions.cpp
Examining data/qtox-1.17.2/src/core/toxoptions.h
Examining data/qtox-1.17.2/src/core/toxpk.cpp
Examining data/qtox-1.17.2/src/core/toxpk.h
Examining data/qtox-1.17.2/src/core/toxstring.cpp
Examining data/qtox-1.17.2/src/core/toxstring.h
Examining data/qtox-1.17.2/src/core/core.cpp
Examining data/qtox-1.17.2/src/friendlist.cpp
Examining data/qtox-1.17.2/src/friendlist.h
Examining data/qtox-1.17.2/src/grouplist.cpp
Examining data/qtox-1.17.2/src/grouplist.h
Examining data/qtox-1.17.2/src/ipc.cpp
Examining data/qtox-1.17.2/src/ipc.h
Examining data/qtox-1.17.2/src/model/about/aboutfriend.cpp
Examining data/qtox-1.17.2/src/model/about/aboutfriend.h
Examining data/qtox-1.17.2/src/model/about/iaboutfriend.h
Examining data/qtox-1.17.2/src/model/chathistory.cpp
Examining data/qtox-1.17.2/src/model/chathistory.h
Examining data/qtox-1.17.2/src/model/chatlogitem.cpp
Examining data/qtox-1.17.2/src/model/chatlogitem.h
Examining data/qtox-1.17.2/src/model/chatroom/chatroom.h
Examining data/qtox-1.17.2/src/model/chatroom/friendchatroom.cpp
Examining data/qtox-1.17.2/src/model/chatroom/friendchatroom.h
Examining data/qtox-1.17.2/src/model/chatroom/groupchatroom.cpp
Examining data/qtox-1.17.2/src/model/chatroom/groupchatroom.h
Examining data/qtox-1.17.2/src/model/contact.cpp
Examining data/qtox-1.17.2/src/model/contact.h
Examining data/qtox-1.17.2/src/model/dialogs/idialogs.h
Examining data/qtox-1.17.2/src/model/dialogs/idialogsmanager.h
Examining data/qtox-1.17.2/src/model/friend.cpp
Examining data/qtox-1.17.2/src/model/friend.h
Examining data/qtox-1.17.2/src/model/friendmessagedispatcher.cpp
Examining data/qtox-1.17.2/src/model/friendmessagedispatcher.h
Examining data/qtox-1.17.2/src/model/group.cpp
Examining data/qtox-1.17.2/src/model/group.h
Examining data/qtox-1.17.2/src/model/groupinvite.cpp
Examining data/qtox-1.17.2/src/model/groupinvite.h
Examining data/qtox-1.17.2/src/model/groupmessagedispatcher.cpp
Examining data/qtox-1.17.2/src/model/groupmessagedispatcher.h
Examining data/qtox-1.17.2/src/model/ichatlog.h
Examining data/qtox-1.17.2/src/model/imessagedispatcher.h
Examining data/qtox-1.17.2/src/model/interface.h
Examining data/qtox-1.17.2/src/model/message.cpp
Examining data/qtox-1.17.2/src/model/message.h
Examining data/qtox-1.17.2/src/model/profile/iprofileinfo.h
Examining data/qtox-1.17.2/src/model/profile/profileinfo.cpp
Examining data/qtox-1.17.2/src/model/profile/profileinfo.h
Examining data/qtox-1.17.2/src/model/sessionchatlog.h
Examining data/qtox-1.17.2/src/model/status.cpp
Examining data/qtox-1.17.2/src/model/status.h
Examining data/qtox-1.17.2/src/model/toxclientstandards.h
Examining data/qtox-1.17.2/src/model/sessionchatlog.cpp
Examining data/qtox-1.17.2/src/net/avatarbroadcaster.cpp
Examining data/qtox-1.17.2/src/net/avatarbroadcaster.h
Examining data/qtox-1.17.2/src/net/bootstrapnodeupdater.cpp
Examining data/qtox-1.17.2/src/net/bootstrapnodeupdater.h
Examining data/qtox-1.17.2/src/net/toxuri.cpp
Examining data/qtox-1.17.2/src/net/toxuri.h
Examining data/qtox-1.17.2/src/net/updatecheck.cpp
Examining data/qtox-1.17.2/src/net/updatecheck.h
Examining data/qtox-1.17.2/src/nexus.cpp
Examining data/qtox-1.17.2/src/nexus.h
Examining data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp
Examining data/qtox-1.17.2/src/persistence/db/rawdatabase.h
Examining data/qtox-1.17.2/src/persistence/history.h
Examining data/qtox-1.17.2/src/persistence/ifriendsettings.h
Examining data/qtox-1.17.2/src/persistence/igroupsettings.h
Examining data/qtox-1.17.2/src/persistence/offlinemsgengine.cpp
Examining data/qtox-1.17.2/src/persistence/offlinemsgengine.h
Examining data/qtox-1.17.2/src/persistence/paths.cpp
Examining data/qtox-1.17.2/src/persistence/paths.h
Examining data/qtox-1.17.2/src/persistence/profile.cpp
Examining data/qtox-1.17.2/src/persistence/profile.h
Examining data/qtox-1.17.2/src/persistence/profilelocker.cpp
Examining data/qtox-1.17.2/src/persistence/profilelocker.h
Examining data/qtox-1.17.2/src/persistence/serialize.cpp
Examining data/qtox-1.17.2/src/persistence/serialize.h
Examining data/qtox-1.17.2/src/persistence/settings.cpp
Examining data/qtox-1.17.2/src/persistence/settings.h
Examining data/qtox-1.17.2/src/persistence/settingsserializer.cpp
Examining data/qtox-1.17.2/src/persistence/settingsserializer.h
Examining data/qtox-1.17.2/src/persistence/smileypack.cpp
Examining data/qtox-1.17.2/src/persistence/smileypack.h
Examining data/qtox-1.17.2/src/persistence/toxsave.cpp
Examining data/qtox-1.17.2/src/persistence/toxsave.h
Examining data/qtox-1.17.2/src/persistence/history.cpp
Examining data/qtox-1.17.2/src/platform/autorun.h
Examining data/qtox-1.17.2/src/platform/autorun_osx.cpp
Examining data/qtox-1.17.2/src/platform/autorun_win.cpp
Examining data/qtox-1.17.2/src/platform/autorun_xdg.cpp
Examining data/qtox-1.17.2/src/platform/camera/avfoundation.h
Examining data/qtox-1.17.2/src/platform/camera/directshow.cpp
Examining data/qtox-1.17.2/src/platform/camera/directshow.h
Examining data/qtox-1.17.2/src/platform/camera/v4l2.cpp
Examining data/qtox-1.17.2/src/platform/camera/v4l2.h
Examining data/qtox-1.17.2/src/platform/capslock.h
Examining data/qtox-1.17.2/src/platform/capslock_osx.cpp
Examining data/qtox-1.17.2/src/platform/capslock_win.cpp
Examining data/qtox-1.17.2/src/platform/capslock_x11.cpp
Examining data/qtox-1.17.2/src/platform/desktop_notifications/desktopnotify.cpp
Examining data/qtox-1.17.2/src/platform/desktop_notifications/desktopnotify.h
Examining data/qtox-1.17.2/src/platform/install_osx.cpp
Examining data/qtox-1.17.2/src/platform/install_osx.h
Examining data/qtox-1.17.2/src/platform/posixsignalnotifier.cpp
Examining data/qtox-1.17.2/src/platform/posixsignalnotifier.h
Examining data/qtox-1.17.2/src/platform/statusnotifier/closures.c
Examining data/qtox-1.17.2/src/platform/statusnotifier/closures.h
Examining data/qtox-1.17.2/src/platform/statusnotifier/enums.c
Examining data/qtox-1.17.2/src/platform/statusnotifier/enums.h
Examining data/qtox-1.17.2/src/platform/statusnotifier/interfaces.h
Examining data/qtox-1.17.2/src/platform/statusnotifier/statusnotifier.c
Examining data/qtox-1.17.2/src/platform/statusnotifier/statusnotifier.h
Examining data/qtox-1.17.2/src/platform/timer.h
Examining data/qtox-1.17.2/src/platform/timer_osx.cpp
Examining data/qtox-1.17.2/src/platform/timer_win.cpp
Examining data/qtox-1.17.2/src/platform/timer_x11.cpp
Examining data/qtox-1.17.2/src/platform/x11_display.cpp
Examining data/qtox-1.17.2/src/platform/x11_display.h
Examining data/qtox-1.17.2/src/util/strongtype.h
Examining data/qtox-1.17.2/src/video/cameradevice.cpp
Examining data/qtox-1.17.2/src/video/cameradevice.h
Examining data/qtox-1.17.2/src/video/camerasource.cpp
Examining data/qtox-1.17.2/src/video/camerasource.h
Examining data/qtox-1.17.2/src/video/corevideosource.cpp
Examining data/qtox-1.17.2/src/video/corevideosource.h
Examining data/qtox-1.17.2/src/video/genericnetcamview.cpp
Examining data/qtox-1.17.2/src/video/genericnetcamview.h
Examining data/qtox-1.17.2/src/video/groupnetcamview.cpp
Examining data/qtox-1.17.2/src/video/groupnetcamview.h
Examining data/qtox-1.17.2/src/video/ivideosettings.h
Examining data/qtox-1.17.2/src/video/netcamview.cpp
Examining data/qtox-1.17.2/src/video/netcamview.h
Examining data/qtox-1.17.2/src/video/videoframe.cpp
Examining data/qtox-1.17.2/src/video/videoframe.h
Examining data/qtox-1.17.2/src/video/videomode.cpp
Examining data/qtox-1.17.2/src/video/videomode.h
Examining data/qtox-1.17.2/src/video/videosource.cpp
Examining data/qtox-1.17.2/src/video/videosource.h
Examining data/qtox-1.17.2/src/video/videosurface.cpp
Examining data/qtox-1.17.2/src/video/videosurface.h
Examining data/qtox-1.17.2/src/widget/about/aboutfriendform.cpp
Examining data/qtox-1.17.2/src/widget/about/aboutfriendform.h
Examining data/qtox-1.17.2/src/widget/categorywidget.cpp
Examining data/qtox-1.17.2/src/widget/categorywidget.h
Examining data/qtox-1.17.2/src/widget/chatformheader.cpp
Examining data/qtox-1.17.2/src/widget/chatformheader.h
Examining data/qtox-1.17.2/src/widget/circlewidget.cpp
Examining data/qtox-1.17.2/src/widget/circlewidget.h
Examining data/qtox-1.17.2/src/widget/contentdialog.cpp
Examining data/qtox-1.17.2/src/widget/contentdialog.h
Examining data/qtox-1.17.2/src/widget/contentdialogmanager.cpp
Examining data/qtox-1.17.2/src/widget/contentdialogmanager.h
Examining data/qtox-1.17.2/src/widget/contentlayout.cpp
Examining data/qtox-1.17.2/src/widget/contentlayout.h
Examining data/qtox-1.17.2/src/widget/emoticonswidget.h
Examining data/qtox-1.17.2/src/widget/flowlayout.h
Examining data/qtox-1.17.2/src/widget/form/addfriendform.cpp
Examining data/qtox-1.17.2/src/widget/form/addfriendform.h
Examining data/qtox-1.17.2/src/widget/form/chatform.cpp
Examining data/qtox-1.17.2/src/widget/form/chatform.h
Examining data/qtox-1.17.2/src/widget/form/filesform.cpp
Examining data/qtox-1.17.2/src/widget/form/filesform.h
Examining data/qtox-1.17.2/src/widget/form/genericchatform.cpp
Examining data/qtox-1.17.2/src/widget/form/genericchatform.h
Examining data/qtox-1.17.2/src/widget/form/groupchatform.cpp
Examining data/qtox-1.17.2/src/widget/form/groupchatform.h
Examining data/qtox-1.17.2/src/widget/form/groupinviteform.cpp
Examining data/qtox-1.17.2/src/widget/form/groupinviteform.h
Examining data/qtox-1.17.2/src/widget/form/groupinvitewidget.cpp
Examining data/qtox-1.17.2/src/widget/form/groupinvitewidget.h
Examining data/qtox-1.17.2/src/widget/form/loadhistorydialog.h
Examining data/qtox-1.17.2/src/widget/form/profileform.cpp
Examining data/qtox-1.17.2/src/widget/form/profileform.h
Examining data/qtox-1.17.2/src/widget/form/searchsettingsform.h
Examining data/qtox-1.17.2/src/widget/form/setpassworddialog.cpp
Examining data/qtox-1.17.2/src/widget/form/setpassworddialog.h
Examining data/qtox-1.17.2/src/widget/form/settings/aboutform.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/aboutform.h
Examining data/qtox-1.17.2/src/widget/form/settings/advancedform.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/advancedform.h
Examining data/qtox-1.17.2/src/widget/form/settings/avform.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/avform.h
Examining data/qtox-1.17.2/src/widget/form/settings/generalform.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/generalform.h
Examining data/qtox-1.17.2/src/widget/form/settings/genericsettings.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/genericsettings.h
Examining data/qtox-1.17.2/src/widget/form/settings/privacyform.h
Examining data/qtox-1.17.2/src/widget/form/settings/userinterfaceform.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/userinterfaceform.h
Examining data/qtox-1.17.2/src/widget/form/settings/verticalonlyscroller.cpp
Examining data/qtox-1.17.2/src/widget/form/settings/verticalonlyscroller.h
Examining data/qtox-1.17.2/src/widget/form/settings/privacyform.cpp
Examining data/qtox-1.17.2/src/widget/form/settingswidget.cpp
Examining data/qtox-1.17.2/src/widget/form/settingswidget.h
Examining data/qtox-1.17.2/src/widget/form/tabcompleter.cpp
Examining data/qtox-1.17.2/src/widget/form/tabcompleter.h
Examining data/qtox-1.17.2/src/widget/form/loadhistorydialog.cpp
Examining data/qtox-1.17.2/src/widget/form/searchsettingsform.cpp
Examining data/qtox-1.17.2/src/widget/friendlistlayout.cpp
Examining data/qtox-1.17.2/src/widget/friendlistlayout.h
Examining data/qtox-1.17.2/src/widget/friendlistwidget.cpp
Examining data/qtox-1.17.2/src/widget/friendlistwidget.h
Examining data/qtox-1.17.2/src/widget/friendwidget.cpp
Examining data/qtox-1.17.2/src/widget/friendwidget.h
Examining data/qtox-1.17.2/src/widget/genericchatitemlayout.cpp
Examining data/qtox-1.17.2/src/widget/genericchatitemwidget.cpp
Examining data/qtox-1.17.2/src/widget/genericchatitemwidget.h
Examining data/qtox-1.17.2/src/widget/genericchatroomwidget.cpp
Examining data/qtox-1.17.2/src/widget/genericchatroomwidget.h
Examining data/qtox-1.17.2/src/widget/groupwidget.cpp
Examining data/qtox-1.17.2/src/widget/groupwidget.h
Examining data/qtox-1.17.2/src/widget/gui.cpp
Examining data/qtox-1.17.2/src/widget/gui.h
Examining data/qtox-1.17.2/src/widget/loginscreen.cpp
Examining data/qtox-1.17.2/src/widget/loginscreen.h
Examining data/qtox-1.17.2/src/widget/maskablepixmapwidget.cpp
Examining data/qtox-1.17.2/src/widget/maskablepixmapwidget.h
Examining data/qtox-1.17.2/src/widget/notificationedgewidget.cpp
Examining data/qtox-1.17.2/src/widget/notificationedgewidget.h
Examining data/qtox-1.17.2/src/widget/notificationscrollarea.cpp
Examining data/qtox-1.17.2/src/widget/notificationscrollarea.h
Examining data/qtox-1.17.2/src/widget/passwordedit.cpp
Examining data/qtox-1.17.2/src/widget/passwordedit.h
Examining data/qtox-1.17.2/src/widget/qrwidget.cpp
Examining data/qtox-1.17.2/src/widget/qrwidget.h
Examining data/qtox-1.17.2/src/widget/searchform.cpp
Examining data/qtox-1.17.2/src/widget/searchform.h
Examining data/qtox-1.17.2/src/widget/searchtypes.h
Examining data/qtox-1.17.2/src/widget/splitterrestorer.cpp
Examining data/qtox-1.17.2/src/widget/splitterrestorer.h
Examining data/qtox-1.17.2/src/widget/style.cpp
Examining data/qtox-1.17.2/src/widget/style.h
Examining data/qtox-1.17.2/src/widget/tool/activatedialog.cpp
Examining data/qtox-1.17.2/src/widget/tool/adjustingscrollarea.cpp
Examining data/qtox-1.17.2/src/widget/tool/adjustingscrollarea.h
Examining data/qtox-1.17.2/src/widget/tool/callconfirmwidget.cpp
Examining data/qtox-1.17.2/src/widget/tool/callconfirmwidget.h
Examining data/qtox-1.17.2/src/widget/tool/chattextedit.cpp
Examining data/qtox-1.17.2/src/widget/tool/chattextedit.h
Examining data/qtox-1.17.2/src/widget/tool/croppinglabel.cpp
Examining data/qtox-1.17.2/src/widget/tool/croppinglabel.h
Examining data/qtox-1.17.2/src/widget/tool/flyoutoverlaywidget.cpp
Examining data/qtox-1.17.2/src/widget/tool/flyoutoverlaywidget.h
Examining data/qtox-1.17.2/src/widget/tool/friendrequestdialog.cpp
Examining data/qtox-1.17.2/src/widget/tool/friendrequestdialog.h
Examining data/qtox-1.17.2/src/widget/tool/identicon.cpp
Examining data/qtox-1.17.2/src/widget/tool/identicon.h
Examining data/qtox-1.17.2/src/widget/tool/movablewidget.cpp
Examining data/qtox-1.17.2/src/widget/tool/movablewidget.h
Examining data/qtox-1.17.2/src/widget/tool/profileimporter.cpp
Examining data/qtox-1.17.2/src/widget/tool/profileimporter.h
Examining data/qtox-1.17.2/src/widget/tool/recursivesignalblocker.cpp
Examining data/qtox-1.17.2/src/widget/tool/recursivesignalblocker.h
Examining data/qtox-1.17.2/src/widget/tool/removefrienddialog.cpp
Examining data/qtox-1.17.2/src/widget/tool/removefrienddialog.h
Examining data/qtox-1.17.2/src/widget/tool/screengrabberchooserrectitem.cpp
Examining data/qtox-1.17.2/src/widget/tool/screengrabberchooserrectitem.h
Examining data/qtox-1.17.2/src/widget/tool/screengrabberoverlayitem.cpp
Examining data/qtox-1.17.2/src/widget/tool/screengrabberoverlayitem.h
Examining data/qtox-1.17.2/src/widget/tool/screenshotgrabber.cpp
Examining data/qtox-1.17.2/src/widget/tool/screenshotgrabber.h
Examining data/qtox-1.17.2/src/widget/tool/toolboxgraphicsitem.cpp
Examining data/qtox-1.17.2/src/widget/tool/toolboxgraphicsitem.h
Examining data/qtox-1.17.2/src/widget/tool/activatedialog.h
Examining data/qtox-1.17.2/src/widget/translator.cpp
Examining data/qtox-1.17.2/src/widget/translator.h
Examining data/qtox-1.17.2/src/widget/widget.cpp
Examining data/qtox-1.17.2/src/widget/widget.h
Examining data/qtox-1.17.2/src/widget/emoticonswidget.cpp
Examining data/qtox-1.17.2/src/widget/flowlayout.cpp
Examining data/qtox-1.17.2/src/widget/genericchatitemlayout.h
Examining data/qtox-1.17.2/src/main.cpp
Examining data/qtox-1.17.2/test/chatlog/textformatter_test.cpp
Examining data/qtox-1.17.2/test/core/contactid_test.cpp
Examining data/qtox-1.17.2/test/core/core_test.cpp
Examining data/qtox-1.17.2/test/core/toxid_test.cpp
Examining data/qtox-1.17.2/test/core/toxstring_test.cpp
Examining data/qtox-1.17.2/test/model/friendmessagedispatcher_test.cpp
Examining data/qtox-1.17.2/test/model/groupmessagedispatcher_test.cpp
Examining data/qtox-1.17.2/test/model/messageprocessor_test.cpp
Examining data/qtox-1.17.2/test/model/sessionchatlog_test.cpp
Examining data/qtox-1.17.2/test/net/bsu_test.cpp
Examining data/qtox-1.17.2/test/persistence/dbschema_test.cpp
Examining data/qtox-1.17.2/test/persistence/offlinemsgengine_test.cpp
Examining data/qtox-1.17.2/test/persistence/paths_test.cpp
Examining data/qtox-1.17.2/test/platform/posixsignalnotifier_test.cpp
Examining data/qtox-1.17.2/updater/main.cpp
Examining data/qtox-1.17.2/updater/serialize.cpp
Examining data/qtox-1.17.2/updater/serialize.h
Examining data/qtox-1.17.2/updater/settings.cpp
Examining data/qtox-1.17.2/updater/settings.h
Examining data/qtox-1.17.2/updater/update.cpp
Examining data/qtox-1.17.2/updater/update.h
Examining data/qtox-1.17.2/updater/widget.cpp
Examining data/qtox-1.17.2/updater/widget.h

FINAL RESULTS:

data/qtox-1.17.2/src/widget/translator.cpp:47:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    QString locale = localeName.isEmpty() ? QLocale::system().name().section('_', 0, 0) : localeName;
data/qtox-1.17.2/src/widget/widget.cpp:2463: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.
    QString desktop = getenv("XDG_CURRENT_DESKTOP");
data/qtox-1.17.2/src/widget/widget.cpp:2465: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.
        desktop = getenv("DESKTOP_SESSION");
data/qtox-1.17.2/updater/settings.cpp:121:21:  [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.
    auto shell32H = LoadLibrary(TEXT("shell32.dll"));
data/qtox-1.17.2/updater/widget.cpp:105:22:  [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.
    auto advapi32H = LoadLibrary(TEXT("advapi32.dll"));
data/qtox-1.17.2/src/audio/backend/openal.cpp:482: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).
    sndFile.open(QIODevice::ReadOnly);
data/qtox-1.17.2/src/chatlog/content/filetransferwidget.cpp:117:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool writable = tmp.open(QIODevice::WriteOnly);
data/qtox-1.17.2/src/chatlog/content/filetransferwidget.cpp:525:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!imageFile.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/chatlog/content/filetransferwidget.cpp:557:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        buffer.open(QIODevice::WriteOnly);
data/qtox-1.17.2/src/core/corefile.cpp:165:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(false)) {
data/qtox-1.17.2/src/core/corefile.cpp:264:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file->open(true)) {
data/qtox-1.17.2/src/core/toxfile.cpp:71:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool ToxFile::open(bool write)
data/qtox-1.17.2/src/core/toxfile.cpp:73: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).
    return write ? file->open(QIODevice::ReadWrite) : file->open(QIODevice::ReadOnly);
data/qtox-1.17.2/src/core/toxfile.cpp:73:61:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of 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 write ? file->open(QIODevice::ReadWrite) : file->open(QIODevice::ReadOnly);
data/qtox-1.17.2/src/core/toxfile.h:62:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(bool write);
data/qtox-1.17.2/src/ipc.cpp:131: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(evt->name, binName.constData(), binName.length());
data/qtox-1.17.2/src/ipc.cpp:132: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(evt->data, data.constData(), data.length());
data/qtox-1.17.2/src/ipc.h:53:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[16];
data/qtox-1.17.2/src/ipc.h:54: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 data[128];
data/qtox-1.17.2/src/main.cpp:266:28:  [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* mainLogFilePtr = fopen(logfile.toLocal8Bit().constData(), "a");
data/qtox-1.17.2/src/main.cpp:288:26:  [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).
        mainLogFilePtr = fopen(logfile.toLocal8Bit().constData(), "a");
data/qtox-1.17.2/src/model/profile/profileinfo.cpp:186:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool writable = tmp.open(QIODevice::WriteOnly);
data/qtox-1.17.2/src/model/profile/profileinfo.cpp:280: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).
    buffer.open(QIODevice::WriteOnly);
data/qtox-1.17.2/src/model/profile/profileinfo.cpp:298:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::ReadOnly);
data/qtox-1.17.2/src/net/bootstrapnodeupdater.cpp:79:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!nodesFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/qtox-1.17.2/src/net/toxuri.cpp:92: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).
    dialog->open();
data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp:98:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open(path, currentHexKey)) {
data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp:114:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open(path, currentHexKey)) {
data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp:143:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool RawDatabase::open(const QString& path, const QString& hexKey)
data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp:597: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 (!open(path, currentHexKey)) {
data/qtox-1.17.2/src/persistence/db/rawdatabase.cpp:637: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).
    return open(path, currentHexKey);
data/qtox-1.17.2/src/persistence/db/rawdatabase.h:133:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool open(const QString& path, const QString& hexKey = {});
data/qtox-1.17.2/src/persistence/profile.cpp:153:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!saveFile.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/persistence/profile.cpp:360:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!saveFile.open(QIODevice::WriteOnly)) {
data/qtox-1.17.2/src/persistence/profile.cpp:465:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/persistence/profile.cpp:598:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!file.open(QIODevice::WriteOnly)) {
data/qtox-1.17.2/src/persistence/profile.cpp:695:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!saveFile.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/persistence/settingsserializer.cpp:231:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!f.open(QIODevice::ReadOnly))
data/qtox-1.17.2/src/persistence/settingsserializer.cpp:233: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 fmagic[8];
data/qtox-1.17.2/src/persistence/settingsserializer.cpp:256:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!f.open(QIODevice::Truncate | QIODevice::WriteOnly)) {
data/qtox-1.17.2/src/persistence/settingsserializer.cpp:323:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!f.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/persistence/smileypack.cpp:199:39:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!xmlFile.exists() || !xmlFile.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/platform/autorun_win.cpp:91:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR path[MAX_PATH] = {0};
data/qtox-1.17.2/src/platform/autorun_xdg.cpp:53:49:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of 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 (!QDir().mkpath(dirPath) || !desktop.open(QFile::WriteOnly | QFile::Truncate))
data/qtox-1.17.2/src/platform/camera/v4l2.cpp:68: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(devNameString.c_str(), O_RDWR, 0);
data/qtox-1.17.2/src/platform/camera/v4l2.cpp:200: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).
        int fd = open(filePath.c_str(), O_RDWR);
data/qtox-1.17.2/src/video/cameradevice.cpp:81:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
CameraDevice* CameraDevice::open(QString devName, AVDictionary** options)
data/qtox-1.17.2/src/video/cameradevice.cpp:146:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
CameraDevice* CameraDevice::open(QString devName, VideoMode mode)
data/qtox-1.17.2/src/video/cameradevice.cpp:232:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    CameraDevice* dev = open(devName, &options);
data/qtox-1.17.2/src/video/cameradevice.cpp:243:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void CameraDevice::open()
data/qtox-1.17.2/src/video/cameradevice.h:39: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).
    static CameraDevice* open(QString devName, VideoMode mode = VideoMode());
data/qtox-1.17.2/src/video/cameradevice.h:40:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open();
data/qtox-1.17.2/src/video/cameradevice.h:55: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).
    static CameraDevice* open(QString devName, AVDictionary** options);
data/qtox-1.17.2/src/video/camerasource.cpp:274: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).
        device->open();
data/qtox-1.17.2/src/video/camerasource.cpp:281:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    device = CameraDevice::open(deviceName, mode);
data/qtox-1.17.2/src/video/camerasource.cpp:292: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).
        device->open();
data/qtox-1.17.2/src/video/corevideosource.cpp:97:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dst, src, minStride);
data/qtox-1.17.2/src/widget/form/addfriendform.cpp:246:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!contactFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/qtox-1.17.2/src/widget/form/chatform.cpp:260:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!file.exists() || !file.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/widget/form/chatform.cpp:522:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!file.exists() || !file.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/widget/form/chatform.cpp:525:41:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (!file.exists() || !file.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/src/widget/form/chatform.cpp:580:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QFile::ReadWrite)) {
data/qtox-1.17.2/src/widget/form/genericchatform.cpp:821:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/qtox-1.17.2/src/widget/form/settings/advancedform.cpp:141:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:153: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).
void AVForm::open(const QString& devName, const VideoMode& mode)
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:189:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(devName, mode);
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:206:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(devName, mode);
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:219:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(devName, mode);
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:412:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open(devName, videoModes[preferedIndex]);
data/qtox-1.17.2/src/widget/form/settings/avform.cpp:422:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open(devName, mode);
data/qtox-1.17.2/src/widget/form/settings/avform.h:93:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(const QString& devName, const VideoMode& mode);
data/qtox-1.17.2/src/widget/style.cpp:238:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QFile::ReadOnly | QFile::Text)) {
data/qtox-1.17.2/src/widget/style.cpp:246:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (file.open(QFile::ReadOnly | QFile::Text)) {
data/qtox-1.17.2/src/widget/widget.cpp:106:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool writable = tmp.open(QIODevice::WriteOnly);
data/qtox-1.17.2/updater/main.cpp:85:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (logFileFile->open(QIODevice::Append)) {
data/qtox-1.17.2/updater/main.cpp: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[100];
data/qtox-1.17.2/updater/serialize.cpp:27: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 tab[8];
data/qtox-1.17.2/updater/serialize.cpp:41: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 tab[4];
data/qtox-1.17.2/updater/serialize.cpp:53: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 tab[4];
data/qtox-1.17.2/updater/update.cpp:30:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char key[crypto_sign_PUBLICKEYBYTES] = {0x20, 0x89, 0x39, 0xaa, 0x9a, 0xe8, 0xb5, 0x21,
data/qtox-1.17.2/updater/update.cpp:40:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!flistFile.open(QIODevice::ReadOnly)) {
data/qtox-1.17.2/updater/update.cpp:55:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QIODevice::ReadOnly))
data/qtox-1.17.2/updater/update.cpp:118: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(newFile.sig, flistData.data(), crypto_sign_BYTES);
data/qtox-1.17.2/updater/update.h:32: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 sig[crypto_sign_BYTES]; ///< Signature of the file (ed25519)
data/qtox-1.17.2/updater/update.h:58: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.
extern unsigned char key[crypto_sign_PUBLICKEYBYTES];
data/qtox-1.17.2/updater/widget.cpp:158:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!updateFlistFile.open(QIODevice::ReadOnly))
data/qtox-1.17.2/updater/widget.cpp:186:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!fileFile.open(QIODevice::ReadOnly))
data/qtox-1.17.2/src/audio/backend/openal.cpp:730: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).
            int len = static_cast<int>(strlen(pDeviceList));
data/qtox-1.17.2/src/audio/backend/openal.cpp:746: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).
            int len = static_cast<int>(strlen(pDeviceList));
data/qtox-1.17.2/src/core/coreav.cpp:355:26:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                QThread::usleep(500);
data/qtox-1.17.2/src/core/coreav.cpp:408:26:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                QThread::usleep(500);
data/qtox-1.17.2/src/model/profile/profileinfo.cpp:341:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!reader.read(&image)) {
data/qtox-1.17.2/src/persistence/profile.cpp:700:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    saveFile.read((char*)data, TOX_PASS_ENCRYPTION_EXTRA_LENGTH);
data/qtox-1.17.2/src/persistence/serialize.cpp:36:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen |= (num3 & 0x7f) << num2;
data/qtox-1.17.2/src/persistence/serialize.cpp:40:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen <= 0)
data/qtox-1.17.2/src/persistence/serialize.cpp:45: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).
    data.truncate(strlen);
data/qtox-1.17.2/src/persistence/settings.cpp:793:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ps.setValue("read", request.read);
data/qtox-1.17.2/src/persistence/settings.cpp:2328:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!request.read)
data/qtox-1.17.2/src/persistence/settings.h:165:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read;
data/qtox-1.17.2/src/persistence/settingsserializer.cpp:234:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (f.read(fmagic, sizeof(fmagic)) != sizeof(fmagic))
data/qtox-1.17.2/src/platform/camera/directshow.cpp:87: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).
        for (size_t i = 0; i < strlen(devIdString); ++i)
data/qtox-1.17.2/src/platform/camera/directshow.cpp:153: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).
        for (size_t i = 0; i < strlen(devIdString); ++i)
data/qtox-1.17.2/src/platform/posixsignalnotifier.cpp:117:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (::read(detail::g_signalSocketPair[1], &signum, sizeof(signum)) == -1) {
data/qtox-1.17.2/updater/serialize.cpp:97: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).
    if (!strlen)
data/qtox-1.17.2/updater/serialize.cpp:101: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).
    data.truncate(strlen);

ANALYSIS SUMMARY:

Hits = 105
Lines analyzed = 63045 in approximately 1.62 seconds (38961 lines/second)
Physical Source Lines of Code (SLOC) = 41350
Hits@level = [0]   0 [1]  18 [2]  82 [3]   4 [4]   1 [5]   0
Hits@level+ = [0+] 105 [1+] 105 [2+]  87 [3+]   5 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.5393 [1+] 2.5393 [2+] 2.10399 [3+] 0.120919 [4+] 0.0241838 [5+]   0
Dot directories skipped = 4 (--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.