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/nheko-0.7.2/cmake/nheko.h Examining data/nheko-0.7.2/includes/jdenticoninterface.h Examining data/nheko-0.7.2/src/AvatarProvider.cpp Examining data/nheko-0.7.2/src/AvatarProvider.h Examining data/nheko-0.7.2/src/BlurhashProvider.cpp Examining data/nheko-0.7.2/src/BlurhashProvider.h Examining data/nheko-0.7.2/src/Cache.cpp Examining data/nheko-0.7.2/src/Cache.h Examining data/nheko-0.7.2/src/CacheCryptoStructs.h Examining data/nheko-0.7.2/src/CacheStructs.h Examining data/nheko-0.7.2/src/Cache_p.h Examining data/nheko-0.7.2/src/ChatPage.cpp Examining data/nheko-0.7.2/src/ChatPage.h Examining data/nheko-0.7.2/src/ColorImageProvider.cpp Examining data/nheko-0.7.2/src/ColorImageProvider.h Examining data/nheko-0.7.2/src/CommunitiesList.cpp Examining data/nheko-0.7.2/src/CommunitiesList.h Examining data/nheko-0.7.2/src/CommunitiesListItem.cpp Examining data/nheko-0.7.2/src/CommunitiesListItem.h Examining data/nheko-0.7.2/src/Config.h Examining data/nheko-0.7.2/src/EventAccessors.cpp Examining data/nheko-0.7.2/src/EventAccessors.h Examining data/nheko-0.7.2/src/InviteeItem.cpp Examining data/nheko-0.7.2/src/InviteeItem.h Examining data/nheko-0.7.2/src/Logging.cpp Examining data/nheko-0.7.2/src/Logging.h Examining data/nheko-0.7.2/src/LoginPage.cpp Examining data/nheko-0.7.2/src/LoginPage.h Examining data/nheko-0.7.2/src/MainWindow.cpp Examining data/nheko-0.7.2/src/MainWindow.h Examining data/nheko-0.7.2/src/MatrixClient.cpp Examining data/nheko-0.7.2/src/MatrixClient.h Examining data/nheko-0.7.2/src/MxcImageProvider.cpp Examining data/nheko-0.7.2/src/MxcImageProvider.h Examining data/nheko-0.7.2/src/Olm.cpp Examining data/nheko-0.7.2/src/Olm.h Examining data/nheko-0.7.2/src/QuickSwitcher.cpp Examining data/nheko-0.7.2/src/QuickSwitcher.h Examining data/nheko-0.7.2/src/RegisterPage.cpp Examining data/nheko-0.7.2/src/RegisterPage.h Examining data/nheko-0.7.2/src/RoomInfoListItem.cpp Examining data/nheko-0.7.2/src/RoomInfoListItem.h Examining data/nheko-0.7.2/src/RoomList.cpp Examining data/nheko-0.7.2/src/RoomList.h Examining data/nheko-0.7.2/src/SSOHandler.cpp Examining data/nheko-0.7.2/src/SSOHandler.h Examining data/nheko-0.7.2/src/SideBarActions.cpp Examining data/nheko-0.7.2/src/SideBarActions.h Examining data/nheko-0.7.2/src/Splitter.cpp Examining data/nheko-0.7.2/src/Splitter.h Examining data/nheko-0.7.2/src/TextInputWidget.cpp Examining data/nheko-0.7.2/src/TextInputWidget.h Examining data/nheko-0.7.2/src/TopRoomBar.cpp Examining data/nheko-0.7.2/src/TopRoomBar.h Examining data/nheko-0.7.2/src/TrayIcon.cpp Examining data/nheko-0.7.2/src/TrayIcon.h Examining data/nheko-0.7.2/src/UserInfoWidget.cpp Examining data/nheko-0.7.2/src/UserInfoWidget.h Examining data/nheko-0.7.2/src/UserSettingsPage.cpp Examining data/nheko-0.7.2/src/UserSettingsPage.h Examining data/nheko-0.7.2/src/Utils.cpp Examining data/nheko-0.7.2/src/Utils.h Examining data/nheko-0.7.2/src/WelcomePage.cpp Examining data/nheko-0.7.2/src/WelcomePage.h Examining data/nheko-0.7.2/src/dialogs/CreateRoom.cpp Examining data/nheko-0.7.2/src/dialogs/CreateRoom.h Examining data/nheko-0.7.2/src/dialogs/FallbackAuth.cpp Examining data/nheko-0.7.2/src/dialogs/FallbackAuth.h Examining data/nheko-0.7.2/src/dialogs/ImageOverlay.cpp Examining data/nheko-0.7.2/src/dialogs/ImageOverlay.h Examining data/nheko-0.7.2/src/dialogs/InviteUsers.cpp Examining data/nheko-0.7.2/src/dialogs/InviteUsers.h Examining data/nheko-0.7.2/src/dialogs/JoinRoom.cpp Examining data/nheko-0.7.2/src/dialogs/JoinRoom.h Examining data/nheko-0.7.2/src/dialogs/LeaveRoom.cpp Examining data/nheko-0.7.2/src/dialogs/LeaveRoom.h Examining data/nheko-0.7.2/src/dialogs/Logout.cpp Examining data/nheko-0.7.2/src/dialogs/Logout.h Examining data/nheko-0.7.2/src/dialogs/MemberList.cpp Examining data/nheko-0.7.2/src/dialogs/MemberList.h Examining data/nheko-0.7.2/src/dialogs/PreviewUploadOverlay.cpp Examining data/nheko-0.7.2/src/dialogs/PreviewUploadOverlay.h Examining data/nheko-0.7.2/src/dialogs/RawMessage.h Examining data/nheko-0.7.2/src/dialogs/ReCaptcha.cpp Examining data/nheko-0.7.2/src/dialogs/ReCaptcha.h Examining data/nheko-0.7.2/src/dialogs/ReadReceipts.cpp Examining data/nheko-0.7.2/src/dialogs/ReadReceipts.h Examining data/nheko-0.7.2/src/dialogs/RoomSettings.cpp Examining data/nheko-0.7.2/src/dialogs/RoomSettings.h Examining data/nheko-0.7.2/src/dialogs/UserProfile.cpp Examining data/nheko-0.7.2/src/dialogs/UserProfile.h Examining data/nheko-0.7.2/src/emoji/Category.cpp Examining data/nheko-0.7.2/src/emoji/Category.h Examining data/nheko-0.7.2/src/emoji/EmojiModel.cpp Examining data/nheko-0.7.2/src/emoji/EmojiModel.h Examining data/nheko-0.7.2/src/emoji/ItemDelegate.cpp Examining data/nheko-0.7.2/src/emoji/ItemDelegate.h Examining data/nheko-0.7.2/src/emoji/MacHelper.h Examining data/nheko-0.7.2/src/emoji/Panel.cpp Examining data/nheko-0.7.2/src/emoji/Panel.h Examining data/nheko-0.7.2/src/emoji/PickButton.cpp Examining data/nheko-0.7.2/src/emoji/PickButton.h Examining data/nheko-0.7.2/src/emoji/Provider.cpp Examining data/nheko-0.7.2/src/emoji/Provider.h Examining data/nheko-0.7.2/src/emoji/Provider_new.cpp Examining data/nheko-0.7.2/src/main.cpp Examining data/nheko-0.7.2/src/notifications/Manager.h Examining data/nheko-0.7.2/src/notifications/ManagerLinux.cpp Examining data/nheko-0.7.2/src/notifications/ManagerWin.cpp Examining data/nheko-0.7.2/src/popups/PopupItem.cpp Examining data/nheko-0.7.2/src/popups/PopupItem.h Examining data/nheko-0.7.2/src/popups/SuggestionsPopup.cpp Examining data/nheko-0.7.2/src/popups/SuggestionsPopup.h Examining data/nheko-0.7.2/src/popups/UserMentions.cpp Examining data/nheko-0.7.2/src/popups/UserMentions.h Examining data/nheko-0.7.2/src/timeline/DelegateChooser.cpp Examining data/nheko-0.7.2/src/timeline/DelegateChooser.h Examining data/nheko-0.7.2/src/timeline/ReactionsModel.cpp Examining data/nheko-0.7.2/src/timeline/ReactionsModel.h Examining data/nheko-0.7.2/src/timeline/TimelineModel.cpp Examining data/nheko-0.7.2/src/timeline/TimelineModel.h Examining data/nheko-0.7.2/src/timeline/TimelineViewManager.cpp Examining data/nheko-0.7.2/src/timeline/TimelineViewManager.h Examining data/nheko-0.7.2/src/ui/Avatar.cpp Examining data/nheko-0.7.2/src/ui/Avatar.h Examining data/nheko-0.7.2/src/ui/Badge.cpp Examining data/nheko-0.7.2/src/ui/Badge.h Examining data/nheko-0.7.2/src/ui/DropShadow.cpp Examining data/nheko-0.7.2/src/ui/DropShadow.h Examining data/nheko-0.7.2/src/ui/FlatButton.cpp Examining data/nheko-0.7.2/src/ui/FlatButton.h Examining data/nheko-0.7.2/src/ui/FloatingButton.cpp Examining data/nheko-0.7.2/src/ui/FloatingButton.h Examining data/nheko-0.7.2/src/ui/InfoMessage.cpp Examining data/nheko-0.7.2/src/ui/InfoMessage.h Examining data/nheko-0.7.2/src/ui/Label.cpp Examining data/nheko-0.7.2/src/ui/Label.h Examining data/nheko-0.7.2/src/ui/LoadingIndicator.cpp Examining data/nheko-0.7.2/src/ui/LoadingIndicator.h Examining data/nheko-0.7.2/src/ui/Menu.h Examining data/nheko-0.7.2/src/ui/OverlayModal.cpp Examining data/nheko-0.7.2/src/ui/OverlayModal.h Examining data/nheko-0.7.2/src/ui/OverlayWidget.cpp Examining data/nheko-0.7.2/src/ui/OverlayWidget.h Examining data/nheko-0.7.2/src/ui/Painter.h Examining data/nheko-0.7.2/src/ui/RaisedButton.cpp Examining data/nheko-0.7.2/src/ui/RaisedButton.h Examining data/nheko-0.7.2/src/ui/Ripple.cpp Examining data/nheko-0.7.2/src/ui/Ripple.h Examining data/nheko-0.7.2/src/ui/RippleOverlay.cpp Examining data/nheko-0.7.2/src/ui/RippleOverlay.h Examining data/nheko-0.7.2/src/ui/SnackBar.cpp Examining data/nheko-0.7.2/src/ui/SnackBar.h Examining data/nheko-0.7.2/src/ui/TextField.cpp Examining data/nheko-0.7.2/src/ui/TextField.h Examining data/nheko-0.7.2/src/ui/TextLabel.cpp Examining data/nheko-0.7.2/src/ui/TextLabel.h Examining data/nheko-0.7.2/src/ui/Theme.cpp Examining data/nheko-0.7.2/src/ui/Theme.h Examining data/nheko-0.7.2/src/ui/ThemeManager.cpp Examining data/nheko-0.7.2/src/ui/ThemeManager.h Examining data/nheko-0.7.2/src/ui/ToggleButton.cpp Examining data/nheko-0.7.2/src/ui/ToggleButton.h Examining data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication.cpp Examining data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication.h Examining data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.cpp Examining data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.h Examining data/nheko-0.7.2/third_party/blurhash/blurhash.cpp Examining data/nheko-0.7.2/third_party/blurhash/blurhash.hpp Examining data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h Examining data/nheko-0.7.2/mtxclient/examples/crypto_bot.cpp Examining data/nheko-0.7.2/mtxclient/examples/media_downloader.cpp Examining data/nheko-0.7.2/mtxclient/examples/room_feed.cpp Examining data/nheko-0.7.2/mtxclient/examples/simple_bot.cpp Examining data/nheko-0.7.2/mtxclient/include/mtx.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/common.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/errors.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/aliases.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/avatar.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/canonical_alias.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/collections.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/common.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/create.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/encrypted.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/encryption.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/guest_access.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/history_visibility.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/join_rules.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/member.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/audio.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/emote.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/file.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/image.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/notice.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/text.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/messages/video.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/name.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/pinned_events.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/power_levels.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/presence.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/reaction.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/redaction.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/tag.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/tombstone.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/events/topic.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/identifiers.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/log.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/pushrules.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/requests.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/common.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/create_room.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/crypto.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/empty.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/groups.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/login.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/media.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/messages.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/notifications.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/profile.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/register.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/sync.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/version.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/responses/well-known.hpp Examining data/nheko-0.7.2/mtxclient/include/mtx/user_interactive.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/crypto/client.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/crypto/objects.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/crypto/types.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/crypto/utils.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/http/client.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/http/errors.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp Examining data/nheko-0.7.2/mtxclient/include/mtxclient/utils.hpp Examining data/nheko-0.7.2/mtxclient/lib/crypto/client.cpp Examining data/nheko-0.7.2/mtxclient/lib/crypto/types.cpp Examining data/nheko-0.7.2/mtxclient/lib/crypto/utils.cpp Examining data/nheko-0.7.2/mtxclient/lib/http/client.cpp Examining data/nheko-0.7.2/mtxclient/lib/http/session.cpp Examining data/nheko-0.7.2/mtxclient/lib/log.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/common.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/errors.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/aliases.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/avatar.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/canonical_alias.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/collections.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/common.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/create.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/encrypted.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/encryption.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/guest_access.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/history_visibility.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/join_rules.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/member.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/audio.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/emote.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/file.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/image.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/notice.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/text.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/messages/video.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/name.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/pinned_events.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/power_levels.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/presence.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/reaction.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/redaction.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/tag.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/tombstone.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/events/topic.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/identifiers.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/pushrules.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/requests.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/common.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/create_room.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/crypto.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/empty.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/groups.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/login.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/media.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/messages.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/notifications.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/profile.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/register.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/sync.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/version.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/responses/well-known.cpp Examining data/nheko-0.7.2/mtxclient/lib/structs/user_interactive.cpp Examining data/nheko-0.7.2/mtxclient/lib/utils.cpp Examining data/nheko-0.7.2/mtxclient/tests/client_api.cpp Examining data/nheko-0.7.2/mtxclient/tests/connection.cpp Examining data/nheko-0.7.2/mtxclient/tests/crypto.cpp Examining data/nheko-0.7.2/mtxclient/tests/e2ee.cpp Examining data/nheko-0.7.2/mtxclient/tests/errors.cpp Examining data/nheko-0.7.2/mtxclient/tests/events.cpp Examining data/nheko-0.7.2/mtxclient/tests/identifiers.cpp Examining data/nheko-0.7.2/mtxclient/tests/media_api.cpp Examining data/nheko-0.7.2/mtxclient/tests/messages.cpp Examining data/nheko-0.7.2/mtxclient/tests/pushrules.cpp Examining data/nheko-0.7.2/mtxclient/tests/requests.cpp Examining data/nheko-0.7.2/mtxclient/tests/responses.cpp Examining data/nheko-0.7.2/mtxclient/tests/test_helpers.hpp Examining data/nheko-0.7.2/mtxclient/tests/utils.cpp Examining data/nheko-0.7.2/debian/include/variant.hpp FINAL RESULTS: data/nheko-0.7.2/mtxclient/examples/media_downloader.cpp:226:20: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. password = getpass("Password: "); data/nheko-0.7.2/mtxclient/examples/room_feed.cpp:160:20: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. password = getpass("Password: "); data/nheko-0.7.2/mtxclient/examples/simple_bot.cpp:225:20: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. password = getpass("password: "); data/nheko-0.7.2/mtxclient/include/mtxclient/http/client.hpp:98:60: [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. const boost::system::error_code &, data/nheko-0.7.2/mtxclient/include/mtxclient/http/client.hpp:622:55: [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. const boost::system::error_code &err_code, data/nheko-0.7.2/mtxclient/include/mtxclient/http/errors.hpp:16:16: [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. boost::system::error_code error_code; data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:20:35: [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. const boost::system::error_code &err)>; data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:24:57: [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::function<void(RequestID request_id, const boost::system::error_code ec)>; data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:53:16: [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. boost::system::error_code error_code; data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:67:32: [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. void on_resolve(boost::system::error_code ec, data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:69:30: [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. void on_close(boost::system::error_code ec); data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:70:38: [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. void on_connect(const boost::system::error_code &ec); data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:71:40: [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. void on_handshake(const boost::system::error_code &ec); data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:72:35: [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. void on_read(const boost::system::error_code &ec, std::size_t bytes_transferred); data/nheko-0.7.2/mtxclient/include/mtxclient/http/session.hpp:74:36: [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. void on_write(const boost::system::error_code &ec, std::size_t bytes_transferred); data/nheko-0.7.2/mtxclient/lib/http/client.cpp:69:26: [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. const boost::system::error_code &err_code) { data/nheko-0.7.2/mtxclient/lib/http/client.cpp:83:52: [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. [type_erased_cb](RequestID, const boost::system::error_code ec) { data/nheko-0.7.2/mtxclient/lib/http/client.cpp:123:49: [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. const boost::system::error_code &err_code, data/nheko-0.7.2/mtxclient/lib/http/session.cpp:34:28: [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. Session::on_resolve(boost::system::error_code ec, data/nheko-0.7.2/mtxclient/lib/http/session.cpp:49:26: [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. Session::on_close(boost::system::error_code ec) data/nheko-0.7.2/mtxclient/lib/http/session.cpp:72:34: [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. Session::on_connect(const boost::system::error_code &ec) data/nheko-0.7.2/mtxclient/lib/http/session.cpp:105:16: [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. boost::system::error_code ec(error_code); data/nheko-0.7.2/mtxclient/lib/http/session.cpp:112:36: [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. Session::on_handshake(const boost::system::error_code &ec) data/nheko-0.7.2/mtxclient/lib/http/session.cpp:127:32: [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. Session::on_write(const boost::system::error_code &ec, std::size_t bytes_transferred) data/nheko-0.7.2/mtxclient/lib/http/session.cpp:146:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. Session::on_read(const boost::system::error_code &ec, std::size_t bytes_transferred) data/nheko-0.7.2/mtxclient/lib/http/session.cpp:161:24: [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. boost::system::error_code ec{static_cast<int>(::ERR_get_error()), data/nheko-0.7.2/mtxclient/tests/errors.cpp:23:22: [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. "error": "Missing access token" data/nheko-0.7.2/mtxclient/tests/requests.cpp:245:28: [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. "id_access_token": "<access token previously registered with the identity server>" data/nheko-0.7.2/mtxclient/tests/requests.cpp:265:28: [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. "id_access_token": "<access token previously registered with the identity server>" data/nheko-0.7.2/src/Utils.cpp:145:33: [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. return QLocale::system().toString(then.time(), QLocale::ShortFormat); data/nheko-0.7.2/src/Utils.cpp:151:25: [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. return QLocale::system().toString(then.date(), QLocale::ShortFormat); data/nheko-0.7.2/src/dialogs/ReadReceipts.cpp:79:33: [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. .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat)); data/nheko-0.7.2/src/dialogs/ReadReceipts.cpp:82:33: [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. .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat)); data/nheko-0.7.2/src/dialogs/ReadReceipts.cpp:86:33: [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. .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat)); data/nheko-0.7.2/src/dialogs/ReadReceipts.cpp:88:25: [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. return QLocale::system().toString(then.time(), QLocale::ShortFormat); data/nheko-0.7.2/src/main.cpp:173:33: [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 lang = QLocale::system().name(); data/nheko-0.7.2/src/timeline/TimelineModel.cpp:812:32: [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 fmt = QLocale::system().dateFormat(QLocale::LongFormat); data/nheko-0.7.2/src/ui/InfoMessage.cpp:66:32: [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 fmt = QLocale::system().dateFormat(QLocale::LongFormat); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:77:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf_s data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2914:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. auto sn = snprintf(buf.data(), buf.size() - 1, fmt, args...); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2931:11: [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(&glowable_buf[0], glowable_buf.size() - 1, fmt, args...)); data/nheko-0.7.2/mtxclient/lib/crypto/client.cpp:223:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output.data(), plaintext.data(), nbytes); data/nheko-0.7.2/mtxclient/lib/crypto/client.cpp:268:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output.data(), decrypted.data(), nbytes); data/nheko-0.7.2/mtxclient/lib/crypto/client.cpp:297: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(tmp.data(), one_time_key_message.data(), one_time_key_message.size()); data/nheko-0.7.2/mtxclient/lib/crypto/client.cpp:333: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(tmp.data(), one_time_key_message.data(), one_time_key_message.size()); data/nheko-0.7.2/mtxclient/lib/crypto/utils.cpp:153:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[EVP_MAX_MD_SIZE]; data/nheko-0.7.2/mtxclient/lib/crypto/utils.cpp:257: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[SHA256_DIGEST_LENGTH]; data/nheko-0.7.2/src/Cache.cpp:1204:42: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 roomsCursor = lmdb::cursor::open(txn, roomsDb_); data/nheko-0.7.2/src/Cache.cpp:1244: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:1280:42: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 roomsCursor = lmdb::cursor::open(txn, roomsDb_); data/nheko-0.7.2/src/Cache.cpp:1292:52: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 invitesCursor = lmdb::cursor::open(txn, invitesDb_); data/nheko-0.7.2/src/Cache.cpp:1316: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:1345: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:1388: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). auto cursor = lmdb::cursor::open(txn, invitesDb_); data/nheko-0.7.2/src/Cache.cpp:1430: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). auto cursor = lmdb::cursor::open(txn, membersdb); data/nheko-0.7.2/src/Cache.cpp:1492: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). auto cursor = lmdb::cursor::open(txn, membersdb); data/nheko-0.7.2/src/Cache.cpp:1648: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). auto cursor = lmdb::cursor::open(txn, membersdb); data/nheko-0.7.2/src/Cache.cpp:1690: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). auto cursor = lmdb::cursor::open(txn, membersdb); data/nheko-0.7.2/src/Cache.cpp:1783:42: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 roomsCursor = lmdb::cursor::open(txn, roomsDb_); data/nheko-0.7.2/src/Cache.cpp:1810:48: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). auto cursor = lmdb::cursor::open(txn, membersdb); data/nheko-0.7.2/src/Cache.cpp:1834: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). auto cursor = lmdb::cursor::open(txn, roomsDb_); data/nheko-0.7.2/src/Cache.cpp:1870: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). auto cursor = lmdb::cursor::open(txn, getMembersDb(txn, room_id)); data/nheko-0.7.2/src/Cache.cpp:1902: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:1991: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:2094:34: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). auto db = lmdb::dbi::open(txn, ROOMS_DB, MDB_CREATE); data/nheko-0.7.2/src/Cache.cpp:2095: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache.cpp:2126:45: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 cursor = lmdb::cursor::open(txn, msg_db); data/nheko-0.7.2/src/Cache.cpp:2201: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). auto cursor = lmdb::cursor::open(txn, db); data/nheko-0.7.2/src/Cache_p.h:402:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open(txn, "pending_receipts", MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:408:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). lmdb::dbi::open(txn, std::string(room_id + "/messages").c_str(), MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:416:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open( data/nheko-0.7.2/src/Cache_p.h:422:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open( data/nheko-0.7.2/src/Cache_p.h:428:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open(txn, std::string(room_id + "/state").c_str(), MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:433:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open(txn, std::string(room_id + "/members").c_str(), MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:438:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open(txn, std::string(room_id + "/mentions").c_str(), MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:443:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open(txn, "presence", MDB_CREATE); data/nheko-0.7.2/src/Cache_p.h:452:35: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 lmdb::dbi::open( data/nheko-0.7.2/src/ChatPage.cpp:334:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!dev->open(QIODevice::ReadOnly)) { data/nheko-0.7.2/src/UserSettingsPage.cpp:329: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). stylefile.open(QFile::ReadOnly); data/nheko-0.7.2/src/UserSettingsPage.cpp:791: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::ReadOnly)) { data/nheko-0.7.2/src/UserSettingsPage.cpp:852: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 | QIODevice::Text)) { data/nheko-0.7.2/src/dialogs/PreviewUploadOverlay.cpp:148: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/nheko-0.7.2/src/dialogs/PreviewUploadOverlay.cpp:183: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::ReadOnly)) { data/nheko-0.7.2/src/dialogs/RoomSettings.cpp:797: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::ReadOnly)) { data/nheko-0.7.2/src/timeline/TimelineModel.cpp:1555: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.open(QIODevice::WriteOnly)) data/nheko-0.7.2/src/timeline/TimelineModel.cpp:1632: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.open(QIODevice::WriteOnly)) data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.cpp:92:7: [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 username[UNLEN + 1]; data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.h:45:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char primaryUser[128]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1541: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[INET_ADDRSTRLEN]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1841:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bufsiz]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1880: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[CPPHTTPLIB_RECV_BUFSIZ]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1901: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[CPPHTTPLIB_RECV_BUFSIZ]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1912: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[CPPHTTPLIB_RECV_BUFSIZ]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1928:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bufsiz]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2138: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 hex[4]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2162:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[4]; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:5015: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[BUFSIZ]; data/nheko-0.7.2/mtxclient/lib/structs/responses/notifications.cpp:41:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). obj["read"] = res.read; data/nheko-0.7.2/mtxclient/tests/responses.cpp:132:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/mtxclient/tests/responses.cpp:697:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/mtxclient/tests/responses.cpp:702:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/mtxclient/tests/responses.cpp:707:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/mtxclient/tests/responses.cpp:712:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/mtxclient/tests/responses.cpp:717:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). "m.read": { data/nheko-0.7.2/src/ChatPage.cpp:894:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (item.read) { data/nheko-0.7.2/src/CommunitiesList.cpp:106:54: [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). it->first.right(it->first.size() - strlen("tag:")).toStdString(); data/nheko-0.7.2/src/CommunitiesListItem.cpp:120:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return groupId_.right(groupId_.size() - strlen("tag:")); data/nheko-0.7.2/src/CommunitiesListItem.cpp:135:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). QString tag = groupId_.right(groupId_.size() - strlen("tag:")); data/nheko-0.7.2/src/Utils.cpp:677:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return reader.read(); data/nheko-0.7.2/src/timeline/TimelineModel.cpp:374:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else if (read.contains(id) || containsOthers(cache::readReceipts(id, room_id_))) data/nheko-0.7.2/src/timeline/TimelineModel.cpp:1056:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read.insert(id); data/nheko-0.7.2/src/timeline/TimelineModel.h:276:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QSet<QString> read; data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.cpp:190:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( inst->primaryUser, getUsername().toUtf8().data(), 127 ); data/nheko-0.7.2/third_party/SingleApplication-3.1.3.1/singleapplication_p.cpp:372:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QByteArray msgBytes = sock->read(info.msgLen); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:356:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual ssize_t read(char *ptr, size_t size) = 0; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1092:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fs.read(&out[0], size); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1152:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto n = strm_.read(&byte, 1); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1309:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(char *ptr, size_t size) override; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1328:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(char *ptr, size_t size) override; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1347:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(char *ptr, size_t size) override; data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1885:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1905:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:1914:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto n = strm.read(buf, CPPHTTPLIB_RECV_BUFSIZ); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2547:47: [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 char *token) { data_length += strlen(token); }, data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2900: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). return write(ptr, strlen(ptr)); data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2958:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). inline ssize_t SocketStream::read(char *ptr, size_t size) { data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:2994:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). inline ssize_t BufferStream::read(char *ptr, size_t size) { data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:4696:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). inline ssize_t SSLSocketStream::read(char *ptr, size_t size) { data/nheko-0.7.2/third_party/cpp-httplib-0.5.12/httplib.h:4988: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(name) == name_len) { ANALYSIS SUMMARY: Hits = 129 Lines analyzed = 71499 in approximately 2.02 seconds (35482 lines/second) Physical Source Lines of Code (SLOC) = 57119 Hits@level = [0] 11 [1] 32 [2] 56 [3] 0 [4] 41 [5] 0 Hits@level+ = [0+] 140 [1+] 129 [2+] 97 [3+] 41 [4+] 41 [5+] 0 Hits/KSLOC@level+ = [0+] 2.45102 [1+] 2.25844 [2+] 1.69821 [3+] 0.7178 [4+] 0.7178 [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.