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/sngrep-1.4.8/src/address.c
Examining data/sngrep-1.4.8/src/address.h
Examining data/sngrep-1.4.8/src/capture.c
Examining data/sngrep-1.4.8/src/capture.h
Examining data/sngrep-1.4.8/src/capture_eep.c
Examining data/sngrep-1.4.8/src/capture_eep.h
Examining data/sngrep-1.4.8/src/capture_gnutls.c
Examining data/sngrep-1.4.8/src/capture_gnutls.h
Examining data/sngrep-1.4.8/src/capture_openssl.c
Examining data/sngrep-1.4.8/src/capture_openssl.h
Examining data/sngrep-1.4.8/src/curses/scrollbar.c
Examining data/sngrep-1.4.8/src/curses/scrollbar.h
Examining data/sngrep-1.4.8/src/curses/theme.h
Examining data/sngrep-1.4.8/src/curses/ui_call_flow.c
Examining data/sngrep-1.4.8/src/curses/ui_call_flow.h
Examining data/sngrep-1.4.8/src/curses/ui_call_list.c
Examining data/sngrep-1.4.8/src/curses/ui_call_list.h
Examining data/sngrep-1.4.8/src/curses/ui_call_raw.c
Examining data/sngrep-1.4.8/src/curses/ui_call_raw.h
Examining data/sngrep-1.4.8/src/curses/ui_column_select.c
Examining data/sngrep-1.4.8/src/curses/ui_column_select.h
Examining data/sngrep-1.4.8/src/curses/ui_filter.c
Examining data/sngrep-1.4.8/src/curses/ui_filter.h
Examining data/sngrep-1.4.8/src/curses/ui_manager.c
Examining data/sngrep-1.4.8/src/curses/ui_manager.h
Examining data/sngrep-1.4.8/src/curses/ui_msg_diff.c
Examining data/sngrep-1.4.8/src/curses/ui_msg_diff.h
Examining data/sngrep-1.4.8/src/curses/ui_panel.c
Examining data/sngrep-1.4.8/src/curses/ui_panel.h
Examining data/sngrep-1.4.8/src/curses/ui_save.c
Examining data/sngrep-1.4.8/src/curses/ui_save.h
Examining data/sngrep-1.4.8/src/curses/ui_settings.c
Examining data/sngrep-1.4.8/src/curses/ui_settings.h
Examining data/sngrep-1.4.8/src/curses/ui_stats.c
Examining data/sngrep-1.4.8/src/curses/ui_stats.h
Examining data/sngrep-1.4.8/src/filter.c
Examining data/sngrep-1.4.8/src/filter.h
Examining data/sngrep-1.4.8/src/group.c
Examining data/sngrep-1.4.8/src/group.h
Examining data/sngrep-1.4.8/src/hash.c
Examining data/sngrep-1.4.8/src/hash.h
Examining data/sngrep-1.4.8/src/keybinding.c
Examining data/sngrep-1.4.8/src/keybinding.h
Examining data/sngrep-1.4.8/src/main.c
Examining data/sngrep-1.4.8/src/media.c
Examining data/sngrep-1.4.8/src/media.h
Examining data/sngrep-1.4.8/src/option.c
Examining data/sngrep-1.4.8/src/option.h
Examining data/sngrep-1.4.8/src/packet.c
Examining data/sngrep-1.4.8/src/packet.h
Examining data/sngrep-1.4.8/src/rtp.c
Examining data/sngrep-1.4.8/src/rtp.h
Examining data/sngrep-1.4.8/src/setting.c
Examining data/sngrep-1.4.8/src/setting.h
Examining data/sngrep-1.4.8/src/sip.c
Examining data/sngrep-1.4.8/src/sip.h
Examining data/sngrep-1.4.8/src/sip_attr.c
Examining data/sngrep-1.4.8/src/sip_attr.h
Examining data/sngrep-1.4.8/src/sip_call.c
Examining data/sngrep-1.4.8/src/sip_call.h
Examining data/sngrep-1.4.8/src/sip_msg.c
Examining data/sngrep-1.4.8/src/sip_msg.h
Examining data/sngrep-1.4.8/src/util.c
Examining data/sngrep-1.4.8/src/util.h
Examining data/sngrep-1.4.8/src/vector.c
Examining data/sngrep-1.4.8/src/vector.h
Examining data/sngrep-1.4.8/tests/test_001.c
Examining data/sngrep-1.4.8/tests/test_002.c
Examining data/sngrep-1.4.8/tests/test_003.c
Examining data/sngrep-1.4.8/tests/test_004.c
Examining data/sngrep-1.4.8/tests/test_005.c
Examining data/sngrep-1.4.8/tests/test_006.c
Examining data/sngrep-1.4.8/tests/test_007.c
Examining data/sngrep-1.4.8/tests/test_008.c
Examining data/sngrep-1.4.8/tests/test_009.c
Examining data/sngrep-1.4.8/tests/test_010.c
Examining data/sngrep-1.4.8/tests/test_input.c

FINAL RESULTS:

