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/xinetd-2.3.15.3/src/access.c Examining data/xinetd-2.3.15.3/src/access.h Examining data/xinetd-2.3.15.3/src/addr.c Examining data/xinetd-2.3.15.3/src/addr.h Examining data/xinetd-2.3.15.3/src/attr.h Examining data/xinetd-2.3.15.3/src/builtins.c Examining data/xinetd-2.3.15.3/src/builtins.h Examining data/xinetd-2.3.15.3/src/child.c Examining data/xinetd-2.3.15.3/src/child.h Examining data/xinetd-2.3.15.3/src/conf.c Examining data/xinetd-2.3.15.3/src/conf.h Examining data/xinetd-2.3.15.3/src/confparse.c Examining data/xinetd-2.3.15.3/src/confparse.h Examining data/xinetd-2.3.15.3/src/connection.c Examining data/xinetd-2.3.15.3/src/connection.h Examining data/xinetd-2.3.15.3/src/defs.h Examining data/xinetd-2.3.15.3/src/env.c Examining data/xinetd-2.3.15.3/src/env.h Examining data/xinetd-2.3.15.3/src/ident.c Examining data/xinetd-2.3.15.3/src/ident.h Examining data/xinetd-2.3.15.3/src/includedir.c Examining data/xinetd-2.3.15.3/src/includedir.h Examining data/xinetd-2.3.15.3/src/inet.c Examining data/xinetd-2.3.15.3/src/inet.h Examining data/xinetd-2.3.15.3/src/init.c Examining data/xinetd-2.3.15.3/src/init.h Examining data/xinetd-2.3.15.3/src/int.c Examining data/xinetd-2.3.15.3/src/int.h Examining data/xinetd-2.3.15.3/src/intcommon.c Examining data/xinetd-2.3.15.3/src/intcommon.h Examining data/xinetd-2.3.15.3/src/internals.c Examining data/xinetd-2.3.15.3/src/internals.h Examining data/xinetd-2.3.15.3/src/itox.c Examining data/xinetd-2.3.15.3/src/log.c Examining data/xinetd-2.3.15.3/src/log.h Examining data/xinetd-2.3.15.3/src/logctl.c Examining data/xinetd-2.3.15.3/src/logctl.h Examining data/xinetd-2.3.15.3/src/main.c Examining data/xinetd-2.3.15.3/src/main.h Examining data/xinetd-2.3.15.3/src/mask.h Examining data/xinetd-2.3.15.3/src/misc/m_env.c Examining data/xinetd-2.3.15.3/src/misc/m_env.h Examining data/xinetd-2.3.15.3/src/msg.c Examining data/xinetd-2.3.15.3/src/msg.h Examining data/xinetd-2.3.15.3/src/nvlists.c Examining data/xinetd-2.3.15.3/src/nvlists.h Examining data/xinetd-2.3.15.3/src/options.c Examining data/xinetd-2.3.15.3/src/options.h Examining data/xinetd-2.3.15.3/src/parse.c Examining data/xinetd-2.3.15.3/src/parse.h Examining data/xinetd-2.3.15.3/src/parsers.c Examining data/xinetd-2.3.15.3/src/parsers.h Examining data/xinetd-2.3.15.3/src/parsesup.c Examining data/xinetd-2.3.15.3/src/parsesup.h Examining data/xinetd-2.3.15.3/src/portable/cvt.c Examining data/xinetd-2.3.15.3/src/portable/libportable.h Examining data/xinetd-2.3.15.3/src/pset/ops.c Examining data/xinetd-2.3.15.3/src/pset/pset.c Examining data/xinetd-2.3.15.3/src/pset/pset.h Examining data/xinetd-2.3.15.3/src/reconfig.c Examining data/xinetd-2.3.15.3/src/reconfig.h Examining data/xinetd-2.3.15.3/src/redirect.c Examining data/xinetd-2.3.15.3/src/redirect.h Examining data/xinetd-2.3.15.3/src/retry.c Examining data/xinetd-2.3.15.3/src/retry.h Examining data/xinetd-2.3.15.3/src/sconf.c Examining data/xinetd-2.3.15.3/src/sconf.h Examining data/xinetd-2.3.15.3/src/sconst.h Examining data/xinetd-2.3.15.3/src/sensor.c Examining data/xinetd-2.3.15.3/src/sensor.h Examining data/xinetd-2.3.15.3/src/server.c Examining data/xinetd-2.3.15.3/src/server.h Examining data/xinetd-2.3.15.3/src/service.c Examining data/xinetd-2.3.15.3/src/service.h Examining data/xinetd-2.3.15.3/src/signals.c Examining data/xinetd-2.3.15.3/src/signals.h Examining data/xinetd-2.3.15.3/src/sio/impl.h Examining data/xinetd-2.3.15.3/src/sio/sio.c Examining data/xinetd-2.3.15.3/src/sio/sio.h Examining data/xinetd-2.3.15.3/src/sio/sioconf.h Examining data/xinetd-2.3.15.3/src/sio/siosup.c Examining data/xinetd-2.3.15.3/src/sio/sprint.c Examining data/xinetd-2.3.15.3/src/special.c Examining data/xinetd-2.3.15.3/src/special.h Examining data/xinetd-2.3.15.3/src/state.h Examining data/xinetd-2.3.15.3/src/str/str.h Examining data/xinetd-2.3.15.3/src/str/strparse.c Examining data/xinetd-2.3.15.3/src/str/strparse.h Examining data/xinetd-2.3.15.3/src/str/strprint.c Examining data/xinetd-2.3.15.3/src/str/strutil.c Examining data/xinetd-2.3.15.3/src/tcpint.c Examining data/xinetd-2.3.15.3/src/tcpint.h Examining data/xinetd-2.3.15.3/src/time.c Examining data/xinetd-2.3.15.3/src/timex.h Examining data/xinetd-2.3.15.3/src/udpint.c Examining data/xinetd-2.3.15.3/src/udpint.h Examining data/xinetd-2.3.15.3/src/util.c Examining data/xinetd-2.3.15.3/src/util.h Examining data/xinetd-2.3.15.3/src/xconfig.h Examining data/xinetd-2.3.15.3/src/xgetloadavg.c Examining data/xinetd-2.3.15.3/src/xgetloadavg.h Examining data/xinetd-2.3.15.3/src/xlog/filelog.c Examining data/xinetd-2.3.15.3/src/xlog/filelog.h Examining data/xinetd-2.3.15.3/src/xlog/impl.h Examining data/xinetd-2.3.15.3/src/xlog/slog.c Examining data/xinetd-2.3.15.3/src/xlog/slog.h Examining data/xinetd-2.3.15.3/src/xlog/util.c Examining data/xinetd-2.3.15.3/src/xlog/xlog.c Examining data/xinetd-2.3.15.3/src/xlog/xlog.h Examining data/xinetd-2.3.15.3/src/xpoll.h Examining data/xinetd-2.3.15.3/src/xtimer.c Examining data/xinetd-2.3.15.3/src/xtimer.h FINAL RESULTS: data/xinetd-2.3.15.3/src/log.h:40:8: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. struct syslog data/xinetd-2.3.15.3/src/log.h:50:11: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. struct syslog l_sl ; data/xinetd-2.3.15.3/src/log.h:66:26: [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. __attribute__ ((format (printf, 3, 4))); data/xinetd-2.3.15.3/src/msg.c:144:25: [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. __attribute__ ((format (printf, 5, 0))) data/xinetd-2.3.15.3/src/msg.h:11:33: [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. __attribute__ ((format (printf, 3, 4))); data/xinetd-2.3.15.3/src/msg.h:17:33: [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. __attribute__ ((format (printf, 3, 4))); data/xinetd-2.3.15.3/src/parsers.c:393:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ( access( server, X_OK ) == -1 ) data/xinetd-2.3.15.3/src/parsers.c:884:38: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. static status_e parse_syslog( struct syslog *slp, pset_h values ) data/xinetd-2.3.15.3/src/sio/sio.h:171:26: [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. __attribute__ ((format (printf, 2, 3))); data/xinetd-2.3.15.3/src/sio/sio.h:178:26: [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. __attribute__ ((format (printf, 2, 0))); data/xinetd-2.3.15.3/src/sio/sprint.c:185:18: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). *len = strlen( strcpy( buf, p ) ) ; data/xinetd-2.3.15.3/src/str/str.h:19:28: [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. __attribute__ ((format (printf, n, m))) data/xinetd-2.3.15.3/src/util.h:17:33: [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. __attribute__ ((format (printf, 3, 4))); data/xinetd-2.3.15.3/src/xlog/slog.c:59:13: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. static void syslog() data/xinetd-2.3.15.3/src/server.c:48:29: [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. #define do_fork() ( random() & 0x11 ) ? ( errno = EAGAIN, -1 ) : fork() data/xinetd-2.3.15.3/src/service.c:248: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. brd_str = getenv("XINETD_BIND_DELAY"); data/xinetd-2.3.15.3/src/addr.c:56:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAXHOSTNAMELEN+1] ; data/xinetd-2.3.15.3/src/addr.c:123:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hname[NI_MAXHOST] ; data/xinetd-2.3.15.3/src/addr.c:222:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addrstring[1025]; data/xinetd-2.3.15.3/src/addr.c:223:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char maskstring[1025]; data/xinetd-2.3.15.3/src/addr.c:368:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char saddr[INET6_ADDRSTRLEN]; data/xinetd-2.3.15.3/src/addr.c:418: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( &ca.a.addr6, &(SAIN6(res->ai_addr)->sin6_addr), data/xinetd-2.3.15.3/src/addr.c:531:10: [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( &ca.a.addr6, &(SAIN6(res->ai_addr)->sin6_addr), data/xinetd-2.3.15.3/src/addr.c:571:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr[46]; data/xinetd-2.3.15.3/src/builtins.c:129:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:166:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ DATAGRAM_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:185:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:214:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ 1 ] ; data/xinetd-2.3.15.3/src/builtins.c:257:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_buf[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:278:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_buf[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:323:13: [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 time_buf[4]; data/xinetd-2.3.15.3/src/builtins.c:345:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ 1 ] ; data/xinetd-2.3.15.3/src/builtins.c:346:13: [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 time_buf[4]; data/xinetd-2.3.15.3/src/builtins.c:407: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. (void) memcpy( buf, ring, line_len ) ; data/xinetd-2.3.15.3/src/builtins.c:420:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line_buf[ LINE_LENGTH+2 ] ; data/xinetd-2.3.15.3/src/builtins.c:450:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/builtins.c:492:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char svc_name[ BUFFER_SIZE ] ; data/xinetd-2.3.15.3/src/child.c:368:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[1024]; data/xinetd-2.3.15.3/src/child.c:380: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 name[ 180 ] ; data/xinetd-2.3.15.3/src/child.c:394:10: [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 host[NI_MAXHOST]; data/xinetd-2.3.15.3/src/child.c:410:16: [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(host, "unknown"); data/xinetd-2.3.15.3/src/conf.c:92:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( ps.ros.config_file, O_RDONLY ) ; data/xinetd-2.3.15.3/src/confparse.c:201:10: [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(SC_BIND_ADDR(scp), SC_BIND_ADDR(def), sizeof(union xsockaddr)); data/xinetd-2.3.15.3/src/confparse.c:275:10: [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(SC_BIND_ADDR(scp), res->ai_addr, res->ai_addrlen); data/xinetd-2.3.15.3/src/confparse.c:895:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). config_fd = open(current_file, O_RDONLY); data/xinetd-2.3.15.3/src/connection.c:156:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cp, &new_conn, sizeof(connection_s)); data/xinetd-2.3.15.3/src/connection.c:200:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char name[NI_MAXHOST]; data/xinetd-2.3.15.3/src/connection.h:68: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(((cp)->co_remote_address.pad), sinp, sizeof(*sinp) ); \ data/xinetd-2.3.15.3/src/defs.h:27:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pad[128]; data/xinetd-2.3.15.3/src/ident.c:63:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[ IBUFSIZE ] ; data/xinetd-2.3.15.3/src/includedir.c:129:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). incfd = open(filename, O_RDONLY); data/xinetd-2.3.15.3/src/init.c:120:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( null_fd = open( "/dev/null", O_RDONLY ) ) == -1 ) data/xinetd-2.3.15.3/src/init.c:198:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pidfd = open(ps.ros.pid_file, O_EXCL|O_CREAT|O_WRONLY, data/xinetd-2.3.15.3/src/int.c:129: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(sinp, res->ai_addr, sizeof( struct sockaddr_in6 )); data/xinetd-2.3.15.3/src/internals.c:65:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dump_fd = open( dump_file, O_WRONLY | O_CREAT | O_APPEND, DUMP_FILE_MODE); data/xinetd-2.3.15.3/src/internals.c:221: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(pfd_array_copy, ps.rws.pfd_array, ps.rws.pfds_last*sizeof(struct pollfd)); data/xinetd-2.3.15.3/src/log.c:28:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ipv6_ret[NI_MAXHOST]; data/xinetd-2.3.15.3/src/log.c:58:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ LOGBUF_SIZE ] ; data/xinetd-2.3.15.3/src/log.c:99:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ LOGBUF_SIZE ] ; data/xinetd-2.3.15.3/src/log.c:142:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ LOGBUF_SIZE ] ; data/xinetd-2.3.15.3/src/log.c:224:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ LOGBUF_SIZE ] ; data/xinetd-2.3.15.3/src/msg.c:190:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ BUFSIZE ] ; data/xinetd-2.3.15.3/src/msg.c:211:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ BUFSIZE ] ; data/xinetd-2.3.15.3/src/options.c:90:32: [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. ps.ros.pid_file = (char *)new_string( argv[arg] ); data/xinetd-2.3.15.3/src/parse.c:227:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). incfd = open(service_name, O_RDONLY); data/xinetd-2.3.15.3/src/parsers.c:1205: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(SC_REDIR_ADDR(scp), res->ai_addr, res->ai_addrlen); data/xinetd-2.3.15.3/src/parsers.c:1279: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(SC_BIND_ADDR(scp), res->ai_addr, res->ai_addrlen); data/xinetd-2.3.15.3/src/portable/cvt.c:76:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%.*" FLOAT_FMT_FLAG "g", ndigit, value); data/xinetd-2.3.15.3/src/redirect.c:60:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[NET_BUFFER]; data/xinetd-2.3.15.3/src/sconf.c:318: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 bindname[NI_MAXHOST]; data/xinetd-2.3.15.3/src/sconf.c:327:5: [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(bindname, "unknown"); data/xinetd-2.3.15.3/src/sconf.c:367:10: [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 redirname[NI_MAXHOST]; data/xinetd-2.3.15.3/src/sconf.c:376:13: [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(redirname, "unknown"); data/xinetd-2.3.15.3/src/sensor.c:69: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. char time_buf[40], *tmp; data/xinetd-2.3.15.3/src/sensor.c:77:21: [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(time_buf, "-1"); data/xinetd-2.3.15.3/src/sensor.c:119:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_buf[40], *new_exp_time; data/xinetd-2.3.15.3/src/sensor.c:174:24: [2] (integer) atol: 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). stored_time = atol(exp_time); data/xinetd-2.3.15.3/src/service.c:250: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). bind_retry_delay = atoi(brd_str); data/xinetd-2.3.15.3/src/service.c:257: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(&tsin, SC_BIND_ADDR(scp), sin_len); data/xinetd-2.3.15.3/src/service.c:700: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 tmpbuf[TMPSIZE]; data/xinetd-2.3.15.3/src/service.c:702:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int bannerfd = open(SC_BANNER(scp), O_RDONLY); data/xinetd-2.3.15.3/src/service.c:740: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 tmpbuf[TMPSIZE]; data/xinetd-2.3.15.3/src/service.c:742:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int bannerfd = open(SC_BANNER_FAIL(scp), O_RDONLY); data/xinetd-2.3.15.3/src/service.c:780: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 tmpbuf[TMPSIZE]; data/xinetd-2.3.15.3/src/service.c:782:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int bannerfd = open(SC_BANNER_SUCCESS(scp), O_RDONLY); data/xinetd-2.3.15.3/src/service.c:854:16: [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(SVC_LAST_DGRAM_ADDR(sp), sinp,sizeof(struct sockaddr_in)); data/xinetd-2.3.15.3/src/service.c:881:16: [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(SVC_LAST_DGRAM_ADDR(sp),sinp,sizeof(struct sockaddr_in6)); data/xinetd-2.3.15.3/src/signals.c:337:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char signame_buf[ 30 ] ; data/xinetd-2.3.15.3/src/sio/impl.h:106:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char numbuf[ NUMBUF_SIZE ] ; data/xinetd-2.3.15.3/src/sio/impl.h:152:48: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define sio_memcopy( from, to, nbytes ) (void) memcpy( to, from, nbytes ) data/xinetd-2.3.15.3/src/sio/sprint.c:24:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char S_NULL[S_NULL_LEN+1] = "(null)"; data/xinetd-2.3.15.3/src/sio/sprint.c:222: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 temp[ EXPONENT_LENGTH ] ; /* for exponent conversion */ data/xinetd-2.3.15.3/src/sio/sprint.c:370: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 num_buf[ NUM_BUF_SIZE ] ; data/xinetd-2.3.15.3/src/sio/sprint.c:371: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 char_buf[ 2 ] ; /* for printing %% and %<unknown> */ data/xinetd-2.3.15.3/src/tcpint.c:358:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ DATAGRAM_SIZE ] ; data/xinetd-2.3.15.3/src/tcpint.c:411:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ DATAGRAM_SIZE ] ; data/xinetd-2.3.15.3/src/udpint.c:193:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ MAX_DATAGRAM_SIZE ] ; data/xinetd-2.3.15.3/src/udpint.c:344:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ MAX_DATAGRAM_SIZE ] ; data/xinetd-2.3.15.3/src/util.c:148:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy( new_s, p, size ) ; data/xinetd-2.3.15.3/src/util.c:211:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ 256 ] ; /* This size is arbitrarily chosen */ data/xinetd-2.3.15.3/src/xgetloadavg.c:30:9: [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). fd = fopen(LFILE, "r"); data/xinetd-2.3.15.3/src/xlog/filelog.c:61: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( filename, flags, va_arg( ap, int ) ) ; data/xinetd-2.3.15.3/src/xlog/filelog.c:63: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( filename, flags ) ; data/xinetd-2.3.15.3/src/xlog/filelog.c:153: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[ 100 ] ; data/xinetd-2.3.15.3/src/xlog/filelog.c:242: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 errno_buf[ 100 ] ; data/xinetd-2.3.15.3/src/xlog/slog.c:143:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[ MSGBUFSIZE ] ; data/xinetd-2.3.15.3/src/xlog/slog.c:170: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 errno_buf[ 100 ] ; data/xinetd-2.3.15.3/src/addr.c:166:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( strlen(cap->name) == strlen(tmpname) ) data/xinetd-2.3.15.3/src/addr.c:166: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). if( strlen(cap->name) == strlen(tmpname) ) data/xinetd-2.3.15.3/src/addr.c:172: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). if( (strlen(hname) == strlen(cap->name)) && data/xinetd-2.3.15.3/src/addr.c:172:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if( (strlen(hname) == strlen(cap->name)) && data/xinetd-2.3.15.3/src/addr.c:585:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ca.name, str_addr, sizeof(ca.name)-1) ; data/xinetd-2.3.15.3/src/addr.c:607:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ca.name, str_addr, sizeof(ca.name)-1) ; data/xinetd-2.3.15.3/src/builtins.c:147:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( descriptor, buf, sizeof( buf ) ) ; data/xinetd-2.3.15.3/src/builtins.c:203:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( descriptor, buf, sizeof( buf ) ) ; data/xinetd-2.3.15.3/src/builtins.c:510:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( descriptor, svc_name, sizeof( svc_name ) ) ; data/xinetd-2.3.15.3/src/child.c:285:7: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(SC_UMASK(scp)); data/xinetd-2.3.15.3/src/ident.c:253:34: [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 line_id_len = strlen( line_id ) ; data/xinetd-2.3.15.3/src/ident.c:289:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( sd, p, size ) ; data/xinetd-2.3.15.3/src/includedir.c:59:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len_sn = strlen(service_name); data/xinetd-2.3.15.3/src/includedir.c:101:33: [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). storename[strlen(storename)-1] == '~') { data/xinetd-2.3.15.3/src/init.c:184:11: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask( umask( 077 ) | 022 ) ; data/xinetd-2.3.15.3/src/init.c:184:18: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void) umask( umask( 077 ) | 022 ) ; data/xinetd-2.3.15.3/src/itox.c:61:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( daemon_dirpath ) ; data/xinetd-2.3.15.3/src/itox.c:242:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen( s ) ; data/xinetd-2.3.15.3/src/itox.c:280:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen( s ) ; data/xinetd-2.3.15.3/src/log.c:38:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(ipv6_ret, "<unknown>", NI_MAXHOST); data/xinetd-2.3.15.3/src/misc/m_env.c:137:34: [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). char **pp = lookup( env, var, strlen( var ) ) ; data/xinetd-2.3.15.3/src/misc/m_env.c:217:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return( addstring( env, var_string, strlen( var_name ) ) ) ; data/xinetd-2.3.15.3/src/parsers.c:774:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = limit_str + strlen( limit_str ) - 1; data/xinetd-2.3.15.3/src/redirect.c:181:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). num_read = read(RedirDescrip, data/xinetd-2.3.15.3/src/redirect.c:211:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). num_read = read(RedirServerFd, data/xinetd-2.3.15.3/src/service.c:312:13: [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(bind_retry_delay); data/xinetd-2.3.15.3/src/service.c:710:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (retval = read(bannerfd, tmpbuf, sizeof(tmpbuf))) ) { data/xinetd-2.3.15.3/src/service.c:751:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (retval = read(bannerfd, tmpbuf, sizeof(tmpbuf))) ) { data/xinetd-2.3.15.3/src/service.c:790:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (retval = read(bannerfd, tmpbuf, sizeof(tmpbuf))) ) { data/xinetd-2.3.15.3/src/signals.c:472:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret_val = read(signals_pending[0], &sig, sizeof(sig)); data/xinetd-2.3.15.3/src/sio/impl.h:127: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). (void) write( 2, s1, strlen( s1 ) ) ; \ data/xinetd-2.3.15.3/src/sio/impl.h:128: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). (void) write( 2, s2, strlen( s2 ) ) ; \ data/xinetd-2.3.15.3/src/sio/impl.h:129: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). (void) write( 2, s3, strlen( s3 ) ) ; \ data/xinetd-2.3.15.3/src/sio/impl.h:130: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). (void) write( 2, s4, strlen( s4 ) ) ; \ data/xinetd-2.3.15.3/src/sio/impl.h:131: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). (void) write( 2, s5, strlen( s5 ) ) ; \ data/xinetd-2.3.15.3/src/sio/siosup.c:478:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void) write( 2, s, strlen( s ) ) ; data/xinetd-2.3.15.3/src/sio/siosup.c:647:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( fd, idp->buf, idp->buffer_size ) ; data/xinetd-2.3.15.3/src/sio/siosup.c:711:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cc = read( fd, idp->end, (size_t)b_left ) ; data/xinetd-2.3.15.3/src/sio/sprint.c:185:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen( strcpy( buf, p ) ) ; data/xinetd-2.3.15.3/src/sio/sprint.c:579:15: [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). s_len = strlen( s ) ; data/xinetd-2.3.15.3/src/sio/sprint.c:628:14: [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). s_len = strlen( s ) ; data/xinetd-2.3.15.3/src/str/strparse.c:146:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). last = start + strlen( start ) ; data/xinetd-2.3.15.3/src/str/strparse.c:169:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( retval, start, (size_t)len )[ len ] = '\0' ; data/xinetd-2.3.15.3/src/str/strutil.c:85: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 long l1 = strlen( s1 ) ; data/xinetd-2.3.15.3/src/str/strutil.c:86: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 long l2 = strlen( s2 ) ; data/xinetd-2.3.15.3/src/util.c:321:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t num=0, len = strlen(ptr); ANALYSIS SUMMARY: Hits = 153 Lines analyzed = 22607 in approximately 0.51 seconds (43989 lines/second) Physical Source Lines of Code (SLOC) = 15800 Hits@level = [0] 22 [1] 46 [2] 91 [3] 2 [4] 14 [5] 0 Hits@level+ = [0+] 175 [1+] 153 [2+] 107 [3+] 16 [4+] 14 [5+] 0 Hits/KSLOC@level+ = [0+] 11.0759 [1+] 9.68354 [2+] 6.77215 [3+] 1.01266 [4+] 0.886076 [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.