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/iperf-2.0.14a+dfsg1/src/isochronous.cpp Examining data/iperf-2.0.14a+dfsg1/src/active_hosts.cpp Examining data/iperf-2.0.14a+dfsg1/src/histogram.c Examining data/iperf-2.0.14a+dfsg1/src/tcp_window_size.c Examining data/iperf-2.0.14a+dfsg1/src/Listener.cpp Examining data/iperf-2.0.14a+dfsg1/src/checkpdfs.c Examining data/iperf-2.0.14a+dfsg1/src/sockets.c Examining data/iperf-2.0.14a+dfsg1/src/Server.cpp Examining data/iperf-2.0.14a+dfsg1/src/igmp_querier.c Examining data/iperf-2.0.14a+dfsg1/src/Launch.cpp Examining data/iperf-2.0.14a+dfsg1/src/checkisoch.cpp Examining data/iperf-2.0.14a+dfsg1/src/checksums.c Examining data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c Examining data/iperf-2.0.14a+dfsg1/src/Reporter.c Examining data/iperf-2.0.14a+dfsg1/src/pdfs.c Examining data/iperf-2.0.14a+dfsg1/src/Extractor.c Examining data/iperf-2.0.14a+dfsg1/src/Reports.c Examining data/iperf-2.0.14a+dfsg1/src/checkdelay.c Examining data/iperf-2.0.14a+dfsg1/src/packet_ring.c Examining data/iperf-2.0.14a+dfsg1/src/gnu_getopt_long.c Examining data/iperf-2.0.14a+dfsg1/src/Locale.c Examining data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c Examining data/iperf-2.0.14a+dfsg1/src/SocketAddr.c Examining data/iperf-2.0.14a+dfsg1/src/Client.cpp Examining data/iperf-2.0.14a+dfsg1/src/stdio.c Examining data/iperf-2.0.14a+dfsg1/src/main.cpp Examining data/iperf-2.0.14a+dfsg1/src/Settings.cpp Examining data/iperf-2.0.14a+dfsg1/src/PerfSocket.cpp Examining data/iperf-2.0.14a+dfsg1/include/headers.h Examining data/iperf-2.0.14a+dfsg1/include/histogram.h Examining data/iperf-2.0.14a+dfsg1/include/active_hosts.h Examining data/iperf-2.0.14a+dfsg1/include/delay.h Examining data/iperf-2.0.14a+dfsg1/include/Thread.h Examining data/iperf-2.0.14a+dfsg1/include/gettimeofday.h Examining data/iperf-2.0.14a+dfsg1/include/Timestamp.hpp Examining data/iperf-2.0.14a+dfsg1/include/PerfSocket.hpp Examining data/iperf-2.0.14a+dfsg1/include/Client.hpp Examining data/iperf-2.0.14a+dfsg1/include/packet_ring.h Examining data/iperf-2.0.14a+dfsg1/include/config.win32.h Examining data/iperf-2.0.14a+dfsg1/include/Server.hpp Examining data/iperf-2.0.14a+dfsg1/include/snprintf.h Examining data/iperf-2.0.14a+dfsg1/include/SocketAddr.h Examining data/iperf-2.0.14a+dfsg1/include/Reporter.h Examining data/iperf-2.0.14a+dfsg1/include/gnu_getopt.h Examining data/iperf-2.0.14a+dfsg1/include/payloads.h Examining data/iperf-2.0.14a+dfsg1/include/Condition.h Examining data/iperf-2.0.14a+dfsg1/include/Locale.h Examining data/iperf-2.0.14a+dfsg1/include/inet_aton.h Examining data/iperf-2.0.14a+dfsg1/include/checksums.h Examining data/iperf-2.0.14a+dfsg1/include/util.h Examining data/iperf-2.0.14a+dfsg1/include/Extractor.h Examining data/iperf-2.0.14a+dfsg1/include/Settings.hpp Examining data/iperf-2.0.14a+dfsg1/include/Mutex.h Examining data/iperf-2.0.14a+dfsg1/include/isochronous.hpp Examining data/iperf-2.0.14a+dfsg1/include/Listener.hpp Examining data/iperf-2.0.14a+dfsg1/include/version.h Examining data/iperf-2.0.14a+dfsg1/include/pdfs.h Examining data/iperf-2.0.14a+dfsg1/include/Write_ack.hpp Examining data/iperf-2.0.14a+dfsg1/compat/error.c Examining data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c Examining data/iperf-2.0.14a+dfsg1/compat/snprintf.c Examining data/iperf-2.0.14a+dfsg1/compat/gettimeofday.c Examining data/iperf-2.0.14a+dfsg1/compat/string.c Examining data/iperf-2.0.14a+dfsg1/compat/signal.c Examining data/iperf-2.0.14a+dfsg1/compat/inet_pton.c Examining data/iperf-2.0.14a+dfsg1/compat/delay.c Examining data/iperf-2.0.14a+dfsg1/compat/Thread.c FINAL RESULTS: data/iperf-2.0.14a+dfsg1/compat/Thread.c:138:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = snprintf(NULL, 0, logformat, level, tid, timestamp, format); data/iperf-2.0.14a+dfsg1/compat/Thread.c:141:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = snprintf(newformat, len, logformat, level, tid, timestamp, format); data/iperf-2.0.14a+dfsg1/compat/Thread.c:143:13: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. len = vprintf(newformat, args); data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:73:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. if ( (size_t)sprintf(tmp, fmt, src[0], src[1], src[2], src[3]) >= size ) { data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:76:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, tmp); data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:176:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, tmp); data/iperf-2.0.14a+dfsg1/compat/snprintf.c:80:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int snprintf(char *buf, size_t size, const char *fmt, ...) { data/iperf-2.0.14a+dfsg1/compat/snprintf.c:85:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, fmt, ap); /* Sigh, some vsprintf's return ptr, not length */ data/iperf-2.0.14a+dfsg1/include/headers.h:153:17: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/iperf-2.0.14a+dfsg1/include/headers.h:153:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/iperf-2.0.14a+dfsg1/include/snprintf.h:33:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int snprintf(char *buf, size_t size, const char *fmt, ...); data/iperf-2.0.14a+dfsg1/src/Client.cpp:1162:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_no_ack, mySocket, (isModeTime(mSettings) ? 10 : 1)); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:111: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(report_outoforder, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:116: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(report_l2statistics, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:137:5: [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(report_bw_sum_fullduplex_format, stats->transferID, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:143:5: [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(report_bw_sum_fullduplex_enhanced_format, stats->transferID, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:149:5: [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(report_bw_format, stats->transferID, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:155:5: [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(report_bw_read_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:175: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(report_bw_read_enhanced_netpwr_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:196: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(report_bw_read_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:226:5: [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(report_bw_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:235:5: [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(report_bw_write_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:247: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(report_bw_write_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:257: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(report_bw_write_enhanced_nocwnd_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:273:5: [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(report_udp_fullduplex_format, stats->transferID, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:280:5: [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(report_udp_fullduplex_enhanced_format, stats->transferID, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:287:5: [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(report_udp_fullduplex_sum_format, stats->ts.iStart, stats->ts.iEnd, outbuffer, outbufferext, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:295:5: [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(report_bw_jitter_loss_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:306:5: [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(report_bw_jitter_loss_pps_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:319: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(report_bw_jitter_loss_suppress_enhanced_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:329: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(report_bw_jitter_loss_enhanced_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:351: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(report_bw_jitter_loss_suppress_enhanced_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:364: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. printf(report_bw_jitter_loss_suppress_enhanced_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:374: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. printf(report_bw_jitter_loss_enhanced_isoch_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:400:5: [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(report_bw_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:408:5: [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(report_bw_pps_enhanced_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:418:5: [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(report_bw_pps_enhanced_isoch_format, stats->transferID, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:432:5: [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(report_sum_bw_jitter_loss_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:438: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(report_sum_outoforder, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:446:5: [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(report_sumcnt_bw_jitter_loss_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:452: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(report_sum_outoforder, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:460:5: [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(report_sum_bw_format, stats->ts.iStart, stats->ts.iEnd, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:467:5: [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(report_sumcnt_bw_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:474:5: [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(report_sum_bw_pps_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:483:5: [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(report_sum_bw_pps_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:493:5: [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(report_sum_bw_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:500:5: [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(report_sum_bw_read_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:516:5: [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(report_sumcnt_bw_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:523:5: [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(report_sumcnt_bw_write_enhanced_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:534:5: [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(report_sum_bw_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:541:5: [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(report_sumcnt_bw_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:548:5: [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(report_sum_bw_write_enhanced_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:558:5: [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(report_sumcnt_bw_write_enhanced_format, stats->threadcnt, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:605:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(__ips_ports_string, REPORT_ADDRLEN*2+10, reportCSV_peer, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:631:5: [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(reportCSV_bw_jitter_loss_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:653:5: [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(reportCSV_bw_format, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:677: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(warn_window_requested, outbuffer); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:681:5: [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(isEnhanced(report->common) ? server_pid_port : server_port, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:686:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bind_address_iface, report->common->Localhost, report->common->Ifrname); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:700:7: [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(bind_address, host_ip); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:708:7: [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(join_multicast, report->common->Localhost); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:710:7: [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(join_multicast_starg_dev, report->common->Localhost,report->common->Ifrname); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:712:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(join_multicast_sg, report->common->SSMMulticastStr, report->common->Localhost); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:714:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(join_multicast_sg_dev, report->common->SSMMulticastStr, report->common->Localhost, report->common->Ifrname); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:745: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(isEnhanced(report->common) ? client_pid_port : client_port, report->common->Host, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:749: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(client_pid_port_dev, report->common->Host, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:764: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(client_isochronous, report->isochstats.mFPS, meanbuf, variancebuf, (report->isochstats.mBurstInterval/1000.0), (report->isochstats.mBurstIPG/1000.0)); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:769:9: [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(client_fq_pacing,outbuffer); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:836: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. printf(report_mss_unsupported, report->MSS); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:875: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(report_peer_dev, report->common->socket, local_addr, report->common->Ifrname, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:881: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(report_peer, report->common->socket, local_addr, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:889: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(report_peer_dev, report->common->socket, local_addr, report->common->Ifrname, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:894: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(report_peer, report->common->socket, \ data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:912: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(client_report_epoch_start_current, report->common->socket, start_timebuf, report->epochStartTime.tv_sec, report->epochStartTime.tv_usec, now_timebuf); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:917: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(client_report_epoch_start, report->common->socket, start_timebuf, report->epochStartTime.tv_sec, report->epochStartTime.tv_usec); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:965:5: [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(server_reporting, report->info.transferID); data/iperf-2.0.14a+dfsg1/src/Reporter.c:1133: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(report_sumcnt_datagrams, stats->threadcnt, stats->total.Datagrams.current); data/iperf-2.0.14a+dfsg1/src/Reporter.c:1180: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. printf(report_datagrams, stats->transferID, stats->total.Datagrams.current); data/iperf-2.0.14a+dfsg1/src/Reports.c:69:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*dst), src); data/iperf-2.0.14a+dfsg1/src/Reports.c:833:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_ack_failed, stats->common->socket); data/iperf-2.0.14a+dfsg1/src/Server.cpp:102:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_buffer_too_small, mSettings->mBufLen); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:307:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mHost, from->mHost); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:311:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mOutputFileName, from->mOutputFileName); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:315:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mLocalhost, from->mLocalhost); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:319:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mFileName, from->mFileName); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:323:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mRxHistogramStr, from->mRxHistogramStr); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:327:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mSSMMulticastStr, from->mSSMMulticastStr); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:331:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mIfrname, from->mIfrname); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:335:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mIfrnametx, from->mIfrnametx); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:339:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mIsochronousStr, from->mIsochronousStr); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:343:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mCongestion, from->mCongestion); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:359:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*into)->mIsochronousStr, from->mIsochronousStr); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:453:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:473:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mHost, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:483:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_server_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:487:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_compatibility_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:492:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_single_threaded, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:513:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:521:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:540:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, report_interval_small, mExtSettings->mInterval); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:570:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mOutputFileName, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:579:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_server_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:583:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_compatibility_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:590:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_client_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:619:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_window_small, mExtSettings->mTCPWin); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:647:25: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_report, *optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:667:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_report_style, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:675:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mLocalhost, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:682:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_compatibility_option, data/iperf-2.0.14a+dfsg1/src/Settings.cpp:695:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_server_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:701:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mFileName, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:706:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_client_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:710:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mSSMMulticastStr, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:716:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_server_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:728:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_server_option, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:748:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_invalid_single_threaded, option); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:803:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mCongestion, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:902:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mRxHistogramStr, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:934:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mIsochronousStr, optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1202:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, results); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1206:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp, results); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1281:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mIfrname, results); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1319:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mExtSettings->mIfrnametx, results); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1331:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mExtSettings->mHost, mExtSettings->mIfrnametx); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1353:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(outarg,inarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1362:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(outarg,inarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1398:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*listener)->mHost, client->mHost); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1402:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*listener)->mLocalhost, client->mLocalhost); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:262:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, format, inHostname); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:546:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(inSettings->mIfrname, ifa->ifa_name); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:559:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(copy,(const char *)inSettings->mHost); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:562:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(inSettings->mIfrname, results); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:574:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(inSettings->mIfrname, ifa->ifa_name); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:587:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(inSettings->mIfrname, ifa->ifa_name); data/iperf-2.0.14a+dfsg1/src/histogram.c:83:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(this->myname, name); data/iperf-2.0.14a+dfsg1/src/histogram.c:186:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(h->outbuf, h->myname); data/iperf-2.0.14a+dfsg1/src/histogram.c:187:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->outbuf, "[%3d] " IPERFTimeFrmt " sec %s%s%s bin(w=%d%s):cnt(%d)=", h->id, start, end, h->myname, (h->final ? "(f)" : ""), "-PDF:",h->binwidth, ((h->units == 1e3) ? "ms" : "us"), intervalpopulation); data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:79:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(mcast_queryaddr, optarg); data/iperf-2.0.14a+dfsg1/src/main.cpp:206:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, usage_short, argv[0], argv[0]); data/iperf-2.0.14a+dfsg1/src/sockets.c:86:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_mss_fail, newMSS); data/iperf-2.0.14a+dfsg1/src/sockets.c:94:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, warn_mss_notset, inMSS, newMSS); data/iperf-2.0.14a+dfsg1/src/stdio.c:320:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(outString, inLen, format, inNum, suffix); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:409:23: [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. theVariable = getenv(env_options[i].name); data/iperf-2.0.14a+dfsg1/src/checkdelay.c:89:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c=getopt(argc, argv, "a:bkd:i:r")) != -1) data/iperf-2.0.14a+dfsg1/src/checkisoch.cpp:73:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "c:f:m:v:")) != -1) { data/iperf-2.0.14a+dfsg1/src/checkpdfs.c:97:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c=getopt(argc, argv, "b:c:lm:prsv:w:")) != -1) data/iperf-2.0.14a+dfsg1/src/checkpdfs.c:137:9: [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 (random) { data/iperf-2.0.14a+dfsg1/src/checkpdfs.c:138:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned) time(&t)); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:268:23: [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. posixly_correct = getenv ("POSIXLY_CORRECT"); data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:73:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt (argc, argv, "c:dg:t:")) != -1) { data/iperf-2.0.14a+dfsg1/compat/Thread.c:129: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 timestamp[200]; data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:71: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 tmp[sizeof "255.255.255.255"]; data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:97: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 tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:161:15: [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. tp += sprintf(tp, "%x", words[i]); data/iperf-2.0.14a+dfsg1/compat/inet_pton.c:72:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 tmp[NS_INADDRSZ], *tp; data/iperf-2.0.14a+dfsg1/compat/inet_pton.c:101:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, tmp, NS_INADDRSZ); data/iperf-2.0.14a+dfsg1/compat/inet_pton.c:126:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; data/iperf-2.0.14a+dfsg1/compat/inet_pton.c:200:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, tmp, NS_IN6ADDRSZ); data/iperf-2.0.14a+dfsg1/include/Reporter.h:255: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 peerversion[PEERVERBUFSIZE]; data/iperf-2.0.14a+dfsg1/include/Reporter.h:340: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 csv_peer[CSVPEERLIMIT]; data/iperf-2.0.14a+dfsg1/include/Server.hpp:120: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 ctrl[CMSG_SPACE(sizeof(struct timeval))]; data/iperf-2.0.14a+dfsg1/include/Settings.hpp:223: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 pad1[2]; data/iperf-2.0.14a+dfsg1/src/Extractor.c:75:39: [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). if ( (mSettings->Extractor_file = fopen (fileName, "rb")) == NULL ) { data/iperf-2.0.14a+dfsg1/src/Listener.cpp:804: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 tmpaddr[200]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:56: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 outbuffer[SNBUFFERSIZE]; // Buffer for printing data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:57: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 outbufferext[SNBUFFEREXTENDSIZE]; // Buffer for printing data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:58: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 outbufferext2[SNBUFFEREXTENDSIZE]; // Buffer for printing data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:59: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 llaw_buf[100]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:567: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 __timestring[200]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:577: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 __ips_ports_string[CSVPEERLIMIT]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:579: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 local_addr[REPORT_ADDRLEN]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:580: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 remote_addr[REPORT_ADDRLEN]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:759: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 meanbuf[40]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:760: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 variancebuf[40]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:799: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 local_addr[REPORT_ADDRLEN]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:800: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 remote_addr[REPORT_ADDRLEN]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:902: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 start_timebuf[80]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:910: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 now_timebuf[80]; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:947:6: [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(report->peerversion + strlen(report->peerversion) - 1,"-alpha)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:950:6: [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(report->peerversion + strlen(report->peerversion) - 1,"-beta)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:953:6: [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(report->peerversion + strlen(report->peerversion) - 1,"-rc)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:958:6: [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(report->peerversion + strlen(report->peerversion) - 1, "-unk)"); data/iperf-2.0.14a+dfsg1/src/Reporter.c:92: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 rs[REPORTTXTMAX]; data/iperf-2.0.14a+dfsg1/src/Reports.c:314: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 rs[REPORTTXTMAX]; data/iperf-2.0.14a+dfsg1/src/Server.cpp:491:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(reportstruct->packetTime), CMSG_DATA(cmsg), sizeof(struct timeval)); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:297:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*into, from, sizeof(struct thread_Settings)); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:574:35: [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). mExtSettings->mPort = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:723: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(mExtSettings->mFileName,"<stdin>"); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:731:41: [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). mExtSettings->mListenPort = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:745:38: [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). mExtSettings->mThreads = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:750:42: [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). mExtSettings->mThreads = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:772:34: [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). mExtSettings->mTTL = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:881:39: [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). mExtSettings->connectonly_count = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1211:33: [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). mExtSettings->mRXbinsize = atoi(tmp); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1295:29: [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). mExtSettings->mBindPort = atoi(results); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:211:21: [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(inSockAddr, (itr->ai_addr), data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:224: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. memcpy(inSockAddr, (itr->ai_addr), data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:268:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(((struct sockaddr_in*)inSockAddr)->sin_addr), *(hostP->h_addr_list), data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:570: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(&v4, &addr->sin6_addr.s6_addr[12], 4); data/iperf-2.0.14a+dfsg1/src/active_hosts.cpp:71: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 tmpaddr[200]; data/iperf-2.0.14a+dfsg1/src/active_hosts.cpp:82: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 lookupaddr[200]; data/iperf-2.0.14a+dfsg1/src/active_hosts.cpp:83: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 findaddr[200]; data/iperf-2.0.14a+dfsg1/src/checkdelay.c:98:14: [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). delay = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkdelay.c:101: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). loopcount = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkdelay.c:105: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). affinity=atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkisoch.cpp:76:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkisoch.cpp:79: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). frequency = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkpdfs.c:100:17: [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). bincount = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/checkpdfs.c:103:14: [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). count = atoi(optarg); data/iperf-2.0.14a+dfsg1/src/histogram.c:226:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. n += sprintf(h->outbuf + n,"%d:%d,", ix+1, delta); data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:61: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 mcast_queryaddr[20] = "224.0.0.1"; data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:104: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). queryinterval = atoi(tvalue); data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:109:14: [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). sendcount = atoi(cvalue); data/iperf-2.0.14a+dfsg1/src/igmp_querier.c:162: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 buf[IGMP_HEADER_SIZE]; data/iperf-2.0.14a+dfsg1/src/packet_ring.c:123:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((pr->data + writeindex), metapacket, sizeof(struct ReportStruct)); data/iperf-2.0.14a+dfsg1/compat/Thread.c:91:2: [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(rs,"data", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:94:2: [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(rs,"sum", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:97:2: [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(rs,"settings", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:100:2: [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(rs,"connection", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:103:2: [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(rs,"server", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:106:2: [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(rs,"unknown", REPORTTXTMAX); data/iperf-2.0.14a+dfsg1/compat/Thread.c:120: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). snprintf(×tr[strlen(timestr)], strlen(timestr), ".%09ld", t1.tv_nsec); data/iperf-2.0.14a+dfsg1/compat/Thread.c:120:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(×tr[strlen(timestr)], strlen(timestr), ".%09ld", t1.tv_nsec); data/iperf-2.0.14a+dfsg1/compat/inet_ntop.c:158:19: [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). tp += strlen(tp); data/iperf-2.0.14a+dfsg1/compat/snprintf.c:86: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). n = strlen(buf); data/iperf-2.0.14a+dfsg1/include/Reporter.h:201:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct ReadStats read; data/iperf-2.0.14a+dfsg1/include/headers.h:159:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define read( s, b, l ) recv( s, (char*) b, l, 0 ) data/iperf-2.0.14a+dfsg1/include/headers.h:164:5: [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. int usleep(useconds_t usec); data/iperf-2.0.14a+dfsg1/src/Client.cpp:1149:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(mySocket, mBuf, MAXUDPBUF); data/iperf-2.0.14a+dfsg1/src/PerfSocket.cpp:94: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). Socklen_t len = strlen(inSettings->mCongestion) + 1; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:158:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:159:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[0], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:160:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[1], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:161:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[2], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:162:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[3], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:163:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[4], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:164:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[5], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:165:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[6], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:166:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[7]); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:186:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:187:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[0], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:188:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[1], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:189:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[2], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:190:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[3], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:191:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[4], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:192:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[5], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:193:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[6], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:194:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[7]); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:207:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:208:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[0], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:209:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[1], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:210:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[2], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:211:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[3], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:212:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[4], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:213:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[5], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:214:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[6], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:215:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[7]); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:503:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead, data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:504:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[0], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:505:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[1], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:506:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[2], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:507:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[3], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:508:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[4], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:509:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[5], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:510:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[6], data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:511:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[7]); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:573:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf((__timestring + strlen(__timestring)), 160, ".%.3d", (int) (timestamp->tv_usec/1000)); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:626:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&stats->csv_peer[0], &__ips_ports_string[0], CSVPEERLIMIT); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:648:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&stats->csv_peer[0], &__ips_ports_string[0], CSVPEERLIMIT); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:808:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (isoch)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:809:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:812:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (full-duplex)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:813:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:815:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (reverse)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:816:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:818:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (fq)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:819:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:823:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (trip-times)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:824:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:827:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (l2mode)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:828:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:831:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (no-udp-fin)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:832:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:838:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (%s%d)", "MSS=", report->MSS); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:839:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:844:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), "%s", report->peerversion); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:845:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:850:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (ct=%4.2f ms)", report->connecttime);; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:851:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b += strlen(b); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:855:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(b, SNBUFFERSIZE-strlen(b), " (ht=%4.2f s)", report->txholdbacktime);; data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:874:67: [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 (isEnhanced(report->common) && report->common->Ifrname && (strlen(report->common->Ifrname) < SNBUFFERSIZE-strlen(b))) { data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:874:114: [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 (isEnhanced(report->common) && report->common->Ifrname && (strlen(report->common->Ifrname) < SNBUFFERSIZE-strlen(b))) { data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:888: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). if (isEnhanced(report->common) && report->common->Ifrname && (strlen(report->common->Ifrname) < SNBUFFERSIZE-strlen(b))) { data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:888:115: [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 (isEnhanced(report->common) && report->common->Ifrname && (strlen(report->common->Ifrname) < SNBUFFERSIZE-strlen(b))) { data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:947:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(report->peerversion + strlen(report->peerversion) - 1,"-alpha)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:950:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(report->peerversion + strlen(report->peerversion) - 1,"-beta)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:953:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(report->peerversion + strlen(report->peerversion) - 1,"-rc)"); data/iperf-2.0.14a+dfsg1/src/ReportOutputs.c:958:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(report->peerversion + strlen(report->peerversion) - 1, "-unk)"); data/iperf-2.0.14a+dfsg1/src/Reporter.c:737:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead++; data/iperf-2.0.14a+dfsg1/src/Reporter.c:738:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.totcntRead++; data/iperf-2.0.14a+dfsg1/src/Reporter.c:739:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bin = (int)floor((packet->packetLen -1)/stats->sock_callstats.read.binsize); data/iperf-2.0.14a+dfsg1/src/Reporter.c:741:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[bin]++; data/iperf-2.0.14a+dfsg1/src/Reporter.c:742:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.totbins[bin]++; data/iperf-2.0.14a+dfsg1/src/Reporter.c:951:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead = 0; data/iperf-2.0.14a+dfsg1/src/Reporter.c:953:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[ix] = 0; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1194:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.cntRead += stats->sock_callstats.read.cntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1194:72: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.cntRead += stats->sock_callstats.read.cntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1195:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.totcntRead += stats->sock_callstats.read.cntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1195:75: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.totcntRead += stats->sock_callstats.read.cntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1197:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.bins[ix] += stats->sock_callstats.read.bins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1197:70: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.bins[ix] += stats->sock_callstats.read.bins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1198:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.totbins[ix] += stats->sock_callstats.read.bins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1198:73: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sumstats->sock_callstats.read.totbins[ix] += stats->sock_callstats.read.bins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1214:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead = stats->sock_callstats.read.totcntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1214:68: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead = stats->sock_callstats.read.totcntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1216:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[ix] = stats->sock_callstats.read.totbins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1216:66: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[ix] = stats->sock_callstats.read.totbins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1310:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead = stats->sock_callstats.read.totcntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1310:65: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.cntRead = stats->sock_callstats.read.totcntRead; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1312:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[ix] = stats->sock_callstats.read.totbins[ix]; data/iperf-2.0.14a+dfsg1/src/Reporter.c:1312:63: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stats->sock_callstats.read.bins[ix] = stats->sock_callstats.read.totbins[ix]; data/iperf-2.0.14a+dfsg1/src/Reports.c:64:29: [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). *dst = (char *) calloc(1, (strlen(src) + 1)); data/iperf-2.0.14a+dfsg1/src/Reports.c:534:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ireport->info.sock_callstats.read.binsize = inSettings->mBufLen / 8; data/iperf-2.0.14a+dfsg1/src/Reports.c:820:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(stats->common->socket, ackPacket, ackpacket_length); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:306: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). (*into)->mHost = new char[ strlen(from->mHost) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:310:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mOutputFileName = new char[ strlen(from->mOutputFileName) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:314:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mLocalhost = new char[ strlen(from->mLocalhost) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:318:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mFileName = new char[ strlen(from->mFileName) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:322:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mRxHistogramStr = new char[ strlen(from->mRxHistogramStr) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:326:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mSSMMulticastStr = new char[ strlen(from->mSSMMulticastStr) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:330:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mIfrname = (char *) calloc(1, strlen(from->mIfrname) + 1); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:334:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mIfrnametx = (char *) calloc(1, strlen(from->mIfrnametx) + 1); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:338:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mIsochronousStr = new char[ strlen(from->mIsochronousStr) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:342:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mCongestion = new char[ strlen(from->mCongestion) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:358:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*into)->mIsochronousStr = new char[ strlen(from->mIsochronousStr) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:452:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *tmp= new char [strlen(optarg) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:472:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mExtSettings->mHost = new char[ strlen(optarg) + 1 ]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:512:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *tmp= new char [strlen(optarg) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:569:54: [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). mExtSettings->mOutputFileName = new char[strlen(optarg)+1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:674: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). mExtSettings->mLocalhost = new char[ strlen(optarg) + 1 ]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:700:48: [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). mExtSettings->mFileName = new char[strlen(optarg)+1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:709:55: [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). mExtSettings->mSSMMulticastStr = new char[strlen(optarg)+1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:722:48: [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). mExtSettings->mFileName = new char[strlen("<stdin>")+1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:802:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mExtSettings->mCongestion = new char[strlen(optarg)+1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:901:49: [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). mExtSettings->mRxHistogramStr = new char[ strlen(optarg) + 1 ]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:933:49: [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). mExtSettings->mIsochronousStr = new char[ strlen(optarg) + 1 ]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:960: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). int len = strlen(v6addr); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1201:28: [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 *tmp = new char [strlen(results) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1213:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((results = strtok(results+strlen(results)+1, ",")) != NULL) { data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1280:49: [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). mExtSettings->mIfrname = (char *) calloc(1,strlen(results) + 1); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1318:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mExtSettings->mIfrnametx = (char *) calloc(1,strlen(results) + 1); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1330:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(mExtSettings->mHost, "%"); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1352: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). int len = strlen(inarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1361: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). int len = strlen(inarg); data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1397:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (*listener)->mHost = new char[strlen(client->mHost) + 1]; data/iperf-2.0.14a+dfsg1/src/Settings.cpp:1401:48: [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). (*listener)->mLocalhost = new char[strlen(client->mLocalhost) + 1]; data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:545: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). inSettings->mIfrname = calloc (strlen(ifa->ifa_name) + 1, sizeof(char)); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:558:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *copy = (char *)malloc(strlen(inSettings->mHost)+1); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:561:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inSettings->mIfrname = calloc (strlen(results) + 1, sizeof(char)); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:573:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inSettings->mIfrname = calloc (strlen(ifa->ifa_name) + 1, sizeof(char)); data/iperf-2.0.14a+dfsg1/src/SocketAddr.c:586:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inSettings->mIfrname = calloc (strlen(ifa->ifa_name) + 1, sizeof(char)); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:470: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). == (unsigned int) strlen (p->name) ) { data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:489: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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:518: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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:531: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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:536: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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:635:65: [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 ( (unsigned int) (nameend - nextchar) == strlen (p->name) ) { data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:653:29: [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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:670:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:681:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/gnu_getopt.c:685:29: [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). nextchar += strlen (nextchar); data/iperf-2.0.14a+dfsg1/src/histogram.c:67:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). this->myname = (char *) malloc(sizeof(strlen(name))); data/iperf-2.0.14a+dfsg1/src/histogram.c:74:58: [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). this->outbuf = (char *) malloc(120 + (32*bincount) + strlen(name)); data/iperf-2.0.14a+dfsg1/src/histogram.c:188: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). n = strlen(h->outbuf); data/iperf-2.0.14a+dfsg1/src/histogram.c:230: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). h->outbuf[strlen(h->outbuf)-1] = '\0'; data/iperf-2.0.14a+dfsg1/src/sockets.c:140:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(inSock, ptr, nleft); ANALYSIS SUMMARY: Hits = 376 Lines analyzed = 21576 in approximately 0.72 seconds (30138 lines/second) Physical Source Lines of Code (SLOC) = 13283 Hits@level = [0] 228 [1] 161 [2] 65 [3] 8 [4] 142 [5] 0 Hits@level+ = [0+] 604 [1+] 376 [2+] 215 [3+] 150 [4+] 142 [5+] 0 Hits/KSLOC@level+ = [0+] 45.4717 [1+] 28.3069 [2+] 16.1861 [3+] 11.2926 [4+] 10.6904 [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.