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/librabbitmq-0.10.0/coverity/model.c
Examining data/librabbitmq-0.10.0/examples/amqp_bind.c
Examining data/librabbitmq-0.10.0/examples/amqp_connect_timeout.c
Examining data/librabbitmq-0.10.0/examples/amqp_consumer.c
Examining data/librabbitmq-0.10.0/examples/amqp_exchange_declare.c
Examining data/librabbitmq-0.10.0/examples/amqp_listen.c
Examining data/librabbitmq-0.10.0/examples/amqp_listenq.c
Examining data/librabbitmq-0.10.0/examples/amqp_producer.c
Examining data/librabbitmq-0.10.0/examples/amqp_rpc_sendstring_client.c
Examining data/librabbitmq-0.10.0/examples/amqp_sendstring.c
Examining data/librabbitmq-0.10.0/examples/amqp_ssl_connect.c
Examining data/librabbitmq-0.10.0/examples/amqp_unbind.c
Examining data/librabbitmq-0.10.0/examples/unix/platform_utils.c
Examining data/librabbitmq-0.10.0/examples/utils.c
Examining data/librabbitmq-0.10.0/examples/utils.h
Examining data/librabbitmq-0.10.0/examples/win32/platform_utils.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_api.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_connection.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_consumer.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_framing.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_framing.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_hostcheck.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_hostcheck.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_mem.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_openssl.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_bio.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_bio.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_hostname_validation.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_hostname_validation.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_private.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_socket.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_ssl_socket.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_table.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_table.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_tcp_socket.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_tcp_socket.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_time.c
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_time.h
Examining data/librabbitmq-0.10.0/librabbitmq/amqp_url.c
Examining data/librabbitmq-0.10.0/librabbitmq/unix/threads.h
Examining data/librabbitmq-0.10.0/librabbitmq/win32/msinttypes/stdint.h
Examining data/librabbitmq-0.10.0/librabbitmq/win32/threads.c
Examining data/librabbitmq-0.10.0/librabbitmq/win32/threads.h
Examining data/librabbitmq-0.10.0/tests/test_basic.c
Examining data/librabbitmq-0.10.0/tests/test_hostcheck.c
Examining data/librabbitmq-0.10.0/tests/test_merge_capabilities.c
Examining data/librabbitmq-0.10.0/tests/test_parse_url.c
Examining data/librabbitmq-0.10.0/tests/test_sasl_mechanism.c
Examining data/librabbitmq-0.10.0/tests/test_status_enum.c
Examining data/librabbitmq-0.10.0/tests/test_tables.c
Examining data/librabbitmq-0.10.0/tests/win32/msinttypes/inttypes.h
Examining data/librabbitmq-0.10.0/tools/common.c
Examining data/librabbitmq-0.10.0/tools/common.h
Examining data/librabbitmq-0.10.0/tools/consume.c
Examining data/librabbitmq-0.10.0/tools/declare_queue.c
Examining data/librabbitmq-0.10.0/tools/delete_queue.c
Examining data/librabbitmq-0.10.0/tools/get.c
Examining data/librabbitmq-0.10.0/tools/publish.c
Examining data/librabbitmq-0.10.0/tools/unix/process.c
Examining data/librabbitmq-0.10.0/tools/unix/process.h
Examining data/librabbitmq-0.10.0/tools/win32/compat.c
Examining data/librabbitmq-0.10.0/tools/win32/compat.h
Examining data/librabbitmq-0.10.0/tools/win32/process.c
Examining data/librabbitmq-0.10.0/tools/win32/process.h

FINAL RESULTS:

