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/ulfius-2.6.9/example_callbacks/oauth2_bearer/glewlwyd_resource.c
Examining data/ulfius-2.6.9/example_callbacks/oauth2_bearer/glewlwyd_resource.h
Examining data/ulfius-2.6.9/example_callbacks/static_file/static_file_callback.c
Examining data/ulfius-2.6.9/example_callbacks/static_file/static_file_callback.h
Examining data/ulfius-2.6.9/example_programs/auth_example/auth_client.c
Examining data/ulfius-2.6.9/example_programs/auth_example/auth_server.c
Examining data/ulfius-2.6.9/example_programs/include/u_example.h
Examining data/ulfius-2.6.9/example_programs/injection_example/injection_example.c
Examining data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c
Examining data/ulfius-2.6.9/example_programs/proxy_example/proxy.c
Examining data/ulfius-2.6.9/example_programs/request_example/client.c
Examining data/ulfius-2.6.9/example_programs/request_example/mail.c
Examining data/ulfius-2.6.9/example_programs/request_example/server.c
Examining data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c
Examining data/ulfius-2.6.9/example_programs/simple_example/simple_example.c
Examining data/ulfius-2.6.9/example_programs/stream_example/stream_client.c
Examining data/ulfius-2.6.9/example_programs/stream_example/stream_example.c
Examining data/ulfius-2.6.9/example_programs/test_u_map/test_u_map.c
Examining data/ulfius-2.6.9/example_programs/websocket_example/websocket_client.c
Examining data/ulfius-2.6.9/example_programs/websocket_example/websocket_server.c
Examining data/ulfius-2.6.9/include/u_private.h
Examining data/ulfius-2.6.9/include/ulfius.h
Examining data/ulfius-2.6.9/include/yuarel.h
Examining data/ulfius-2.6.9/src/u_map.c
Examining data/ulfius-2.6.9/src/u_request.c
Examining data/ulfius-2.6.9/src/u_response.c
Examining data/ulfius-2.6.9/src/u_send_request.c
Examining data/ulfius-2.6.9/src/u_websocket.c
Examining data/ulfius-2.6.9/src/ulfius.c
Examining data/ulfius-2.6.9/src/yuarel.c
Examining data/ulfius-2.6.9/test/core.c
Examining data/ulfius-2.6.9/test/framework.c
Examining data/ulfius-2.6.9/test/u_map.c
Examining data/ulfius-2.6.9/test/websocket.c
Examining data/ulfius-2.6.9/tools/uwsc/uwsc.c

FINAL RESULTS:

