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/centreon-connectors-19.10.0/perl/src/checks/check.cc Examining data/centreon-connectors-19.10.0/perl/src/checks/listener.cc Examining data/centreon-connectors-19.10.0/perl/src/checks/result.cc Examining data/centreon-connectors-19.10.0/perl/src/checks/timeout.cc Examining data/centreon-connectors-19.10.0/perl/src/embedded_perl.cc Examining data/centreon-connectors-19.10.0/perl/src/main.cc Examining data/centreon-connectors-19.10.0/perl/src/main_io.cc Examining data/centreon-connectors-19.10.0/perl/src/multiplexer.cc Examining data/centreon-connectors-19.10.0/perl/src/options.cc Examining data/centreon-connectors-19.10.0/perl/src/orders/listener.cc Examining data/centreon-connectors-19.10.0/perl/src/orders/parser.cc Examining data/centreon-connectors-19.10.0/perl/src/pipe_handle.cc Examining data/centreon-connectors-19.10.0/perl/src/policy.cc Examining data/centreon-connectors-19.10.0/perl/src/reporter.cc Examining data/centreon-connectors-19.10.0/perl/src/script.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/eof_on_stdin.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/execute_module_loading.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/execute_multiple_scripts.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/execute_single_script.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/execute_single_script_log_file.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/execute_with_additional_code.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/misc.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/non_existent_script.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/timeout_kill.cc Examining data/centreon-connectors-19.10.0/perl/test/connector/timeout_term.cc Examining data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_1.cc Examining data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_2.cc Examining data/centreon-connectors-19.10.0/ssh/src/checks/check.cc Examining data/centreon-connectors-19.10.0/ssh/src/checks/listener.cc Examining data/centreon-connectors-19.10.0/ssh/src/checks/result.cc Examining data/centreon-connectors-19.10.0/ssh/src/checks/timeout.cc Examining data/centreon-connectors-19.10.0/ssh/src/main.cc Examining data/centreon-connectors-19.10.0/ssh/src/multiplexer.cc Examining data/centreon-connectors-19.10.0/ssh/src/options.cc Examining data/centreon-connectors-19.10.0/ssh/src/orders/listener.cc Examining data/centreon-connectors-19.10.0/ssh/src/orders/options.cc Examining data/centreon-connectors-19.10.0/ssh/src/orders/parser.cc Examining data/centreon-connectors-19.10.0/ssh/src/policy.cc Examining data/centreon-connectors-19.10.0/ssh/src/reporter.cc Examining data/centreon-connectors-19.10.0/ssh/src/sessions/credentials.cc Examining data/centreon-connectors-19.10.0/ssh/src/sessions/listener.cc Examining data/centreon-connectors-19.10.0/ssh/src/sessions/session.cc Examining data/centreon-connectors-19.10.0/ssh/src/sessions/socket_handle.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/assignment.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/command_id.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/ctor_copy.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/ctor_default.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/error.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/executed.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/exit_code.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/result/output.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/timeout/assignment.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/timeout/ctor.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/timeout/ctor_copy.cc Examining data/centreon-connectors-19.10.0/ssh/test/checks/timeout/set_check.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/command_execute.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/command_execute_log_file.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/command_quit.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/command_version.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/eof_on_stdin.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/invalid_command.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/invalid_command_id.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/non_existent_host.cc Examining data/centreon-connectors-19.10.0/ssh/test/connector/single_check_timeout.cc Examining data/centreon-connectors-19.10.0/ssh/test/multiplexer/singleton.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/buffer_handle.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/fake_listener.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/assignment.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/close.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/ctor_copy.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/ctor_default.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/eof.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/error.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_id.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_start_time.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_timeout.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_not_enough_args.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/invalid_command.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/quit.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/suite.cc Examining data/centreon-connectors-19.10.0/ssh/test/orders/parser/version.cc Examining data/centreon-connectors-19.10.0/ssh/test/reporter/ctor_default.cc Examining data/centreon-connectors-19.10.0/ssh/test/reporter/error.cc Examining data/centreon-connectors-19.10.0/ssh/test/reporter/send_result.cc Examining data/centreon-connectors-19.10.0/ssh/test/reporter/send_version.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/assignment.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/ctor_copy.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/ctor_default.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/ctor_values.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/host.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/less_than.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/password.cc Examining data/centreon-connectors-19.10.0/ssh/test/sessions/credentials/user.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/basic_exception.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/benchmark.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/connector.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/main.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/misc.cc Examining data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/plugin.cc FINAL RESULTS: data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/connector.cc:281:7: [4] (shell) execvp: 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. execvp(arg[0], arg); data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/plugin.cc:175:7: [4] (shell) execvp: 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. execvp(args[0], args); data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:230:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long(ac, av, optstr, optlong, NULL)) > 0) { data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/main.cc:81:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((ret = getopt_long(ac, av, "c:hl:m:n:o:t:", loptions, NULL)) != -1) { data/centreon-connectors-19.10.0/perl/src/checks/check.cc:171: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 buffer[1024]; data/centreon-connectors-19.10.0/perl/src/checks/check.cc:196: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 buffer[1024]; data/centreon-connectors-19.10.0/perl/src/checks/check.cc:205: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 buffer[1024]; data/centreon-connectors-19.10.0/perl/src/embedded_perl.cc:132:7: [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 const* argv[3]; data/centreon-connectors-19.10.0/perl/src/embedded_perl.cc:302:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int script_fd(mkstemp(script_path)); data/centreon-connectors-19.10.0/perl/src/embedded_perl.cc:351: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 const* embedding[2]; data/centreon-connectors-19.10.0/perl/src/main_io.cc:156: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 buffer[BUFSIZ]; data/centreon-connectors-19.10.0/perl/src/main_io.cc:171: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 boundary[4]; data/centreon-connectors-19.10.0/perl/src/orders/parser.cc:116: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 buffer[4096]; data/centreon-connectors-19.10.0/perl/src/orders/parser.cc:132: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 boundary[4]; data/centreon-connectors-19.10.0/perl/test/connector/misc.cc:57:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* f(fopen(filename, "w")); data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_1.cc:54: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). fs.open(script_path.c_str(), "w"); data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_2.cc:54: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). fs.open(script_path.c_str(), "w"); data/centreon-connectors-19.10.0/ssh/src/checks/check.cc:393: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 buffer[BUFSIZ]; data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:249:15: [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). _port = atoi(optarg); data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:270:32: [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). _skip_stderr = (optarg ? atoi(optarg) : 0); data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:303:32: [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). _skip_stdout = (optarg ? atoi(optarg) : 0); data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:307:18: [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). _timeout = atoi(optarg); data/centreon-connectors-19.10.0/ssh/src/orders/options.cc:378: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 buffer[32665]; data/centreon-connectors-19.10.0/ssh/src/orders/parser.cc:117: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 buffer[4096]; data/centreon-connectors-19.10.0/ssh/src/orders/parser.cc:133: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 boundary[4]; data/centreon-connectors-19.10.0/ssh/test/orders/buffer_handle.cc:101: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(data, _buffer.c_str(), size); data/centreon-connectors-19.10.0/ssh/test/reporter/send_result.cc:58: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 buffer[sizeof(EXPECTED) - 1]; data/centreon-connectors-19.10.0/ssh/test/reporter/send_version.cc:49: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 buffer[sizeof(EXPECTED) - 1]; data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/benchmark.cc:132: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). _output.open( data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/connector.cc:200: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 buffer[4096]; data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/main.cc:88:27: [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). opt.limit_running = atoi(optarg); data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/main.cc:92:26: [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). opt.memory_usage = atoi(optarg); data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/main.cc:96:27: [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). opt.total_request = atoi(optarg); data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/misc.cc:33:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). is.open(file.c_str(), std::ios::in); data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/plugin.cc:148: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 buffer[4096]; data/centreon-connectors-19.10.0/perl/src/checks/check.cc:170:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void check::read(handle& h) { data/centreon-connectors-19.10.0/perl/src/checks/check.cc:172:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long rb(h.read(buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/perl/src/checks/check.cc:197:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long rb(_out.read(buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/perl/src/checks/check.cc:200:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rb = _out.read(buffer, rb); data/centreon-connectors-19.10.0/perl/src/checks/check.cc:206:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long rb(_err.read(buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/perl/src/checks/check.cc:209:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rb = _err.read(buffer, sizeof(buffer)); data/centreon-connectors-19.10.0/perl/src/embedded_perl.cc:323:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len(strlen(data)); data/centreon-connectors-19.10.0/perl/src/main_io.cc:151:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int main_io::read() { data/centreon-connectors-19.10.0/perl/src/main_io.cc:157:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rb(::read(STDIN_FILENO, buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/perl/src/orders/parser.cc:113:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void parser::read(handle& h) { data/centreon-connectors-19.10.0/perl/src/orders/parser.cc:117:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long rb(h.read(buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/perl/src/pipe_handle.cc:160:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long pipe_handle::read(void* data, unsigned long size) { data/centreon-connectors-19.10.0/perl/src/pipe_handle.cc:161:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rb(::read(_fd, data, size)); data/centreon-connectors-19.10.0/perl/test/connector/execute_module_loading.cc:89:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/execute_multiple_scripts.cc:101:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/execute_single_script.cc:86:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/execute_single_script_log_file.cc:96:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/execute_with_additional_code.cc:86:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/misc.cc:54:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(content); data/centreon-connectors-19.10.0/perl/test/connector/non_existent_script.cc:74:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/timeout_kill.cc:73:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/connector/timeout_term.cc:76:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_1.cc:56:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int size(strlen(data)); data/centreon-connectors-19.10.0/perl/test/embedded_perl/run_simple_2.cc:60:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int size(strlen(data)); data/centreon-connectors-19.10.0/ssh/src/orders/parser.cc:114:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void parser::read(handle& h) { data/centreon-connectors-19.10.0/ssh/src/orders/parser.cc:118:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long rb(h.read(buffer, sizeof(buffer))); data/centreon-connectors-19.10.0/ssh/src/sessions/session.cc:351:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void session::read(handle& h) { data/centreon-connectors-19.10.0/ssh/src/sessions/session.cc:431:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(h); data/centreon-connectors-19.10.0/ssh/src/sessions/socket_handle.cc:79:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long socket_handle::read(void* data, unsigned long size) { data/centreon-connectors-19.10.0/ssh/src/sessions/socket_handle.cc:80:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rb(::read(_handl, data, size)); data/centreon-connectors-19.10.0/ssh/test/connector/command_execute.cc:88:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/connector/command_execute_log_file.cc:97:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/connector/command_version.cc:58:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/connector/invalid_command.cc:57:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/connector/non_existent_host.cc:74:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/connector/single_check_timeout.cc:107:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(buffer); data/centreon-connectors-19.10.0/ssh/test/orders/buffer_handle.cc:92:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned long buffer_handle::read(void* data, unsigned long size) { data/centreon-connectors-19.10.0/ssh/test/orders/parser/assignment.cc:51:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p1.read(bh1); data/centreon-connectors-19.10.0/ssh/test/orders/parser/assignment.cc:56:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p2.read(bh2); data/centreon-connectors-19.10.0/ssh/test/orders/parser/close.cc:44:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/ctor_copy.cc:47:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p1.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/eof.cc:44:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:42:17: [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). bh.write(str, strlen(str) + 1); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:44:17: [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). bh.write(str, strlen(str) + 1); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:46:17: [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). bh.write(str, strlen(str) + 1); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:48:17: [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). bh.write(str, strlen(str) + 1); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:50:17: [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). bh.write(str, strlen(str)); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:60:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute.cc:61:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_id.cc:50:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_id.cc:51:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_start_time.cc:48:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_start_time.cc:49:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_timeout.cc:48:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_invalid_timeout.cc:49:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_not_enough_args.cc:73:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/execute_not_enough_args.cc:74:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/invalid_command.cc:46:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/invalid_command.cc:47:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/quit.cc:46:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/quit.cc:47:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/suite.cc:53:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/suite.cc:54:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/version.cc:46:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/orders/parser/version.cc:47:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). p.read(bh); data/centreon-connectors-19.10.0/ssh/test/reporter/send_result.cc:59:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (bh.read(buffer, sizeof(buffer)) != sizeof(buffer)) data/centreon-connectors-19.10.0/ssh/test/reporter/send_version.cc:50:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (bh.read(buffer, sizeof(buffer)) != sizeof(buffer)) data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/connector.cc:201:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ret = read(_pipe_out[0], buffer, sizeof(buffer))) == -1) data/centreon-connectors-19.10.0/test/centreon-benchmark/connector/src/plugin.cc:149:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ret(read(fd, buffer, sizeof(buffer))); ANALYSIS SUMMARY: Hits = 104 Lines analyzed = 12388 in approximately 0.33 seconds (37929 lines/second) Physical Source Lines of Code (SLOC) = 6412 Hits@level = [0] 0 [1] 69 [2] 31 [3] 2 [4] 2 [5] 0 Hits@level+ = [0+] 104 [1+] 104 [2+] 35 [3+] 4 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 16.2196 [1+] 16.2196 [2+] 5.45852 [3+] 0.62383 [4+] 0.311915 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.