data/librabbitmq-0.10.0/examples/utils.c:51:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/librabbitmq/amqp_api.c:178:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tests/test_tables.c:56:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tests/test_tables.c:451:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(expected_path, "%s/%s", srcdir, expected_file_name);
data/librabbitmq-0.10.0/tools/common.c:60:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tools/common.c:74:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tools/common.c:88:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tools/common.c:151:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tools/common.h:46:61:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern void die(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/librabbitmq-0.10.0/tools/common.h:48:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/librabbitmq-0.10.0/tools/common.h:50:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/librabbitmq-0.10.0/tools/common.h:52:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/librabbitmq-0.10.0/tools/win32/process.c:52:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/librabbitmq-0.10.0/tests/test_tables.c:430:18:  [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.
  char *srcdir = getenv("srcdir");
data/librabbitmq-0.10.0/tools/win32/process.c:184:8:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  if (!CreateProcess(NULL, cmdline, NULL, NULL, TRUE, 0, NULL, NULL,
data/librabbitmq-0.10.0/tools/win32/process.c:184:8:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  if (!CreateProcess(NULL, cmdline, NULL, NULL, TRUE, 0, NULL, NULL,
data/librabbitmq-0.10.0/examples/amqp_bind.c:61:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_connect_timeout.c:78:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tv->tv_sec = atoi(argv[3]);
data/librabbitmq-0.10.0/examples/amqp_connect_timeout.c:81:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      tv->tv_usec = atoi(argv[4]);
data/librabbitmq-0.10.0/examples/amqp_connect_timeout.c:91:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_consumer.c:165:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_exchange_declare.c:61:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_listen.c:64:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_listenq.c:61:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_producer.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 message[256];
data/librabbitmq-0.10.0/examples/amqp_producer.c:120:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_producer.c:121: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).
  rate_limit = atoi(argv[3]);
data/librabbitmq-0.10.0/examples/amqp_producer.c:122: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).
  message_count = atoi(argv[4]);
data/librabbitmq-0.10.0/examples/amqp_rpc_sendstring_client.c:66:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_sendstring.c:63:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_ssl_connect.c:80:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/examples/amqp_ssl_connect.c:82:13:  [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).
  timeout = atoi(argv[3]);
data/librabbitmq-0.10.0/examples/amqp_unbind.c:61:10:  [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).
  port = atoi(argv[2]);
data/librabbitmq-0.10.0/librabbitmq/amqp_api.c:281: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 codestr[13];
data/librabbitmq-0.10.0/librabbitmq/amqp_api.c:291:24:  [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.
  req.reply_text.len = sprintf(codestr, "%d", code);
data/librabbitmq-0.10.0/librabbitmq/amqp_api.c:301: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 codestr[13];
data/librabbitmq-0.10.0/librabbitmq/amqp_api.c:311:24:  [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.
  req.reply_text.len = sprintf(codestr, "%d", code);
data/librabbitmq-0.10.0/librabbitmq/amqp_connection.c:228: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(amqp_offset(state->inbound_buffer.bytes, state->inbound_offset),
data/librabbitmq-0.10.0/librabbitmq/amqp_connection.c:319: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(state->inbound_buffer.bytes, state->header_buffer, HEADER_SIZE);
data/librabbitmq-0.10.0/librabbitmq/amqp_connection.c:477: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(amqp_offset(out_frame, HEADER_SIZE), body->bytes, body->len);
data/librabbitmq-0.10.0/librabbitmq/amqp_consumer.c:50: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(clone.bytes, original.bytes, clone.len);    \
data/librabbitmq-0.10.0/librabbitmq/amqp_consumer.c:291: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(body_read_ptr, frame.payload.body_fragment.bytes,
data/librabbitmq-0.10.0/librabbitmq/amqp_mem.c:179: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(result.bytes, src.bytes, src.len);
data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_bio.c:163: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(amqp_bio_method, BIO_s_socket(), sizeof(BIO_METHOD));
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:169: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 header_buffer[HEADER_SIZE + 1];
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:245: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 c[4];
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:251: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(data, &val, sizeof(val));
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:264: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(data, &val, sizeof(val));
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:281: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(data, &val, sizeof(val));
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:305: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(data, &val, sizeof(val));
data/librabbitmq-0.10.0/librabbitmq/amqp_private.h:340: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(amqp_offset(encoded.bytes, o), input.bytes, input.len);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:137:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  assert(self->klass->open);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:138:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return self->klass->open(self, host, port, NULL);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:144:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  assert(self->klass->open);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:145:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return self->klass->open(self, host, port, timeout);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:477: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 portnumber_string[33];
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:491: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.
  (void)sprintf(portnumber_string, "%d", portnumber);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:626: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_buf + 1, username, username_len);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:628: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_buf + username_len + 2, password, password_len);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:640: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.bytes, identity, identity_len);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.h:65:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  amqp_socket_open_fn open;
data/librabbitmq-0.10.0/librabbitmq/amqp_table.c:117: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(output->entries, entries, num_entries * sizeof(amqp_field_value_t));
data/librabbitmq-0.10.0/librabbitmq/amqp_table.c:197: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(output->entries, entries, num_entries * sizeof(amqp_table_entry_t));
data/librabbitmq-0.10.0/librabbitmq/amqp_table.c:543: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(clone->value.bytes.bytes, original->value.bytes.bytes,
data/librabbitmq-0.10.0/librabbitmq/amqp_table.c:595: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(clone->key.bytes, original->key.bytes, clone->key.len);
data/librabbitmq-0.10.0/tests/test_basic.c:134: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, message.body.bytes, message.body.len);
data/librabbitmq-0.10.0/tests/test_basic.c:176: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(body, envelope.message.body.bytes, *out_body_size_);
data/librabbitmq-0.10.0/tests/test_tables.c:400: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 f1_buf[CHUNK_SIZE];
data/librabbitmq-0.10.0/tests/test_tables.c:401: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 f2_buf[CHUNK_SIZE];
data/librabbitmq-0.10.0/tests/test_tables.c:434:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  out = tmpfile();
data/librabbitmq-0.10.0/tests/test_tables.c:452: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).
  expected = fopen(expected_path, "r");
data/librabbitmq-0.10.0/tools/common.c:96:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char s[512];
data/librabbitmq-0.10.0/tools/common.c:232: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(ci->host, amqp_server, host_len);
data/librabbitmq-0.10.0/librabbitmq/amqp_framing.c:1803:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (m->read) bit_buffer |= (1 << 4);
data/librabbitmq-0.10.0/librabbitmq/amqp_framing.h:355:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  amqp_boolean_t read;      /**< read */
data/librabbitmq-0.10.0/librabbitmq/amqp_mem.c:169: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).
  result.len = strlen(cstr);
data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_hostname_validation.c:84: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).
  if ((size_t)ASN1_STRING_length(common_name_asn1) != strlen(common_name_str)) {
data/librabbitmq-0.10.0/librabbitmq/amqp_openssl_hostname_validation.c:137:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strlen(dns_name)) {
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:610:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t username_len = strlen(username);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:612:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t password_len = strlen(password);
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:615:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      amqp_pool_alloc_bytes(pool, strlen(username) + strlen(password) + 2,
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:615: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).
      amqp_pool_alloc_bytes(pool, strlen(username) + strlen(password) + 2,
data/librabbitmq-0.10.0/librabbitmq/amqp_socket.c:633:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t identity_len = strlen(identity);
data/librabbitmq-0.10.0/tests/test_basic.c:150: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).
  assert(body_size == strlen(msg_to_publish));
data/librabbitmq-0.10.0/tests/test_basic.c:192: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).
  assert(body_size == strlen(msg_to_publish));
data/librabbitmq-0.10.0/tests/test_tables.c:447:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  expected_path = malloc(strlen(srcdir) + strlen(expected_file_name) + 2);
data/librabbitmq-0.10.0/tests/test_tables.c:447: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).
  expected_path = malloc(strlen(srcdir) + strlen(expected_file_name) + 2);
data/librabbitmq-0.10.0/tools/common.c:350:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t res = read(fd, (char *)bytes.bytes + bytes.len, space - bytes.len);
data/librabbitmq-0.10.0/tools/publish.c:158:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        body_bytes.len = strlen(body_bytes.bytes);
data/librabbitmq-0.10.0/tools/win32/process.c:76: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).
    len += strlen(argv[i]) * 2;

ANALYSIS SUMMARY:

Hits = 90
Lines analyzed = 19035 in approximately 0.57 seconds (33212 lines/second)
Physical Source Lines of Code (SLOC) = 11680
Hits@level = [0] 119 [1]  17 [2]  57 [3]   3 [4]  13 [5]   0
Hits@level+ = [0+] 209 [1+]  90 [2+]  73 [3+]  16 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 17.8938 [1+] 7.70548 [2+] 6.25 [3+] 1.36986 [4+] 1.11301 [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.