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/zulucrypt-5.7.1/zuluCrypt-gui/debugwindow.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/tablewidget.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolume.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/dialogok.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/main.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/systemsignalhandler.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/help.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/favorites.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/zulucrypt.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/erasedevice.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/about.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/keystrength.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/luksaddkey.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolume.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/filemanager.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/systemsignalhandler.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/cryptoinfo.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/plugin.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/managesystemvolumes.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/luksdeletekey.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/tcrypt.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/checkforupdates.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/warnwhenextendingcontainerfile.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/warnwhenextendingcontainerfile.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/cryptoinfo.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/readonlywarning.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/managevolumeheader.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createkeyfile.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/secrets.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumedialog.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/cryptfiles.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/debugwindow.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/dialogmsg.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/zulucrypt.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumedialog.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/secrets.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/walletconfiginput.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/walletconfiginput.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/password_dialog.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/tablewidget.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/executablesearchpaths.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createkeyfile.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/cryptfiles.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/executablesearchpaths.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/dialogok.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/managesystemvolumes.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/password_dialog.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/favorites.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/keystrength.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/readonlywarning.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/luksaddkey.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/erasedevice.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/filemanager.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/luksdeletekey.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/dialogmsg.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/walletconfig.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/tcrypt.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/managevolumeheader.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/plugin.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/walletconfig.cpp Parsing failed to find end of parameter list; semicolon terminated it in ( [ & ]()->QString{ if( m_wallet->backEnd() == LXQt::Wallet::BackEnd::kwallet ){ return "default" ; }else{ return utility::walletName() ; } }(),utility::applicationName(),[ this Examining data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/checkforupdates.h Examining data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/about.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-gui/help.cpp Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/constants.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/pluginManager/libzuluCryptPluginManager.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/pluginManager/zuluCryptPluginManager.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/check_invalid_key.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/security.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/partitions.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/includes.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/clear_dead_mappers.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/mount_flags.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/bash_special_chars.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/security.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volume_info.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/crypt_file.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/get_opts.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/remove_key.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/write_device_with_junk.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/add_key.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/create_volumes.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/path_access.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/test.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/bind.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/main.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/close_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/create_mount_point.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/check_opened_mapper.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/open_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/libzuluCrypt-exe.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/bin/help.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/user_home_path.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/parse_fstab.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/close_mapper.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_tcrypt.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/bitlocker.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/real_path.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/empty_slots.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/version.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_mapper_name.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/mount_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_luks.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/includes.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/is_luks.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/blkid_evaluate_tag.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_luks.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/remove_key.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/add_key.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/libzuluCrypt.h Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_tcrypt.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/mountinfo.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/volume_type.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/resolve_paths.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/is_path_valid.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/close_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/mount_fs_options.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/unmount_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_volume.c Examining data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_plain.c Examining data/zulucrypt-5.7.1/plugins/generic_header/main.cpp Examining data/zulucrypt-5.7.1/plugins/mainwindow.cpp Examining data/zulucrypt-5.7.1/plugins/tomb/main.cpp Examining data/zulucrypt-5.7.1/plugins/keykeyfile/main.cpp Examining data/zulucrypt-5.7.1/plugins/keyring/keyring.c Examining data/zulucrypt-5.7.1/plugins/mainwindow.h Examining data/zulucrypt-5.7.1/plugins/kwallet/main.cpp Examining data/zulucrypt-5.7.1/plugins/kwallet/wallet.cpp Examining data/zulucrypt-5.7.1/plugins/kwallet/wallet.h Examining data/zulucrypt-5.7.1/plugins/gpg/main.cpp Examining data/zulucrypt-5.7.1/plugins/luks/main.cpp Examining data/zulucrypt-5.7.1/plugins/keydialog-qt/main.cpp Examining data/zulucrypt-5.7.1/plugins/keydialog-qt/mainwindow.cpp Examining data/zulucrypt-5.7.1/plugins/keydialog-qt/mainwindow.h Examining data/zulucrypt-5.7.1/plugins/plugins.h Examining data/zulucrypt-5.7.1/plugins/hmac/main.cpp Examining data/zulucrypt-5.7.1/plugins/steghide/main.cpp Examining data/zulucrypt-5.7.1/plugins/test/zuluCrypt-testKey.c Examining data/zulucrypt-5.7.1/plugins/network_key/main.cpp Examining data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.h Examining data/zulucrypt-5.7.1/plugins/network_key/server.c Examining data/zulucrypt-5.7.1/plugins/network_key/network_key.h Examining data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/humanize.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/pbkdf2-openssl.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/pbkdf2-gcrypt.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/humanize.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/crc32.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api_internal.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/crc32.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/generic_xts.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/generic_xts.h Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/main.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api_test.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto-gcrypt.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto-dev.c Examining data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c Examining data/zulucrypt-5.7.1/external_libraries/tasks/task.hpp Examining data/zulucrypt-5.7.1/external_libraries/json/nlohmann/json.hpp Examining data/zulucrypt-5.7.1/external_libraries/NetworkAccessManager/network_access_manager.hpp Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/changepassworddialog.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.h Parsing failed to find end of parameter list; semicolon terminated it in ( "test_wallet_name","test_application_name",[ this ]( bool walletIsOpen ){ if( walletIsOpen ){ for( const auto& it : m_wallet->readAllKeyValues() ){ const auto& key = it.first ; con Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/task.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.cpp Parsing failed to find end of parameter list; semicolon terminated it in ( walletName, applicationName, []( bool e ){ Q_UNUSED( e ) ; }, parent, password, displayApplicationName ) ; m_loop.exec() ; return m_opened ; } void LXQt::Wallet::i Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/password_dialog.cpp Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.cpp Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/password_dialog.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.cpp Parsing failed to find end of parameter list; semicolon terminated it in ( walletName, applicationName, []( bool e ){ Q_UNUSED( e ) ; }, parent, password, displayApplicationName ) ; m_loop.exec() ; return m_opened ; } void LXQt::Wallet::l Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.h Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/libsecret.c Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/changepassworddialog.cpp Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.cpp Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c Examining data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h Examining data/zulucrypt-5.7.1/zuluMount-cli/mount.c Examining data/zulucrypt-5.7.1/zuluMount-cli/crypto_mount.c Examining data/zulucrypt-5.7.1/zuluMount-cli/includes.h Examining data/zulucrypt-5.7.1/zuluMount-cli/crypto_umount.c Examining data/zulucrypt-5.7.1/zuluMount-cli/umount.c Examining data/zulucrypt-5.7.1/zuluMount-cli/volume_status.c Examining data/zulucrypt-5.7.1/zuluMount-cli/main.c Examining data/zulucrypt-5.7.1/zuluMount-gui/events.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/main.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/mountoptions.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/events.h Examining data/zulucrypt-5.7.1/zuluMount-gui/siritask.h Examining data/zulucrypt-5.7.1/zuluMount-gui/oneinstance.h Examining data/zulucrypt-5.7.1/zuluMount-gui/keydialog.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/monitor_mountinfo.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.h Examining data/zulucrypt-5.7.1/zuluMount-gui/volumeproperty.h Examining data/zulucrypt-5.7.1/zuluMount-gui/veracryptpimdialog.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/veracryptpimdialog.h Examining data/zulucrypt-5.7.1/zuluMount-gui/zulumount.h Examining data/zulucrypt-5.7.1/zuluMount-gui/monitor_mountinfo.h Examining data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/oneinstance.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/keydialog.h Examining data/zulucrypt-5.7.1/zuluMount-gui/siritask.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/mountpartition.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/zulumount.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/deviceoffset.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/deviceoffset.h Examining data/zulucrypt-5.7.1/zuluMount-gui/volumeproperty.cpp Examining data/zulucrypt-5.7.1/zuluMount-gui/mountoptions.h Examining data/zulucrypt-5.7.1/zuluMount-gui/mountpartition.h Examining data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c Examining data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h Examining data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c Examining data/zulucrypt-5.7.1/zuluPolkit/main.cpp Examining data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.h Examining data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp FINAL RESULTS: data/zulucrypt-5.7.1/zuluCrypt-cli/bin/bind.c:34:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if( chmod( x,y ) ){;} data/zulucrypt-5.7.1/zuluCrypt-cli/bin/create_mount_point.c:43:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if( chown( x,y,z ) ){;} data/zulucrypt-5.7.1/zuluCrypt-cli/bin/create_mount_point.c:47:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if( chmod( x,y ) ){;} data/zulucrypt-5.7.1/zuluCrypt-cli/bin/crypt_file.c:193:18: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _ignore_result( chmod( dest,S_IRUSR | S_IWUSR ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/crypt_file.c:194:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _ignore_result( chown( dest,uid,uid ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:111:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ignore_result( chown( "/run",0,0 ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:116:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ignore_result( chown( temp_path,0,0 ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:255:18: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ignore_result( chmod( dest,S_IRUSR ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:256:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ignore_result( chown( dest,uid,uid ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/write_device_with_junk.c:235:20: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _ignore_result( chown( d,uid,0 ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/write_device_with_junk.c:236:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _ignore_result( chmod( d,S_IRWXU ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/mount_volume.c:393:3: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod( mst->m_point,S_IRWXU|S_IRWXG|S_IRWXO ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_tcrypt.c:37:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if( chown( x,y,z ) ){} data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_tcrypt.c:41:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if( chmod( x,y ) ){} data/zulucrypt-5.7.1/zuluCrypt-cli/pluginManager/zuluCryptPluginManager.c:159:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _ignore_result( chmod( path,0700 ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/pluginManager/zuluCryptPluginManager.c:160:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _ignore_result( chown( path,uid,uid ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2035:17: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ignore_result( chown( path,getuid(),getgid() ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2036:2: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod( path,S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:357:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if( chown( path,uid,gid ) ){;} data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:374:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if( chmod( f.toLatin1().constData(),mode ) ){;} data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:89:2: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(tc_internal_log_buffer, LOG_BUFFER_SZ, fmt, ap); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:390:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer1, dev); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1094:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(passphrase_out, pass); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1780:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ciphers, crypto_algo->name); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1922:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dev, info->dev); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1963:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(map, mapname); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1965:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(map, "%s.%d", mapname, j); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:2082:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dev, "/dev/mapper/%s.%d", mapname, j); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:2134:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(map, "%s.%d", mapname, i); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api_test.c:50:2: [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. system("dmsetup ls"); data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:564:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( warn,dev,path ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:581: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. system = StringListAppend( system,device ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:605: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. StringListAppendIfAbsent( system,device ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:638: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. StringListAppendIfAbsent( system,device ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:663: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. StringListAppendIfAbsent( system,e ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:695: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. StringListRemoveString( system,device ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:707:41: [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 _remove_btfs_multiple_devices( system ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:709:22: [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. StringListDelete( &system ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:233:3: [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. system.setItalic( !system.italic() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:233:22: [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. system.setItalic( !system.italic() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:234:3: [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. system.setBold( !system.bold() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:234:20: [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. system.setBold( !system.bold() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:236: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. std::reference_wrapper<QFont> font = system ; data/zulucrypt-5.7.1/zuluCrypt-gui/openvolume.cpp:248:13: [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. font = system ; data/zulucrypt-5.7.1/zuluMount-cli/umount.c:88:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( errorMsg,StringContent( xt ) ) ; data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.cpp:434:8: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if( system.finished() ){ data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.cpp:437:14: [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. auto s = system.splitOutput( '\n' ) ; data/zulucrypt-5.7.1/external_libraries/zuluplay/main.c:293:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ch = getopt_long(argc, argv, "a:b:cd:ef:ghij:k:m:s:tu:vwx:y:z", data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:87:17: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char * mpath = realpath( path,NULL ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/get_opts.c:26:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. static char random[] = "/dev/urandom" ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/get_opts.c:32:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. stopts->rng = random ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/get_opts.c:55:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ( ( c = getopt( argc,argv,"MHZCUWTJLORBXASNPkhocsarqwibEDs:m:d:p:f:e:Y:i:z:g:y:u:l:n:j:t:G:F:V:K:" ) ) != -1 ) { data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:471:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. path = realpath( device,dev ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/real_path.c:33:13: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char * e = realpath( path,NULL ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2853:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand( static_cast< unsigned int >( time( &t ) ) ) ; data/zulucrypt-5.7.1/zuluMount-cli/main.c:55:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while( ( c = getopt( argc,argv,"cEMLnASNshlPmuDd:z:e:Y:p:f:G:o:F:t:B:b:K:" ) ) != -1 ){ data/zulucrypt-5.7.1/external_libraries/json/nlohmann/json.hpp:8221:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hexify[16] = data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:147:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ],char output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:147:63: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ],char output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:151:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_iv_from_wallet_header( char iv[ IV_SIZE ],int fd ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:153:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_salt_from_wallet_header( char salt[ SALT_SIZE ],int fd ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:155:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_volume_info( char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ],int fd ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:159: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. static void _create_magic_string_header( char magic_string[ MAGIC_STRING_BUFFER_SIZE ] ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:199:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( first,str,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:200:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( second,str + sizeof( u_int32_t ),sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:279:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:280:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:281:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:282:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:308:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:342:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:343:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:344:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:345:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:346:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_buffer[ FILE_BLOCK_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:369: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). fd_dest = open( destination,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:373: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). fd_src = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:392:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE,&size,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:435:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:445:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( wallet->key,key,PASSWORD_SIZE ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:474:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:525:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:526:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_buffer[ FILE_BLOCK_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:555:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_src = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:568: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). fd_dest = open( destination,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:625:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:635:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:656:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( w->wallet_name,wallet_name,len + 1 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:666:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( w->application_name,application_name,len + 1 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:693:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:770:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:903:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,&key_size,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:904:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + sizeof( u_int32_t ),&key_value_length,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:905:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + NODE_HEADER_SIZE,key,key_size ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:906:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + NODE_HEADER_SIZE + key_size,value,key_value_length ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1040:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1070:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1071:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1072:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path_1[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1073:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1116:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE,&wallet->wallet_data_size,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1117:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE + sizeof( u_int64_t ),&wallet->wallet_data_entry_count,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1131:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path_1,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1155: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( path_1,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1176:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1209:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,entry->d_name,len ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1228:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1245:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path_1[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1253:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1281:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( output_key,digest,output_key_size ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1295:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ], data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1296:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1298:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1309:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_iv_from_wallet_header( char iv[ IV_SIZE ],int fd ) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1315:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_salt_from_wallet_header( char salt[ SALT_SIZE ],int fd ) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1321:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_volume_info( char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ],int fd ) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1330:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &w->wallet_data_size,buffer,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1331:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &w->wallet_data_entry_count,buffer + sizeof( u_int64_t ),sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1337:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( "/dev/urandom",O_RDONLY ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1351: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. static void _create_magic_string_header( char magic_string[ MAGIC_STRING_BUFFER_SIZE ] ) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1357:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( magic_string,MAGIC_STRING,MAGIC_STRING_SIZE ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1361:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( magic_string + MAGIC_STRING_SIZE,&version,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1367:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &version,buffer + MAGIC_STRING_SIZE,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1377:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &version,buffer + MAGIC_STRING_SIZE,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/libsecret.c:79:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). e = atoi( c ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/libsecret.c:99:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). e = atoi( c ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/libsecret.c:190:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_size[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/libsecret.c:265:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_size[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.cpp:80:36: [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 LXQt::Wallet::internalWallet::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.cpp:86:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->open( walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.cpp:98:36: [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 LXQt::Wallet::internalWallet::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.cpp:333:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ 4096 ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.h:64:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_internal_wallet.h:71:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.cpp:57: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). bool LXQt::Wallet::kwallet::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.cpp:107: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). void LXQt::Wallet::kwallet::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.h:55:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_kwallet.h:62:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.cpp:85:31: [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 LXQt::Wallet::libsecret::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.cpp:91:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->open( walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.cpp:103:31: [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 LXQt::Wallet::libsecret::open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.h:55:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_libsecret.h:62:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.cpp:175:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ 4096 ] ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.h:200:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.h:207:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual bool open( const QString& walletName, data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/frontend/lxqt_wallet.h:282: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). m_wallet->open( "test_wallet_name","test_application_name",[ this ]( bool walletIsOpen ){ data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto-dev.c:109: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 ((cryptodev_fd = open("/dev/crypto", O_RDWR, 0)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto-gcrypt.c:176:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, len); data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto.c:72:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dummy_chain->key, data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto.c:75:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dummy_chain->key + dummy_chain->cipher->klen/2, data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c:57:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[128]; data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c:139:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[128]; data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dhdr->tc_str, TC_SIG, 4); data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c:215:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dhdr->tc_str, VC_SIG, 4); data/zulucrypt-5.7.1/external_libraries/zuluplay/hdr.c:291:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[128]; data/zulucrypt-5.7.1/external_libraries/zuluplay/humanize.c:154:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:58: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 ((fd = open(file, O_RDONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:121: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 ((fd = open((weak) ? "/dev/urandom" : "/dev/random", O_RDONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:181:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ERASE_BUFFER_SIZE]; data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:190:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd_rand = open("/dev/urandom", O_RDONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:195: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 ((fd = open(dev, O_WRONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:253: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 ((fd = open(dev, O_RDONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c: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). if ((fd = open(dev, O_RDONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:336:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mem_buf + internal_off, mem, bytes); data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:339:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(dev, O_WRONLY)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:370: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 ((fd = open(file, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/main.c:451:43: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tc_set_iteration_count(iteration_count(atoi(optarg), data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[8]; /* SAFEMEM */ data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sig[8]; /* SAFEMEM */ data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:77:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(hdr->sig, "SAFEMEM"); data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:78:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(tail->sig, "SAFEMEM"); data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:160:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:73:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tc_internal_log_buffer[LOG_BUFFER_SZ]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:166:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tc_crypto_algos, &wtf, sizeof(wtf)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:207:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbkdf_prf_algos_boot_vc ,_original_pbkdf_prf_algos_boot_vc, data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:210:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbkdf_prf_algos_standard_vc ,_original_pbkdf_prf_algos_standard_vc, data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:292:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(elem, src, sizeof(*elem)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:301:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(elem->key, src->key, src->cipher->klen); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:362: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. static char sbuf[256]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:384:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[PATH_MAX*3]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:385:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer1[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:404:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(buffer,O_RDONLY); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:542:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&cipher_chain->dm_key[i*2], "%02x", data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:692:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:849:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%"DISKSZ_FMT" bytes", (blocks * blksz)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1559:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1730:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char map[PATH_MAX+1]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1731:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ciphers[512]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1809:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(info->status, "inactive"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1811:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(info->status, "active and is in use"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1813:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(info->status, "active"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1815:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(info->status, "invalid"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1901:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *uu_stack[64]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1909:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dev[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1910:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char map[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1911:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uu[PATH_MAX*2]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:2124:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char map[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:2175:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ciphers[8]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:111:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dm_key[MAX_KEYSZ*2 + 1]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:118:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char salt[SALT_LEN]; /* Salt for PBKDF */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:119:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char enc[448]; /* Encrypted part of the header */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tc_str[4]; /* ASCII string "TRUE" */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:141:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char unused3[120]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:143:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char keys[256]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:147:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dev[PATH_MAX]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:151:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[MAX_KEYSZ*2 + 1]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:169:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[64]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:170:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char status[64]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:179:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device[PATH_MAX]; /* Underlying device */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:180:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[256]; /* DM Target type */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:184:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cipher[256]; /* Cipher */ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:195:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *keyfiles[MAX_KEYFILES]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:197:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *h_keyfiles[MAX_KEYFILES]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.h:232:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *new_keyfiles[MAX_KEYFILES]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:90:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:873:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(volume_info->type, "tcrypt"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:875:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(volume_info->type, "vcrypt"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:877:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(volume_info->type, "Nil"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:900:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(volume_info->mode, "read only"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:902:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(volume_info->mode, "read and write"); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:918:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[TCPLAY_VOLUME_INFO_FIELD_SIZE]; data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h:63:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cipher[TCPLAY_VOLUME_INFO_FIELD_SIZE]; data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keysize[TCPLAY_VOLUME_INFO_FIELD_SIZE]; data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char offset[TCPLAY_VOLUME_INFO_FIELD_SIZE]; data/zulucrypt-5.7.1/external_libraries/zuluplay/zuluplay_api.h:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mode[TCPLAY_VOLUME_INFO_FIELD_SIZE]; data/zulucrypt-5.7.1/plugins/keyring/keyring.c:35:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char UUID[ 64 ] ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:134:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open( "/dev/urandom",O_RDONLY ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:172:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key,k,key_size ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:218:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ KEY_LENGTH ] ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[ SALT_SIZE + IV_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:327:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,buff,len ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:331:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + len,&buffer_size,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:335:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + len + sizeof( u_int32_t ),MAGIC_STRING,MAGIC_STRING_LENGTH ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:342:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + len + sizeof( u_int32_t ) + sizeof( u_int32_t ) ,f,HMAC_SIZE ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:347:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + len + LOAD_INFO_SIZE,buffer,buffer_size ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:381:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &l,buffer,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.h:93:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. _buffer = memcpy( _buffer,buffer,buffer_size ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:77:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key.key_0,e->path,key.key_0_length ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:87:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key.key_1,e->uuid,key.key_1_length ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:97:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key.wallet_key,wallet_key,key.wallet_key_length ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:107:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key.wallet_name,wallet_name,n + 1 ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:108:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( key.application_name,wallet_name,n + 1 ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:156: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( result.key,value->value,value->value_length ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:211:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( file.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/plugins/network_key/network_key.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key_0[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key_1[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_key[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_name[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:52:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char application_name[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[ BUFFER_SIZE ] ; data/zulucrypt-5.7.1/plugins/network_key/network_key.h:77:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ 1024 ] ; data/zulucrypt-5.7.1/plugins/network_key/server.c:59:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_name[ sizeof( key->wallet_name ) ] ; data/zulucrypt-5.7.1/plugins/network_key/server.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char application_name[ sizeof( key->wallet_name ) ] ; data/zulucrypt-5.7.1/plugins/network_key/server.c:62:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( wallet_name,key->wallet_name,sizeof( key->wallet_name ) ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:63:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( application_name,key->application_name,sizeof( key->application_name ) ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:86:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( value.value,key_value.key_value,key_value.key_value_size ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:94:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( value.value,key_value.key_value,key_value.key_value_size ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:170:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ buffer_size ] ; data/zulucrypt-5.7.1/plugins/network_key/server.c:183:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). network_port = atoi( *( argv + 3 ) ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:195:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( encryption_key,e,encryption_key_length ) ; data/zulucrypt-5.7.1/plugins/plugins.h:74:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( f.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/plugins/plugins.h:77:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ size ] ; data/zulucrypt-5.7.1/plugins/plugins.h:141:4: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/plugins/plugins.h:168: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). keyfile.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/plugins/tomb/main.cpp:78: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). temp_file.open( QIODevice::WriteOnly ) ; data/zulucrypt-5.7.1/plugins/tomb/main.cpp:85: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). temp_file.open( QIODevice::WriteOnly ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:130:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:149: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). f_in = open( StringContent( p ),O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:181: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). f_out = open( dest,O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:212:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:244: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). f_out = open( dest,O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:274: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). f_out = open( mapper,O_WRONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:289: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). f_in = open( "/dev/urandom",O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:303: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). f_in = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/libzuluCrypt-exe.h:53:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * tcrypt_hidden_volume_multiple_keyfiles[ TRUECRYPT_MAX_KEYFILES + 1 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/libzuluCrypt-exe.h:54:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * tcrypt_multiple_keyfiles[ TRUECRYPT_MAX_KEYFILES + 1 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/open_volume.c:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ buffer_size ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/path_access.c:34:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/path_access.c:36:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = open( path,O_WRONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:131:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:143:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_source = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:164: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). fd_temp = open( temp_path,O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR | S_IRGRP |S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:221:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:225: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). fd_dest = open( dest,O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR | S_IRGRP |S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:237:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_source = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:688:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd1 = open( file1,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:695:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd2 = open( file2,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/test.c:97: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). int f = open( keyfile,O_WRONLY|O_TRUNC|O_CREAT,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/test.c:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ 1024 ] = { '\0' } ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/test.c:132:6: [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). f = open( path,opt,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:453:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dev[ PATH_MAX + 1 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/volumes.c:822:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/write_device_with_junk.c:274:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/write_device_with_junk.c:319:6: [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). k = open( StringContent( *mapper ),O_WRONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/bitlocker.c:99:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open( e,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/bitlocker.c:352:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * env[ 2 ] = { NULL,NULL } ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/blkid_evaluate_tag.c:212:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ 16 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/blkid_evaluate_tag.c:241:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( device,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:115:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( device,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:154:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( device,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:305:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:331: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). fd_loop = open( "/dev/loop-control",O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:359: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). *fd_loop = open( StringContent( loop_device ),mode ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:405: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). fd_path = open( path,mode ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c:42:6: [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). f = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c:65:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( file,O_WRONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c:134: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). *fd_path = open( file,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c:148: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). lfd = open( file,O_RDWR ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/file_path_security.c:239:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). *fd_path = open( file,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_tcrypt.c:152:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( file,O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR | S_IRGRP |S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/open_volume.c:211:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &opts_1,opts,sizeof( open_struct_t ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ 1024 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:262:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:600:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[ 128 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:601:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_0[ 128 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:645:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[ 128 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:646:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_0[ 128 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:687:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/pluginManager/zuluCryptPluginManager.c:177:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * args[ 7 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:120:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( p->exe,path,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:444:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[ SIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:476:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + size,buff,count ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.h:257:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * argv[ 3 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.h:293:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * argv[ 3 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:228:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,info->ai_addr,info->ai_addrlen ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:261:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,info->ai_addr,info->ai_addrlen ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:351:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ sizeof( f->sun_path ) + 1 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:721:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFSIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:760:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( f + total,buffer,(size_t)result ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:791:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFSIZE ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:831:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( f + total,buffer,(size_t)result ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:253:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,st->string,st->size + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:281:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,st->string,st->size + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:341:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string,cstring,size + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:354:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string,cstring,size + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:387:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer,st->string,size ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:463:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:551:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d[ 2 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:743:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,str,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:765:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,st->string,l ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:949:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string + x,s,k ); data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:955:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[ 2 ] = { '\0' } ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:976:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c + x,s,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:998:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1005:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1034:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string,s,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1047:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[ 2 ] = { '\0' } ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1070:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string + st->size,s,len + 1 ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1234:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( st->string + x,s,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1281:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,j ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1292:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,j ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1301:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,s,j ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1406:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFSIZE ] = { '\0' }; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1412:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFSIZE ] = { '\0' }; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1440:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFSIZE ] = { '\0' }; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1647:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[2] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1789:6: [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). f = open( "/dev/urandom",O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1883:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( ( fd = open( path,O_RDONLY ) ) == -1 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1939:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( ( fd = open( path,O_RDONLY ) ) == -1 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2022:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_WRONLY | O_CREAT | O_TRUNC,S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2024:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_WRONLY | O_CREAT | O_APPEND,S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2063:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:382:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,cstring,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:433:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[ 2 ] ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:465:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,b,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:704:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,cstring,len ); data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:740:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( c,cstring,len ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.cpp:237:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( !file.open( QIODevice::WriteOnly ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.cpp:267:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( !file.open( QIODevice::WriteOnly ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.cpp:332: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( !rd->open() ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createfile.cpp:339:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( !file.open( QIODevice::WriteOnly ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createkeyfile.cpp:189: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( !source.open( _getRNGSource() ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createkeyfile.cpp:195: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( !sink.open( path,false ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.cpp:78: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). openStatus open() data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.cpp:80:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( m_randomData->open() ){ data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.cpp:82:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_file.open( QIODevice::WriteOnly | QIODevice::Append ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/createvolumeinexistingfile.cpp:284: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). auto status = volume.open() ; data/zulucrypt-5.7.1/zuluCrypt-gui/cryptfiles.cpp:304:6: [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). f.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/cryptoinfo.cpp:87: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). f.open( QIODevice::WriteOnly | QIODevice::Truncate ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:329:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( randSource.open() ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:844: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). w.opened = wallet.open( "default",utility::applicationName() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:846: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). w.opened = wallet.open( utility::walletName(),utility::applicationName() ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:867: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). w.opened = wallet.open( walletName,appName ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:889: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( h.open( e ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:902: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). return open( e.toLatin1().constData(),O_RDWR ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:1050:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( h.open( path ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:1062:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( h.open( path ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:1176: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( randomSource.open() ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2407:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( !f.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2823: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). bool utility::UrandomDataSource::open() data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2825: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). m_file.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2844:32: [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 utility::CRandDataSource::open() data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2890: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/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:190: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). virtual bool open() = 0 ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:199:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open() override ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:210:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open() override ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:646:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open( const char * filePath,bool ro = true ) data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:650: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). m_fd = ::open( filePath,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:652: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). m_fd = ::open( filePath,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:659:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open( const QString& filePath,bool ro = true ) data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:661: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). return this->open( filePath.toLatin1().constData(),ro ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:752:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_handle.open( "/proc/self/mountinfo" ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/walletconfig.cpp:201:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_wallet->open( [ & ]()->QString{ data/zulucrypt-5.7.1/zuluMount-cli/crypto_mount.c:91:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( opts.tcrypt_multiple_keyfiles,args->tcrypt_multiple_keyfiles, data/zulucrypt-5.7.1/zuluMount-cli/includes.h:39:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char * tcrypt_multiple_keyfiles[ TRUECRYPT_MAX_KEYFILES + 1 ] ; data/zulucrypt-5.7.1/zuluMount-cli/volume_status.c:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[ SIZE ] ; data/zulucrypt-5.7.1/zuluMount-gui/events.cpp:150:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFF_SIZE ] ; data/zulucrypt-5.7.1/zuluMount-gui/keydialog.cpp:647:6: [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). f.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/zuluMount-gui/zulumount.cpp:982:4: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f.open( QIODevice::ReadOnly ) ; data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.cpp:268:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( file.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/zuluMount-gui/zulumounttask.cpp:473:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( f.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:100: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( e.open( QIODevice::ReadOnly ) ){ data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:107: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( e.open( QIODevice::WriteOnly | QIODevice::Truncate ) ){ data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:136: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). f.open( QIODevice::WriteOnly ) ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:162:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char password[ PASSWORD_SIZE + 1 ] ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:163:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char password_1[ PASSWORD_SIZE + 1 ] ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wallet_name[ WALLET_NAME_SIZE + 1 ] ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:262:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( filePath,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:312: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). fd = open( filePath,O_WRONLY|O_CREAT,0644 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:343:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path_1[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:147:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ],char output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:147:63: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ],char output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:151:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_iv_from_wallet_header( char iv[ IV_SIZE ],int fd ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:153:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_salt_from_wallet_header( char salt[ SALT_SIZE ],int fd ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:155:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_volume_info( char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ],int fd ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:159: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. static void _create_magic_string_header( char magic_string[ MAGIC_STRING_BUFFER_SIZE ] ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:199:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( first,str,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:200:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( second,str + sizeof( u_int32_t ),sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:279:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:280:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:281:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:282:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:283:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:308:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:342:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:343:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:344:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char salt[ SALT_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:345:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:346:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_buffer[ FILE_BLOCK_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:369: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). fd_dest = open( destination,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:373: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). fd_src = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:392:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE,&size,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:435:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:445:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( wallet->key,key,PASSWORD_SIZE ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:474:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:525:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] = { '\0' } ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:526:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_buffer[ FILE_BLOCK_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:555:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd_src = open( source,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:568: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). fd_dest = open( destination,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:625:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:635:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path,O_RDONLY ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:656:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( w->wallet_name,wallet_name,len + 1 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:666:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( w->application_name,application_name,len + 1 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:693:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:758:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:891:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,&key_size,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:892:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + sizeof( u_int32_t ),&key_value_length,sizeof( u_int32_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:893:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + NODE_HEADER_SIZE,key,key_size ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:894:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e + NODE_HEADER_SIZE + key_size,value,key_value_length ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1028:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1058:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iv[ IV_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1059:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1060:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path_1[ PATH_MAX + 16 ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1061:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1104:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE,&wallet->wallet_data_size,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1105:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer + MAGIC_STRING_BUFFER_SIZE + sizeof( u_int64_t ),&wallet->wallet_data_entry_count,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1119:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( path_1,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1143: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( path_1,O_WRONLY|O_CREAT,0600 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1164:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1197:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( e,entry->d_name,len ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1216:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1233:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path_1[ PATH_MAX - 16 ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1241:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[ PATH_MAX ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1269:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( output_key,digest,output_key_size ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1281:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static gcry_error_t _create_key( const char salt[ SALT_SIZE ], data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1282:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 output_key[ PASSWORD_SIZE ],const char * input_key,u_int32_t input_key_length ) data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1284:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_key[ PASSWORD_SIZE ] ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1295:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_iv_from_wallet_header( char iv[ IV_SIZE ],int fd ) data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1301:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_salt_from_wallet_header( char salt[ SALT_SIZE ],int fd ) data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1307:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void _get_volume_info( char buffer[ MAGIC_STRING_BUFFER_SIZE + BLOCK_SIZE ],int fd ) data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1316:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &w->wallet_data_size,buffer,sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1317:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &w->wallet_data_entry_count,buffer + sizeof( u_int64_t ),sizeof( u_int64_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1323:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( "/dev/urandom",O_RDONLY ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1337: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. static void _create_magic_string_header( char magic_string[ MAGIC_STRING_BUFFER_SIZE ] ) data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1343:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( magic_string,MAGIC_STRING,MAGIC_STRING_SIZE ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1347:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( magic_string + MAGIC_STRING_SIZE,&version,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1353:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &version,buffer + MAGIC_STRING_SIZE,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1363:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &version,buffer + MAGIC_STRING_SIZE,sizeof( u_int16_t ) ) ; data/zulucrypt-5.7.1/external_libraries/json/nlohmann/json.hpp:11359:89: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_lexer(reinterpret_cast<const typename lexer::lexer_char_t*>(buff), std::strlen(buff)) data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:140:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( read( x,y,z ) ){;} data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:406:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). k = read( fd_src,file_buffer,FILE_BLOCK_SIZE ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:649:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( wallet_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:659:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1203: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). len = strlen( entry->d_name ) - strlen( WALLET_EXTENSION ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.c:1203:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( entry->d_name ) - strlen( WALLET_EXTENSION ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:273:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_create( f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:285:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:297:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_add_key( wallet,f,strlen( f ) + 1,z,strlen( z ) + 1 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:297:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_add_key( wallet,f,strlen( f ) + 1,z,strlen( z ) + 1 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:311:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:322:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( lxqt_wallet_read_key_value( wallet,f,strlen( f ) + 1,&value ) ){ data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:340:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:369:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:374:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_delete_key( wallet,f,strlen( f ) + 1 ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:393:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:398:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_change_wallet_password( wallet,f,strlen( f ) ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:417:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:422: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). if( lxqt_wallet_wallet_has_value( wallet,f,strlen( f ) + 1,&value ) ){ data/zulucrypt-5.7.1/external_libraries/lxqt_wallet/backend/lxqtwallet.h:445:78: [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). printf( "%d\n",lxqt_wallet_volume_version( wallet_name,application_name,f,strlen( f ) ) ) ; data/zulucrypt-5.7.1/external_libraries/zuluplay/crypto.c:216:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pl = strlen((char *)pass); data/zulucrypt-5.7.1/external_libraries/zuluplay/humanize.c:86:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(buf); data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:73:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((r = read(fd, mem, *sz)) <= 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:138:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((r = read(fd, buf+rd, sz)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:213:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((r = read(fd_rand, buf, sz)) < 0) { data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:444:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd, pass, bufsz-1); data/zulucrypt-5.7.1/external_libraries/zuluplay/io.c:452:6: [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(pass) > MAX_PASSSZ) data/zulucrypt-5.7.1/external_libraries/zuluplay/safe_mem.c:154:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sz = strlen(in)+1; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:412:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &c, 1)<1){ data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:496:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->dev, dev, sizeof(info->dev)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:765:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pass, opts->passphrase, MAX_PASSSZ); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:813:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(h_pass, opts->h_passphrase, MAX_PASSSZ); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:863:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf[strlen(buf)-1] = '\0'; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:945:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (opts->nkeyfiles > 0)?MAX_PASSSZ:strlen(pass), data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:955:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (opts->n_hkeyfiles > 0)?MAX_PASSSZ:strlen(h_pass), opts->h_prf_algo, data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1088:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pass, opts->passphrase, MAX_PASSSZ); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1123:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(h_pass, opts->h_passphrase, MAX_PASSSZ); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1186: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). (opts->nkeyfiles > 0)?MAX_PASSSZ:strlen(pass), data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1197:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (opts->nkeyfiles > 0)?MAX_PASSSZ:strlen(pass), hehdr, 1, data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1202:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (opts->n_hkeyfiles > 0)?MAX_PASSSZ:strlen(h_pass), hehdr, 1, data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1425:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pass, new_passphrase, MAX_PASSSZ); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1440:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (opts->n_newkeyfiles > 0)?MAX_PASSSZ:strlen(pass), data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1583: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). (((strncmp(ent->d_name, "dm-", 3) == 0) && strlen(ent->d_name) <= 5))) data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1743:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(map, map_name, PATH_MAX); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1781:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ciphers, ","); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1783: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). ciphers[strlen(ciphers)-1] = '\0'; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:1792:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->dev, dm_table[outermost]->device, sizeof(info->dev)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay.c:2212:27: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if ((k == nciphers) && !mismatch) { data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:224:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp( a, b, strlen(b)) == 0; data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:230: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). return _string_ends_with( a, strlen(a), c,strlen(c)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:230:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( a, strlen(a), c,strlen(c)); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:942:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, info->dev, sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:947:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, buf, sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:952:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, info->pbkdf_prf->name, sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:954:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(s, "(unknown)", sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:999:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, info->type, sz); data/zulucrypt-5.7.1/external_libraries/zuluplay/tcplay_api.c:1002:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, info->status, sz); data/zulucrypt-5.7.1/plugins/keyring/keyring.c:118:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zuluCryptPluginManagerSendKey( handle,e,strlen( e ) ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.c:205:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t z = read( ctx->fd,buffer,buffer_size ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.h:148:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t data_size = strlen( data ) ; data/zulucrypt-5.7.1/plugins/network_key/crypt_buffer.h:154:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t key_size = strlen( key ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:55:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t encryption_key_key_length = strlen( encryption_key ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:70: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). key.key_0_length = strlen( e->path ) + 1 ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:80: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). key.key_1_length = strlen( e->uuid ) + 1 ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:90:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.wallet_key_length = strlen( wallet_key ) ; data/zulucrypt-5.7.1/plugins/network_key/main.cpp:100:6: [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). n = strlen( wallet_name ) ; data/zulucrypt-5.7.1/plugins/network_key/server.c:192:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encryption_key_length = strlen( e ) ; data/zulucrypt-5.7.1/plugins/plugins.h:81:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto e = f.read( buffer,size ) ; data/zulucrypt-5.7.1/plugins/test/zuluCrypt-testKey.c:46:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zuluCryptPluginManagerSendKey( handle,key,strlen( key ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:44:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( read( x,y,z ) ){;} data/zulucrypt-5.7.1/zuluCrypt-cli/bin/file_encryption.c:308:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( read( f_in,buffer,SIZE ) > 0 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/bin/main.c:138:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( zuluCryptGetVolumeType( device,key,strlen( key ) ) == 2 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/bin/main.c:531:20: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. #define hide( z ) strncpy( ( char * )z,"x",StringLength( q ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:177:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read( fd_source,buffer,SIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/save_and_restore_volume_header.c:243:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read( fd_source,buffer,SIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/bin/test.c:108:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). e = write( f,key,strlen( key ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/blkid_evaluate_tag.c:245:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( read( fd,buffer,11 ) ){} data/zulucrypt-5.7.1/zuluCrypt-cli/lib/create_loop_device.c:381:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( ( char * )l_info.lo_file_name,path,size ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:342:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp( a,b,strlen( b ) ) == 0 ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:358:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( a,strlen( a ),c,strlen( c ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/lib/status.c:358:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( a,strlen( a ),c,strlen( c ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:98: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). len = strlen( path ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:469:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read( fd,buff,SIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:514:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case ProcessStdOut : return read( p->fd_1[ 1 ],buffer,size ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/process/process.c:515:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case ProcessStdError : return read( p->fd_2[ 1 ],buffer,size ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:200:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( e->sun_path,address,l ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:363:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( buffer,f->sun_path,m ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:411:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( z->sun_path,e->sun_path,m ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:675:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). e = read( s->fd,buffer,len ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:738:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read( fd,buffer,BUFFSIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/socket/socket.c:807:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read( fd,buffer,BUFFSIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:327: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). size = strlen( cstring ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:396:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen( *data ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:527:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:738: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). len = strlen( str ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:786:51: [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 _string_ends_with( st->string,st->size,s,strlen( s ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:795:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( e,strlen( e ),s,strlen( s ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:795:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( e,strlen( e ),s,strlen( s ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:813:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( strncmp( a,b,strlen( b ) ) == 0 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:814: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). return _string_ends_with( a,strlen( a ),c,strlen( c ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:814:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _string_ends_with( a,strlen( a ),c,strlen( c ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:826: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). return strncmp( st->string,s,strlen( s ) ) == 0 ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:913:6: [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). k = strlen( y ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:945:6: [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). k = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:972:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:995: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). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1027:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1064:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1092:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( strncmp( st->string,entry,strlen( entry ) ) == 0 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1227:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1248:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( c,st->string + x, y ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1276:6: [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). j = strlen( s ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1277:6: [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). k = strlen( x ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1591:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). }else if( strncmp( x,e,strlen( e ) ) == 0 ){ data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1660:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1688:9: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1697:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1797:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ignore_result( read( f,&c,1 ) ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1823:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen( key ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1899:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read( fd,c,length ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:1971:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read( fd,c,reserve_memory_size ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.c:2080:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). j = read( fd,buffer + size_1,SIZE ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.h:851:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen( str ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.h:910:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp( x,y,strlen( y ) ) == 0 ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/String.h:919:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp( x,y,strlen( y ) ) != 0 ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:881:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( str ) ; data/zulucrypt-5.7.1/zuluCrypt-cli/utility/string/StringList.c:1001:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( str ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/systemsignalhandler.cpp:95:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read( sighupFd[ 1 ],&tmp,sizeof( tmp ) ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/systemsignalhandler.cpp:114:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read( sighupFd[ 1 ],&tmp,sizeof( tmp ) ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:222:49: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). return utility::Task( exe,s,env,_cookie,[](){ umask( 0 ) ; },e ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2526:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). e = std::getchar() ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2832:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return m_file.read( data,size ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.cpp:2837:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return m_file.read( size ) ; data/zulucrypt-5.7.1/zuluCrypt-gui/utility.h:701:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( ::read( m_fd,&z,1 ) != 1 ){;} data/zulucrypt-5.7.1/zuluMount-cli/main.c:707:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. #define _hide( z ) strncpy( ( char * )z,"x",StringLength( *k ) ) data/zulucrypt-5.7.1/zuluMount-gui/events.cpp:48:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _startsWith( x,y ) strncmp( x,y,strlen( y ) ) == 0 data/zulucrypt-5.7.1/zuluMount-gui/events.cpp:174:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). auto s = read( fd,buffer,BUFF_SIZE ) ; data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:132:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). for( decltype( umask( 0 ) ) i = 0 ; i < 1000 ; i++ ){ data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:134:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask( i ) ; data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:160:12: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). auto s = umask( 0 ) ; data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:166:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask( s ) ; data/zulucrypt-5.7.1/zuluPolkit/zulupolkit.cpp:264:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). e = std::getchar() ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:44:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _file( x ) x,strlen( x ) + 1 data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:55:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( read( x,y,z ) ){;} data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:84:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:98:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluSafe/zuluSafe.c:172:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar() ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:140:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( read( x,y,z ) ){} data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:406:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). k = (int)read( fd_src,file_buffer,FILE_BLOCK_SIZE ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:649:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( wallet_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:659:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1191:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (u_int32_t)strlen( entry->d_name ) - strlen( WALLET_EXTENSION ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.c:1191:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (u_int32_t)strlen( entry->d_name ) - strlen( WALLET_EXTENSION ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:273:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_create( f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:285:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:297:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_add_key( wallet,f,strlen( f ) + 1,z,strlen( z ) + 1 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:297:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_add_key( wallet,f,strlen( f ) + 1,z,strlen( z ) + 1 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:311:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:322:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( lxqt_wallet_read_key_value( wallet,f,strlen( f ) + 1,&value ) ){ data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:340:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:369:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:374:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_delete_key( wallet,f,strlen( f ) + 1 ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:393:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:398:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_change_wallet_password( wallet,f,strlen( f ) ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:417:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = lxqt_wallet_open( &wallet,f,strlen( f ),wallet_name,application_name ) ; data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:422: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). if( lxqt_wallet_wallet_has_value( wallet,f,strlen( f ) + 1,&value ) ){ data/zulucrypt-5.7.1/zuluSafe/zuluwallet.h:445:78: [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). printf( "%d\n",lxqt_wallet_volume_version( wallet_name,application_name,f,strlen( f ) ) ) ; ANALYSIS SUMMARY: Hits = 663 Lines analyzed = 83520 in approximately 1.97 seconds (42463 lines/second) Physical Source Lines of Code (SLOC) = 51970 Hits@level = [0] 443 [1] 168 [2] 439 [3] 9 [4] 27 [5] 20 Hits@level+ = [0+] 1106 [1+] 663 [2+] 495 [3+] 56 [4+] 47 [5+] 20 Hits/KSLOC@level+ = [0+] 21.2815 [1+] 12.7574 [2+] 9.52473 [3+] 1.07754 [4+] 0.904368 [5+] 0.384837 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.