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/sip-tester-3.6.0/src/call_generation_task.cpp Examining data/sip-tester-3.6.0/src/stat.cpp Examining data/sip-tester-3.6.0/src/milenage.c Examining data/sip-tester-3.6.0/src/comp.c Examining data/sip-tester-3.6.0/src/sslsocket.cpp Examining data/sip-tester-3.6.0/src/ratetask.cpp Examining data/sip-tester-3.6.0/src/listener.cpp Examining data/sip-tester-3.6.0/src/task.cpp Examining data/sip-tester-3.6.0/src/prepare_pcap.c Examining data/sip-tester-3.6.0/src/time.cpp Examining data/sip-tester-3.6.0/src/message.cpp Examining data/sip-tester-3.6.0/src/deadcall.cpp Examining data/sip-tester-3.6.0/src/strings.cpp Examining data/sip-tester-3.6.0/src/call.cpp Examining data/sip-tester-3.6.0/src/watchdog.cpp Examining data/sip-tester-3.6.0/src/rtpstream.cpp Examining data/sip-tester-3.6.0/src/xp_parser_ut.cpp Examining data/sip-tester-3.6.0/src/md5.c Examining data/sip-tester-3.6.0/src/auth.cpp Examining data/sip-tester-3.6.0/src/variables.cpp Examining data/sip-tester-3.6.0/src/infile.cpp Examining data/sip-tester-3.6.0/src/sip_parser.cpp Examining data/sip-tester-3.6.0/src/socket.cpp Examining data/sip-tester-3.6.0/src/scenario.cpp Examining data/sip-tester-3.6.0/src/socketowner.cpp Examining data/sip-tester-3.6.0/src/rijndael.c Examining data/sip-tester-3.6.0/src/logger.cpp Examining data/sip-tester-3.6.0/src/sipp_unittest.cpp Examining data/sip-tester-3.6.0/src/reporttask.cpp Examining data/sip-tester-3.6.0/src/screen.cpp Examining data/sip-tester-3.6.0/src/sipp.cpp Examining data/sip-tester-3.6.0/src/xp_parser.c Examining data/sip-tester-3.6.0/src/actions.cpp Examining data/sip-tester-3.6.0/src/send_packets.c Examining data/sip-tester-3.6.0/example/fortune.cpp Examining data/sip-tester-3.6.0/include/version.h Examining data/sip-tester-3.6.0/include/infile.hpp Examining data/sip-tester-3.6.0/include/strings.hpp Examining data/sip-tester-3.6.0/include/stub-version.h Examining data/sip-tester-3.6.0/include/rijndael.h Examining data/sip-tester-3.6.0/include/rtpstream.hpp Examining data/sip-tester-3.6.0/include/ratetask.hpp Examining data/sip-tester-3.6.0/include/logger.hpp Examining data/sip-tester-3.6.0/include/auth.hpp Examining data/sip-tester-3.6.0/include/sslsocket.hpp Examining data/sip-tester-3.6.0/include/send_packets.h Examining data/sip-tester-3.6.0/include/message.hpp Examining data/sip-tester-3.6.0/include/task.hpp Examining data/sip-tester-3.6.0/include/listener.hpp Examining data/sip-tester-3.6.0/include/defines.h Examining data/sip-tester-3.6.0/include/deadcall.hpp Examining data/sip-tester-3.6.0/include/call.hpp Examining data/sip-tester-3.6.0/include/comp.h Examining data/sip-tester-3.6.0/include/variables.hpp Examining data/sip-tester-3.6.0/include/scenario.hpp Examining data/sip-tester-3.6.0/include/time.hpp Examining data/sip-tester-3.6.0/include/reporttask.hpp Examining data/sip-tester-3.6.0/include/md5.h Examining data/sip-tester-3.6.0/include/screen.hpp Examining data/sip-tester-3.6.0/include/xp_parser.h Examining data/sip-tester-3.6.0/include/actions.hpp Examining data/sip-tester-3.6.0/include/endianshim.h Examining data/sip-tester-3.6.0/include/call_generation_task.hpp Examining data/sip-tester-3.6.0/include/socket.hpp Examining data/sip-tester-3.6.0/include/stat.hpp Examining data/sip-tester-3.6.0/include/sipp.hpp Examining data/sip-tester-3.6.0/include/watchdog.hpp Examining data/sip-tester-3.6.0/include/socketowner.hpp Examining data/sip-tester-3.6.0/include/prepare_pcap.h Examining data/sip-tester-3.6.0/include/sip_parser.hpp Examining data/sip-tester-3.6.0/include/milenage.h FINAL RESULTS: data/sip-tester-3.6.0/src/call.cpp:2615:9: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(next_req_url, contact, MAX_HEADER_LEN - 1); data/sip-tester-3.6.0/src/call.cpp:3136:9: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(rr, get_header_content(msg, "Record-Route:"), MAX_HEADER_LEN - 1); data/sip-tester-3.6.0/src/call.cpp:3137:9: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(contact, get_header_content(msg, "Contact:"), MAX_HEADER_LEN - 1); data/sip-tester-3.6.0/example/fortune.cpp:45:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("/usr/bin/fortune"); data/sip-tester-3.6.0/include/call.hpp:320:64: [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. int _callDebug(const char *fmt, ...) __attribute__((format(printf, 2, 3))); data/sip-tester-3.6.0/include/defines.h:24:61: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void ERROR(const char *fmt, ...) __attribute__ ((format(printf, 1, 2), noreturn)); data/sip-tester-3.6.0/include/defines.h:25:62: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void WARNING(const char *fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/include/defines.h:26:64: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void ERROR_NO(const char *fmt, ...) __attribute__ ((format(printf, 1, 2), noreturn)); data/sip-tester-3.6.0/include/defines.h:27:65: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void WARNING_NO(const char *fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/include/logger.hpp:92:59: [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. int TRACE_MSG(const char* fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/include/logger.hpp:93:65: [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. int TRACE_CALLDEBUG(const char* fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/include/logger.hpp:94:64: [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. int TRACE_SHORTMSG(const char* fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/include/logger.hpp:95:57: [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. int LOG_MSG(const char* fmt, ...) __attribute__((format(printf, 1, 2))); data/sip-tester-3.6.0/src/actions.cpp:363: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(M_lookingChar, P_value); data/sip-tester-3.6.0/src/actions.cpp:488:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(M_pcapArgs->file, F_OK)) { data/sip-tester-3.6.0/src/actions.cpp:505: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(M_rtpstream_actinfo.filename, P_value); data/sip-tester-3.6.0/src/auth.cpp:275:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "sip:%s", auth_uri); data/sip-tester-3.6.0/src/auth.cpp:363:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result, "createAuthHeaderMD5: couldn't parse realm in '%s'", auth); data/sip-tester-3.6.0/src/auth.cpp:367:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result, "Digest username=\"%s\",realm=\"%s\"", user, realm); data/sip-tester-3.6.0/src/auth.cpp:371:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sipuri, "sip:%s", uri); data/sip-tester-3.6.0/src/auth.cpp:373:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sipuri, "sip:%s", auth_uri); data/sip-tester-3.6.0/src/auth.cpp:390:9: [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(result, tmp); data/sip-tester-3.6.0/src/auth.cpp:393:5: [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(result, tmp); data/sip-tester-3.6.0/src/auth.cpp:415:5: [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(result, tmp2); data/sip-tester-3.6.0/src/auth.cpp:419:9: [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(result, tmp2); data/sip-tester-3.6.0/src/auth.cpp:781:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s,auts=\"%s\"", result, auts_hex); data/sip-tester-3.6.0/src/auth.cpp:782:9: [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(result, tmp); data/sip-tester-3.6.0/src/call.cpp:561:15: [4] (format) vsnprintf: 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 ret = vsnprintf(NULL, 0, fmt, ap); data/sip-tester-3.6.0/src/call.cpp:574:20: [4] (format) vsnprintf: 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. debugLength += vsnprintf(debugBuffer + debugLength, ret + 1, fmt, ap); data/sip-tester-3.6.0/src/call.cpp:682:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "%s: State %d", id, msg_index); data/sip-tester-3.6.0/src/call.cpp:685:9: [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(s, tmpbuf); data/sip-tester-3.6.0/src/call.cpp:689:9: [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(s, tmpbuf); data/sip-tester-3.6.0/src/call.cpp:693:9: [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(s, tmpbuf); data/sip-tester-3.6.0/src/call.cpp:697:9: [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(s, tmpbuf); data/sip-tester-3.6.0/src/call.cpp:939:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(code, "%s %d", name, i); data/sip-tester-3.6.0/src/call.cpp:964:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(with_colon, "%s:", name); data/sip-tester-3.6.0/src/call.cpp:1774: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(last_recv_msg, msg); data/sip-tester-3.6.0/src/call.cpp:1889:9: [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(dest, delimitor); data/sip-tester-3.6.0/src/call.cpp:1926:5: [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(dest, delimitor); data/sip-tester-3.6.0/src/call.cpp:2103:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", next_req_url); data/sip-tester-3.6.0/src/call.cpp:2126:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "Route: %s", dialog_route_set); data/sip-tester-3.6.0/src/call.cpp:2165:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", var->getMatchingValue()); data/sip-tester-3.6.0/src/call.cpp:2169:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", var->getString()); data/sip-tester-3.6.0/src/call.cpp:2245:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", last_header); data/sip-tester-3.6.0/src/call.cpp:2258:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", last_recv_msg); data/sip-tester-3.6.0/src/call.cpp:2263:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", last_request_uri); data/sip-tester-3.6.0/src/call.cpp:2350:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(tmp,"%s", method); data/sip-tester-3.6.0/src/call.cpp:2364:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (uri, "%s:%d", remote_ip, remote_port); data/sip-tester-3.6.0/src/call.cpp:3167:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dialog_authentication, "%s", auth); data/sip-tester-3.6.0/src/call.cpp:3194: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(last_recv_msg, msg); data/sip-tester-3.6.0/src/call.cpp:3691:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ret = system(x); // second child runs data/sip-tester-3.6.0/src/call.cpp:3916: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(last_recv_msg, msg); data/sip-tester-3.6.0/src/call.cpp:3939: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(last_recv_msg, P_recv); data/sip-tester-3.6.0/src/call.cpp:3977: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(last_recv_msg, P_recv); data/sip-tester-3.6.0/src/call.cpp:4016: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(last_recv_msg, P_recv); data/sip-tester-3.6.0/src/call.cpp:4047: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(old_last_recv_msg, last_recv_msg); data/sip-tester-3.6.0/src/call.cpp:4061: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(last_recv_msg, P_recv); data/sip-tester-3.6.0/src/call.cpp:4079: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(last_recv_msg, old_last_recv_msg); data/sip-tester-3.6.0/src/comp.c:38: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(comp_error, dlerror()); data/sip-tester-3.6.0/src/comp.c:44: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(comp_error, error); data/sip-tester-3.6.0/src/comp.c:50: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(comp_error, error); data/sip-tester-3.6.0/src/comp.c:56: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(comp_error, error); data/sip-tester-3.6.0/src/infile.cpp:227:35: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. copied += sprintf(dest + copied, tmp, printfOffset + (lineNum * printfMultiple)); data/sip-tester-3.6.0/src/logger.cpp:63:9: [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(f,"----------------------------- Statistics Screen ------- [1-9]: Change Screen --" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:66:9: [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(f,"---------------------------- Repartition Screen ------- [1-9]: Change Screen --" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:69:9: [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(f,"----------------------------- Variables Screen -------- [1-9]: Change Screen --" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:72:9: [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(f,"------------------------------ TDM map Screen --------- [1-9]: Change Screen --" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:75:9: [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(f,"--------------------------- Repartition %d Screen ------ [1-9]: Change Screen --" SIPP_ENDL, currentRepartitionToDisplay); data/sip-tester-3.6.0/src/logger.cpp:79:9: [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(f,"------------------------------ Scenario Screen -------- [1-9]: Change Screen --" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:87:9: [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(f,"------------------------------ Test Terminated --------------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:89:9: [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(f,"------- Waiting for active calls to end. Press [q] again to force exit. -------" SIPP_ENDL ); data/sip-tester-3.6.0/src/logger.cpp:91:9: [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(f,"----------------- Traffic Paused - Press [p] again to resume ------------------" SIPP_ENDL ); data/sip-tester-3.6.0/src/logger.cpp:93:9: [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(f,"-------------------------------- CPU CONGESTED ---------------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:95:9: [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(f,"------------------------------ OUTBOUND CONGESTION -----------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:100: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(f,"-----------------------3PCC extended mode - Master side -------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:103: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(f,"----------------------- 3PCC Mode - Controller A side -------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:106: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(f,"------ [+|-|*|/]: Adjust rate ---- [q]: Soft exit ---- [p]: Pause traffic -----" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:115: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(f,"------------------ 3PCC Mode - Controller A side (passive) --------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:118: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(f,"----------------------- 3PCC Mode - Controller B side -------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:121: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(f,"------------------ 3PCC extended mode - Master side (passive) --------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:124: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(f,"----------------------- 3PCC extended mode - Slave side -------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:127: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(f,"------------------------------ Sipp Server Mode -------------------------------" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:134:5: [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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:144: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("TDM Circuits in use:" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:153:35: [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. if (i%(tdm_map_c+1) == 0) printf(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp: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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:157: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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:159: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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:170: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("Action defined Per Message :" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:179:17: [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("=> Message[%u] (Receive Message) - " data/sip-tester-3.6.0/src/logger.cpp:186:17: [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("=> Message[%u] (Receive Command Message) - " data/sip-tester-3.6.0/src/logger.cpp:193:17: [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("=> Message[%u] - [%d] action(s) defined :" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:205:21: [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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:214: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("=> No action found on any messages" SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:217: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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:219: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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:241:13: [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(SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:279:17: [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("Last Error: %.60s..." SIPP_ENDL, errstart); data/sip-tester-3.6.0/src/logger.cpp:281:17: [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("Last Error: %s" SIPP_ENDL, errstart); data/sip-tester-3.6.0/src/logger.cpp:325:9: [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(f, " Timestamp: %s" SIPP_ENDL, ctime(&tim)); data/sip-tester-3.6.0/src/logger.cpp:336:9: [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 data/sip-tester-3.6.0/src/logger.cpp:353:9: [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(f, " Port Total-time Total-calls Remote-host" SIPP_ENDL data/sip-tester-3.6.0/src/logger.cpp:381:5: [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(f," %-38s %lu ms scheduler resolution" data/sip-tester-3.6.0/src/logger.cpp:392:5: [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(f," %-38s Peak was %llu calls, after %llu s" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:396:5: [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(f," %d Running, %d Paused, %d Woken up" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:409:5: [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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:414:9: [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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:422:9: [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(f," %lu/%lu/%lu %s errors (send/recv/cong)" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:428:9: [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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:437: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(f," %-38s %lu.%03lu last period RTP rate (kB/s)" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:472:9: [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(f," %-38s %.3f kB/s RTP OUT" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:476:9: [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(f," %-38s %.3f kB/s RTP IN" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:488: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(f," %-38s %lu.%03lu last period RTP rate (kB/s)" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:499: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(f," %-38s %lu.%03lu last period RTP rate (kB/s)" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:509:5: [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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:511:9: [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(f," " data/sip-tester-3.6.0/src/logger.cpp:515:9: [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(f," " data/sip-tester-3.6.0/src/logger.cpp:535:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_str, "%s", src->getMethod()); data/sip-tester-3.6.0/src/logger.cpp:659: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(f," %-9lu" SIPP_ENDL, data/sip-tester-3.6.0/src/logger.cpp:662: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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:666: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(f,SIPP_ENDL); data/sip-tester-3.6.0/src/logger.cpp:701:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_str, "%u_%s_", index, src->getMethod()); data/sip-tester-3.6.0/src/logger.cpp:744:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_str, "%u_%s_", index, curmsg->recv_request); data/sip-tester-3.6.0/src/logger.cpp:860:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (lfi->file_name, "%s_%ld_%s.log", scenario_file, (long) getpid(), lfi->name); data/sip-tester-3.6.0/src/logger.cpp:870:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_rotate_file_name, "%s_%ld_%s_%lu.%d.log", data/sip-tester-3.6.0/src/logger.cpp:875:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_rotate_file_name, "%s_%ld_%s_%lu.log", data/sip-tester-3.6.0/src/logger.cpp:891:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_rotate_file_name, "%s_%ld_%s_%lu.%d.log", data/sip-tester-3.6.0/src/logger.cpp:896:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_rotate_file_name, "%s_%ld_%s_%lu.log", data/sip-tester-3.6.0/src/logger.cpp:951: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(screen_logfile, error_lfi.file_name); data/sip-tester-3.6.0/src/logger.cpp:958:15: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ret = vfprintf(lfi->fptr, fmt, ap); data/sip-tester-3.6.0/src/message.cpp:204:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", keyword); data/sip-tester-3.6.0/src/scenario.cpp:283:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(helptext, "%s '%s' parameter", what, name); data/sip-tester-3.6.0/src/scenario.cpp:300:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(helptext, "%s '%s' parameter", what, name); data/sip-tester-3.6.0/src/scenario.cpp:326:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(helptext, "%s '%s' parameter", what, name); data/sip-tester-3.6.0/src/scenario.cpp:602: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(msg, ptr); data/sip-tester-3.6.0/src/scenario.cpp:850:25: [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(method_list + len, method); data/sip-tester-3.6.0/src/screen.cpp:120:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. c+= sprintf(c, "%s: ", CStat::formatTime(¤tTime)); data/sip-tester-3.6.0/src/screen.cpp:121:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. c+= vsprintf(c, fmt, ap); data/sip-tester-3.6.0/src/screen.cpp:123:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. c += sprintf(c, ", errno = %d (%s)", error, strerror(error)); data/sip-tester-3.6.0/src/screen.cpp:135:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(c, "%s: Unable to create '%s': %s.\n", data/sip-tester-3.6.0/src/send_packets.c:98:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(fullpath, R_OK) < 0) { data/sip-tester-3.6.0/src/sip_parser.cpp:204:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. dest += sprintf(dest, "%s", src); data/sip-tester-3.6.0/src/sipp.cpp:455:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_file_name, "%s_%ld_screen.log", scenario_file, (long) getpid()); data/sip-tester-3.6.0/src/sipp.cpp:756:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(argv[0], X_OK) < 0) { data/sip-tester-3.6.0/src/sipp.cpp:1240: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(media_ip, local_ip); data/sip-tester-3.6.0/src/sipp.cpp:1581:17: [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(ptr, argv[argi]); data/sip-tester-3.6.0/src/sipp.cpp:1635:17: [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(twinSippHost, argv[argi]); data/sip-tester-3.6.0/src/sipp.cpp:1683:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(slave_cfg_file,"%s", argv[argi]); data/sip-tester-3.6.0/src/sipp.cpp:1811:17: [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(((struct logfile_info*)option->data)->file_name, argv[argi]); data/sip-tester-3.6.0/src/sipp.cpp:1920:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_file_name, "%s_%ld_counts.csv", scenario_file, (long) getpid()); data/sip-tester-3.6.0/src/sipp.cpp:1930:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(L_file_name, "%s_%ld_error_codes.csv", scenario_file, (long) getpid()); data/sip-tester-3.6.0/src/socket.cpp:593:17: [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(SIPP_ENDL); data/sip-tester-3.6.0/src/socket.cpp:2361:17: [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(remote_ip_escaped, remote_ip); data/sip-tester-3.6.0/src/socket.cpp:2363:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(remote_ip_escaped, "[%s]", remote_ip); data/sip-tester-3.6.0/src/socket.cpp:2434: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(local_ip_escaped, local_ip); data/sip-tester-3.6.0/src/socket.cpp:2440:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(local_ip_escaped, "[%s]", local_ip); data/sip-tester-3.6.0/src/stat.cpp:339:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(M_fileName, "%s_%ld_", P_name, (long) getpid()); data/sip-tester-3.6.0/src/stat.cpp:340:21: [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(M_fileName, P_extension); data/sip-tester-3.6.0/src/stat.cpp:345:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(M_fileName, "%s_%ld_", P_name, (long) getpid()); data/sip-tester-3.6.0/src/stat.cpp:346:21: [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(M_fileName, DEFAULT_EXTENSION); data/sip-tester-3.6.0/src/stat.cpp:352:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(M_fileName, "%s_%ld_", P_name, (long) getpid()); data/sip-tester-3.6.0/src/stat.cpp:353:17: [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(M_fileName, DEFAULT_EXTENSION); data/sip-tester-3.6.0/src/stat.cpp:377: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(M_fileName, P_name); data/sip-tester-3.6.0/src/stat.cpp:405:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (M_fileNameRtt, "%s_%ld_rtt%s", P_name, (long) getpid(),P_extension); data/sip-tester-3.6.0/src/stat.cpp:1087: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(M_fileName, DEFAULT_FILE_NAME); data/sip-tester-3.6.0/src/stat.cpp:1088:5: [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(M_fileName, DEFAULT_EXTENSION); data/sip-tester-3.6.0/src/stat.cpp:1115:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(repartitionHeader, "%s%s", P_repartitionName, stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1117:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s_<%d%s", P_repartitionName, tabRepartition[i].borderMax, stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1119:13: [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(repartitionHeader, buffer); data/sip-tester-3.6.0/src/stat.cpp:1121:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s_>=%d%s", P_repartitionName, tabRepartition[sizeOfTab-1].borderMax, stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1123:9: [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(repartitionHeader, buffer); data/sip-tester-3.6.0/src/stat.cpp:1142:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(repartitionInfo, "%s", stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1144:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%lu%s", tabRepartition[i].nbInThisBorder, stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1146:13: [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(repartitionInfo, buffer); data/sip-tester-3.6.0/src/stat.cpp:1148:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%lu%s", tabRepartition[sizeOfTab-1].nbInThisBorder, stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1150:9: [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(repartitionInfo, buffer); data/sip-tester-3.6.0/src/stat.cpp:1243:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "Counter %s", M_genericDisplay[i]); data/sip-tester-3.6.0/src/stat.cpp:1268:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "Response Time %s", M_revRtdMap[i]); data/sip-tester-3.6.0/src/stat.cpp:1356:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "Counter %s", M_genericDisplay[i]); data/sip-tester-3.6.0/src/stat.cpp:1377:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "Response Time %s", M_revRtdMap[i]); data/sip-tester-3.6.0/src/stat.cpp:1532:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s_P, "ResponseTime%s(P)%s", M_revRtdMap[i], stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1533:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s_C, "ResponseTime%s(C)%s", M_revRtdMap[i], stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1537:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s_P, "ResponseTime%sStDev(P)%s", M_revRtdMap[i], stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1538:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s_C, "ResponseTime%sStDev(C)%s", M_revRtdMap[i], stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1554:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "ResponseTimeRepartition%s", M_revRtdMap[i]); data/sip-tester-3.6.0/src/xp_parser.c:63: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(xp_history_pos + 1, n); \ data/sip-tester-3.6.0/src/xp_parser.c:282: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(xp_file, str); data/sip-tester-3.6.0/src/call.cpp:827:9: [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 int) time(NULL)); data/sip-tester-3.6.0/src/sipp.cpp:748:15: [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. argv[0] = getenv("PAGER"); data/sip-tester-3.6.0/src/stat.cpp:1854:9: [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(time(NULL)); data/sip-tester-3.6.0/example/fortune.cpp:27: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 localbuf[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/include/actions.hpp:203: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 * M_message_str[MAX_ACTION_MESSAGE]; data/sip-tester-3.6.0/include/comp.h:54: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 comp_error[255]; data/sip-tester-3.6.0/include/logger.hpp:37: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. MAYBE_EXTERN char screen_last_error[32768]; data/sip-tester-3.6.0/include/logger.hpp:38: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. MAYBE_EXTERN char screen_logfile[MAX_PATH] DEFVAL(""); data/sip-tester-3.6.0/include/logger.hpp:51: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 file_name[MAX_PATH]; data/sip-tester-3.6.0/include/rtpstream.hpp:36: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 filename[RTPSTREAM_MAX_FILENAMELEN]; data/sip-tester-3.6.0/include/scenario.hpp:258: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. extern const char * default_scenario[12]; data/sip-tester-3.6.0/include/sipp.hpp:232: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. MAYBE_EXTERN char local_ip[127]; /* also used for hostnames */ data/sip-tester-3.6.0/include/sipp.hpp:233: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. MAYBE_EXTERN char local_ip_escaped[42]; /* with [brackets] in case of IPv6 */ data/sip-tester-3.6.0/include/sipp.hpp:237: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. MAYBE_EXTERN char multihome_ip[40]; data/sip-tester-3.6.0/include/sipp.hpp:244: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. MAYBE_EXTERN char control_ip[40]; data/sip-tester-3.6.0/include/sipp.hpp:258: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. MAYBE_EXTERN char media_ip[127]; /* also used for hostnames */ data/sip-tester-3.6.0/include/sipp.hpp:263: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. MAYBE_EXTERN char remote_ip[127]; /* also used for hostnames */ data/sip-tester-3.6.0/include/sipp.hpp:264: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. MAYBE_EXTERN char remote_ip_escaped[42]; /* with [brackets] in case of IPv6 */ data/sip-tester-3.6.0/include/sipp.hpp:274: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. MAYBE_EXTERN char remote_host[255]; data/sip-tester-3.6.0/include/sipp.hpp:275: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. MAYBE_EXTERN char twinSippHost[255]; data/sip-tester-3.6.0/include/sipp.hpp:276: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. MAYBE_EXTERN char twinSippIp[40]; data/sip-tester-3.6.0/include/sipp.hpp:294: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. MAYBE_EXTERN char **generic[100]; data/sip-tester-3.6.0/include/sipp.hpp:422: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. MAYBE_EXTERN char hostname[80]; data/sip-tester-3.6.0/include/sipp.hpp:439: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 peer_host[40]; data/sip-tester-3.6.0/include/sipp.hpp:442: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 peer_ip[40]; data/sip-tester-3.6.0/src/actions.cpp:123:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[40]; data/sip-tester-3.6.0/src/actions.cpp:392:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/actions.cpp:452:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((*P_target), &(P_source[P_start]), sizeOf); data/sip-tester-3.6.0/src/actions.cpp:472: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(M_pcapArgs, P_value, sizeof(*M_pcapArgs)); data/sip-tester-3.6.0/src/actions.cpp:517: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). M_rtpstream_actinfo.loop_count = atoi(param_str); data/sip-tester-3.6.0/src/actions.cpp:528:43: [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). M_rtpstream_actinfo.payload_type= atoi(param_str); data/sip-tester-3.6.0/src/auth.cpp:64:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char AUTS[AUTSLEN]; data/sip-tester-3.6.0/src/auth.cpp:66:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char AUTS64[AUTS64LEN]; data/sip-tester-3.6.0/src/auth.cpp:68:18: [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. typedef unsigned char RES[RESLEN+1]; data/sip-tester-3.6.0/src/auth.cpp:70:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char RESHEX[RESHEXLEN]; data/sip-tester-3.6.0/src/auth.cpp:161: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 algo[32]="MD5"; data/sip-tester-3.6.0/src/auth.cpp:165:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeader: authentication must be digest"); data/sip-tester-3.6.0/src/auth.cpp:185:13: [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(result, "createAuthHeader: AKAv1-MD5 authentication requires a key"); data/sip-tester-3.6.0/src/auth.cpp:191:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeader: authentication must use MD5 or AKAv1-MD5"); data/sip-tester-3.6.0/src/auth.cpp:259: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 body_hex[HASH_HEX_SIZE+1]; data/sip-tester-3.6.0/src/auth.cpp:260: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 ha1_hex[HASH_HEX_SIZE+1], ha2_hex[HASH_HEX_SIZE+1]; data/sip-tester-3.6.0/src/auth.cpp:261: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[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:330: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 resp_hex[HASH_HEX_SIZE+1]; data/sip-tester-3.6.0/src/auth.cpp:331: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[MAX_HEADER_LEN], data/sip-tester-3.6.0/src/auth.cpp:352:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(cnonce, "%x", rand()); data/sip-tester-3.6.0/src/auth.cpp:353:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(nc, "%08x", mync); data/sip-tester-3.6.0/src/auth.cpp:397:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeader: couldn't parse nonce"); data/sip-tester-3.6.0/src/auth.cpp:427: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 algo[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:428: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 result[HASH_HEX_SIZE + 1]; data/sip-tester-3.6.0/src/auth.cpp:429: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 response[HASH_HEX_SIZE + 1]; data/sip-tester-3.6.0/src/auth.cpp:430: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 realm[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:431: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 nonce[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:432: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 cnonce[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:433: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 authtype[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:434: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 nc[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:435: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 uri[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:445:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(algo, "MD5"); data/sip-tester-3.6.0/src/auth.cpp:668:1: [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 base64[65]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; data/sip-tester-3.6.0/src/auth.cpp:670:1: [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 hexa[17]="0123456789abcdef"; data/sip-tester-3.6.0/src/auth.cpp:678: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[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/auth.cpp:699:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeaderAKAv1MD5: couldn't parse nonce"); data/sip-tester-3.6.0/src/auth.cpp:714:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeaderAKAv1MD5 : Nonce is too short %d < %d expected \n", data/sip-tester-3.6.0/src/auth.cpp:720: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(rnd, nonce, RANDLEN); data/sip-tester-3.6.0/src/auth.cpp:721: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(sqnxoraka, nonce + RANDLEN, SQNLEN); data/sip-tester-3.6.0/src/auth.cpp:722: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(mac, nonce + RANDLEN + SQNLEN + AMFLEN, MACLEN); data/sip-tester-3.6.0/src/auth.cpp:723: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(k, aka_K, KLEN); data/sip-tester-3.6.0/src/auth.cpp:724: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(amf, aka_AMF, AMFLEN); data/sip-tester-3.6.0/src/auth.cpp:725: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(op, aka_OP, OPLEN); data/sip-tester-3.6.0/src/auth.cpp:739:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "createAuthHeaderAKAv1MD5 : MAC != eXpectedMAC -> Server might not know the secret (man-in-the-middle attack?) \n"); data/sip-tester-3.6.0/src/auth.cpp:753:13: [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(result, "createAuthHeaderAKAv1MD5 : Unexpected return value from createAuthHeaderMD5\n"); data/sip-tester-3.6.0/src/auth.cpp:768:13: [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(result, "createAuthHeaderAKAv1MD5 : Unexpected return value from createAuthHeaderMD5\n"); data/sip-tester-3.6.0/src/auth.cpp:793: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 nonce[40]; data/sip-tester-3.6.0/src/auth.cpp:801: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 cnonce[10]; data/sip-tester-3.6.0/src/auth.cpp:809: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 cnonce[10]; data/sip-tester-3.6.0/src/auth.cpp:819: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 result[255]; data/sip-tester-3.6.0/src/auth.cpp:827: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 result[1024]; data/sip-tester-3.6.0/src/call.cpp:240:24: [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). audio_port = ::atoi(port.c_str()); data/sip-tester-3.6.0/src/call.cpp:245:24: [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). image_port = ::atoi(port.c_str()); data/sip-tester-3.6.0/src/call.cpp:250:24: [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). video_port = ::atoi(port.c_str()); data/sip-tester-3.6.0/src/call.cpp:329:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char call_id[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:680: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 s[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:681: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 tmpbuf[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:715:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char peripaddr[256]; data/sip-tester-3.6.0/src/call.cpp:745: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(&saddr, &local_addr_storage, sizeof(struct sockaddr_storage)); data/sip-tester-3.6.0/src/call.cpp:927:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char code[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:963:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char with_colon[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:1015:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char msg_name[MAX_MSG_NAME_SIZE]; data/sip-tester-3.6.0/src/call.cpp:1102: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 reason_str[100]; data/sip-tester-3.6.0/src/call.cpp:1113:17: [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(reason_str, "regexp match failure at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1121:17: [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(reason_str, "regexp matched, but shouldn't at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1129:17: [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(reason_str, "regexp header not found at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1137:17: [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(reason_str, "connection failed %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1149:17: [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(reason_str, "test failure at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1157:17: [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(reason_str, "test succeeded, but shouldn't at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1165:17: [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(reason_str, "test failure at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1173:17: [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(reason_str, "test succeeded, but shouldn't at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1190:17: [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(reason_str, "failed at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1370: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(last_send_msg, msg_snd, msgLen); data/sip-tester-3.6.0/src/call.cpp:1374:58: [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. transactions[curmsg->start_txn - 1].txnID = (char *)realloc(transactions[curmsg->start_txn - 1].txnID, MAX_HEADER_LEN); data/sip-tester-3.6.0/src/call.cpp:1706:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:1857:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reason[100]; data/sip-tester-3.6.0/src/call.cpp:1858:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(reason, "aborted at index %d", msg_index); data/sip-tester-3.6.0/src/call.cpp:1878: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 delimitor[2]; data/sip-tester-3.6.0/src/call.cpp:1918: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 delimitor[2]; data/sip-tester-3.6.0/src/call.cpp:1942:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char msg_buffer[SIPP_MAX_MSG_SIZE+2]; data/sip-tester-3.6.0/src/call.cpp:1969: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(dest, comp->literal, comp->literalLen); data/sip-tester-3.6.0/src/call.cpp:2010:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char address[INET6_ADDRSTRLEN]; data/sip-tester-3.6.0/src/call.cpp:2055:21: [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. dest += sprintf(dest, "%u", port); data/sip-tester-3.6.0/src/call.cpp:2061:21: [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. dest += sprintf(dest, "%u", media_port); data/sip-tester-3.6.0/src/call.cpp:2140:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/sip-tester-3.6.0/src/call.cpp:2167:29: [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. dest += sprintf(dest, "%lf", var->getDouble()); data/sip-tester-3.6.0/src/call.cpp:2171:29: [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. dest += sprintf(dest, "true"); data/sip-tester-3.6.0/src/call.cpp:2174:25: [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. dest += sprintf(dest, "false"); data/sip-tester-3.6.0/src/call.cpp:2199:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:2201:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(buffer, "r"); data/sip-tester-3.6.0/src/call.cpp:2277:21: [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. dest += sprintf(dest, "%d", last_cseq + comp->offset); data/sip-tester-3.6.0/src/call.cpp:2314:13: [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(length_marker, "%5u", (unsigned)(dest - body - 4 + len_offset)); data/sip-tester-3.6.0/src/call.cpp:2318:13: [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(length_marker, " 0\r\n\r\n"); data/sip-tester-3.6.0/src/call.cpp:2343:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char method[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:2353:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:2356:23: [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. authlen = sprintf(result, "Authorization: "); data/sip-tester-3.6.0/src/call.cpp:2359:23: [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. authlen = sprintf(result, "Proxy-Authorization: "); data/sip-tester-3.6.0/src/call.cpp:2363:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uri[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:2366:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char my_auth_user[MAX_HEADER_LEN + 2]; data/sip-tester-3.6.0/src/call.cpp:2367:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char my_auth_pass[MAX_HEADER_LEN + 2]; data/sip-tester-3.6.0/src/call.cpp:2368:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char my_aka_OP[MAX_HEADER_LEN + 2]; data/sip-tester-3.6.0/src/call.cpp:2369:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char my_aka_AMF[MAX_HEADER_LEN + 2]; data/sip-tester-3.6.0/src/call.cpp:2370:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char my_aka_K[MAX_HEADER_LEN + 2]; data/sip-tester-3.6.0/src/call.cpp:2387: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(auth_marker, result, authlen); data/sip-tester-3.6.0/src/call.cpp:2737:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char request[65]; data/sip-tester-3.6.0/src/call.cpp:2738: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 responsecseqmethod[65]; data/sip-tester-3.6.0/src/call.cpp:2739: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 txn[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:2878:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(request, msg, ptr - msg); data/sip-tester-3.6.0/src/call.cpp:3133:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rr[MAX_HEADER_LEN], contact[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:3147:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char auth[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/call.cpp:3264:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgPart[MAX_SUB_MESSAGE_LENGTH]; data/sip-tester-3.6.0/src/call.cpp:3453:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&call_socket->ss_dest, &call_peer, sizeof(call_peer)); data/sip-tester-3.6.0/src/call.cpp:3869:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lineBuffer[20]; data/sip-tester-3.6.0/src/call.cpp:4132:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&sa, &play_args_a.to, sizeof(T)); data/sip-tester-3.6.0/src/deadcall.cpp:66:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/infile.cpp:35: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 line[MAX_CHAR_BUFFER_SIZE]; data/sip-tester-3.6.0/src/infile.cpp:225:25: [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(tmp, format, s + i + 1 - format); data/sip-tester-3.6.0/src/infile.cpp:324: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 line[1024]; data/sip-tester-3.6.0/src/infile.cpp:326: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[1024]; data/sip-tester-3.6.0/src/infile.cpp:351: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[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/infile.cpp:368: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[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/logger.cpp:308:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char temp_str[256]; data/sip-tester-3.6.0/src/logger.cpp:330:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%d (%d ms)", users, duration); data/sip-tester-3.6.0/src/logger.cpp:332:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%3.1f(%d ms)/%5.3fs", rate, duration, (double)rate_period_ms / 1000.0); data/sip-tester-3.6.0/src/logger.cpp:366:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%llu new calls during %lu.%03lu s period ", data/sip-tester-3.6.0/src/logger.cpp:372:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "Call limit reached (-m %lu), %lu.%03lu s period ", data/sip-tester-3.6.0/src/logger.cpp:388:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%llu calls", display_scenario->stats->GetStat(CStat::CPT_C_CurrentCall)); data/sip-tester-3.6.0/src/logger.cpp:390:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%llu calls (limit %u)", display_scenario->stats->GetStat(CStat::CPT_C_CurrentCall), open_calls_allowed); data/sip-tester-3.6.0/src/logger.cpp:401:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str,"%llu dead call msg (discarded)", data/sip-tester-3.6.0/src/logger.cpp:405:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str,"%llu out-of-call msg (discarded)", data/sip-tester-3.6.0/src/logger.cpp:418:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str,"%d open sockets", data/sip-tester-3.6.0/src/logger.cpp:434:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%lu Total RTP pckts sent ", data/sip-tester-3.6.0/src/logger.cpp:471:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%lu Total RTP pckts sent", rtpstream_pckts); data/sip-tester-3.6.0/src/logger.cpp:475:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%lu RTP sending threads active", rtpstream_numthreads); data/sip-tester-3.6.0/src/logger.cpp:483:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%lu Total echo RTP pckts 1st stream", data/sip-tester-3.6.0/src/logger.cpp:494:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp_str, "%lu Total echo RTP pckts 2nd stream", data/sip-tester-3.6.0/src/logger.cpp:533:17: [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(temp_str, "%d", src->getCode()); data/sip-tester-3.6.0/src/logger.cpp:673: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 temp_str[256]; data/sip-tester-3.6.0/src/logger.cpp:699:21: [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(temp_str, "%u_%d_", index, src->getCode()); data/sip-tester-3.6.0/src/logger.cpp:724:17: [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(temp_str, "%u_%d_", index, curmsg->recv_response); data/sip-tester-3.6.0/src/logger.cpp:766:17: [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(temp_str, "%u_Pause_", index); data/sip-tester-3.6.0/src/logger.cpp:777:17: [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(temp_str, "%u_RecvCmd", index); data/sip-tester-3.6.0/src/logger.cpp:786:17: [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(temp_str, "%u_SendCmd", index); data/sip-tester-3.6.0/src/logger.cpp:857: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 L_rotate_file_name [MAX_PATH]; data/sip-tester-3.6.0/src/logger.cpp:910:21: [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). lfi->fptr = fopen(lfi->file_name, "w"); data/sip-tester-3.6.0/src/logger.cpp:912:21: [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). lfi->fptr = fopen(lfi->file_name, "a"); data/sip-tester-3.6.0/src/md5.c:168: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(xbuf, data, 64); data/sip-tester-3.6.0/src/md5.c:342: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(pms->buf + offset, p, copy); data/sip-tester-3.6.0/src/md5.c:356: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(pms->buf, p, left); data/sip-tester-3.6.0/src/message.cpp:119: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 current_line[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/message.cpp:138: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(current_line, src, header_len); data/sip-tester-3.6.0/src/message.cpp:195:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyword [KEYWORD_SIZE+1]; data/sip-tester-3.6.0/src/message.cpp:202: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(keyword, src-1, tsrc - src + 1); data/sip-tester-3.6.0/src/message.cpp:210:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(keyword, src, key - src); data/sip-tester-3.6.0/src/message.cpp:219: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). newcomp->offset = atoi(key); data/sip-tester-3.6.0/src/message.cpp:260:57: [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). newcomp->comp_param.field_param.field = atoi(keyword + strlen("field")); data/sip-tester-3.6.0/src/message.cpp:262:17: [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 fileName[KEYWORD_SIZE]; data/sip-tester-3.6.0/src/message.cpp:276:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[KEYWORD_SIZE]; data/sip-tester-3.6.0/src/message.cpp:286:17: [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 fileName[KEYWORD_SIZE]; data/sip-tester-3.6.0/src/message.cpp:301:17: [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 filltext[KEYWORD_SIZE]; data/sip-tester-3.6.0/src/message.cpp:302:17: [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 varName[KEYWORD_SIZE]; data/sip-tester-3.6.0/src/message.cpp:534: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 my_auth_user[KEYWORD_SIZE + 1]; data/sip-tester-3.6.0/src/message.cpp:535: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 my_auth_pass[KEYWORD_SIZE + 1]; data/sip-tester-3.6.0/src/message.cpp:536: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 my_aka[KEYWORD_SIZE + 1]; data/sip-tester-3.6.0/src/message.cpp:561: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(my_aka,my_auth_pass,16); data/sip-tester-3.6.0/src/prepare_pcap.c:69:1: [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 errbuf[PCAP_ERRBUF_SIZE]; data/sip-tester-3.6.0/src/prepare_pcap.c:263: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(pkt_index->data, udphdr, pktlen); data/sip-tester-3.6.0/src/prepare_pcap.c:558:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tone_len = atol(comma + 1); data/sip-tester-3.6.0/src/rtpstream.cpp:115: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 filename[RTPSTREAM_MAX_FILENAMELEN]; data/sip-tester-3.6.0/src/rtpstream.cpp:176:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_UDP_RECV_BUFFER]; data/sip-tester-3.6.0/src/rtpstream.cpp:207: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(udp.buffer + sizeof(rtp_header_t), taskinfo->current_file_bytes, taskinfo->bytes_per_packet); data/sip-tester-3.6.0/src/rtpstream.cpp: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(udp.buffer + sizeof(rtp_header_t), taskinfo->current_file_bytes, taskinfo->file_bytes_left); data/sip-tester-3.6.0/src/rtpstream.cpp:212: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(udp.buffer + sizeof(rtp_header_t) + taskinfo->file_bytes_left, data/sip-tester-3.6.0/src/rtpstream.cpp:551:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "rb"); data/sip-tester-3.6.0/src/rtpstream.cpp:655: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(&(taskinfo->remote_audio_rtp_addr), &address, sizeof(address)); data/sip-tester-3.6.0/src/scenario.cpp:634:9: [2] (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 string. strcat(msg, "\n\n"); data/sip-tester-3.6.0/src/scenario.cpp:931:25: [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 percentile[100]; data/sip-tester-3.6.0/src/scenario.cpp:932:25: [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 desc[100]; data/sip-tester-3.6.0/src/scenario.cpp:1190: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 line[MAX_PEER_SIZE]; data/sip-tester-3.6.0/src/scenario.cpp:1195:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(slave_cfg_file, "r"); data/sip-tester-3.6.0/src/scenario.cpp:1392:50: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tmpAction->setOccurrence(atol(cptr)); data/sip-tester-3.6.0/src/scenario.cpp:1395:50: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tmpAction->setOccurrence(atol(cptr)); data/sip-tester-3.6.0/src/screen.cpp:45:1: [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 screen_exename[255]; data/sip-tester-3.6.0/src/send_packets.c:180:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[PCAP_MAXPACKET]; data/sip-tester-3.6.0/src/send_packets.c:228: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(&(to6.sin6_addr.s6_addr), &(((struct sockaddr_in6 *)(void *) to)->sin6_addr.s6_addr), sizeof(to6.sin6_addr.s6_addr)); data/sip-tester-3.6.0/src/send_packets.c:229: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(&(from6.sin6_addr.s6_addr), &(((struct sockaddr_in6 *)(void *) from)->sin6_addr.s6_addr), sizeof(from6.sin6_addr.s6_addr)); data/sip-tester-3.6.0/src/send_packets.c:238: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(udp, pkt_index->data, pkt_index->pktlen); data/sip-tester-3.6.0/src/send_packets.c:289: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 (&last, &(pkt_index->ts), sizeof(struct timeval)); data/sip-tester-3.6.0/src/sip_parser.cpp:78:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char tag[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/sip_parser.cpp:124:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char last_header[MAX_HEADER_LEN * 10]; data/sip-tester-3.6.0/src/sip_parser.cpp:130: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 header_with_newline[MAX_HEADER_LEN + 1]; data/sip-tester-3.6.0/src/sip_parser.cpp:151: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(src_orig, message, cptr - message); data/sip-tester-3.6.0/src/sip_parser.cpp:202:25: [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. dest += sprintf(dest, ", "); data/sip-tester-3.6.0/src/sip_parser.cpp:281:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char last_header[MAX_HEADER_LEN * 10]; data/sip-tester-3.6.0/src/sip_parser.cpp:308:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char call_id[MAX_HEADER_LEN]; data/sip-tester-3.6.0/src/sip_parser.cpp:328: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(call_id, content, length); data/sip-tester-3.6.0/src/sip_parser.cpp:375:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atol(msg); data/sip-tester-3.6.0/src/sip_parser.cpp:529: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 data[4096]; data/sip-tester-3.6.0/src/sipp.cpp:454: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 L_file_name[MAX_PATH]; data/sip-tester-3.6.0/src/sipp.cpp:736: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 pager[15] = "/usr/bin/pager"; data/sip-tester-3.6.0/src/sipp.cpp:737: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 *argv[2] = {NULL, NULL}; data/sip-tester-3.6.0/src/sipp.cpp:1028: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 L_file_name[MAX_PATH]; data/sip-tester-3.6.0/src/sipp.cpp:1039:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(L_file_name, "w"); data/sip-tester-3.6.0/src/sipp.cpp:1252: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(&media_sockaddr, local_addr->ai_addr, data/sip-tester-3.6.0/src/sipp.cpp:1919:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char L_file_name [MAX_PATH]; data/sip-tester-3.6.0/src/sipp.cpp:1921:18: [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). countf = fopen(L_file_name, "w"); data/sip-tester-3.6.0/src/sipp.cpp:1929:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char L_file_name [MAX_PATH]; data/sip-tester-3.6.0/src/sipp.cpp:1931:18: [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). codesf = fopen(L_file_name, "w"); data/sip-tester-3.6.0/src/sipp.cpp:2033:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int nullfd = open("/dev/null", O_RDWR); data/sip-tester-3.6.0/src/socket.cpp:87: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(ss, res->ai_addr, res->ai_addrlen); data/sip-tester-3.6.0/src/socket.cpp:100:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char service[NI_MAXSERV + 1]; data/sip-tester-3.6.0/src/socket.cpp:468: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 bufrcv [SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/socket.cpp:481: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(command, bufrcv + 1, ret - 1); data/sip-tester-3.6.0/src/socket.cpp:680: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(newbuf + socketbuf->len, next->buf, next->len); data/sip-tester-3.6.0/src/socket.cpp:1075: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(buf, ss_in->buf + ss_in->offset, avail); data/sip-tester-3.6.0/src/socket.cpp:1076: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(src, &ss_in->addr, sizeof(ss_in->addr)); data/sip-tester-3.6.0/src/socket.cpp:1533: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(&ss_dest, dest, sizeof(*dest)); data/sip-tester-3.6.0/src/socket.cpp:1543: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(&with_optional_port, &local_sockaddr, sizeof(struct sockaddr_storage)); data/sip-tester-3.6.0/src/socket.cpp:1680: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(socketbuf->buf, buffer, size); data/sip-tester-3.6.0/src/socket.cpp:1687: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(&socketbuf->addr, dest, sizeof(*dest)); data/sip-tester-3.6.0/src/socket.cpp:1720:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&peerparam.spp_address, peeraddress, sizeof(*peeraddress)); data/sip-tester-3.6.0/src/socket.cpp:2155:20: [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 comp_msg[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/socket.cpp:2407:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&local_sockaddr, local_addr->ai_addr, local_addr->ai_addrlen); data/sip-tester-3.6.0/src/socket.cpp:2431: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(&local_addr_storage, &local_sockaddr, sizeof(local_sockaddr)); data/sip-tester-3.6.0/src/socket.cpp:2442: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(&_RCAST(struct sockaddr_in6*, &local_sockaddr)->sin6_addr, &in6addr_any, sizeof(in6addr_any)); data/sip-tester-3.6.0/src/socket.cpp:2455: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 peripaddr[256]; data/sip-tester-3.6.0/src/socket.cpp:2530:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char peripaddr[256]; data/sip-tester-3.6.0/src/socket.cpp:2833:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/socket.cpp:2987:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/socket.cpp:3026:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[SIPP_MAX_MSG_SIZE]; data/sip-tester-3.6.0/src/sslsocket.cpp:136: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 data[512]; data/sip-tester-3.6.0/src/stat.cpp:225: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 (&M_pdStartTime, &M_startTime, sizeof (struct timeval)); data/sip-tester-3.6.0/src/stat.cpp:226: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 (&M_plStartTime, &M_startTime, sizeof (struct timeval)); data/sip-tester-3.6.0/src/stat.cpp:811: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(t, &M_startTime, sizeof(M_startTime)); data/sip-tester-3.6.0/src/stat.cpp:1110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_CHAR_BUFFER_SIZE]; data/sip-tester-3.6.0/src/stat.cpp:1136:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[MAX_CHAR_BUFFER_SIZE]; data/sip-tester-3.6.0/src/stat.cpp:1263:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[80]; data/sip-tester-3.6.0/src/stat.cpp:1375:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[80]; data/sip-tester-3.6.0/src/stat.cpp:1404: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 s[80]; data/sip-tester-3.6.0/src/stat.cpp:1529:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s_P[80]; data/sip-tester-3.6.0/src/stat.cpp:1530:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s_C[80]; data/sip-tester-3.6.0/src/stat.cpp:1552:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[80]; data/sip-tester-3.6.0/src/stat.cpp:1728:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char L_time [TIME_LENGTH]; data/sip-tester-3.6.0/src/stat.cpp:1735:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (L_time, "%2.2lu:%2.2lu:%2.2lu", hh, mm, ss); data/sip-tester-3.6.0/src/stat.cpp:1741:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char L_time [TIME_LENGTH]; data/sip-tester-3.6.0/src/stat.cpp:1749:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (L_time, "%2.2lu:%2.2lu:%2.2lu:%06lu", hh, mm, ss, us); data/sip-tester-3.6.0/src/stat.cpp:1755:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char L_time [TIME_LENGTH]; data/sip-tester-3.6.0/src/stat.cpp:1766:13: [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(L_time, "%4.4d-%2.2d-%2.2d %2.2d:%2.2d:%2.2d.%06ld", data/sip-tester-3.6.0/src/stat.cpp:1775:13: [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(L_time, "%4.4d-%2.2d-%2.2d\t%2.2d:%2.2d:%2.2d.%06ld\t%10.10ld.%06ld", data/sip-tester-3.6.0/src/strings.cpp:83:31: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port_result = atol(first_colon_location + 1); data/sip-tester-3.6.0/src/strings.cpp:103:27: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port_result = atol(colon_before_port + 1); data/sip-tester-3.6.0/src/strings.cpp:142: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:150: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:158: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:166: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:174: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:181: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:188: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 host_result[255]; data/sip-tester-3.6.0/src/strings.cpp:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host_result[255]; data/sip-tester-3.6.0/src/xp_parser.c:51: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 xp_file[XP_MAX_FILE_LEN + 1]; data/sip-tester-3.6.0/src/xp_parser.c:52: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 *xp_position[XP_MAX_STACK_LEN]; data/sip-tester-3.6.0/src/xp_parser.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 xp_history[XP_MAX_FILE_LEN + 1]; data/sip-tester-3.6.0/src/xp_parser.c:97: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(name, ptr, *end - ptr); data/sip-tester-3.6.0/src/xp_parser.c:239: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(to, from, pos); data/sip-tester-3.6.0/src/xp_parser.c:260: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(to, escape, escape_len); data/sip-tester-3.6.0/src/xp_parser.c:266: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(to, from, pos); data/sip-tester-3.6.0/src/xp_parser.c:298:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "rb"); data/sip-tester-3.6.0/src/xp_parser.c:341:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char name[XP_MAX_NAME_LEN]; data/sip-tester-3.6.0/src/xp_parser.c:450:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[XP_MAX_FILE_LEN + 1]; data/sip-tester-3.6.0/src/xp_parser.c:542:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[XP_MAX_FILE_LEN + 1]; data/sip-tester-3.6.0/src/xp_parser.c:559: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(buffer, ptr, (end - ptr)); data/sip-tester-3.6.0/src/xp_parser_ut.cpp:176: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:183: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:190: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:197: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:204: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:211: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:218: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/src/xp_parser_ut.cpp:225: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 dst[sizeof(buffer)]; data/sip-tester-3.6.0/example/fortune.cpp:50:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = read(pipes[0], p, sizeof(localbuf) - (p - localbuf))) > 0) { data/sip-tester-3.6.0/src/actions.cpp:362:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). M_lookingChar = new char[strlen(P_value)+1]; data/sip-tester-3.6.0/src/actions.cpp:501: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). if (strlen(P_value) >= sizeof(M_rtpstream_actinfo.filename)) { data/sip-tester-3.6.0/src/auth.cpp:132: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). endp = (char*)s1 + (strlen(s1) - strlen(s2)) ; data/sip-tester-3.6.0/src/auth.cpp:132: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). endp = (char*)s1 + (strlen(s1) - strlen(s2)) ; data/sip-tester-3.6.0/src/auth.cpp:170: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). start = start + strlen("algorithm="); data/sip-tester-3.6.0/src/auth.cpp:175:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(algo, start, end - start); data/sip-tester-3.6.0/src/auth.cpp:181:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return createAuthHeaderMD5(user, password, strlen(password), method, data/sip-tester-3.6.0/src/auth.cpp:219:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start += strlen(name); data/sip-tester-3.6.0/src/auth.cpp:234:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(result, start, len - 1); data/sip-tester-3.6.0/src/auth.cpp:237:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(result, start, end - start); data/sip-tester-3.6.0/src/auth.cpp:266:46: [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). md5_append(&Md5Ctx, (md5_byte_t *) user, strlen(user)); data/sip-tester-3.6.0/src/auth.cpp:268: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). md5_append(&Md5Ctx, (md5_byte_t *) realm, strlen(realm)); data/sip-tester-3.6.0/src/auth.cpp:277:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, uri, sizeof(tmp) - 1); data/sip-tester-3.6.0/src/auth.cpp:282:53: [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). md5_append(&Md5Ctx, (md5_byte_t *) msgbody, strlen(msgbody)); data/sip-tester-3.6.0/src/auth.cpp:289: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). md5_append(&Md5Ctx, (md5_byte_t *) method, strlen(method)); data/sip-tester-3.6.0/src/auth.cpp:291: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). md5_append(&Md5Ctx, (md5_byte_t *) tmp, strlen(tmp)); data/sip-tester-3.6.0/src/auth.cpp:302: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). md5_append(&Md5Ctx, (md5_byte_t *) nonce, strlen(nonce)); data/sip-tester-3.6.0/src/auth.cpp:305: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). md5_append(&Md5Ctx, (md5_byte_t *) nc, strlen(nc)); data/sip-tester-3.6.0/src/auth.cpp:307:52: [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). md5_append(&Md5Ctx, (md5_byte_t *) cnonce, strlen(cnonce)); data/sip-tester-3.6.0/src/auth.cpp:309: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). md5_append(&Md5Ctx, (md5_byte_t *) authtype, strlen(authtype)); data/sip-tester-3.6.0/src/auth.cpp:348:13: [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(authtype, "auth-int", sizeof(authtype) - 1); data/sip-tester-3.6.0/src/auth.cpp:350:13: [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(authtype, "auth", sizeof(authtype) - 1); data/sip-tester-3.6.0/src/auth.cpp:403: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). strlen(password), data/sip-tester-3.6.0/src/auth.cpp:456: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). strlen(password), data/sip-tester-3.6.0/src/auth.cpp:702:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). start = start + strlen("nonce="); data/sip-tester-3.6.0/src/auth.cpp:707:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, start, end - start); data/sip-tester-3.6.0/src/call.cpp:85: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). ret.resize(ret.length() - strlen(delim)); data/sip-tester-3.6.0/src/call.cpp:291: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). if (!strncmp(msg, "SIP/2.0", strlen("SIP/2.0"))) { data/sip-tester-3.6.0/src/call.cpp:293: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). hdr = msg + strlen("SIP/2.0"); data/sip-tester-3.6.0/src/call.cpp:299: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). hdr += strlen("\r\n\r\n"); data/sip-tester-3.6.0/src/call.cpp:892: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). len = strlen(msg); data/sip-tester-3.6.0/src/call.cpp:948:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((!last_recv_msg) || (!strlen(last_recv_msg))) { data/sip-tester-3.6.0/src/call.cpp:952: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). len = strlen(name); data/sip-tester-3.6.0/src/call.cpp:957:94: [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). ERROR("call::get_last_header: Header to parse bigger than %d (%zu)", MAX_HEADER_LEN, strlen(name)); data/sip-tester-3.6.0/src/call.cpp:994: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). tmp_len = strlen(tmp) - strlen(tmp2); data/sip-tester-3.6.0/src/call.cpp:994: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). tmp_len = strlen(tmp) - strlen(tmp2); data/sip-tester-3.6.0/src/call.cpp:1005:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(last_request_uri, tmp, tmp_len); data/sip-tester-3.6.0/src/call.cpp:1765: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(msg) + 1); data/sip-tester-3.6.0/src/call.cpp:1898:46: [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). rc = (*peer_socket)->write(dest, strlen(dest), WS_BUFFER, &call_peer); data/sip-tester-3.6.0/src/call.cpp:1900:46: [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). rc = twinSippSocket->write(dest, strlen(dest), WS_BUFFER, &call_peer); data/sip-tester-3.6.0/src/call.cpp:1928: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). rc = twinSippSocket->write(dest, strlen(dest), WS_BUFFER, &twinSippSocket->ss_dest); data/sip-tester-3.6.0/src/call.cpp:2188: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). int filllen = strlen(filltext); data/sip-tester-3.6.0/src/call.cpp:2257: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). if(last_recv_msg && strlen(last_recv_msg)) { data/sip-tester-3.6.0/src/call.cpp:2299:26: [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). auth_body += strlen("\r\n\r\n"); data/sip-tester-3.6.0/src/call.cpp:2382: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). authlen = strlen(result); data/sip-tester-3.6.0/src/call.cpp:2385:71: [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). memmove(auth_marker + authlen, auth_marker + auth_marker_len, strlen(auth_marker + auth_marker_len) + 1); data/sip-tester-3.6.0/src/call.cpp:2447:26: [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). while ( (msg[strlen(msg)-1] == '\n') && data/sip-tester-3.6.0/src/call.cpp:2448:26: [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). (msg[strlen(msg)-2] == '\r') ) { data/sip-tester-3.6.0/src/call.cpp:2449:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msg[strlen(msg)-2] = 0; data/sip-tester-3.6.0/src/call.cpp:2572:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if (nbytes > 0) strncpy (method, value, nbytes); data/sip-tester-3.6.0/src/call.cpp:2592: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). branch += strlen(";branch="); data/sip-tester-3.6.0/src/call.cpp:2610:13: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(next_req_url, contact, data/sip-tester-3.6.0/src/call.cpp:2748: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). strlen(msg), id, hash(msg), msg); data/sip-tester-3.6.0/src/call.cpp:2861:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(ptr) > (MAX_HEADER_LEN - 1)) { data/sip-tester-3.6.0/src/call.cpp:2981:78: [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). (0 == strncmp (responsecseqmethod, "INVITE", strlen(responsecseqmethod)) ) && data/sip-tester-3.6.0/src/call.cpp:3101:84: [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). ((0 != reply_code) && (0 == strncmp (responsecseqmethod, "INVITE", strlen(responsecseqmethod)))) ) { // prov for INVITE data/sip-tester-3.6.0/src/call.cpp:3149:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(auth, get_header_content(msg, (char*)"Proxy-Authenticate:"), sizeof(auth) - 1); data/sip-tester-3.6.0/src/call.cpp:3151:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(auth, get_header_content(msg, (char*)"WWW-Authenticate:"), sizeof(auth) - 1); data/sip-tester-3.6.0/src/call.cpp:3157:63: [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). realloc_ptr = (char *) realloc(dialog_authentication, strlen(auth) + 2); data/sip-tester-3.6.0/src/call.cpp:3184: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(msg) + 1); data/sip-tester-3.6.0/src/call.cpp:3276:60: [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(currentAction->getCheckIt() == true && (strlen(msgPart) == 0)) { data/sip-tester-3.6.0/src/call.cpp:3293: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). haystack += strlen("\r\n\r\n"); data/sip-tester-3.6.0/src/call.cpp:3505:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(method, msg, end - msg); data/sip-tester-3.6.0/src/call.cpp:3520:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). auth_body += strlen("\r\n\r\n"); data/sip-tester-3.6.0/src/call.cpp:3643:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(q); data/sip-tester-3.6.0/src/call.cpp:3804: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(matchingString); data/sip-tester-3.6.0/src/call.cpp:3847:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(result, ptr+len, MAX_SUB_MESSAGE_LENGTH); data/sip-tester-3.6.0/src/call.cpp:3848: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). sizeOf = strlen(result); data/sip-tester-3.6.0/src/call.cpp:3907: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(msg) + 1); data/sip-tester-3.6.0/src/call.cpp:3929: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(P_recv) + 1); data/sip-tester-3.6.0/src/call.cpp:3967: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(P_recv) + 1); data/sip-tester-3.6.0/src/call.cpp:4006: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(P_recv) + 1); data/sip-tester-3.6.0/src/call.cpp:4046: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). old_last_recv_msg = (char *) malloc(strlen(last_recv_msg)+1); data/sip-tester-3.6.0/src/call.cpp:4050: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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(P_recv) + 1); data/sip-tester-3.6.0/src/call.cpp:4069:59: [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). realloc_ptr = (char *) realloc(last_recv_msg, strlen(old_last_recv_msg) + 1); data/sip-tester-3.6.0/src/infile.cpp:68:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). useprintf += strlen("PRINTF"); data/sip-tester-3.6.0/src/infile.cpp:85:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). useprintf += strlen("PRINTFOFFSET"); data/sip-tester-3.6.0/src/infile.cpp:98:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). useprintf += strlen("PRINTFMULTIPLE"); data/sip-tester-3.6.0/src/infile.cpp:202:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(s); data/sip-tester-3.6.0/src/logger.cpp:278:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(errstart) > 60) { data/sip-tester-3.6.0/src/logger.cpp:598:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(desc) < 9 ? 9 : strlen(desc); data/sip-tester-3.6.0/src/logger.cpp:598:46: [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(desc) < 9 ? 9 : strlen(desc); data/sip-tester-3.6.0/src/message.cpp:126: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). dest = literal = (char *)malloc(strlen(src) + num_cr + 1); data/sip-tester-3.6.0/src/message.cpp:186: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). dest = literal = (char *)malloc(strlen(src) + num_cr + 1); data/sip-tester-3.6.0/src/message.cpp:215:53: [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 ((strncmp(keyword, "authentication", strlen("authentication")) && data/sip-tester-3.6.0/src/message.cpp:216: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). strncmp(keyword, "tdmmap", strlen("tdmmap"))) && data/sip-tester-3.6.0/src/message.cpp:256: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). if(!strncmp(keyword, "field", strlen("field"))) { data/sip-tester-3.6.0/src/message.cpp:260:72: [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). newcomp->comp_param.field_param.field = atoi(keyword + strlen("field")); data/sip-tester-3.6.0/src/message.cpp:282: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). } else if(!strncmp(keyword, "file", strlen("file"))) { data/sip-tester-3.6.0/src/message.cpp:299: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). } else if(!strncmp(keyword, "fill", strlen("fill"))) { data/sip-tester-3.6.0/src/message.cpp:306:21: [1] (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 character. strcpy(filltext, "X"); data/sip-tester-3.6.0/src/message.cpp:311: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). newcomp->literalLen = strlen(newcomp->literal); data/sip-tester-3.6.0/src/message.cpp:316:50: [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). } else if(!strncmp(keyword, "last_", strlen("last_"))) { data/sip-tester-3.6.0/src/message.cpp:318:53: [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). newcomp->literal = strdup(keyword + strlen("last_")); data/sip-tester-3.6.0/src/message.cpp:319: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). newcomp->literalLen = strlen(newcomp->literal); data/sip-tester-3.6.0/src/message.cpp:320:59: [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). } else if(!strncmp(keyword, "authentication", strlen("authentication"))) { data/sip-tester-3.6.0/src/message.cpp:338: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). newcomp->literalLen = strlen(newcomp->literal); data/sip-tester-3.6.0/src/message.cpp:415:32: [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). memmove(method, p, strlen(p) + 1); data/sip-tester-3.6.0/src/message.cpp:417:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). method = (char *)realloc(method, strlen(method) + 1); data/sip-tester-3.6.0/src/message.cpp:507:16: [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). tmp += strlen(param); data/sip-tester-3.6.0/src/message.cpp:524:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(output, tmp, key-tmp); data/sip-tester-3.6.0/src/message.cpp:547:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(my_auth_user, auth_username ? auth_username : service, data/sip-tester-3.6.0/src/message.cpp:551:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(my_auth_pass, auth_password, sizeof(my_auth_pass) - 1); data/sip-tester-3.6.0/src/rtpstream.cpp:321:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(sleeptime_us); data/sip-tester-3.6.0/src/rtpstream.cpp:580:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cached_files[num_cached_files].filename, filename, data/sip-tester-3.6.0/src/rtpstream.cpp:753:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50000); data/sip-tester-3.6.0/src/scenario.cpp:244: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). if (ptr && ptr[0] == '[' && (len = strlen(ptr)) && ptr[len - 1] == ']') { data/sip-tester-3.6.0/src/scenario.cpp:249:56: [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 (strncmp(ptr + 1, keyword, len) == 0 && strlen(keyword) == len) { data/sip-tester-3.6.0/src/scenario.cpp:282: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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:282:52: [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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:299: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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:299:52: [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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:325: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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:325:52: [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). helptext = (char *)malloc(100 + strlen(name) + strlen(what)); data/sip-tester-3.6.0/src/scenario.cpp:347:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strcspn(txnName, "$,") != strlen(txnName)) { data/sip-tester-3.6.0/src/scenario.cpp:405:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strcspn(varName, "$,") != strlen(varName)) { data/sip-tester-3.6.0/src/scenario.cpp:529: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). if (strcspn(ptr, "$,") != strlen(ptr)) { data/sip-tester-3.6.0/src/scenario.cpp:598: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). msg = (char *) malloc(strlen(ptr) + 3); data/sip-tester-3.6.0/src/scenario.cpp:604:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ptr = msg + strlen(msg); data/sip-tester-3.6.0/src/scenario.cpp:621: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). memmove(ptr + 1, ptr + 2, strlen(ptr) - 1); data/sip-tester-3.6.0/src/scenario.cpp:624: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). memmove(ptr, ptr + 1, strlen(ptr)); data/sip-tester-3.6.0/src/scenario.cpp:627: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). memmove(ptr + 1, ptr + 2, strlen(ptr) - 1); data/sip-tester-3.6.0/src/scenario.cpp:630: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). memmove(ptr, ptr + 1, strlen(ptr)); data/sip-tester-3.6.0/src/scenario.cpp:820: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). if((msg[strlen(msg) - 1] != '\n') && (removed_clrf)) { data/sip-tester-3.6.0/src/scenario.cpp:821:21: [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(msg, "\n"); data/sip-tester-3.6.0/src/scenario.cpp:845: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). int len = method_list ? strlen(method_list) : 0; data/sip-tester-3.6.0/src/scenario.cpp:846:74: [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). method_list = (char *)realloc(method_list, len + strlen(method) + 1); data/sip-tester-3.6.0/src/scenario.cpp:978:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(infos.peer_host, get_peer_addr(peer), sizeof(infos.peer_host) - 1); data/sip-tester-3.6.0/src/scenario.cpp:1362: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). currentRegExp = new char[strlen(ptr)+1]; data/sip-tester-3.6.0/src/scenario.cpp:1386:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!cptr || !strlen(cptr)) { data/sip-tester-3.6.0/src/scenario.cpp:1821:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sizeOf = strlen(P_listeStr); data/sip-tester-3.6.0/src/screen.cpp:94:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(screen_exename, exe_name, sizeof(screen_exename) - 1); data/sip-tester-3.6.0/src/sip_parser.cpp:170: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). src += strlen(name) + 1; data/sip-tester-3.6.0/src/sip_parser.cpp:262: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). memmove(ptr, ptr+1, strlen(ptr)); data/sip-tester-3.6.0/src/sip_parser.cpp:267: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). memmove(ptr, ptr+1, strlen(ptr)); data/sip-tester-3.6.0/src/sip_parser.cpp:271: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). memmove(ptr, ptr+1, strlen(ptr)); data/sip-tester-3.6.0/src/sip_parser.cpp:374:16: [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 (msg && strlen(msg) > 0) { data/sip-tester-3.6.0/src/sip_parser.cpp:384: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). int namelen = strlen(name); data/sip-tester-3.6.0/src/sip_parser.cpp:385: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). int shortnamelen = shortname ? strlen(shortname) : 0; data/sip-tester-3.6.0/src/sip_parser.cpp:405: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). const char *tmp = ptr + (is_short ? strlen(shortname) : strlen(name)); data/sip-tester-3.6.0/src/sip_parser.cpp:405:69: [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). const char *tmp = ptr + (is_short ? strlen(shortname) : strlen(name)); data/sip-tester-3.6.0/src/sip_parser.cpp:470: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). int namelen = strlen(name); data/sip-tester-3.6.0/src/sip_parser.cpp:535:5: [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(data, "INVITE sip:3136455552@85.12.1.1:5065 SIP/2.0\r\n\ data/sip-tester-3.6.0/src/sipp.cpp:655:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(in); data/sip-tester-3.6.0/src/sipp.cpp:1342:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(remote_host, argv[argi], sizeof(remote_host) - 1); data/sip-tester-3.6.0/src/sipp.cpp:1498:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(argv[argi]) != 2) { data/sip-tester-3.6.0/src/sipp.cpp:1529: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). if (strlen(comp_error)) { data/sip-tester-3.6.0/src/sipp.cpp:1682: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). slave_cfg_file = new char [strlen(argv[argi]) + 1]; data/sip-tester-3.6.0/src/socket.cpp:601: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). int command_len = strlen(command_buffer); data/sip-tester-3.6.0/src/socket.cpp:606: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). int command_len = strlen(command_buffer); data/sip-tester-3.6.0/src/socket.cpp:765:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen("\r\nContent-Length:"); data/sip-tester-3.6.0/src/socket.cpp:767:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen("\r\nl:"); data/sip-tester-3.6.0/src/socket.cpp:840: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). if (strlen(multihome_ip)>0) { data/sip-tester-3.6.0/src/socket.cpp:2156:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(comp_msg, buffer, sizeof(comp_msg) - 1); data/sip-tester-3.6.0/src/socket.cpp:2302: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. usleep(1000 * reset_sleep); data/sip-tester-3.6.0/src/socket.cpp:2336:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(remote_host)) { data/sip-tester-3.6.0/src/socket.cpp:2376:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(local_ip) || !strlen(remote_host)) { data/sip-tester-3.6.0/src/socket.cpp:2376:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(local_ip) || !strlen(remote_host)) { data/sip-tester-3.6.0/src/socket.cpp:2385:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(local_ip)) { data/sip-tester-3.6.0/src/socket.cpp:2620:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(twinSippHost, get_peer_addr(master_name), sizeof(twinSippHost) - 1); data/sip-tester-3.6.0/src/socket.cpp:2625:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(twinSippHost, get_peer_addr(slave_number), sizeof(twinSippHost) - 1); data/sip-tester-3.6.0/src/sslsocket.cpp:88:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, (char *)(passwd), size); data/sip-tester-3.6.0/src/sslsocket.cpp:90: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). return(strlen(buf)); data/sip-tester-3.6.0/src/sslsocket.cpp:230: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). if (strlen(tls_ca_name) != 0) { data/sip-tester-3.6.0/src/sslsocket.cpp:237: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). if (strlen(tls_ca_name) != 0 || strlen(tls_crl_name) != 0) { data/sip-tester-3.6.0/src/sslsocket.cpp:237: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). if (strlen(tls_ca_name) != 0 || strlen(tls_crl_name) != 0) { data/sip-tester-3.6.0/src/stat.cpp:247:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sizeOf = strlen(P_listeStr); data/sip-tester-3.6.0/src/stat.cpp:331: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). sizeOf = strlen(P_name) + 6; data/sip-tester-3.6.0/src/stat.cpp:334: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). sizeOfExtension = strlen(P_extension); data/sip-tester-3.6.0/src/stat.cpp:372: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). sizeOf = strlen(P_name); data/sip-tester-3.6.0/src/stat.cpp:396: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). sizeOf = strlen(P_name) ; data/sip-tester-3.6.0/src/stat.cpp:400: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). sizeOfExtension = strlen(P_extension); data/sip-tester-3.6.0/src/stat.cpp:1083: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). L_size += strlen(DEFAULT_FILE_NAME) ; data/sip-tester-3.6.0/src/stat.cpp:1084: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). L_size += strlen(DEFAULT_EXTENSION) ; data/sip-tester-3.6.0/src/stat.cpp:1111:16: [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 dlen = strlen(stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1114:64: [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). repartitionHeader = (char *)realloc(repartitionHeader, strlen(P_repartitionName) + dlen + 1); data/sip-tester-3.6.0/src/stat.cpp:1118: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). repartitionHeader = (char *)realloc(repartitionHeader, strlen(repartitionHeader) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1118:96: [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). repartitionHeader = (char *)realloc(repartitionHeader, strlen(repartitionHeader) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1122:64: [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). repartitionHeader = (char *)realloc(repartitionHeader, strlen(repartitionHeader) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1122:92: [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). repartitionHeader = (char *)realloc(repartitionHeader, strlen(repartitionHeader) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1126:9: [1] (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 character. strcpy(repartitionHeader, ""); data/sip-tester-3.6.0/src/stat.cpp:1137:16: [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 dlen = strlen(stat_delimiter); data/sip-tester-3.6.0/src/stat.cpp:1145:64: [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). repartitionInfo = (char *)realloc(repartitionInfo, strlen(repartitionInfo) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1145:90: [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). repartitionInfo = (char *)realloc(repartitionInfo, strlen(repartitionInfo) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1149:60: [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). repartitionInfo = (char *)realloc(repartitionInfo, strlen(repartitionInfo) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1149:86: [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). repartitionInfo = (char *)realloc(repartitionInfo, strlen(repartitionInfo) + strlen(buffer) + 1); data/sip-tester-3.6.0/src/stat.cpp:1242: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). char *s = (char *)malloc(20 + strlen(M_genericDisplay[i])); data/sip-tester-3.6.0/src/stat.cpp:1355: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). char *s = (char *)malloc(20 + strlen(M_genericDisplay[i])); data/sip-tester-3.6.0/src/strings.cpp:66: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). len = strlen(addr) + 1; data/sip-tester-3.6.0/src/strings.cpp:94: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). len = strlen(initial_bracket) + 1; data/sip-tester-3.6.0/src/strings.cpp:129:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(p); data/sip-tester-3.6.0/src/time.cpp:103: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. usleep(usec); data/sip-tester-3.6.0/src/xp_parser.c:64:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xp_history_pos += strlen(n) + 1; \ data/sip-tester-3.6.0/src/xp_parser.c:130:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p + 1) + 1; data/sip-tester-3.6.0/src/xp_parser.c:259:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). escape_len = strlen(escape); data/sip-tester-3.6.0/src/xp_parser.c:276:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/sip-tester-3.6.0/src/xp_parser.c:307:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(f)) != EOF) { data/sip-tester-3.6.0/src/xp_parser.c:476: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). ptr += strlen(name); data/sip-tester-3.6.0/src/xp_parser.c:482:16: [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). ptr += strlen(name); ANALYSIS SUMMARY: Hits = 691 Lines analyzed = 29649 in approximately 1.80 seconds (16500 lines/second) Physical Source Lines of Code (SLOC) = 22551 Hits@level = [0] 290 [1] 200 [2] 301 [3] 3 [4] 184 [5] 3 Hits@level+ = [0+] 981 [1+] 691 [2+] 491 [3+] 190 [4+] 187 [5+] 3 Hits/KSLOC@level+ = [0+] 43.5014 [1+] 30.6417 [2+] 21.7729 [3+] 8.42535 [4+] 8.29232 [5+] 0.133032 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.