data/sngrep-1.4.8/src/capture_gnutls.c:288: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(capture_keyfile(), R_OK) != 0)
data/sngrep-1.4.8/src/capture_openssl.c:275: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(capture_keyfile(), R_OK) != 0)
data/sngrep-1.4.8/src/curses/ui_call_flow.c:179:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(title, "Extended Call flow for %s", info->group->callid);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:182:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(title, "Call flow for %s", call->callid);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:569:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(mediastr, "%s %d (%s)",
data/sngrep-1.4.8/src/curses/ui_call_flow.c:700:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(text, "RTP (%s) %d", stream_get_format(stream), stream_get_count(stream));
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1386:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(addr_port, "%s:%d", addr.ip, addr.port);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1387: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(column->alias, get_alias_value(addr_port));
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1389: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(column->alias, get_alias_value(addr.ip));
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1413:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(addr_port, "%s:%d", addr.ip, addr.port);
data/sngrep-1.4.8/src/curses/ui_call_list.c:552:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(text + strlen(text), "%-*s ", collen, coltext);
data/sngrep-1.4.8/src/curses/ui_call_raw.c:145: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(payload, msg_get_payload(msg));
data/sngrep-1.4.8/src/curses/ui_column_select.c:276: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(field_value, field_buffer(current_field(info->form), 0));
data/sngrep-1.4.8/src/curses/ui_column_select.c:385:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(userconf, "%s", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:386:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmpfile, "%s.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:397:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(userconf, "%s/.sngreprc", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:398:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmpfile, "%s/.sngreprc.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:448:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(columnopt, "set cl.column%d %s\n", column, (const char*) item_userptr(info->items[column]));
data/sngrep-1.4.8/src/curses/ui_filter.c:217: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(field_value, field_buffer(current_field(info->form), 0));
data/sngrep-1.4.8/src/curses/ui_filter.c:345: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(field_value, field_buffer(info->fields[field_id], 0));
data/sngrep-1.4.8/src/curses/ui_filter.c:379:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(method_expr + strlen(method_expr), ",%s", filter_field_method(field_id));
data/sngrep-1.4.8/src/curses/ui_filter.c:381: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_expr, filter_field_method(field_id));
data/sngrep-1.4.8/src/curses/ui_filter.c:458:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(method_expr, "(%s)", methods);
data/sngrep-1.4.8/src/curses/ui_manager.c:489:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(textva, fmt, ap);
data/sngrep-1.4.8/src/curses/ui_manager.c:546:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(textva, fmt, ap);
data/sngrep-1.4.8/src/curses/ui_manager.c:658: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(opts[i++], option);
data/sngrep-1.4.8/src/curses/ui_save.c:115:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(savepath, "%s", setting_get_value(SETTING_SAVEPATH));
data/sngrep-1.4.8/src/curses/ui_save.c:235: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(field_value, field_buffer(info->fields[FLD_SAVE_FILE], 0));
data/sngrep-1.4.8/src/curses/ui_save.c:429: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(savepath, field_buffer(info->fields[FLD_SAVE_PATH], 0));
data/sngrep-1.4.8/src/curses/ui_save.c:436: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(savefile, field_buffer(info->fields[FLD_SAVE_FILE], 0));
data/sngrep-1.4.8/src/curses/ui_save.c:453:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fullfile, "%s%s", savepath, savefile);
data/sngrep-1.4.8/src/curses/ui_save.c:455: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(fullfile, R_OK) == 0) {
data/sngrep-1.4.8/src/curses/ui_save.c:469: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(fullfile, W_OK) != 0) {
data/sngrep-1.4.8/src/curses/ui_settings.c:436: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(field_value, field_buffer(info->fields[i], 0));
data/sngrep-1.4.8/src/curses/ui_settings.c:465:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(userconf, "%s", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:466:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmpfile, "%s.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:477:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(userconf, "%s/.sngreprc", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:478:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmpfile, "%s/.sngreprc.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:521: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(field_value, field_buffer(info->fields[i], 0));
data/sngrep-1.4.8/src/filter.c:159: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(data, msg_get_payload(msg));
data/sngrep-1.4.8/src/main.c:331:23:  [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 (argc == 2 && (access(argv[1], F_OK) == 0)) {
data/sngrep-1.4.8/src/main.c:384:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(bpf + strlen(bpf), "%s ", argv[i]);
data/sngrep-1.4.8/src/main.c:395:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(bpf + strlen(bpf), "%s ", argv[i]);
data/sngrep-1.4.8/src/media.c:89: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(fmt->format, format);
data/sngrep-1.4.8/src/option.c:88:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(userconf, "%s/.sngreprc", rcfile);
data/sngrep-1.4.8/src/setting.c:171: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(sett->value, value);
data/sngrep-1.4.8/src/sip.c:716:21:  [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(rtp_stream->dst.ip, dst.ip);
data/sngrep-1.4.8/src/sip.c:717:21:  [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(rtcp_stream->dst.ip, dst.ip);
data/sngrep-1.4.8/src/sip.c:931:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(out, "%s %s %s -> %s", date, time, get_alias_value(from_addr), get_alias_value(to_addr));
data/sngrep-1.4.8/src/sip.c:933:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(out, "%s %s %s -> %s", date, time, from_addr, to_addr);
data/sngrep-1.4.8/src/sip_call.c:260:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(value, "%s", call->callid);
data/sngrep-1.4.8/src/sip_call.c:263:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(value, "%s", call->xcallid);
data/sngrep-1.4.8/src/sip_call.c:269:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(value, "%s", call_state_to_str(call->state));
data/sngrep-1.4.8/src/sip_call.c:273:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(value, "%s", sip_transport_str(first->packet->type));
data/sngrep-1.4.8/src/sip_call.c:285:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(value, "%s", call->reasontxt);
data/sngrep-1.4.8/src/sip_msg.c:124:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(value, "[%s]:%u", msg->packet->src.ip, msg->packet->src.port);
data/sngrep-1.4.8/src/sip_msg.c:126:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(value, "%s:%u", msg->packet->src.ip, msg->packet->src.port);
data/sngrep-1.4.8/src/sip_msg.c:131:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(value, "[%s]:%u", msg->packet->dst.ip, msg->packet->dst.port);
data/sngrep-1.4.8/src/sip_msg.c:133:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(value, "%s:%u", msg->packet->dst.ip, msg->packet->dst.port);
data/sngrep-1.4.8/src/util.c:121:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(out, "%7s", duration);
data/sngrep-1.4.8/tests/test_input.c:71:9:  [4] (shell) execv:
  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.
        execv(argv[0], argv);
data/sngrep-1.4.8/src/capture_gnutls.c:489:38:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        memcpy(&conn->client_random, random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:570:60:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                memcpy(&conn->client_random, &clienthello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:585:60:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                memcpy(&conn->server_random, &serverhello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:626:74:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                tls_debug_print_hex("master_secret", conn->master_secret.random, sizeof(struct MasterSecret));
data/sngrep-1.4.8/src/capture_gnutls.h:181:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    struct Random random;
data/sngrep-1.4.8/src/capture_gnutls.h:190:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    struct Random random;
data/sngrep-1.4.8/src/capture_gnutls.h:198:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    uint8_t random[48];
data/sngrep-1.4.8/src/capture_gnutls.h:203:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    uint8_t random[46];
data/sngrep-1.4.8/src/capture_openssl.c:482:38:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        memcpy(&conn->client_random, random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:568:60:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                memcpy(&conn->client_random, &clienthello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:590:60:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                memcpy(&conn->server_random, &serverhello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:635:74:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                tls_debug_print_hex("master_secret", conn->master_secret.random, 48);
data/sngrep-1.4.8/src/capture_openssl.h:202:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    struct Random random;
data/sngrep-1.4.8/src/capture_openssl.h:211:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    struct Random random;
data/sngrep-1.4.8/src/capture_openssl.h:219:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    uint8_t random[48];
data/sngrep-1.4.8/src/capture_openssl.h:224:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    uint8_t random[46];
data/sngrep-1.4.8/src/curses/ui_column_select.c:382:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rcfile = getenv("SNGREPRC"))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:394:26:  [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.
    } else if ((rcfile = getenv("HOME"))) {
data/sngrep-1.4.8/src/curses/ui_manager.c:99:12:  [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.
    term = getenv("TERM");
data/sngrep-1.4.8/src/curses/ui_settings.c:462:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rcfile = getenv("SNGREPRC"))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:474:26:  [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.
    } else if ((rcfile = getenv("HOME"))) {
data/sngrep-1.4.8/src/main.c:173:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, argv, options, long_options, &idx)) != -1) {
data/sngrep-1.4.8/src/main.c:208:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, argv, options, long_options, &idx)) != -1) {
data/sngrep-1.4.8/src/option.c:84:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rcfile = getenv("SNGREPRC"))) {
data/sngrep-1.4.8/src/option.c:86:26:  [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.
    } else if ((rcfile = getenv("HOME"))) {
data/sngrep-1.4.8/src/address.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[PCAP_ERRBUF_SIZE];
data/sngrep-1.4.8/src/address.c:63: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 ip[ADDRESSLEN];
data/sngrep-1.4.8/src/address.c:108: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 scanipport[256];
data/sngrep-1.4.8/src/address.c:109: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 address[ADDRESSLEN + 1];
data/sngrep-1.4.8/src/address.h:59: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 ip[ADDRESSLEN];
data/sngrep-1.4.8/src/capture.c:112: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 errbuf[PCAP_ERRBUF_SIZE];
data/sngrep-1.4.8/src/capture.c: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 errbuf[PCAP_ERRBUF_SIZE];
data/sngrep-1.4.8/src/capture.c:296: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(data, packet, header->caplen);
data/sngrep-1.4.8/src/capture.c:578: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(packet + link_hl + ip_hl + (ntohs(frame_ip->ip_off) & IP_OFFMASK) * 8,
data/sngrep-1.4.8/src/capture.c:649: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(new_payload, pkt->payload, pkt->payload_len);
data/sngrep-1.4.8/src/capture.c:650: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(new_payload + pkt->payload_len, payload, size_payload);
data/sngrep-1.4.8/src/capture.c:653: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(new_payload, payload, size_payload);
data/sngrep-1.4.8/src/capture.c:654: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(new_payload + size_payload, pkt->payload, pkt->payload_len);
data/sngrep-1.4.8/src/capture.c:662: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(full_payload, pkt->payload, pkt->payload_len);
data/sngrep-1.4.8/src/capture.c:766: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(ws_mask_key, (payload + ws_off), 4);
data/sngrep-1.4.8/src/capture.c:776: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(newpayload, payload + ws_off, size_payload);
data/sngrep-1.4.8/src/capture_eep.c:267: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((void*) buffer + buflen, &hdr, sizeof(struct hep_hdr));
data/sngrep-1.4.8/src/capture_eep.c:272: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((void*) buffer + buflen, &hep_ipheader, sizeof(struct hep_iphdr));
data/sngrep-1.4.8/src/capture_eep.c:277: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((void*) buffer + buflen, &hep_ip6header, sizeof(struct hep_ip6hdr));
data/sngrep-1.4.8/src/capture_eep.c:283: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((void*) buffer + buflen, &hep_time, sizeof(struct hep_timehdr));
data/sngrep-1.4.8/src/capture_eep.c:287: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((void*) buffer + buflen, data, len);
data/sngrep-1.4.8/src/capture_eep.c:319: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(hg->header.id, "\x48\x45\x50\x33", 4);
data/sngrep-1.4.8/src/capture_eep.c:430: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((void*) buffer, hg, sizeof(struct hep_generic));
data/sngrep-1.4.8/src/capture_eep.c:436: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((void*) buffer + buflen, &src_ip4, sizeof(struct hep_chunk_ip4));
data/sngrep-1.4.8/src/capture_eep.c:439: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((void*) buffer + buflen, &dst_ip4, sizeof(struct hep_chunk_ip4));
data/sngrep-1.4.8/src/capture_eep.c:447: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((void*) buffer+buflen, &src_ip6, sizeof(struct hep_chunk_ip6));
data/sngrep-1.4.8/src/capture_eep.c:450: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((void*) buffer+buflen, &dst_ip6, sizeof(struct hep_chunk_ip6));
data/sngrep-1.4.8/src/capture_eep.c:458: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((void*) buffer + buflen, &authkey_chunk, sizeof(struct hep_chunk));
data/sngrep-1.4.8/src/capture_eep.c:462: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((void*) buffer + buflen, eep_cfg.capt_password, strlen(eep_cfg.capt_password));
data/sngrep-1.4.8/src/capture_eep.c:467: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((void*) buffer + buflen, &payload_chunk, sizeof(struct hep_chunk));
data/sngrep-1.4.8/src/capture_eep.c:471: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((void*) buffer + buflen, data, len);
data/sngrep-1.4.8/src/capture_eep.c:502: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_CAPTURE_LEN] ;
data/sngrep-1.4.8/src/capture_eep.c:529: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(&hdr, buffer, sizeof(struct hep_hdr));
data/sngrep-1.4.8/src/capture_eep.c:544: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(&hep_ipheader, (void*) buffer + pos, sizeof(struct hep_iphdr));
data/sngrep-1.4.8/src/capture_eep.c:552: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(&hep_ip6header, (void*) buffer + pos, sizeof(struct hep_ip6hdr));
data/sngrep-1.4.8/src/capture_eep.c:564: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(&hep_time, (void*) buffer + pos, sizeof(struct hep_timehdr));
data/sngrep-1.4.8/src/capture_eep.c:577: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(payload, (void*) buffer + pos, header.caplen);
data/sngrep-1.4.8/src/capture_eep.c:613: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 password[100];
data/sngrep-1.4.8/src/capture_eep.c:617: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_CAPTURE_LEN] ;
data/sngrep-1.4.8/src/capture_eep.c:640: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(&hg.header, buffer, sizeof(struct hep_generic));
data/sngrep-1.4.8/src/capture_eep.c:671: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(&hg.ip_family, (void*) buffer + pos, sizeof(hep_chunk_uint8_t));
data/sngrep-1.4.8/src/capture_eep.c:674: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(&hg.ip_proto, (void*) buffer + pos, sizeof(hep_chunk_uint8_t));
data/sngrep-1.4.8/src/capture_eep.c:677: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(&src_ip4, (void*) buffer + pos, sizeof(struct hep_chunk_ip4));
data/sngrep-1.4.8/src/capture_eep.c:681: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(&dst_ip4, (void*) buffer + pos, sizeof(struct hep_chunk_ip4));
data/sngrep-1.4.8/src/capture_eep.c:686: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(&src_ip6, (void*) buffer + pos, sizeof(struct hep_chunk_ip6));
data/sngrep-1.4.8/src/capture_eep.c:690: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(&dst_ip6, (void*) buffer + pos, sizeof(struct hep_chunk_ip6));
data/sngrep-1.4.8/src/capture_eep.c:695: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(&hg.src_port, (void*) buffer + pos, sizeof(hep_chunk_uint16_t));
data/sngrep-1.4.8/src/capture_eep.c:699: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(&hg.dst_port, (void*) buffer + pos, sizeof(hep_chunk_uint16_t));
data/sngrep-1.4.8/src/capture_eep.c:703: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(&hg.time_sec, (void*) buffer + pos, sizeof(hep_chunk_uint32_t));
data/sngrep-1.4.8/src/capture_eep.c:707: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(&hg.time_usec, (void*) buffer + pos, sizeof(hep_chunk_uint32_t));
data/sngrep-1.4.8/src/capture_eep.c:711: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(&hg.proto_t, (void*) buffer + pos, sizeof(hep_chunk_uint8_t));
data/sngrep-1.4.8/src/capture_eep.c:714: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(&hg.capt_id, (void*) buffer + pos, sizeof(hep_chunk_uint32_t));
data/sngrep-1.4.8/src/capture_eep.c:721: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(password, (void*) buffer + pos + sizeof(hep_chunk_t), password_len);
data/sngrep-1.4.8/src/capture_eep.c:727: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(payload, (void*) buffer + pos + sizeof(hep_chunk_t), header.caplen);
data/sngrep-1.4.8/src/capture_eep.c:763: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 urlstr[256];
data/sngrep-1.4.8/src/capture_eep.c:764: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 address[ADDRESSLEN + 1], port[6];
data/sngrep-1.4.8/src/capture_eep.c:782: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 urlstr[256];
data/sngrep-1.4.8/src/capture_eep.c:783: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 address[ADDRESSLEN + 1], port[6];
data/sngrep-1.4.8/src/capture_eep.h:164: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 id[4];
data/sngrep-1.4.8/src/capture_gnutls.c:89: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 hmac[48];
data/sngrep-1.4.8/src/capture_gnutls.c:93: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 tmpseed[slen];
data/sngrep-1.4.8/src/capture_gnutls.c:100: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(tmpseed, seed, slen);
data/sngrep-1.4.8/src/capture_gnutls.c:108: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(tmpseed, gcry_md_read(md, algo), algolen);
data/sngrep-1.4.8/src/capture_gnutls.c:116: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(hmac, gcry_md_read(md, algo), algolen);
data/sngrep-1.4.8/src/capture_gnutls.c:120: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(out, hmac, hlen);
data/sngrep-1.4.8/src/capture_gnutls.c:137: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.
        unsigned char md5_secret[hplen];
data/sngrep-1.4.8/src/capture_gnutls.c:138: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.
        unsigned char sha_secret[hplen];
data/sngrep-1.4.8/src/capture_gnutls.c:139: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(md5_secret, pre_master_secret, hplen);
data/sngrep-1.4.8/src/capture_gnutls.c:140: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(sha_secret, pre_master_secret + plen / 2, plen / 2);
data/sngrep-1.4.8/src/capture_gnutls.c:143: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.
        unsigned char h_md5[dlen];
data/sngrep-1.4.8/src/capture_gnutls.c:144: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.
        unsigned char h_sha[dlen];
data/sngrep-1.4.8/src/capture_gnutls.c:148: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.
        unsigned char fseed[slen + llen];
data/sngrep-1.4.8/src/capture_gnutls.c:149: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(fseed, label, llen);
data/sngrep-1.4.8/src/capture_gnutls.c:150: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(fseed + llen, seed, slen);
data/sngrep-1.4.8/src/capture_gnutls.c:163: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.
        unsigned char fseed[slen + llen];
data/sngrep-1.4.8/src/capture_gnutls.c:164: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(fseed, label, llen);
data/sngrep-1.4.8/src/capture_gnutls.c:165: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(fseed + llen, seed, slen);
data/sngrep-1.4.8/src/capture_gnutls.c:200:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&conn->client_addr, &caddr, sizeof(struct in_addr));
data/sngrep-1.4.8/src/capture_gnutls.c:201: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(&conn->server_addr, &saddr, sizeof(struct in_addr));
data/sngrep-1.4.8/src/capture_gnutls.c:202: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(&conn->client_port, &cport, sizeof(uint16_t));
data/sngrep-1.4.8/src/capture_gnutls.c:203: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(&conn->server_port, &sport, sizeof(uint16_t));
data/sngrep-1.4.8/src/capture_gnutls.c:210:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(keyfp = fopen(capture_keyfile(), "rb")))
data/sngrep-1.4.8/src/capture_gnutls.c:291:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(keyfp = fopen(capture_keyfile(), "rb")))
data/sngrep-1.4.8/src/capture_gnutls.c:489: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(&conn->client_random, random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:570: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(&conn->client_random, &clienthello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:585: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(&conn->server_random, &serverhello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:587: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(&conn->cipher_suite,
data/sngrep-1.4.8/src/capture_gnutls.c:613: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(&conn->pre_master_secret, pms.data, pms.size);
data/sngrep-1.4.8/src/capture_gnutls.c:620: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(seed, &conn->client_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:621: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(seed + sizeof(struct Random), &conn->server_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:628: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(seed, &conn->server_random, sizeof(struct Random) * 2);
data/sngrep-1.4.8/src/capture_gnutls.c:629: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(seed + sizeof(struct Random), &conn->client_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_gnutls.c:651: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(conn->key_material.client_write_MAC_key, key_material, mk_len);
data/sngrep-1.4.8/src/capture_gnutls.c:656: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(conn->key_material.server_write_MAC_key, key_material, mk_len);
data/sngrep-1.4.8/src/capture_gnutls.c:663: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(conn->key_material.client_write_key, key_material, wk_len);
data/sngrep-1.4.8/src/capture_gnutls.c:668: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(conn->key_material.server_write_key, key_material, wk_len);
data/sngrep-1.4.8/src/capture_gnutls.c:674: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(conn->key_material.client_write_IV, key_material, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_gnutls.c:678: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(conn->key_material.server_write_IV, key_material, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_gnutls.c:760: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(nonce, conn->key_material.client_write_IV, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_gnutls.c:761: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(nonce + conn->cipher_data.ivblock, fragment, 8);
data/sngrep-1.4.8/src/capture_gnutls.c:764: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(nonce, conn->key_material.server_write_IV, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_gnutls.c:765: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(nonce + conn->cipher_data.ivblock, fragment, 8);
data/sngrep-1.4.8/src/capture_gnutls.c:787: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(*out, decoded, dlen);
data/sngrep-1.4.8/src/capture_gnutls.c:795: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(*out, decoded, dlen);
data/sngrep-1.4.8/src/capture_gnutls.h:62: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 x[2];
data/sngrep-1.4.8/src/capture_gnutls.h:67: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 x[3];
data/sngrep-1.4.8/src/capture_openssl.c:86: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 hmac[48];
data/sngrep-1.4.8/src/capture_openssl.c:90: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 tmpseed[slen];
data/sngrep-1.4.8/src/capture_openssl.c:95: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(tmpseed, seed, slen);
data/sngrep-1.4.8/src/capture_openssl.c:126: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(out, hmac, hlen);
data/sngrep-1.4.8/src/capture_openssl.c:143: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.
        unsigned char md5_secret[hplen];
data/sngrep-1.4.8/src/capture_openssl.c:144: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.
        unsigned char sha_secret[hplen];
data/sngrep-1.4.8/src/capture_openssl.c:145: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(md5_secret, pre_master_secret, hplen);
data/sngrep-1.4.8/src/capture_openssl.c:146: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(sha_secret, pre_master_secret + plen / 2, plen / 2);
data/sngrep-1.4.8/src/capture_openssl.c:149: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.
        unsigned char h_md5[dlen];
data/sngrep-1.4.8/src/capture_openssl.c:150: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.
        unsigned char h_sha[dlen];
data/sngrep-1.4.8/src/capture_openssl.c:154: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.
        unsigned char fseed[slen + llen];
data/sngrep-1.4.8/src/capture_openssl.c:155: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(fseed, label, llen);
data/sngrep-1.4.8/src/capture_openssl.c:156: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(fseed + llen, seed, slen);
data/sngrep-1.4.8/src/capture_openssl.c:169: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.
        unsigned char fseed[slen + llen];
data/sngrep-1.4.8/src/capture_openssl.c:170: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(fseed, label, llen);
data/sngrep-1.4.8/src/capture_openssl.c:171: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(fseed + llen, seed, slen);
data/sngrep-1.4.8/src/capture_openssl.c:198: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(&conn->client_addr, &caddr, sizeof(struct in_addr));
data/sngrep-1.4.8/src/capture_openssl.c:199: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(&conn->server_addr, &saddr, sizeof(struct in_addr));
data/sngrep-1.4.8/src/capture_openssl.c:200:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&conn->client_port, &cport, sizeof(uint16_t));
data/sngrep-1.4.8/src/capture_openssl.c:201: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(&conn->server_port, &sport, sizeof(uint16_t));
data/sngrep-1.4.8/src/capture_openssl.c:266: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 errbuf[1024];
data/sngrep-1.4.8/src/capture_openssl.c:482: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(&conn->client_random, random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:568: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(&conn->client_random, &clienthello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:590: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(&conn->server_random, &serverhello->random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:592: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(&conn->cipher_suite,
data/sngrep-1.4.8/src/capture_openssl.c:626: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(seed, &conn->client_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:627: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(seed + sizeof(struct Random), &conn->server_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:637: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(seed, &conn->server_random, sizeof(struct Random) * 2);
data/sngrep-1.4.8/src/capture_openssl.c:638: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(seed + sizeof(struct Random), &conn->client_random, sizeof(struct Random));
data/sngrep-1.4.8/src/capture_openssl.c:662: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(conn->key_material.client_write_MAC_key, key_material, mk_len);
data/sngrep-1.4.8/src/capture_openssl.c:666: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(conn->key_material.server_write_MAC_key, key_material, mk_len);
data/sngrep-1.4.8/src/capture_openssl.c:673: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(conn->key_material.client_write_key, key_material, wk_len);
data/sngrep-1.4.8/src/capture_openssl.c:678: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(conn->key_material.server_write_key, key_material, wk_len);
data/sngrep-1.4.8/src/capture_openssl.c:684: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(conn->key_material.client_write_IV, key_material, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_openssl.c:688: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(conn->key_material.server_write_IV, key_material, conn->cipher_data.ivblock);
data/sngrep-1.4.8/src/capture_openssl.c:776: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(*out, decoded, dlen);
data/sngrep-1.4.8/src/capture_openssl.h:80: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 x[2];
data/sngrep-1.4.8/src/capture_openssl.h:85: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 x[3];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:169: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 title[256];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:184: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(title, "Call flow for %d dialogs", call_group_count(info->group));
data/sngrep-1.4.8/src/curses/ui_call_flow.c:189: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(title, " (Color by Request/Response)");
data/sngrep-1.4.8/src/curses/ui_call_flow.c:191: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(title, " (Color by Call-Id)");
data/sngrep-1.4.8/src/curses/ui_call_flow.c:193: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(title, " (Color by CSeq)");
data/sngrep-1.4.8/src/curses/ui_call_flow.c:258: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 coltext[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:425: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 msg_method[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:426: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 msg_time[80];
data/sngrep-1.4.8/src/curses/ui_call_flow.c: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 method[METHOD_MAXLEN + 1];
data/sngrep-1.4.8/src/curses/ui_call_flow.c: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 delta[15] = {};
data/sngrep-1.4.8/src/curses/ui_call_flow.c: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 mediastr[40];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:675: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 text[50], time[20];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1385: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 addr_port[1024];
data/sngrep-1.4.8/src/curses/ui_call_flow.c:1412: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 addr_port[1024];
data/sngrep-1.4.8/src/curses/ui_call_flow.h:125: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 alias[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_call_list.c:68: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 option[80];
data/sngrep-1.4.8/src/curses/ui_call_list.c:82: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(option, "cl.column%d", i);
data/sngrep-1.4.8/src/curses/ui_call_list.c:87: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(option, "cl.column%d.width", i);
data/sngrep-1.4.8/src/curses/ui_call_list.c:347: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 coltext[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/curses/ui_call_list.c:519: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 call_attr[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/curses/ui_call_list.c:520: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 coltext[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/curses/ui_call_list.c:549: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(coltext, "%.*s", collen, call_attr);
data/sngrep-1.4.8/src/curses/ui_call_raw.c: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[256];
data/sngrep-1.4.8/src/curses/ui_call_raw.c:131: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 payload[MAX_SIP_PAYLOAD];
data/sngrep-1.4.8/src/curses/ui_column_select.c:265: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 field_value[48];
data/sngrep-1.4.8/src/curses/ui_column_select.c:375: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 columnopt[128];
data/sngrep-1.4.8/src/curses/ui_column_select.c:376: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/sngrep-1.4.8/src/curses/ui_column_select.c:386:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                sprintf(tmpfile, "%s.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:398:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                sprintf(tmpfile, "%s/.sngreprc.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:411:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:414:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    rename(userconf, tmpfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:417:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fo = fopen(userconf, "w"))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:420:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        sng_free(tmpfile);
data/sngrep-1.4.8/src/curses/ui_column_select.c:425: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).
    if ((fi = fopen(tmpfile, "r"))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:425:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fi = fopen(tmpfile, "r"))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:457:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    sng_free(tmpfile);
data/sngrep-1.4.8/src/curses/ui_filter.c: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 field_value[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_filter.c:329: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 field_value[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_filter.c:332: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 method_expr[256];
data/sngrep-1.4.8/src/curses/ui_filter.c:443: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 methods[256], method_expr[256];
data/sngrep-1.4.8/src/curses/ui_manager.c:479: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 textva[2048];
data/sngrep-1.4.8/src/curses/ui_manager.c: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 textva[2048];
data/sngrep-1.4.8/src/curses/ui_manager.c:616: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 opts[4][10];
data/sngrep-1.4.8/src/curses/ui_msg_diff.c:116: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 search[MAX_SIP_PAYLOAD];
data/sngrep-1.4.8/src/curses/ui_msg_diff.c:159: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 highlight[MAX_SIP_PAYLOAD];
data/sngrep-1.4.8/src/curses/ui_msg_diff.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 header[MAX_SIP_PAYLOAD];
data/sngrep-1.4.8/src/curses/ui_save.c:57: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 savepath[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_save.c:213: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 field_value[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_save.c:411: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 savepath[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_save.c:412: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 savefile[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/curses/ui_save.c:413: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 fullfile[MAX_SETTING_LEN*2];
data/sngrep-1.4.8/src/curses/ui_save.c:446:13:  [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(savefile, ".pcap");
data/sngrep-1.4.8/src/curses/ui_save.c:449:13:  [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(savefile, ".txt");
data/sngrep-1.4.8/src/curses/ui_save.c:475:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!(f = fopen(fullfile, "w"))) {
data/sngrep-1.4.8/src/curses/ui_save.c:583: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 date[20], time[20], src[80], dst[80];
data/sngrep-1.4.8/src/curses/ui_settings.c:426: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 field_value[180];
data/sngrep-1.4.8/src/curses/ui_settings.c:451: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/sngrep-1.4.8/src/curses/ui_settings.c:455: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 field_value[180];
data/sngrep-1.4.8/src/curses/ui_settings.c:466:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                sprintf(tmpfile, "%s.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:478:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                sprintf(tmpfile, "%s/.sngreprc.old", rcfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:492:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:495:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    rename(userconf, tmpfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:498:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fo = fopen(userconf, "w"))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:500:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        sng_free(tmpfile);
data/sngrep-1.4.8/src/curses/ui_settings.c:505: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).
    if ((fi = fopen(tmpfile, "r"))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:505:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fi = fopen(tmpfile, "r"))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:533:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    sng_free(tmpfile);
data/sngrep-1.4.8/src/filter.c:82: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(&filters[type].regex, &regex, sizeof(regex));
data/sngrep-1.4.8/src/filter.c:98: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[MAX_SIP_PAYLOAD];
data/sngrep-1.4.8/src/keybinding.c:147: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(&tmp, bind, sizeof(key_binding_t));
data/sngrep-1.4.8/src/keybinding.c:245:22:  [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).
        return KEY_F(atoi(key+1));
data/sngrep-1.4.8/src/main.c:131: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 bpf[512];
data/sngrep-1.4.8/src/main.c:228:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if(!(pcap_buffer_size = atoi(optarg))) {
data/sngrep-1.4.8/src/main.c:238:30:  [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).
                if(!(limit = atoi(optarg))) {
data/sngrep-1.4.8/src/media.h:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char format[50];
data/sngrep-1.4.8/src/media.h:56: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 type[MEDIATYPELEN];
data/sngrep-1.4.8/src/option.c:55: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 pwd[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/option.c:112: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], type[20], option[50], value[50];
data/sngrep-1.4.8/src/option.c:115:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!(fh = fopen(fname, "rt")))
data/sngrep-1.4.8/src/option.c:161:16:  [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).
        return atoi(value);
data/sngrep-1.4.8/src/packet.c:121: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(frame->header, header, sizeof(struct pcap_pkthdr));
data/sngrep-1.4.8/src/packet.c:123:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(frame->data, packet, header->caplen);
data/sngrep-1.4.8/src/packet.c:146: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(packet->payload, payload, payload_len);
data/sngrep-1.4.8/src/setting.c:160:44:  [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).
    return (sett && strlen(sett->value)) ? atoi(sett->value) : -1;
data/sngrep-1.4.8/src/setting.c: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 strvalue[80];
data/sngrep-1.4.8/src/setting.c:184: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(strvalue, "%d", value);
data/sngrep-1.4.8/src/setting.h:154: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 value[MAX_SETTING_LEN];
data/sngrep-1.4.8/src/sip.c:144: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 reg_rule[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/sip.c:266: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 cl_header[10];
data/sngrep-1.4.8/src/sip.c:276: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(payload, packet_payload(packet), plen);
data/sngrep-1.4.8/src/sip.c:294:19:  [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).
    content_len = atoi(cl_header);
data/sngrep-1.4.8/src/sip.c:330: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 callid[1024], xcallid[1024];
data/sngrep-1.4.8/src/sip.c:344: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(payload, packet_payload(packet), packet_payloadlen(packet));
data/sngrep-1.4.8/src/sip.c:530: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 resp_str[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/sip.c:531: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 reqresp[SIP_ATTR_MAXLEN];
data/sngrep-1.4.8/src/sip.c:532: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 cseq[11];
data/sngrep-1.4.8/src/sip.c:548: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(reqresp, "%.*s", (int) (pmatch[1].rm_eo - pmatch[1].rm_so), payload + pmatch[1].rm_so);
data/sngrep-1.4.8/src/sip.c:554: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(cseq, "%.*s", (int)(pmatch[1].rm_eo - pmatch[1].rm_so), payload + pmatch[1].rm_so);
data/sngrep-1.4.8/src/sip.c:555:25:  [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).
            msg->cseq = atoi(cseq);
data/sngrep-1.4.8/src/sip.c:564: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(resp_str, "%.*s", (int) (pmatch[1].rm_eo - pmatch[1].rm_so), payload + pmatch[1].rm_so);
data/sngrep-1.4.8/src/sip.c:569: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(reqresp, "%.*s", (int) (pmatch[2].rm_eo - pmatch[2].rm_so), payload + pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:652: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 media_type[MEDIATYPELEN + 1] = { };
data/sngrep-1.4.8/src/sip.c:653: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 media_format[30] = { };
data/sngrep-1.4.8/src/sip.c:654: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 address[ADDRESSLEN + 1] = { };
data/sngrep-1.4.8/src/sip.c:751: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 warning[10];
data/sngrep-1.4.8/src/sip.c:762:31:  [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).
         msg->call->warning = atoi(warning);
data/sngrep-1.4.8/src/sip.c:896:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(method);
data/sngrep-1.4.8/src/sip.c:921: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 from_addr[80], to_addr[80], time[80], date[80];
data/sngrep-1.4.8/src/sip_call.c:257: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(value, "%d", call->index);
data/sngrep-1.4.8/src/sip_call.c:266: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(value, "%d", vector_count(call->msgs));
data/sngrep-1.4.8/src/sip_call.c:289: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(value, "%d", call->warning);
data/sngrep-1.4.8/src/sip_call.c: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 onevalue[256], twovalue[256];
data/sngrep-1.4.8/src/sip_msg.c:137: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(value, "%.*s", SIP_ATTR_MAXLEN, sip_get_msg_reqresp_str(msg));
data/sngrep-1.4.8/src/sip_msg.c:140: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(value, "%.*s", SIP_ATTR_MAXLEN, msg->sip_from);
data/sngrep-1.4.8/src/sip_msg.c:143: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(value, "%.*s", SIP_ATTR_MAXLEN, msg->sip_to);
data/sngrep-1.4.8/src/util.c:104: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(out + 8, ".%06d", (int) time.tv_usec);
data/sngrep-1.4.8/src/util.c:112: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 duration[20];
data/sngrep-1.4.8/src/util.c:120: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(duration, "%d:%02d", seconds / 60, seconds % 60);
data/sngrep-1.4.8/src/util.c:143: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(out, "%c%d.%06d", sign, abs(nsec), nusec);
data/sngrep-1.4.8/src/address.c:112:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!ipport || strlen(ipport) > ADDRESSLEN + 6)
data/sngrep-1.4.8/src/address.c:115:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(scanipport, ipport, sizeof(scanipport));
data/sngrep-1.4.8/src/address.c:118:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ret.ip, address, sizeof(ret.ip));
data/sngrep-1.4.8/src/capture.c:206: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(infile) == 1 && *infile == '-') {
data/sngrep-1.4.8/src/capture_eep.c:419:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        authkey_chunk.length = htons(sizeof(authkey_chunk) + strlen(eep_cfg.capt_password));
data/sngrep-1.4.8/src/capture_eep.c:420: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).
        tlen += strlen(eep_cfg.capt_password);
data/sngrep-1.4.8/src/capture_eep.c:462: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).
        memcpy((void*) buffer + buflen, eep_cfg.capt_password, strlen(eep_cfg.capt_password));
data/sngrep-1.4.8/src/capture_eep.c:463: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).
        buflen += strlen(eep_cfg.capt_password);
data/sngrep-1.4.8/src/capture_eep.c:742: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(password) == 0)
data/sngrep-1.4.8/src/capture_eep.c:745:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(password, eep_cfg.capt_srv_password, strlen(eep_cfg.capt_srv_password)) != 0)
data/sngrep-1.4.8/src/capture_eep.c:769:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(urlstr, url, sizeof(urlstr));
data/sngrep-1.4.8/src/capture_eep.c:770:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(urlstr, "%*[^:]:%" STRINGIFY(ADDRESSLEN) "[^:]:%5s", address, port) == 2) {
data/sngrep-1.4.8/src/capture_eep.c:788:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(urlstr, url, sizeof(urlstr));
data/sngrep-1.4.8/src/capture_eep.c:789:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(urlstr, "%*[^:]:%" STRINGIFY(ADDRESSLEN) "[^:]:%5s", address, port) == 2) {
data/sngrep-1.4.8/src/capture_gnutls.c:147:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int llen = strlen((const char*) label);
data/sngrep-1.4.8/src/capture_gnutls.c:162:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int llen = strlen((const char*) label);
data/sngrep-1.4.8/src/capture_openssl.c:153:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int llen = strlen((const char*) label);
data/sngrep-1.4.8/src/capture_openssl.c:168:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int llen = strlen((const char*) label);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:311: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(column->addr.ip) > 15) {
data/sngrep-1.4.8/src/curses/ui_call_flow.c:313: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).
                         MAX_SETTING_LEN - 7, column->alias + strlen(column->alias) - 13, column->addr.port);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:319: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(column->addr.ip) > 15) {
data/sngrep-1.4.8/src/curses/ui_call_flow.c:321:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         MAX_SETTING_LEN - 7, column->addr.ip + strlen(column->addr.ip) - 13, column->addr.port);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:328: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).
        mvwprintw(ui->win, 2, 10 + 30 * column->colpos + (22 - strlen(coltext)) / 2, "%s", coltext);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:498: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).
    msglen = (strlen(method) > 24) ? 24 : strlen(method);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:498: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).
    msglen = (strlen(method) > 24) ? 24 : strlen(method);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:576: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).
                mvwprintw(flow_win, cline + 1, startpos + distance / 2 - strlen(mediastr) / 2 + 2, mediastr);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:657: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(delta)) {
data/sngrep-1.4.8/src/curses/ui_call_flow.c:821: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).
    mvwprintw(win, cline, startpos + (distance) / 2 - strlen(text) / 2 + 2, "%s", text);
data/sngrep-1.4.8/src/curses/ui_call_flow.c:858: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).
        mvwprintw(win, cline, startpos + (distance) / 2 - strlen(text) / 2 + 2, " %s ", text);
data/sngrep-1.4.8/src/curses/ui_call_list.c:282: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).
        if (colpos + strlen(coldesc) >= ui->width)
data/sngrep-1.4.8/src/curses/ui_call_list.c:536: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(text) + collen >= ui->width)
data/sngrep-1.4.8/src/curses/ui_call_list.c:537: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).
            collen = ui->width - strlen(text);
data/sngrep-1.4.8/src/curses/ui_call_list.c:552: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).
        sprintf(text + strlen(text), "%-*s ", collen, coltext);
data/sngrep-1.4.8/src/curses/ui_call_list.c:816: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 field_len = strlen(field_buffer(info->fields[FLD_LIST_FILTER], 0));
data/sngrep-1.4.8/src/curses/ui_call_list.c:819:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dfilter, field_buffer(info->fields[FLD_LIST_FILTER], 0), field_len);
data/sngrep-1.4.8/src/curses/ui_call_list.c:824: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).
    filter_set(FILTER_CALL_LIST, strlen(dfilter) ? dfilter : NULL);
data/sngrep-1.4.8/src/curses/ui_call_raw.c:150: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).
    for (i = 0; i < strlen(payload); i++) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:383:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((userconf = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:384: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).
            if ((tmpfile = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:395:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((userconf = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_column_select.c:396: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).
            if ((tmpfile = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_filter.c:263: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(field_value) > 0)
data/sngrep-1.4.8/src/curses/ui_filter.c:349: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).
        expr = strlen(field_value) ? field_value : NULL;
data/sngrep-1.4.8/src/curses/ui_filter.c:378: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(method_expr)) {
data/sngrep-1.4.8/src/curses/ui_filter.c:379: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).
                        sprintf(method_expr + strlen(method_expr), ",%s", filter_field_method(field_id));
data/sngrep-1.4.8/src/curses/ui_filter.c:444: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 methods_len = strlen(value);
data/sngrep-1.4.8/src/curses/ui_filter.c:450:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(methods, value, sizeof(methods));
data/sngrep-1.4.8/src/curses/ui_manager.c:373: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).
    for (i = 0; i < strlen(payload); i++) {
data/sngrep-1.4.8/src/curses/ui_manager.c:387:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (method && i == strlen(method) + 1) {
data/sngrep-1.4.8/src/curses/ui_manager.c:493: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).
    height = 6 + (strlen(textva) / 50);
data/sngrep-1.4.8/src/curses/ui_manager.c:494: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).
    width = strlen(textva);
data/sngrep-1.4.8/src/curses/ui_manager.c:508: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).
        if (col + strlen(word) > width - 2) {
data/sngrep-1.4.8/src/curses/ui_manager.c:513: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).
        col += strlen(word) + 1;
data/sngrep-1.4.8/src/curses/ui_manager.c:550: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).
    height = 6 + (strlen(textva) / 50);
data/sngrep-1.4.8/src/curses/ui_manager.c:551: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).
    width = strlen(textva);
data/sngrep-1.4.8/src/curses/ui_manager.c:565: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).
        if (col + strlen(word) > width - 2) {
data/sngrep-1.4.8/src/curses/ui_manager.c:570: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).
        col += strlen(word) + 1;
data/sngrep-1.4.8/src/curses/ui_manager.c:633: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).
    width = strlen(options) + 6 * optioncnt;
data/sngrep-1.4.8/src/curses/ui_manager.c:634: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(title) + 4 > width)
data/sngrep-1.4.8/src/curses/ui_manager.c:635: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).
        width = strlen(title) + 4;
data/sngrep-1.4.8/src/curses/ui_manager.c:636: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(text) > width && strlen(text) < 50)
data/sngrep-1.4.8/src/curses/ui_manager.c:636: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 (strlen(text) > width && strlen(text) < 50)
data/sngrep-1.4.8/src/curses/ui_manager.c:637: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).
        width = strlen(text);
data/sngrep-1.4.8/src/curses/ui_manager.c:647: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).
    height += (strlen(text) / width);   // Space for the text.
data/sngrep-1.4.8/src/curses/ui_manager.c:668: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).
    mvwprintw(dialog_win, 1, (width - strlen(title)) / 2, title);
data/sngrep-1.4.8/src/curses/ui_manager.c:688:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (word[strlen(word)-1] == '\n') {
data/sngrep-1.4.8/src/curses/ui_manager.c:689: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).
            word[strlen(word)-1] = '\0';
data/sngrep-1.4.8/src/curses/ui_manager.c:693: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).
        if (col + strlen(word) > width - 2) {
data/sngrep-1.4.8/src/curses/ui_manager.c:698: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).
        col += strlen(word) + 1;
data/sngrep-1.4.8/src/curses/ui_msg_diff.c:123: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).
    for (i = 0; i < strlen(payload1); i++) {
data/sngrep-1.4.8/src/curses/ui_msg_diff.c:196: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).
    for (i = 0; i < strlen(payload); i++) {
data/sngrep-1.4.8/src/curses/ui_panel.c:192: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).
    mvwprintw(ui->win, 0, (ui->width - strlen(title)) / 2, "%s", title);
data/sngrep-1.4.8/src/curses/ui_panel.c:223: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).
                  strlen(keybindings[key]) + 1, keybindings[key]);
data/sngrep-1.4.8/src/curses/ui_panel.c:224: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).
        xpos += strlen(keybindings[key]) + 1;
data/sngrep-1.4.8/src/curses/ui_panel.c:228: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).
                  strlen(keybindings[key + 1]) + 1, keybindings[key + 1]);
data/sngrep-1.4.8/src/curses/ui_panel.c:230: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).
        xpos += strlen(keybindings[key + 1]) + 3;
