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/ncmpcpp-0.8.2/extras/artist_to_albumartist.cpp Examining data/ncmpcpp-0.8.2/src/tags.cpp Examining data/ncmpcpp-0.8.2/src/settings.h Examining data/ncmpcpp-0.8.2/src/mutable_song.cpp Examining data/ncmpcpp-0.8.2/src/macro_utilities.cpp Examining data/ncmpcpp-0.8.2/src/interfaces.h Examining data/ncmpcpp-0.8.2/src/global.h Examining data/ncmpcpp-0.8.2/src/actions.h Examining data/ncmpcpp-0.8.2/src/regex_filter.h Examining data/ncmpcpp-0.8.2/src/charset.cpp Examining data/ncmpcpp-0.8.2/src/lastfm_service.h Examining data/ncmpcpp-0.8.2/src/actions.cpp Examining data/ncmpcpp-0.8.2/src/statusbar.cpp Examining data/ncmpcpp-0.8.2/src/gcc.h Examining data/ncmpcpp-0.8.2/src/enums.cpp Examining data/ncmpcpp-0.8.2/src/runnable_item.h Examining data/ncmpcpp-0.8.2/src/enums.h Examining data/ncmpcpp-0.8.2/src/title.h Examining data/ncmpcpp-0.8.2/src/helpers.h Examining data/ncmpcpp-0.8.2/src/format.h Examining data/ncmpcpp-0.8.2/src/song_list.cpp Examining data/ncmpcpp-0.8.2/src/mpdpp.cpp Examining data/ncmpcpp-0.8.2/src/screens/server_info.cpp Examining data/ncmpcpp-0.8.2/src/screens/lyrics.h Examining data/ncmpcpp-0.8.2/src/screens/sel_items_adder.h Examining data/ncmpcpp-0.8.2/src/screens/browser.cpp Examining data/ncmpcpp-0.8.2/src/screens/media_library.h Examining data/ncmpcpp-0.8.2/src/screens/sort_playlist.cpp Examining data/ncmpcpp-0.8.2/src/screens/search_engine.cpp Examining data/ncmpcpp-0.8.2/src/screens/lyrics.cpp Examining data/ncmpcpp-0.8.2/src/screens/lastfm.h Examining data/ncmpcpp-0.8.2/src/screens/visualizer.h Examining data/ncmpcpp-0.8.2/src/screens/help.cpp Examining data/ncmpcpp-0.8.2/src/screens/search_engine.h Examining data/ncmpcpp-0.8.2/src/screens/sort_playlist.h Examining data/ncmpcpp-0.8.2/src/screens/playlist_editor.cpp Examining data/ncmpcpp-0.8.2/src/screens/lastfm.cpp Examining data/ncmpcpp-0.8.2/src/screens/visualizer.cpp Examining data/ncmpcpp-0.8.2/src/screens/help.h Examining data/ncmpcpp-0.8.2/src/screens/server_info.h Examining data/ncmpcpp-0.8.2/src/screens/tiny_tag_editor.h Examining data/ncmpcpp-0.8.2/src/screens/browser.h Examining data/ncmpcpp-0.8.2/src/screens/playlist.cpp Examining data/ncmpcpp-0.8.2/src/screens/outputs.cpp Examining data/ncmpcpp-0.8.2/src/screens/outputs.h Examining data/ncmpcpp-0.8.2/src/screens/playlist_editor.h Examining data/ncmpcpp-0.8.2/src/screens/playlist.h Examining data/ncmpcpp-0.8.2/src/screens/song_info.h Examining data/ncmpcpp-0.8.2/src/screens/sel_items_adder.cpp Examining data/ncmpcpp-0.8.2/src/screens/clock.cpp Examining data/ncmpcpp-0.8.2/src/screens/screen.cpp Examining data/ncmpcpp-0.8.2/src/screens/clock.h Examining data/ncmpcpp-0.8.2/src/screens/screen.h Examining data/ncmpcpp-0.8.2/src/screens/screen_type.cpp Examining data/ncmpcpp-0.8.2/src/screens/tag_editor.h Examining data/ncmpcpp-0.8.2/src/screens/screen_type.h Examining data/ncmpcpp-0.8.2/src/screens/media_library.cpp Examining data/ncmpcpp-0.8.2/src/screens/tag_editor.cpp Examining data/ncmpcpp-0.8.2/src/screens/screen_switcher.h Examining data/ncmpcpp-0.8.2/src/screens/tiny_tag_editor.cpp Examining data/ncmpcpp-0.8.2/src/screens/song_info.cpp Examining data/ncmpcpp-0.8.2/src/display.cpp Examining data/ncmpcpp-0.8.2/src/display.h Examining data/ncmpcpp-0.8.2/src/bindings.cpp Examining data/ncmpcpp-0.8.2/src/bindings.h Examining data/ncmpcpp-0.8.2/src/song.cpp Examining data/ncmpcpp-0.8.2/src/tags.h Examining data/ncmpcpp-0.8.2/src/configuration.cpp Examining data/ncmpcpp-0.8.2/src/title.cpp Examining data/ncmpcpp-0.8.2/src/status.h Examining data/ncmpcpp-0.8.2/src/statusbar.h Examining data/ncmpcpp-0.8.2/src/helpers.cpp Examining data/ncmpcpp-0.8.2/src/global.cpp Examining data/ncmpcpp-0.8.2/src/lyrics_fetcher.cpp Examining data/ncmpcpp-0.8.2/src/charset.h Examining data/ncmpcpp-0.8.2/src/curl_handle.cpp Examining data/ncmpcpp-0.8.2/src/lastfm_service.cpp Examining data/ncmpcpp-0.8.2/src/settings.cpp Examining data/ncmpcpp-0.8.2/src/ncmpcpp.cpp Examining data/ncmpcpp-0.8.2/src/mutable_song.h Examining data/ncmpcpp-0.8.2/src/format_impl.h Examining data/ncmpcpp-0.8.2/src/configuration.h Examining data/ncmpcpp-0.8.2/src/curses/window.h Examining data/ncmpcpp-0.8.2/src/curses/scrollpad.cpp Examining data/ncmpcpp-0.8.2/src/curses/strbuffer.h Examining data/ncmpcpp-0.8.2/src/curses/menu.h Examining data/ncmpcpp-0.8.2/src/curses/formatted_color.h Examining data/ncmpcpp-0.8.2/src/curses/formatted_color.cpp Examining data/ncmpcpp-0.8.2/src/curses/window.cpp Examining data/ncmpcpp-0.8.2/src/curses/menu_impl.h Examining data/ncmpcpp-0.8.2/src/curses/scrollpad.h Examining data/ncmpcpp-0.8.2/src/macro_utilities.h Examining data/ncmpcpp-0.8.2/src/song_list.h Examining data/ncmpcpp-0.8.2/src/utility/comparators.cpp Examining data/ncmpcpp-0.8.2/src/utility/option_parser.cpp Examining data/ncmpcpp-0.8.2/src/utility/type_conversions.h Examining data/ncmpcpp-0.8.2/src/utility/html.cpp Examining data/ncmpcpp-0.8.2/src/utility/storage_kind.h Examining data/ncmpcpp-0.8.2/src/utility/option_parser.h Examining data/ncmpcpp-0.8.2/src/utility/const.h Examining data/ncmpcpp-0.8.2/src/utility/comparators.h Examining data/ncmpcpp-0.8.2/src/utility/wide_string.cpp Examining data/ncmpcpp-0.8.2/src/utility/string.cpp Examining data/ncmpcpp-0.8.2/src/utility/string.h Examining data/ncmpcpp-0.8.2/src/utility/html.h Examining data/ncmpcpp-0.8.2/src/utility/wide_string.h Examining data/ncmpcpp-0.8.2/src/utility/functional.h Examining data/ncmpcpp-0.8.2/src/utility/readline.h Examining data/ncmpcpp-0.8.2/src/utility/type_conversions.cpp Examining data/ncmpcpp-0.8.2/src/utility/shared_resource.h Examining data/ncmpcpp-0.8.2/src/utility/conversion.h Examining data/ncmpcpp-0.8.2/src/utility/scoped_value.h Examining data/ncmpcpp-0.8.2/src/curl_handle.h Examining data/ncmpcpp-0.8.2/src/helpers/song_iterator_maker.h Examining data/ncmpcpp-0.8.2/src/song.h Examining data/ncmpcpp-0.8.2/src/status.cpp Examining data/ncmpcpp-0.8.2/src/lyrics_fetcher.h Examining data/ncmpcpp-0.8.2/src/format.cpp Examining data/ncmpcpp-0.8.2/src/mpdpp.h FINAL RESULTS: data/ncmpcpp-0.8.2/src/actions.cpp:750:14: [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. Statusbar::printf(msg, data/ncmpcpp-0.8.2/src/actions.cpp:865:14: [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. Statusbar::printf(1, "Executing %1%...", cmd_name); data/ncmpcpp-0.8.2/src/actions.cpp:1482:16: [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. Statusbar::printf(msg, wideShorten(myLibrary->Songs[i].value().getURI(), COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/actions.cpp:1490:16: [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. Statusbar::printf(msg, wideShorten(myLibrary->Songs[i].value().getURI(), COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/actions.cpp:1541:15: [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. Statusbar::printf(msg, wideShorten(new_dir, COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/actions.cpp:1563:16: [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. Statusbar::printf(msg, wideShorten(new_dir, COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/actions.cpp:1569:16: [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. Statusbar::printf(msg, wideShorten(old_dir, COLS-const_strlen(msg)-25), strerror(errno)); data/ncmpcpp-0.8.2/src/actions.cpp:1602:14: [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. Statusbar::printf(msg, wideShorten(new_name, COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/gcc.h:24:50: [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 GNUC_PRINTF(a, b) __attribute__((format(printf, a, b))) data/ncmpcpp-0.8.2/src/macro_utilities.cpp:90: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. res = std::system(m_command.c_str()); data/ncmpcpp-0.8.2/src/screens/browser.cpp:697:14: [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. Statusbar::printf(msg, wideShorten(entry->path().native(), COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/screens/lyrics.cpp:306:14: [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. Statusbar::printf(msg, wideShorten(filename, COLS - const_strlen(msg) - 25), data/ncmpcpp-0.8.2/src/screens/lyrics.cpp:332:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. res = system(command.c_str()); data/ncmpcpp-0.8.2/src/screens/lyrics.cpp:343:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. res = system(command.c_str()); data/ncmpcpp-0.8.2/src/screens/tiny_tag_editor.cpp:94:14: [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. Statusbar::printf(msg, wideShorten(full_path, COLS-const_strlen(msg))); data/ncmpcpp-0.8.2/src/status.cpp:490:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. res = system(Config.execute_on_player_state_change.c_str()); data/ncmpcpp-0.8.2/src/status.cpp:569:11: [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. res = system(Config.execute_on_song_change.c_str()); data/ncmpcpp-0.8.2/src/statusbar.h:138:6: [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. void printf(FormatT &&fmt) data/ncmpcpp-0.8.2/src/statusbar.h:143:6: [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. void printf(FormatT &&fmt, ArgT &&arg, Args&&... args) data/ncmpcpp-0.8.2/src/statusbar.h:145:2: [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(boost::format(std::forward<FormatT>(fmt)) % std::forward<ArgT>(arg), data/ncmpcpp-0.8.2/src/statusbar.h:152:6: [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. void printf(int delay, FormatT &&fmt) data/ncmpcpp-0.8.2/src/statusbar.h:157:6: [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. void printf(int delay, FormatT &&fmt, ArgT &&arg, Args&&... args) data/ncmpcpp-0.8.2/src/statusbar.h:159:2: [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(delay, boost::format(std::forward<FormatT>(fmt)) % std::forward<ArgT>(arg), data/ncmpcpp-0.8.2/src/actions.cpp:1258:32: [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. Mpd.SetRandom(!Status::State::random()); data/ncmpcpp-0.8.2/src/configuration.cpp:49:36: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *env_xdg_config_home = getenv("XDG_CONFIG_HOME"); data/ncmpcpp-0.8.2/src/configuration.cpp:182:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env_home = getenv("HOME"); data/ncmpcpp-0.8.2/src/configuration.cpp:206:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. auto env_host = getenv("MPD_HOST"); data/ncmpcpp-0.8.2/src/configuration.cpp:207:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. auto env_port = getenv("MPD_PORT"); data/ncmpcpp-0.8.2/src/curses/formatted_color.cpp:75:8: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/curses/window.cpp:307:7: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/curses/window.cpp:315:8: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:46:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:73:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:110:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:137:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:164:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/enums.cpp:205:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/lyrics_fetcher.cpp:64:6: [3] (random) setstate: 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. is.setstate(std::ios::failbit); data/ncmpcpp-0.8.2/src/mpdpp.h:104:7: [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. bool random() const { return mpd_status_get_random(m_status.get()); } data/ncmpcpp-0.8.2/src/settings.cpp:553:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. auto term = getenv("TERM"); data/ncmpcpp-0.8.2/src/status.cpp:288:32: [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. if (('z' == m_random) != st.random()) data/ncmpcpp-0.8.2/src/status.cpp:290:19: [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. m_random = st.random() ? 'z' : 0; data/ncmpcpp-0.8.2/src/status.cpp:362:21: [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. bool Status::State::random() data/ncmpcpp-0.8.2/src/status.h:43:6: [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. bool random(); data/ncmpcpp-0.8.2/src/bindings.cpp:102:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n = atoi(s.c_str() + 1); data/ncmpcpp-0.8.2/src/curses/window.cpp:120:2: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t pre_pos[rl_point+1]; data/ncmpcpp-0.8.2/src/curses/window.cpp:140:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t post_pos[rl_end-rl_point+1]; data/ncmpcpp-0.8.2/src/curses/window.cpp:281:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). result = atoi(s.c_str()); data/ncmpcpp-0.8.2/src/helpers.cpp: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 result[32]; data/ncmpcpp-0.8.2/src/helpers.cpp:132: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 result[32]; data/ncmpcpp-0.8.2/src/ncmpcpp.cpp:107: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). errorlog.open((Config.ncmpcpp_directory + "error.log").c_str(), std::ios::app); data/ncmpcpp-0.8.2/src/screens/clock.cpp: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 buf[64]; data/ncmpcpp-0.8.2/src/screens/visualizer.cpp:473:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (m_fifo < 0 && (m_fifo = open(Config.visualizer_fifo_path.c_str(), O_RDONLY | O_NONBLOCK)) < 0) data/ncmpcpp-0.8.2/src/utility/html.cpp:32:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int n = atoi(&data.c_str()[i+2]); data/ncmpcpp-0.8.2/src/bindings.cpp:335:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool BindingsConfiguration::read(const std::string &file) data/ncmpcpp-0.8.2/src/bindings.cpp:472:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool BindingsConfiguration::read(const std::vector<std::string> &binding_paths) data/ncmpcpp-0.8.2/src/bindings.cpp:478:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(binding_path); data/ncmpcpp-0.8.2/src/bindings.h:95:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(const std::vector<std::string> &binding_paths); data/ncmpcpp-0.8.2/src/bindings.h:114:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(const std::string &file); data/ncmpcpp-0.8.2/src/configuration.cpp:191:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (Config.read(config_paths, vm.count("ignore-config-errors")) == false) data/ncmpcpp-0.8.2/src/configuration.cpp:196:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (Bindings.read(bindings_paths) == false) data/ncmpcpp-0.8.2/src/screens/browser.cpp:642:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Tags::read(s); data/ncmpcpp-0.8.2/src/screens/clock.cpp:133:68: [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). mvprintw(w.getStarty()+w.getHeight(), w.getStartX()+(w.getWidth()-strlen(buf))/2, "%s", buf); data/ncmpcpp-0.8.2/src/screens/visualizer.cpp:115:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t data = read(m_fifo, samples.data(), data/ncmpcpp-0.8.2/src/screens/visualizer.cpp:123:3: [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(50000); data/ncmpcpp-0.8.2/src/settings.cpp:211:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool Configuration::read(const std::vector<std::string> &config_paths, bool ignore_errors) data/ncmpcpp-0.8.2/src/settings.h:58:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(const std::vector<std::string> &config_paths, bool ignore_errors); data/ncmpcpp-0.8.2/src/tags.cpp:252:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(mpd_song *s) data/ncmpcpp-0.8.2/src/tags.h:71:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(mpd_song *s); data/ncmpcpp-0.8.2/src/utility/comparators.h:40:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return compare(a, strlen(a), b, strlen(b)); data/ncmpcpp-0.8.2/src/utility/comparators.h:40: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). return compare(a, strlen(a), b, strlen(b)); ANALYSIS SUMMARY: Hits = 71 Lines analyzed = 30342 in approximately 0.68 seconds (44427 lines/second) Physical Source Lines of Code (SLOC) = 23407 Hits@level = [0] 73 [1] 17 [2] 10 [3] 21 [4] 23 [5] 0 Hits@level+ = [0+] 144 [1+] 71 [2+] 54 [3+] 44 [4+] 23 [5+] 0 Hits/KSLOC@level+ = [0+] 6.15201 [1+] 3.03328 [2+] 2.307 [3+] 1.87978 [4+] 0.982612 [5+] 0 Dot directories skipped = 5 (--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.