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/bambootracker-0.4.5/BambooTracker/bamboo_tracker.cpp Examining data/bambootracker-0.4.5/BambooTracker/bamboo_tracker.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/c86ctl/c86ctl.h Examining data/bambootracker-0.4.5/BambooTracker/chips/c86ctl/c86ctl_wrapper.cpp Examining data/bambootracker-0.4.5/BambooTracker/chips/c86ctl/c86ctl_wrapper.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/chip.cpp Examining data/bambootracker-0.4.5/BambooTracker/chips/chip.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/chip_def.h Examining data/bambootracker-0.4.5/BambooTracker/chips/chip_misc.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/codec/ymb_codec.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/export_container.cpp Examining data/bambootracker-0.4.5/BambooTracker/chips/export_container.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/2608intf.c Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/2608intf.h Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/emu2149.c Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/emu2149.h Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/emutypes.h Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.h Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/mamedef.h Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/ymdeltat.c Examining data/bambootracker-0.4.5/BambooTracker/chips/mame/ymdeltat.h Examining data/bambootracker-0.4.5/BambooTracker/chips/nuked/nuke2608intf.c Examining data/bambootracker-0.4.5/BambooTracker/chips/nuked/nuke2608intf.h Examining data/bambootracker-0.4.5/BambooTracker/chips/nuked/ym3438.c Examining data/bambootracker-0.4.5/BambooTracker/chips/nuked/ym3438.h Examining data/bambootracker-0.4.5/BambooTracker/chips/opna.cpp Examining data/bambootracker-0.4.5/BambooTracker/chips/opna.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/resampler.cpp Examining data/bambootracker-0.4.5/BambooTracker/chips/resampler.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/scci/SCCIDefines.hpp Examining data/bambootracker-0.4.5/BambooTracker/chips/scci/scci.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/abstract_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/command_id.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/command_manager.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/command_manager.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/commands.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/add_instrument_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/add_instrument_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/change_instrument_name_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/change_instrument_name_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/clone_instrument_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/clone_instrument_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/deep_clone_instrument_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/deep_clone_instrument_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/remove_instrument_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/remove_instrument_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/swap_instruments_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/instrument/swap_instruments_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/clone_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/clone_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/clone_patterns_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/clone_patterns_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/delete_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/delete_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/duplicate_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/duplicate_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/insert_order_below_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/insert_order_below_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/move_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/move_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/paste_copied_data_to_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/paste_copied_data_to_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/set_pattern_to_order_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/order/set_pattern_to_order_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/change_values_in_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/change_values_in_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/delete_previous_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/delete_previous_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_cells_in_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_cells_in_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_effect_in_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_effect_in_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_effect_value_in_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_effect_value_in_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_instrument_in_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_instrument_in_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_volume_in_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/erase_volume_in_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/expand_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/expand_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/insert_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/insert_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/interpolate_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/interpolate_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_copied_data_to_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_copied_data_to_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_insert_copied_data_to_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_insert_copied_data_to_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_mix_copied_data_to_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_mix_copied_data_to_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_overwrite_copied_data_to_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/paste_overwrite_copied_data_to_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/pattern_command_utils.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/pattern_command_utils.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/replace_instrument_in_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/replace_instrument_in_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/reverse_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/reverse_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_echo_buffer_access_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_echo_buffer_access_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_effect_id_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_effect_id_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_effect_value_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_effect_value_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_instrument_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_instrument_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_key_off_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_key_off_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_key_on_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_key_on_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_volume_to_step_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/set_volume_to_step_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/shrink_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/shrink_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/transpose_note_in_pattern_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/command/pattern/transpose_note_in_pattern_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/configuration.cpp Examining data/bambootracker-0.4.5/BambooTracker/configuration.hpp Examining data/bambootracker-0.4.5/BambooTracker/enum_hash.hpp Examining data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c Examining data/bambootracker-0.4.5/BambooTracker/format/wopn_file.h Examining data/bambootracker-0.4.5/BambooTracker/gui/bookmark_manager_form.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/bookmark_manager_form.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/color_palette.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/color_palette.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/color_palette_handler.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/color_palette_handler.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/commands_qt.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/add_instrument_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/add_instrument_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/change_instrument_name_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/change_instrument_name_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/clone_instrument_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/clone_instrument_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/deep_clone_instrument_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/deep_clone_instrument_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/remove_instrument_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/remove_instrument_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/swap_instruments_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/instrument/swap_instruments_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/clone_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/clone_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/clone_patterns_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/clone_patterns_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/delete_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/delete_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/duplicate_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/duplicate_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/insert_order_below_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/insert_order_below_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/move_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/move_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/order_commands.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/paste_copied_data_to_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/paste_copied_data_to_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/set_pattern_to_order_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/order/set_pattern_to_order_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/change_values_in_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/change_values_in_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/delete_previous_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/delete_previous_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_cells_in_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_cells_in_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_effect_in_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_effect_in_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_effect_value_in_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_effect_value_in_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_instrument_in_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_instrument_in_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_volume_in_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/erase_volume_in_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/expand_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/expand_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/insert_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/insert_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/interpolate_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/interpolate_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_copied_data_to_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_copied_data_to_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_insert_copied_data_to_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_insert_copied_data_to_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_mix_copied_data_to_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_mix_copied_data_to_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_overwrite_copied_data_to_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/paste_overwrite_copied_data_to_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/pattern_commands_qt.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/replace_instrument_in_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/replace_instrument_in_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/reverse_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/reverse_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_echo_buffer_access_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_echo_buffer_access_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_effect_id_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_effect_id_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_effect_value_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_effect_value_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_instrument_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_instrument_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_key_off_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_key_off_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_key_on_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_key_on_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_volume_to_step_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/set_volume_to_step_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/shrink_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/shrink_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/transpose_note_in_pattern_qt_command.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/command/pattern/transpose_note_in_pattern_qt_command.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/comment_edit_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/comment_edit_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/configuration_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/configuration_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/configuration_handler.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/configuration_handler.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/drop_detect_list_widget.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/drop_detect_list_widget.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/effect_description.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/effect_description.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/effect_list_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/effect_list_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/event_guard.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/event_guard.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_history.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_history.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_history_handler.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_history_handler.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_io_error_message_box.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/file_io_error_message_box.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/fm_envelope_set_edit_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/fm_envelope_set_edit_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/go_to_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/go_to_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/groove_settings_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/groove_settings_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/gui_util.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/hide_tracks_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/hide_tracks_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/adpcm_sample_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/adpcm_sample_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/arpeggio_macro_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/arpeggio_macro_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/fm_operator_table.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/fm_operator_table.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/grid_settings_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/grid_settings_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_adpcm_form.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_adpcm_form.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_drumkit_form.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_drumkit_form.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_fm_form.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_fm_form.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_ssg_form.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_ssg_form.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_editor_util.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_form_manager.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/instrument_form_manager.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/sample_length_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/sample_length_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/tone_noise_macro_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/tone_noise_macro_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/visualized_instrument_macro_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/visualized_instrument_macro_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_list_misc.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_selection_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/instrument_selection_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/jam_layout.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/keyboard_shortcut_list_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/keyboard_shortcut_list_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/labeled_horizontal_slider.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/labeled_horizontal_slider.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/labeled_vertical_slider.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/labeled_vertical_slider.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/module_properties_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/module_properties_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/order_list_editor/order_list_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/order_list_editor/order_list_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/order_list_editor/order_list_panel.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/order_list_editor/order_list_panel.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/order_list_editor/order_position.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/pattern_editor/pattern_editor.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/pattern_editor/pattern_editor.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/pattern_editor/pattern_editor_panel.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/pattern_editor/pattern_editor_panel.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/pattern_editor/pattern_position.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/q_application_wrapper.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/q_application_wrapper.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/s98_export_settings_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/s98_export_settings_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/slider_style.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/slider_style.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/swap_tracks_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/swap_tracks_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/track_visibility_memory_handler.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/track_visibility_memory_handler.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/transpose_song_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/transpose_song_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/vgm_export_settings_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/vgm_export_settings_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/wave_export_settings_dialog.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/wave_export_settings_dialog.hpp Examining data/bambootracker-0.4.5/BambooTracker/gui/wave_visual.cpp Examining data/bambootracker-0.4.5/BambooTracker/gui/wave_visual.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/abstract_instrument_property.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/abstract_instrument_property.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/bank.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/bank.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/command_sequence.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/command_sequence.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/effect_iterator.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/effect_iterator.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/envelope_fm.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/envelope_fm.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/instrument.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/instrument.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/instruments_manager.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/instruments_manager.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/lfo_fm.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/lfo_fm.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/sequence_iterator_interface.hpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/waveform_adpcm.cpp Examining data/bambootracker-0.4.5/BambooTracker/instrument/waveform_adpcm.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/bank_io.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/bank_io.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/binary_container.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/export_handler.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/export_handler.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/file_io.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/file_io.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/file_io_error.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/gd3_tag.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/instrument_io.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/instrument_io.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/io_handlers.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/module_io.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/module_io.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/s98_tag.hpp Examining data/bambootracker-0.4.5/BambooTracker/io/wav_container.cpp Examining data/bambootracker-0.4.5/BambooTracker/io/wav_container.hpp Examining data/bambootracker-0.4.5/BambooTracker/jam_manager.cpp Examining data/bambootracker-0.4.5/BambooTracker/jam_manager.hpp Examining data/bambootracker-0.4.5/BambooTracker/main.cpp Examining data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp Examining data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.hpp Examining data/bambootracker-0.4.5/BambooTracker/midi/midi.cpp Examining data/bambootracker-0.4.5/BambooTracker/midi/midi.hpp Examining data/bambootracker-0.4.5/BambooTracker/midi/midi_def.h Examining data/bambootracker-0.4.5/BambooTracker/misc.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/effect.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/effect.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/groove.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/groove.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/module.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/module.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/pattern.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/pattern.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/song.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/song.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/step.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/step.hpp Examining data/bambootracker-0.4.5/BambooTracker/module/track.cpp Examining data/bambootracker-0.4.5/BambooTracker/module/track.hpp Examining data/bambootracker-0.4.5/BambooTracker/opna_controller.cpp Examining data/bambootracker-0.4.5/BambooTracker/opna_controller.hpp Examining data/bambootracker-0.4.5/BambooTracker/pitch_converter.cpp Examining data/bambootracker-0.4.5/BambooTracker/pitch_converter.hpp Examining data/bambootracker-0.4.5/BambooTracker/playback.cpp Examining data/bambootracker-0.4.5/BambooTracker/playback.hpp Examining data/bambootracker-0.4.5/BambooTracker/song_length_calculator.cpp Examining data/bambootracker-0.4.5/BambooTracker/song_length_calculator.hpp Examining data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp Examining data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.hpp Examining data/bambootracker-0.4.5/BambooTracker/stream/audio_stream.cpp Examining data/bambootracker-0.4.5/BambooTracker/stream/audio_stream.hpp Examining data/bambootracker-0.4.5/BambooTracker/stream/audio_stream_rtaudio.cpp Examining data/bambootracker-0.4.5/BambooTracker/stream/audio_stream_rtaudio.hpp Examining data/bambootracker-0.4.5/BambooTracker/stream/timer.cpp Examining data/bambootracker-0.4.5/BambooTracker/stream/timer.hpp Examining data/bambootracker-0.4.5/BambooTracker/tick_counter.cpp Examining data/bambootracker-0.4.5/BambooTracker/tick_counter.hpp Examining data/bambootracker-0.4.5/BambooTracker/version.hpp FINAL RESULTS: data/bambootracker-0.4.5/BambooTracker/chips/mame/mamedef.h:69:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define logerror printf data/bambootracker-0.4.5/BambooTracker/io/export_handler.cpp:276:42: [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. container.appendString("system=" + tag.system); data/bambootracker-0.4.5/BambooTracker/io/instrument_io.cpp:2598:7: [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 != 2 && system != 3 && system != 8) { // genesis, sms and arcade only data/bambootracker-0.4.5/BambooTracker/io/instrument_io.cpp:2598: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. if (system != 2 && system != 3 && system != 8) { // genesis, sms and arcade only data/bambootracker-0.4.5/BambooTracker/io/instrument_io.cpp:2598:37: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system != 2 && system != 3 && system != 8) { // genesis, sms and arcade only data/bambootracker-0.4.5/BambooTracker/io/s98_tag.hpp:40: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. std::string system; data/bambootracker-0.4.5/BambooTracker/main.cpp:82:32: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. const QString lang = QLocale::system().name(); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7479:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( name, "hw:%s,%d", cardname, subdevice ); data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:2473:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection( &(apiData->_mutex) ); data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:2627:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection( &(data->_mutex) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:60:31: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define MUTEX_INITIALIZE(A) InitializeCriticalSection(A) data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:62:31: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define MUTEX_LOCK(A) EnterCriticalSection(A) data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:4972:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" ); data/bambootracker-0.4.5/BambooTracker/chips/c86ctl/c86ctl.h:43: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 Devname[16]; data/bambootracker-0.4.5/BambooTracker/chips/c86ctl/c86ctl.h: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 Serial[15]; data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:1666:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sample[0]=fopen("sampsum.pcm","wb"); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:2762:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char YM2608_ADPCM_ROM[0x2000] = { data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:3928: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(F2608->deltaT.memory + DataStart, ROMData, DataLength); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:4677: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(F2610->pcmbuf + DataStart, ROMData, DataLength); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:4692: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(F2610->deltaT.memory + DataStart, ROMData, DataLength); data/bambootracker-0.4.5/BambooTracker/chips/nuked/ym3438.c:287:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const unsigned char YM2608_ADPCM_ROM[0x2000]; data/bambootracker-0.4.5/BambooTracker/chips/scci/scci.hpp:19: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 cInterfaceName[64]; // Interface Name data/bambootracker-0.4.5/BambooTracker/chips/scci/scci.hpp:25: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 cSoundChipName[64]; // Sound Chip Name data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:188: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(cursor, ins->inst_name, nameLen); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:291: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(head, cursor, 5); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:512: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(cursor, wopn2_magic2, 11); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:514: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(cursor, wopn2_magic1, 11); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:606:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cursor, opni_magic2, 11); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:608:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cursor, opni_magic1, 11); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inst_name[34]; data/bambootracker-0.4.5/BambooTracker/format/wopn_file.h:135:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bank_name[33]; data/bambootracker-0.4.5/BambooTracker/gui/instrument_editor/adpcm_sample_editor.cpp:322:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::ReadOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:1711:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::ReadOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:1755:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:1808:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::ReadOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:1959:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:2100:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::ReadOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:3073: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 (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:3120:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:3303: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 (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:3363: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 (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/gui/mainwindow.cpp:3423: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 (!fp.open(QIODevice::WriteOnly)) { data/bambootracker-0.4.5/BambooTracker/instrument/bank.cpp:128: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 identifier[64]; data/bambootracker-0.4.5/BambooTracker/instrument/bank.cpp:129:2: [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(identifier, "%c%03d:%03d:%03d", "MP"[ent.vals.percussive], data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:1186:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:1261:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:2368:17: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int wlength = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 ); data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:2373:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar( CP_ACP, 0, str, -1, &wstrtemp[0], wlength ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:1743: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( outBufferList->mBuffers[handle->iStream[0]].mData, data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:1758:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( outBufferList->mBuffers[handle->iStream[0]+i].mData, data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:1836: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( stream_.userBuffer[1], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:1848:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (void *)&outBuffer[i*stream_.bufferSize], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2054:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. port = (char *) ports[ nChannels ]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2093:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. port = (char *) ports[ nPorts ]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2249:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. port = (char *) ports[ nPorts ]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2417: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 label[64]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2714: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( jackbuffer, &stream_.deviceBuffer[i*bufferBytes], bufferBytes ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2720: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( jackbuffer, &stream_.userBuffer[0][i*bufferBytes], bufferBytes ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2736: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( &stream_.deviceBuffer[i*bufferBytes], jackbuffer, bufferBytes ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2743: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( &stream_.userBuffer[1][i*bufferBytes], jackbuffer, bufferBytes ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2860: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 driverName[32]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:2980: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 driverName[32]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3569:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( handle->bufferInfos[i].buffers[bufferIndex], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3583:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( handle->bufferInfos[i].buffers[bufferIndex], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3605:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &stream_.deviceBuffer[j++*bufferBytes], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3620:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &stream_.userBuffer[1][bufferBytes*j++], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3871: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( &( ( char* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( char ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3872:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( char* ) buffer )[fromInSize], fromZeroSize * sizeof( char ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3875: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( &( ( short* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( short ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3876:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( short* ) buffer )[fromInSize], fromZeroSize * sizeof( short ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3879: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( &( ( S24* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( S24 ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3880:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( S24* ) buffer )[fromInSize], fromZeroSize * sizeof( S24 ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3883: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( &( ( int* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( int ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3884:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( int* ) buffer )[fromInSize], fromZeroSize * sizeof( int ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3887: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( &( ( float* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( float ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3888:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( float* ) buffer )[fromInSize], fromZeroSize * sizeof( float ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3891: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( &( ( double* ) buffer_ )[inIndex_], buffer, fromInSize * sizeof( double ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3892:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer_, &( ( double* ) buffer )[fromInSize], fromZeroSize * sizeof( double ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3933:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( char* ) buffer_ )[outIndex_], fromOutSize * sizeof( char ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3934: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( &( ( char* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( char ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3937:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( short* ) buffer_ )[outIndex_], fromOutSize * sizeof( short ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3938: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( &( ( short* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( short ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3941:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( S24* ) buffer_ )[outIndex_], fromOutSize * sizeof( S24 ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3942: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( &( ( S24* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( S24 ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3945:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( int* ) buffer_ )[outIndex_], fromOutSize * sizeof( int ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3946: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( &( ( int* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( int ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3949:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( float* ) buffer_ )[outIndex_], fromOutSize * sizeof( float ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3950: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( &( ( float* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( float ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3953:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, &( ( double* ) buffer_ )[outIndex_], fromOutSize * sizeof( double ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:3954: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( &( ( double* ) buffer )[fromOutSize], buffer_, fromZeroSize * sizeof( double ) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:4071:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( outBuffer, inBuffer, inputBufferSize ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:4087: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( rInByteBuffer, inBuffer, inputBufferSize ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:4139: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( outBuffer, rOutByteBuffer, rBytes ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:5231:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( stream_.userBuffer[INPUT], data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:5317:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( stream_.deviceBuffer, data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:6805:5: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. CopyMemory( buffer1, buffer, bufferSize1 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:6806:28: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if ( buffer2 != NULL ) CopyMemory( buffer2, buffer+bufferSize1, bufferSize2 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:6934:7: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. CopyMemory( buffer, buffer1, bufferSize1 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:6935:30: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if ( buffer2 != NULL ) CopyMemory( buffer+bufferSize1, buffer2, bufferSize2 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7157:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7164: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( name, "hw:%d", card ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7208:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7216: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( name, "hw:%d", card ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7236:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( name, "hw:%d,%d", card, subdevice ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7250:7: [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( name, "default" ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7515:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7525:7: [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( name, "hw:%d", card ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7538:11: [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( name, "hw:%d,%d", card, subdevice ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:7551:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( name, "default" ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:9007: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). int mixerfd = open( "/dev/mixer", O_RDWR, 0 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:9031: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). int mixerfd = open( "/dev/mixer", O_RDWR, 0 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:9151: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). int mixerfd = open( "/dev/mixer", O_RDWR, 0 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:9232: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( ainfo.devnode, flags, 0 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.hpp:683:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char c3[3]; data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.hpp:780:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *userBuffer[2]; // Playback and record, respectively. data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:2393:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( addr < 16 ) ret = (*F2203->OPN.ST.SSG->read)(F2203->OPN.ST.param); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:3839:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( addr < 16 ) ret = (*F2608->OPN.ST.SSG->read)(F2608->OPN.ST.param); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.c:4619:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( addr < 16 ) ret = (*F2610->OPN.ST.SSG->read)(F2610->OPN.ST.param); data/bambootracker-0.4.5/BambooTracker/chips/mame/fm.h:43:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read)(void *param); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:153:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ins->inst_name, (const char*)cursor, 32); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:186:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int nameLen = strlen(ins->inst_name) + 1; data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:326:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(bankslots[i][j].bank_name, (const char*)cursor, 32); data/bambootracker-0.4.5/BambooTracker/format/wopn_file.c:555:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)cursor, bankslots[i][j].bank_name, 32); data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp:214:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> data = read(offset, 2); data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp:220:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> data = read(offset, 2); data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp:226:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> data = read(offset, 4); data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp:232:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> data = read(offset, 4); data/bambootracker-0.4.5/BambooTracker/io/binary_container.cpp:282:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> BinaryContainer::read(size_t offset, size_t size) const data/bambootracker-0.4.5/BambooTracker/io/binary_container.hpp:86:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::vector<unsigned char> read(size_t offset, size_t size) const; data/bambootracker-0.4.5/BambooTracker/midi/RtMidi/RtMidi.cpp:1549:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int res = read( poll_fds[0].fd, &dummy, sizeof(dummy) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:715: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). info.name.append( (const char *)mname, strlen(mname) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:737: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). info.name.append( (const char *)name, strlen(name) ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:1186:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep( 5000 ); data/bambootracker-0.4.5/BambooTracker/stream/RtAudio/RtAudio.cpp:9888:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read( handle->id[1], buffer, samples * formatBytes(format) ); ANALYSIS SUMMARY: Hits = 134 Lines analyzed = 97030 in approximately 2.54 seconds (38230 lines/second) Physical Source Lines of Code (SLOC) = 72063 Hits@level = [0] 9 [1] 19 [2] 102 [3] 5 [4] 8 [5] 0 Hits@level+ = [0+] 143 [1+] 134 [2+] 115 [3+] 13 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 1.98437 [1+] 1.85948 [2+] 1.59583 [3+] 0.180398 [4+] 0.111014 [5+] 0 Dot directories skipped = 2 (--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.