data/ulfius-2.6.9/example_callbacks/static_file/static_file_callback.c:111: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(file_path, F_OK) != -1) {
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:76:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/request_example/client.c:42:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/request_example/server.c:43:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c:76:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c:245:7:  [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(file_path, F_OK) != -1) {
data/ulfius-2.6.9/example_programs/simple_example/simple_example.c:69:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/test_u_map/test_u_map.c:44:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/example_programs/test_u_map/test_u_map.c:62:7:  [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(file_path, F_OK) != -1 && map != NULL) {
data/ulfius-2.6.9/test/framework.c:284:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(to_return, line);
data/ulfius-2.6.9/test/websocket.c:144:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(url, "ws://localhost:%d/%s", PORT, PREFIX_WEBSOCKET);
data/ulfius-2.6.9/test/websocket.c:190:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(url, "ws://localhost:%d/%s", PORT, PREFIX_WEBSOCKET);
data/ulfius-2.6.9/tools/uwsc/uwsc.c:302: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.
    next_option = getopt_long(argc, argv, short_options, long_options, NULL);
data/ulfius-2.6.9/example_callbacks/oauth2_bearer/glewlwyd_resource.c:140:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if (string_array_has_value((const char **)scope_list_token, scope_list_expected[i])) {
data/ulfius-2.6.9/example_callbacks/static_file/static_file_callback.c:112:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      f = fopen (file_path, "rb");
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char response_body[response->binary_body_length + 1];
data/ulfius-2.6.9/example_programs/auth_example/auth_server.c:48:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE * f = fopen (filename, "rb");
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char old_body[response->binary_body_length + 1], * new_body;
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(old_body, response->binary_body, response->binary_body_length);
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:170:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char old_body[response->binary_body_length + 1], * new_body;
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:172:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(old_body, response->binary_body, response->binary_body_length);
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:186:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char old_body[response->binary_body_length + 1], * new_body;
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:188:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(old_body, response->binary_body, response->binary_body_length);
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:201:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char old_body[response->binary_body_length + 1], * new_body;
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(old_body, response->binary_body, response->binary_body_length);
data/ulfius-2.6.9/example_programs/request_example/client.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char response_body[response->binary_body_length + 1];
data/ulfius-2.6.9/example_programs/request_example/server.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char request_body[request->binary_body_length + 1];
data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c:246:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (file_path, "rb");
data/ulfius-2.6.9/example_programs/simple_example/simple_example.c:81:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE * f = fopen (filename, "rb");
data/ulfius-2.6.9/example_programs/simple_example/simple_example.c:214:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char new_counter[8];
data/ulfius-2.6.9/example_programs/stream_example/stream_example.c:86:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE * file = fopen((char *)user_data, "rb");
data/ulfius-2.6.9/example_programs/test_u_map/test_u_map.c:63:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (file_path, "rb");
data/ulfius-2.6.9/example_programs/websocket_example/websocket_server.c:46:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (filename, "rb");
data/ulfius-2.6.9/src/u_map.c:215:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(u_map->values[i]+offset, value, length);
data/ulfius-2.6.9/src/u_map.c:241: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((dup_value + offset), value, length);
data/ulfius-2.6.9/src/u_request.c:440: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(dest->client_address, source->client_address, sizeof(struct sockaddr));
data/ulfius-2.6.9/src/u_request.c:492:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dest->binary_body, source->binary_body, source->binary_body_length);
data/ulfius-2.6.9/src/u_request.c:753: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(request->binary_body, binary_body, length);
data/ulfius-2.6.9/src/u_response.c:505:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dest->binary_body, source->binary_body, source->binary_body_length);
data/ulfius-2.6.9/src/u_response.c:604: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(response->binary_body, binary_body, length);
data/ulfius-2.6.9/src/u_send_request.c:90:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(body_data->data[body_data->size]), contents, realsize);
data/ulfius-2.6.9/src/u_send_request.c:147:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ptr, upload_ctx->data+upload_ctx->offset, len);
data/ulfius-2.6.9/src/u_send_request.c:172:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(response->binary_body, body_data.data, body_data.size);
data/ulfius-2.6.9/src/u_send_request.c:713:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date_str[129], * cc_str = NULL;
data/ulfius-2.6.9/src/u_websocket.c:186: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(*frame + off, message->mask, 4);
data/ulfius-2.6.9/src/u_websocket.c:192: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((*frame) + off, message->data + data_offset, frame_data_len);
data/ulfius-2.6.9/src/u_websocket.c:241:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(new_message->data, data, data_len);
data/ulfius-2.6.9/src/u_websocket.c:409:15:  [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((*message)->data+(*message)->data_len, payload_data, msg_len);
data/ulfius-2.6.9/src/u_websocket.c:571:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096] = {0};
data/ulfius-2.6.9/src/u_websocket.c:694:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&server.sin_addr, he->h_addr_list[0], he->h_length);
data/ulfius-2.6.9/src/u_websocket.c:750:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&server.sin_addr, he->h_addr_list[0], he->h_length);
data/ulfius-2.6.9/src/u_websocket.c:863:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char websocket_accept[32] = {0};
data/ulfius-2.6.9/src/u_websocket.c:881:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char encoded_key[32] = {0};
data/ulfius-2.6.9/src/u_websocket.c:951:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if (string_array_has_trimmed_value((const char **)match_list, source_list[i])) {
data/ulfius-2.6.9/src/u_websocket.c:997:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if (string_array_has_trimmed_value((const char **)match_list, source_list[i])) {
data/ulfius-2.6.9/src/u_websocket.c:1480:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char x[1];
data/ulfius-2.6.9/src/u_websocket.c:1520:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rand_str[17] = {0}, rand_str_base64[25] = {0};
data/ulfius-2.6.9/src/ulfius.c:267: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(*response_buffer, response->binary_body, response->binary_body_length);
data/ulfius-2.6.9/src/ulfius.c:468: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(con_info->request->client_address, so_client, sizeof(struct sockaddr));
data/ulfius-2.6.9/src/ulfius.c:507: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((char*)con_info->request->binary_body + con_info->request->binary_body_length, upload_data, upload_data_size_current);
data/ulfius-2.6.9/src/ulfius.c:612:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char websocket_accept[32] = {0};
data/ulfius-2.6.9/src/yuarel.c:210:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				url->port = atoi(u);
data/ulfius-2.6.9/test/framework.c:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUF_SIZE], bufferout[BUF_SIZE];
data/ulfius-2.6.9/test/framework.c:64:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(bufferout, "220 ulfius.tld SMTP CCSMTP\r\n");
data/ulfius-2.6.9/test/framework.c:88:7:  [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(bufferout, "500 Too long\r\n");
data/ulfius-2.6.9/test/framework.c:139: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(bufferout, "250 Ok\r\n");
data/ulfius-2.6.9/test/framework.c:143: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(bufferout, "250 Ok\r\n");
data/ulfius-2.6.9/test/framework.c:147: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(bufferout, "250 Ok recipient\r\n");
data/ulfius-2.6.9/test/framework.c:151: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(bufferout, "354 Continue\r\n");
data/ulfius-2.6.9/test/framework.c:156: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(bufferout, "250 Ok reset\r\n");
data/ulfius-2.6.9/test/framework.c:160: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(bufferout, "250 Ok noop\r\n");
data/ulfius-2.6.9/test/framework.c:164: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(bufferout, "221 Ok\r\n");
data/ulfius-2.6.9/test/framework.c:169: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(bufferout, "502 Command Not Implemented\r\n");
data/ulfius-2.6.9/test/framework.c:176: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(bufferout, "250 Ok\r\n");
data/ulfius-2.6.9/test/framework.c:238:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen (file_path, "rb");
data/ulfius-2.6.9/test/websocket.c:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url[64], * allocated_data = o_strdup("plop");
data/ulfius-2.6.9/test/websocket.c:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url[64];
data/ulfius-2.6.9/tools/uwsc/uwsc.c:79:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (filename, "rb");
data/ulfius-2.6.9/tools/uwsc/uwsc.c:102:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char message[257] = {0};
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:98:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:109:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:120:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:131:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:142:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:153:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_client.c:179:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_server.c:151:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/ulfius-2.6.9/example_programs/auth_example/auth_server.c:164:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/injection_example/injection_example.c:59:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/injection_example/injection_example.c:63:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/injection_example/injection_example.c:67:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/injection_example/injection_example.c:72:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:70:11:  [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(to_return, "\n");
data/ulfius-2.6.9/example_programs/multiple_callbacks_example/multiple_callbacks_example.c:128:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/proxy_example/proxy.c:47:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:154:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:165:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:169:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:180:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:191:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:202:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:213:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:224:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:235:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/client.c:247:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/request_example/server.c:96:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c:70:11:  [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(to_return, "\n");
data/ulfius-2.6.9/example_programs/sheep_counter/sheep_counter.c:148:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/simple_example/simple_example.c:63:11:  [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(to_return, "\n");
data/ulfius-2.6.9/example_programs/simple_example/simple_example.c:144:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/stream_example/stream_client.c:46:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/stream_example/stream_client.c:59:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/stream_example/stream_client.c:72:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/ulfius-2.6.9/example_programs/stream_example/stream_example.c:65:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/example_programs/test_u_map/test_u_map.c:38:11:  [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(to_return, "\n");
data/ulfius-2.6.9/example_programs/websocket_example/websocket_client.c:126:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/ulfius-2.6.9/example_programs/websocket_example/websocket_server.c:127:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/ulfius-2.6.9/src/u_request.c:146:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * pstr = (char*)str, * buf = malloc(strlen(str) + 1), * pbuf = buf;
data/ulfius-2.6.9/src/u_websocket.c:84:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          data_len = read(websocket_manager->mhd_sock, &data[ret], (len - ret));
data/ulfius-2.6.9/src/u_websocket.c:86:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          data_len = read(websocket_manager->tcp_sock, &data[ret], (len - ret));
data/ulfius-2.6.9/src/u_websocket.c:1161:87:  [1] (buffer) strlen:
  Does not handle 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 ret = ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, strlen(json), json);
data/ulfius-2.6.9/src/ulfius.c:1757: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).
    buf = malloc(strlen(str) * 3 + 1);
data/ulfius-2.6.9/src/ulfius.c:1791: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).
    buf = malloc(strlen(str) + 1);
data/ulfius-2.6.9/test/framework.c:65: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).
  send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:89: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).
      send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:140: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:144: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:148: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:152: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:157: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:161: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:165: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:170: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:177: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).
        send(manager->sockfd, bufferout, strlen(bufferout), 0);
data/ulfius-2.6.9/test/framework.c:278:11:  [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(to_return, "\n");
data/ulfius-2.6.9/test/framework.c:388:3:  [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(100);

ANALYSIS SUMMARY:

Hits = 136
Lines analyzed = 15891 in approximately 0.56 seconds (28440 lines/second)
Physical Source Lines of Code (SLOC) = 11033
Hits@level = [0] 156 [1]  57 [2]  66 [3]   1 [4]  12 [5]   0
Hits@level+ = [0+] 292 [1+] 136 [2+]  79 [3+]  13 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 26.4661 [1+] 12.3267 [2+] 7.16034 [3+] 1.17828 [4+] 1.08765 [5+]   0
Dot directories skipped = 2 (--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.