data/sngrep-1.4.8/src/curses/ui_save.c:431: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(savepath))
data/sngrep-1.4.8/src/curses/ui_save.c:432:9:  [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(savepath, "/");
data/sngrep-1.4.8/src/curses/ui_save.c:439: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(savefile)) {
data/sngrep-1.4.8/src/curses/ui_settings.c:241: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).
        colpos += strlen(categories[i].title) + 5;
data/sngrep-1.4.8/src/curses/ui_settings.c:463:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((userconf = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:464: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).
            if ((tmpfile = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:475:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((userconf = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/curses/ui_settings.c:476: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).
            if ((tmpfile = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/filter.c:186: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).
        return pcre_exec(filter.regex, 0, data, strlen(data), 0, 0, 0, 0);
data/sngrep-1.4.8/src/keybinding.c:240: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(key) == 1)
data/sngrep-1.4.8/src/main.c:384: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).
            sprintf(bpf + strlen(bpf), "%s ", argv[i]);
data/sngrep-1.4.8/src/main.c:395: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).
                sprintf(bpf + strlen(bpf), "%s ", argv[i]);
data/sngrep-1.4.8/src/main.c:431: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(500 * 1000);
data/sngrep-1.4.8/src/media.c:65:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(media->type, type, MEDIATYPELEN - 1);
data/sngrep-1.4.8/src/option.c:87:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((userconf = sng_malloc(strlen(rcfile) + RCFILE_EXTRA_LEN))) {
data/sngrep-1.4.8/src/option.c:120: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).
        if (!strlen(line) || *line == '#')
data/sngrep-1.4.8/src/option.c:124:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (sscanf(line, "%19s %49s %49[^\t\n]", type, option, value) == 3) {
data/sngrep-1.4.8/src/setting.c:153:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (sett && strlen(sett->value)) ? sett->value : NULL;
data/sngrep-1.4.8/src/setting.c:160:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (sett && strlen(sett->value)) ? atoi(sett->value) : -1;
data/sngrep-1.4.8/src/setting.c:170: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(value) < MAX_SETTING_LEN) {
data/sngrep-1.4.8/src/sip.c:177:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    reg_rule_len = strlen(setting) + 22;
data/sngrep-1.4.8/src/sip.c:180: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).
        reg_rule_len = strlen(setting) + 22;
data/sngrep-1.4.8/src/sip.c:241:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(callid, payload + pmatch[2].rm_so, (int) pmatch[2].rm_eo - pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:254:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(xcallid, (const char *)payload +  pmatch[2].rm_so, (int)pmatch[2].rm_eo - pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:293:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cl_header, (const char *)payload +  pmatch[2].rm_so, (int)pmatch[2].rm_eo - pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:408: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(call->xcallid)) {
data/sngrep-1.4.8/src/sip.c:546:17:  [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(reqresp, "<malformed>", 11);
data/sngrep-1.4.8/src/sip.c:562:17:  [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(resp_str, "<malformed>", 11);
data/sngrep-1.4.8/src/sip.c:567:17:  [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(resp_str, "<malformed>", 11);
data/sngrep-1.4.8/src/sip.c:616:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(msg->sip_from, (const char *)payload +  pmatch[2].rm_so, (int)pmatch[2].rm_eo - pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:620:9:  [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(msg->sip_from, "<malformed>", 11);
data/sngrep-1.4.8/src/sip.c:626:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(msg->sip_to, (const char *)payload +  pmatch[2].rm_so, (int)pmatch[2].rm_eo - pmatch[2].rm_so);
data/sngrep-1.4.8/src/sip.c:630:9:  [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(msg->sip_to, "<malformed>", 11);
data/sngrep-1.4.8/src/sip.c:713:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(dst.ip, address, ADDRESSLEN - 1);
data/sngrep-1.4.8/src/sip.c:756:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(msg->call->reasontxt, (const char *)payload +  pmatch[1].rm_so, (int)pmatch[1].rm_eo - pmatch[1].rm_so);
data/sngrep-1.4.8/src/sip.c:761:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(warning, (const char *)payload +  pmatch[1].rm_so, (int)pmatch[1].rm_eo - pmatch[1].rm_so);
data/sngrep-1.4.8/src/sip.c:861: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).
    switch (pcre_exec(calls.match_regex, 0, payload, strlen(payload), 0, 0, 0, 0)) {
data/sngrep-1.4.8/src/sip_call.c:296: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(value) ? value : NULL;
data/sngrep-1.4.8/src/sip_call.c:351: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(twovalue) == 0 && strlen(onevalue) == 0)
data/sngrep-1.4.8/src/sip_call.c:351: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).
            if (strlen(twovalue) == 0 && strlen(onevalue) == 0)
data/sngrep-1.4.8/src/sip_call.c:353: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(twovalue) == 0)
data/sngrep-1.4.8/src/sip_call.c:355: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(onevalue) == 0)
data/sngrep-1.4.8/src/sip_msg.c:147:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(value, msg->sip_from, ar - msg->sip_from);
data/sngrep-1.4.8/src/sip_msg.c:152:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(value, msg->sip_to, ar - msg->sip_to);
data/sngrep-1.4.8/src/sip_msg.c:166: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(value) ? value : NULL;
data/sngrep-1.4.8/src/util.c:151:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!str || !strlen(str))
data/sngrep-1.4.8/src/util.c:154: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).
    for (i = strlen(str) - 1; i >= 0 && isspace(str[i]); i--)
data/sngrep-1.4.8/tests/test_input.c:74: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(TEST_INITIAL_WAIT);
data/sngrep-1.4.8/tests/test_input.c:78: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(TEST_KEY_DELAY);

ANALYSIS SUMMARY:

Hits = 474
Lines analyzed = 24233 in approximately 0.60 seconds (40360 lines/second)
Physical Source Lines of Code (SLOC) = 13497
Hits@level = [0]  86 [1] 125 [2] 263 [3]  25 [4]  61 [5]   0
Hits@level+ = [0+] 560 [1+] 474 [2+] 349 [3+]  86 [4+]  61 [5+]   0
Hits/KSLOC@level+ = [0+] 41.4907 [1+] 35.1189 [2+] 25.8576 [3+] 6.37179 [4+] 4.51952 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.