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/libneo4j-client-2.2.0/tests/check_result_stream.c
Examining data/libneo4j-client-2.2.0/tests/memstream.c
Examining data/libneo4j-client-2.2.0/tests/check_deserialization.c
Examining data/libneo4j-client-2.2.0/tests/check_memory.c
Examining data/libneo4j-client-2.2.0/tests/memiostream.h
Examining data/libneo4j-client-2.2.0/tests/check_render_results.c
Examining data/libneo4j-client-2.2.0/tests/check_error_handling.c
Examining data/libneo4j-client-2.2.0/tests/check_values.c
Examining data/libneo4j-client-2.2.0/tests/check_u8.c
Examining data/libneo4j-client-2.2.0/tests/util.c
Examining data/libneo4j-client-2.2.0/tests/check_fit_column_widths.c
Examining data/libneo4j-client-2.2.0/tests/check_libneo4j-client_suite.c
Examining data/libneo4j-client-2.2.0/tests/check_render_plan.c
Examining data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c
Examining data/libneo4j-client-2.2.0/tests/check_uri.c
Examining data/libneo4j-client-2.2.0/tests/check_serialization.c
Examining data/libneo4j-client-2.2.0/tests/check_libneo4j-client.c
Examining data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c
Examining data/libneo4j-client-2.2.0/tests/canned_result_stream.h
Examining data/libneo4j-client-2.2.0/tests/check_tofu.c
Examining data/libneo4j-client-2.2.0/tests/memiostream.c
Examining data/libneo4j-client-2.2.0/tests/memstream.h
Examining data/libneo4j-client-2.2.0/tests/check_logging.c
Examining data/libneo4j-client-2.2.0/tests/check_config.c
Examining data/libneo4j-client-2.2.0/tests/check_ring_buffer.c
Examining data/libneo4j-client-2.2.0/tests/util.h
Examining data/libneo4j-client-2.2.0/tests/check_connection.c
Examining data/libneo4j-client-2.2.0/tests/check_openssl.c
Examining data/libneo4j-client-2.2.0/tests/check_util.c
Examining data/libneo4j-client-2.2.0/tests/check_dotdir.c
Examining data/libneo4j-client-2.2.0/tests/canned_result_stream.c
Examining data/libneo4j-client-2.2.0/src/bin/authentication.c
Examining data/libneo4j-client-2.2.0/src/bin/colorization.h
Examining data/libneo4j-client-2.2.0/src/bin/verification.c
Examining data/libneo4j-client-2.2.0/src/bin/interactive.c
Examining data/libneo4j-client-2.2.0/src/bin/util.c
Examining data/libneo4j-client-2.2.0/src/bin/batch.h
Examining data/libneo4j-client-2.2.0/src/bin/state.c
Examining data/libneo4j-client-2.2.0/src/bin/evaluate.c
Examining data/libneo4j-client-2.2.0/src/bin/connect.h
Examining data/libneo4j-client-2.2.0/src/bin/readpass.h
Examining data/libneo4j-client-2.2.0/src/bin/render.c
Examining data/libneo4j-client-2.2.0/src/bin/commands.h
Examining data/libneo4j-client-2.2.0/src/bin/options.h
Examining data/libneo4j-client-2.2.0/src/bin/neo4j-client.c
Examining data/libneo4j-client-2.2.0/src/bin/authentication.h
Examining data/libneo4j-client-2.2.0/src/bin/util.h
Examining data/libneo4j-client-2.2.0/src/bin/batch.c
Examining data/libneo4j-client-2.2.0/src/bin/colorization.c
Examining data/libneo4j-client-2.2.0/src/bin/interactive.h
Examining data/libneo4j-client-2.2.0/src/bin/verification.h
Examining data/libneo4j-client-2.2.0/src/bin/readpass.c
Examining data/libneo4j-client-2.2.0/src/bin/connect.c
Examining data/libneo4j-client-2.2.0/src/bin/evaluate.h
Examining data/libneo4j-client-2.2.0/src/bin/state.h
Examining data/libneo4j-client-2.2.0/src/bin/options.c
Examining data/libneo4j-client-2.2.0/src/bin/render.h
Examining data/libneo4j-client-2.2.0/src/bin/commands.c
Examining data/libneo4j-client-2.2.0/src/lib/connection.h
Examining data/libneo4j-client-2.2.0/src/lib/deserialization.c
Examining data/libneo4j-client-2.2.0/src/lib/openssl_iostream.c
Examining data/libneo4j-client-2.2.0/src/lib/neo4j-client.h
Examining data/libneo4j-client-2.2.0/src/lib/thread.c
Examining data/libneo4j-client-2.2.0/src/lib/network.c
Examining data/libneo4j-client-2.2.0/src/lib/result_stream.h
Examining data/libneo4j-client-2.2.0/src/lib/values.c
Examining data/libneo4j-client-2.2.0/src/lib/messages.h
Examining data/libneo4j-client-2.2.0/src/lib/posix_iostream.c
Examining data/libneo4j-client-2.2.0/src/lib/memory.c
Examining data/libneo4j-client-2.2.0/src/lib/util.c
Examining data/libneo4j-client-2.2.0/src/lib/iostream.h
Examining data/libneo4j-client-2.2.0/src/lib/buffering_iostream.h
Examining data/libneo4j-client-2.2.0/src/lib/render_plan.c
Examining data/libneo4j-client-2.2.0/src/lib/error_handling.c
Examining data/libneo4j-client-2.2.0/src/lib/uri.h
Examining data/libneo4j-client-2.2.0/src/lib/init.c
Examining data/libneo4j-client-2.2.0/src/lib/u8.c
Examining data/libneo4j-client-2.2.0/src/lib/openssl.h
Examining data/libneo4j-client-2.2.0/src/lib/ring_buffer.h
Examining data/libneo4j-client-2.2.0/src/lib/serialization.h
Examining data/libneo4j-client-2.2.0/src/lib/job.h
Examining data/libneo4j-client-2.2.0/src/lib/tofu.c
Examining data/libneo4j-client-2.2.0/src/lib/render.c
Examining data/libneo4j-client-2.2.0/src/lib/logging.h
Examining data/libneo4j-client-2.2.0/src/lib/metadata.h
Examining data/libneo4j-client-2.2.0/src/lib/render_results.c
Examining data/libneo4j-client-2.2.0/src/lib/chunking_iostream.h
Examining data/libneo4j-client-2.2.0/src/lib/values.h
Examining data/libneo4j-client-2.2.0/src/lib/thread.h
Examining data/libneo4j-client-2.2.0/src/lib/result_stream.c
Examining data/libneo4j-client-2.2.0/src/lib/network.h
Examining data/libneo4j-client-2.2.0/src/lib/deserialization.h
Examining data/libneo4j-client-2.2.0/src/lib/connection.c
Examining data/libneo4j-client-2.2.0/src/lib/openssl_iostream.h
Examining data/libneo4j-client-2.2.0/src/lib/buffering_iostream.c
Examining data/libneo4j-client-2.2.0/src/lib/util.h
Examining data/libneo4j-client-2.2.0/src/lib/client_config.h
Examining data/libneo4j-client-2.2.0/src/lib/iostream.c
Examining data/libneo4j-client-2.2.0/src/lib/print.h
Examining data/libneo4j-client-2.2.0/src/lib/messages.c
Examining data/libneo4j-client-2.2.0/src/lib/posix_iostream.h
Examining data/libneo4j-client-2.2.0/src/lib/memory.h
Examining data/libneo4j-client-2.2.0/src/lib/serialization.c
Examining data/libneo4j-client-2.2.0/src/lib/openssl.c
Examining data/libneo4j-client-2.2.0/src/lib/ring_buffer.c
Examining data/libneo4j-client-2.2.0/src/lib/uri.c
Examining data/libneo4j-client-2.2.0/src/lib/dotdir.c
Examining data/libneo4j-client-2.2.0/src/lib/chunking_iostream.c
Examining data/libneo4j-client-2.2.0/src/lib/metadata.c
Examining data/libneo4j-client-2.2.0/src/lib/tofu.h
Examining data/libneo4j-client-2.2.0/src/lib/logging.c
Examining data/libneo4j-client-2.2.0/src/lib/render.h
Examining data/libneo4j-client-2.2.0/src/lib/atomic.h
Examining data/libneo4j-client-2.2.0/src/lib/client_config.c
Examining data/libneo4j-client-2.2.0/src/lib/print.c

FINAL RESULTS:

data/libneo4j-client-2.2.0/src/bin/readpass.c:205:1:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
getpass(const char *prompt)
data/libneo4j-client-2.2.0/src/bin/state.c:107:9:  [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.
    r = vfprintf(state->err, fmt, ap);
data/libneo4j-client-2.2.0/src/lib/logging.c:248:5:  [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(logger->stream, format, ap);
data/libneo4j-client-2.2.0/src/lib/logging.h:25:32:  [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, string_index, first)))
data/libneo4j-client-2.2.0/src/lib/print.c:107:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int r = snprintf(buf, n, "%" PRId64, v->value);
data/libneo4j-client-2.2.0/src/lib/print.c:119:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return fprintf(stream, "%" PRId64, v->value);
data/libneo4j-client-2.2.0/tests/check_logging.c:93: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(event->name, tlogger->name);
data/libneo4j-client-2.2.0/tests/util.c:54: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(buf, dir);
data/libneo4j-client-2.2.0/tests/util.c:55: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(buf + c, CHECK_TMPDIR_TEMPLATE);
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:214:14:  [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 ((s = getenv(NEO4J_USERNAME_ENV)) != NULL &&
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:221:14:  [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 ((s = getenv(NEO4J_PASSWORD_ENV)) != NULL)
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:232:17:  [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 ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) >= 0)
data/libneo4j-client-2.2.0/src/lib/dotdir.c:92:24:  [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.
    const char *hdir = getenv("HOME");
data/libneo4j-client-2.2.0/tests/check_dotdir.c:30:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    oldhome = getenv("HOME");
data/libneo4j-client-2.2.0/tests/check_libneo4j-client.c:31:25:  [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.
    unsigned int seed = random();
data/libneo4j-client-2.2.0/tests/check_libneo4j-client.c:33:5:  [3] (random) srandom:
  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.
    srandom(seed);
data/libneo4j-client-2.2.0/tests/check_libneo4j-client.c:38:17:  [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 ((tdir = getenv("CHECK_TMPDIR")) == NULL)
data/libneo4j-client-2.2.0/tests/check_result_stream.c:742:32:  [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.
        statement[i] = (char) (random() & 0xff);
data/libneo4j-client-2.2.0/tests/util.c:38:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *dir = getenv("TMPDIR");
data/libneo4j-client-2.2.0/tests/util.c:91:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *dir = getenv("CHECK_TMPDIR");
data/libneo4j-client-2.2.0/tests/util.c:94:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        dir = getenv("TMPDIR");
data/libneo4j-client-2.2.0/src/bin/authentication.c:34: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 default_username[NEO4J_MAXUSERNAMELEN + 1];
data/libneo4j-client-2.2.0/src/bin/authentication.c:38: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 uprompt[NEO4J_MAXUSERNAMELEN + 14];
data/libneo4j-client-2.2.0/src/bin/authentication.c:75: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 confirm[NEO4J_MAXPASSWORDLEN];
data/libneo4j-client-2.2.0/src/bin/batch.c:74:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        stream = fopen(filename, "r");
data/libneo4j-client-2.2.0/src/bin/colorization.h:23:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *typ[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:24:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *pos[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:25:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *msg[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:26:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *ctx[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:27:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *ptr[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:33:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *cmd[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:34:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *arg[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:35:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *dsc[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:41:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *url[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *wrn[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:48:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *opt[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:49:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *val[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:50:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *dsc[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:56:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *key[2];
data/libneo4j-client-2.2.0/src/bin/colorization.h:57:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *val[2];
data/libneo4j-client-2.2.0/src/bin/commands.c:328:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(storage, namestr, namelen);
data/libneo4j-client-2.2.0/src/bin/commands.c:329: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(storage + namelen, valuestr, valuelen);
data/libneo4j-client-2.2.0/src/bin/commands.c:485:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[32];
data/libneo4j-client-2.2.0/src/bin/commands.c:527: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 name[32];
data/libneo4j-client-2.2.0/src/bin/connect.c:231: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[NEO4J_MAXPASSWORDLEN];
data/libneo4j-client-2.2.0/src/bin/evaluate.c:99: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(continuation->statement, statement, n);
data/libneo4j-client-2.2.0/src/bin/interactive.c:205: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 dir[PATH_MAX];
data/libneo4j-client-2.2.0/src/bin/interactive.c:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[2] = { '\n', 0 };
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:160: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 *tty = fopen(_PATH_TTY, "r+");
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:167: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 prog_name[PATH_MAX];
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:191: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 histfile[PATH_MAX];
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:322:27:  [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).
                int arg = atoi(optarg);
data/libneo4j-client-2.2.0/src/bin/neo4j-client.c:342:27:  [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).
                int arg = atoi(optarg);
data/libneo4j-client-2.2.0/src/bin/options.c:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/libneo4j-client-2.2.0/src/bin/readpass.c:89:27:  [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).
        (input = output = open(_PATH_TTY, O_RDWR)) == -1) {
data/libneo4j-client-2.2.0/src/bin/readpass.c:207:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[_PASSWORD_LEN + 1];
data/libneo4j-client-2.2.0/src/bin/state.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/src/bin/state.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/src/bin/state.c:188:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        output = fopen(filename, "w");
data/libneo4j-client-2.2.0/src/bin/verification.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/src/lib/buffering_iostream.c:320: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(diov+diovcnt, iov, iovcnt * sizeof(struct iovec));
data/libneo4j-client-2.2.0/src/lib/buffering_iostream.c:331: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(diov, iov, iovcnt * sizeof(struct iovec));
data/libneo4j-client-2.2.0/src/lib/chunking_iostream.c:219: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(diov, iov, iovcnt * sizeof(struct iovec));
data/libneo4j-client-2.2.0/src/lib/client_config.c:129: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(dup, config, sizeof(neo4j_config_t));
data/libneo4j-client-2.2.0/src/lib/client_config.c:384:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, password, pwlen);
data/libneo4j-client-2.2.0/src/lib/client_config.c:492: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 username_buf[NEO4J_MAXUSERNAMELEN + 1];
data/libneo4j-client-2.2.0/src/lib/client_config.c:493: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_buf[NEO4J_MAXPASSWORDLEN + 1];
data/libneo4j-client-2.2.0/src/lib/connection.c:351:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char servname[MAXSERVNAMELEN];
data/libneo4j-client-2.2.0/src/lib/connection.c:568: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/connection.c:590: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/connection.c:1112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[NEO4J_MAXHOSTLEN];
data/libneo4j-client-2.2.0/src/lib/connection.c:1187: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 description[128];
data/libneo4j-client-2.2.0/src/lib/connection.c:1369: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 buf[1024];
data/libneo4j-client-2.2.0/src/lib/dotdir.c:37: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 hbuf[PATH_MAX];
data/libneo4j-client-2.2.0/src/lib/dotdir.c:67: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(buf, hbuf, hlen);
data/libneo4j-client-2.2.0/src/lib/dotdir.c:70: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(buf, NEO4J_DOT_DIR, dlen);
data/libneo4j-client-2.2.0/src/lib/dotdir.c:75: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(buf, append, alen);
data/libneo4j-client-2.2.0/src/lib/dotdir.c:131:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, hdir, hlen + 1);
data/libneo4j-client-2.2.0/src/lib/error_handling.c:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/libneo4j-client-2.2.0/src/lib/logging.c:29: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/memory.c:133: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(block+1, pool->debounce_ptrs,
data/libneo4j-client-2.2.0/src/lib/memory.c:253: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(nblock+1+space-tocopy, block+1+available-tocopy,
data/libneo4j-client-2.2.0/src/lib/memory.c:290: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(npool, &tpool, sizeof(tpool));
data/libneo4j-client-2.2.0/src/lib/memory.c:334: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(prev+1+used, block+1, space * sizeof(void *));
data/libneo4j-client-2.2.0/src/lib/memory.c:345: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(prev+1+used, block+1, space * sizeof(void *));
data/libneo4j-client-2.2.0/src/lib/memory.c:354: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(prev+1+used, block+1, pool2->offset * sizeof(void *));
data/libneo4j-client-2.2.0/src/lib/memory.c:365: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(pool1->ptrs + pool1->offset, pool2->debounce_ptrs,
data/libneo4j-client-2.2.0/src/lib/memory.c:369: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(pool1->debounce_ptrs, pool2->debounce_ptrs + tocopy,
data/libneo4j-client-2.2.0/src/lib/memory.c:401: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(pool1->debounce_ptrs, pool2->debounce_ptrs,
data/libneo4j-client-2.2.0/src/lib/metadata.c:79: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 detail[1024];
data/libneo4j-client-2.2.0/src/lib/metadata.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 path[32];
data/libneo4j-client-2.2.0/src/lib/metadata.c:528: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 subpath[256];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2388:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const border[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2389:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const header[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2390:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const cells[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2423:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const border[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2424:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const header[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2425:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const cells[2];
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:2426:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * const graph[2];
data/libneo4j-client-2.2.0/src/lib/network.c:74: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 hostnum[NI_MAXHOST];
data/libneo4j-client-2.2.0/src/lib/network.c:75: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 servnum[NI_MAXSERV];
data/libneo4j-client-2.2.0/src/lib/network.c:101: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/openssl.c:345: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 fingerprint[SHA512_DIGEST_LENGTH * 2 + 1];
data/libneo4j-client-2.2.0/src/lib/openssl.c:430: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 digest[EVP_MAX_MD_SIZE];
data/libneo4j-client-2.2.0/src/lib/openssl.c:605: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/print.c:52: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(buf, "null", n-1);
data/libneo4j-client-2.2.0/src/lib/print.c:181: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(buf, s, l);
data/libneo4j-client-2.2.0/src/lib/print.c:209:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const unsigned char esc[2] = { quot, '\\' };
data/libneo4j-client-2.2.0/src/lib/print.c:223: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(buf+l, s, minzu(n-l-1, i));
data/libneo4j-client-2.2.0/src/lib/print.c:262:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const unsigned char esc[2] = { quot, '\\' };
data/libneo4j-client-2.2.0/src/lib/render.c:31:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *top_corners[3];
data/libneo4j-client-2.2.0/src/lib/render.c:32:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *head_corners[3];
data/libneo4j-client-2.2.0/src/lib/render.c:33:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *middle_corners[3];
data/libneo4j-client-2.2.0/src/lib/render.c:34:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *bottom_corners[3];
data/libneo4j-client-2.2.0/src/lib/render.c:65:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ssize_t render_field(FILE *stream, const char *s, size_t n,
data/libneo4j-client-2.2.0/src/lib/render.c:66:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int width, uint_fast32_t flags, const char * const color[2]);
data/libneo4j-client-2.2.0/src/lib/render.c:258:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char * const color[2])
data/libneo4j-client-2.2.0/src/lib/render.c:291:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char * const color[2])
data/libneo4j-client-2.2.0/src/lib/render.c:316:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char * const field_color[2],
data/libneo4j-client-2.2.0/src/lib/render.c:508:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
ssize_t render_field(FILE *stream, const char *s, size_t n, unsigned int width,
data/libneo4j-client-2.2.0/src/lib/render.c:509:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        uint_fast32_t flags, const char * const color[2])
data/libneo4j-client-2.2.0/src/lib/render.c:572:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[11];
data/libneo4j-client-2.2.0/src/lib/render.h:63:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char * const color[2]);
data/libneo4j-client-2.2.0/src/lib/render.h:70:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char * const field_color[2],
data/libneo4j-client-2.2.0/src/lib/render_plan.c:31:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        bool last, char **ids_buffer, size_t *ids_bufcap, char **args_buffer,
data/libneo4j-client-2.2.0/src/lib/render_plan.c:31:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        bool last, char **ids_buffer, size_t *ids_bufcap, char **args_buffer,
data/libneo4j-client-2.2.0/src/lib/render_plan.c:56: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.
static const char *HEADERS[6] =
data/libneo4j-client-2.2.0/src/lib/render_plan.c:170:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int depth, bool last, char **ids_buffer, size_t *ids_bufcap,
data/libneo4j-client-2.2.0/src/lib/render_plan.c:171: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 **args_buffer, size_t *args_bufcap, unsigned int widths[6],
data/libneo4j-client-2.2.0/src/lib/render_plan.c:365: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((*buffer)+used, ", ", 2);
data/libneo4j-client-2.2.0/src/lib/render_plan.c:380: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((*buffer)+used, list[i], l);
data/libneo4j-client-2.2.0/src/lib/render_plan.c:435: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((*buffer) + used, "; ", 2);
data/libneo4j-client-2.2.0/src/lib/result_stream.c:790: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 description[128];
data/libneo4j-client-2.2.0/src/lib/result_stream.c:924: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 description[128];
data/libneo4j-client-2.2.0/src/lib/result_stream.c:1098: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 description[128];
data/libneo4j-client-2.2.0/src/lib/tofu.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PATH_MAX];
data/libneo4j-client-2.2.0/src/lib/tofu.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[NEO4J_MAXHOSTLEN];
data/libneo4j-client-2.2.0/src/lib/tofu.c:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char existing[NEO4J_MAX_FINGERPRINT_LENGTH];
data/libneo4j-client-2.2.0/src/lib/tofu.c:133: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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/tofu.c:135:20:  [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 *stream = fopen(file, "r");
data/libneo4j-client-2.2.0/src/lib/tofu.c:149: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[NEO4J_MAX_KNOWN_HOSTS_LINE_LENGTH];
data/libneo4j-client-2.2.0/src/lib/tofu.c:169: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(buf, f, l);
data/libneo4j-client-2.2.0/src/lib/tofu.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 ebuf[256];
data/libneo4j-client-2.2.0/src/lib/tofu.c:199:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *in_stream = fopen(file, "r");
data/libneo4j-client-2.2.0/src/lib/tofu.c:212: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 outfile[PATH_MAX];
data/libneo4j-client-2.2.0/src/lib/tofu.c:228: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(outfile, file, filelen);
data/libneo4j-client-2.2.0/src/lib/tofu.c:229: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(outfile + filelen, NEO4J_TEMP_FILE_SUFFIX, suffixlen);
data/libneo4j-client-2.2.0/src/lib/tofu.c:232:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    out_fd = mkstemp(outfile);
data/libneo4j-client-2.2.0/src/lib/tofu.c:252: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 line[NEO4J_MAX_KNOWN_HOSTS_LINE_LENGTH];
data/libneo4j-client-2.2.0/src/lib/util.c:57: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(buffer, path, len);
data/libneo4j-client-2.2.0/src/lib/util.c:98: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(buffer, p, len);
data/libneo4j-client-2.2.0/src/lib/util.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 buf[PATH_MAX];
data/libneo4j-client-2.2.0/src/lib/util.c:125:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, path, len);
data/libneo4j-client-2.2.0/src/lib/util.c:174: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(s, s1, s1len);
data/libneo4j-client-2.2.0/src/lib/util.c:175: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(s+s1len, s2, s2len);
data/libneo4j-client-2.2.0/src/lib/util.c:231: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((uint8_t *)dst + copied, iov[i].iov_base, l);
data/libneo4j-client-2.2.0/src/lib/util.c:250: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(iov[0].iov_base, src_bytes, l);
data/libneo4j-client-2.2.0/src/lib/util.c:274: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((uint8_t *)diov[0].iov_base + doffset, src_bytes, l);
data/libneo4j-client-2.2.0/src/lib/util.c:378: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 table[UCHAR_MAX+1];
data/libneo4j-client-2.2.0/src/lib/util.h:221:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy(dst, src, n);
data/libneo4j-client-2.2.0/src/lib/values.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(buffer, v->ustring, tocopy);
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.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 buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:170: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:205: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:237: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:256: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:274: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:297: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:315: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_buffering_iostream.c:340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[32];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c: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 chunk[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:75: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 chunk[10];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:100: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 chunk[24];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.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 iov1[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:133: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 iov2[4];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char iov3[18];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:156: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 chunk[32];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chunk[32];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:216: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 chunk[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:251: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 chunk[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:285: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 chunk[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.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 chunk1[10];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:333: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 chunk2[6];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:368:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chunk1[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:377: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 chunk2[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.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 chunk[16];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:452: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 chunk1[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:461: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 chunk2[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:470: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 chunk3[5];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:513: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 chunk1[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:522: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 chunk2[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.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 chunk3[5];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:572: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 chunk1[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:581: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 chunk2[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:590: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 chunk3[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:599: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 chunk4[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:608: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 chunk5[4];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:688: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 chunk1[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:697: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 chunk2[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:706: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 chunk3[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:715: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 chunk4[8];
data/libneo4j-client-2.2.0/tests/check_chunking_iostream.c:724: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 chunk5[4];
data/libneo4j-client-2.2.0/tests/check_connection.c:207:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/tests/check_connection.c:268:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/tests/check_connection.c:327:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.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 buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.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 buf[256];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:490:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:789:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:915:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:958:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_deserialization.c:1013:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/libneo4j-client-2.2.0/tests/check_dotdir.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_dotdir.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_error_handling.c:37: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 buf1[1024];
data/libneo4j-client-2.2.0/tests/check_error_handling.c:38: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 buf2[1024];
data/libneo4j-client-2.2.0/tests/check_libneo4j-client.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpdir_buf[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_logging.c:24: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 name[1024];
data/libneo4j-client-2.2.0/tests/check_logging.c:26: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[1024];
data/libneo4j-client-2.2.0/tests/check_logging.c:38: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 name[1024];
data/libneo4j-client-2.2.0/tests/check_memory.c:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_buffer[TEST_BUFFER_SIZE];
data/libneo4j-client-2.2.0/tests/check_render_results.c:93:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:117:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:119:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:148:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:150:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:180:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:182:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:211:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:213:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:242:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:244:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:273:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:275:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:320:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:322:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:356:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:358:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:396:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[3] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:426:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[3] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:472:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:490:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:492:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:515:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *fieldnames[4] =
data/libneo4j-client-2.2.0/tests/check_render_results.c:517:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *table[3][4] =
data/libneo4j-client-2.2.0/tests/check_result_stream.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/libneo4j-client-2.2.0/tests/check_result_stream.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/libneo4j-client-2.2.0/tests/check_result_stream.c:739: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 statement[65538];
data/libneo4j-client-2.2.0/tests/check_result_stream.c:761:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[131072];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:168: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:193: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:212: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:247: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:271: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(iov[0].iov_base, sample16, 4);
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:272: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(iov[1].iov_base, sample16, 2);
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:275: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:289: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 outbuf[32];
data/libneo4j-client-2.2.0/tests/check_tofu.c:26:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char known_hosts[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_tofu.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[256];
data/libneo4j-client-2.2.0/tests/check_tofu.c:52: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 fingerprint[60];
data/libneo4j-client-2.2.0/tests/check_tofu.c:269: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 dir[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_tofu.c:276: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 path[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_tofu.c:277: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(path, dir, dirlen);
data/libneo4j-client-2.2.0/tests/check_u8.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 s[2] = "  ";
data/libneo4j-client-2.2.0/tests/check_util.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_util.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 buf[PATH_MAX];
data/libneo4j-client-2.2.0/tests/check_values.c:25:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[1024];
data/libneo4j-client-2.2.0/tests/memstream.c:110:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, ms->buffer + ms->position, n);
data/libneo4j-client-2.2.0/tests/memstream.c:130: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(ms->buffer + ms->position, buf, nbytes);
data/libneo4j-client-2.2.0/tests/util.c:68:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp(buf);
data/libneo4j-client-2.2.0/tests/util.c:113:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, dir, dirlen);
data/libneo4j-client-2.2.0/tests/util.c:115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + dirlen + 1, name, nlen);
data/libneo4j-client-2.2.0/src/bin/authentication.c:35: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).
        assert(strlen(username) <= NEO4J_MAXUSERNAMELEN);
data/libneo4j-client-2.2.0/src/bin/authentication.c:36:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(default_username, username, sizeof(default_username));
data/libneo4j-client-2.2.0/src/bin/authentication.c:46:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(uprompt, "Username: ", sizeof(uprompt));
data/libneo4j-client-2.2.0/src/bin/authentication.c:57:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(username, default_username, usize);
data/libneo4j-client-2.2.0/src/bin/commands.c:276: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).
        size_t len = strlen(argvalue);
data/libneo4j-client-2.2.0/src/bin/commands.c:317: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).
    size_t namelen = strlen(namestr);
data/libneo4j-client-2.2.0/src/bin/commands.c:321: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).
    size_t valuelen = strlen(valuestr);
data/libneo4j-client-2.2.0/src/bin/commands.c:491:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name, str, varlen);
data/libneo4j-client-2.2.0/src/bin/commands.c:536:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t varlen = strlen(value);
data/libneo4j-client-2.2.0/src/bin/commands.c:539:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name, value, varlen);
data/libneo4j-client-2.2.0/src/bin/options.c:127: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).
            unsigned int end_offset = strlen(name) + strlen(val) + 3;
data/libneo4j-client-2.2.0/src/bin/options.c:127: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).
            unsigned int end_offset = strlen(name) + strlen(val) + 3;
data/libneo4j-client-2.2.0/src/bin/readpass.c:136:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            bytes_written = write(output, prompt, strlen(prompt));
data/libneo4j-client-2.2.0/src/bin/readpass.c:139:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r') {
data/libneo4j-client-2.2.0/src/bin/util.c:36:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(*dest, s, n+1);
data/libneo4j-client-2.2.0/src/bin/verification.c:84: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).
        size_t l = strlen(p);
data/libneo4j-client-2.2.0/src/lib/client_config.c:225: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).
        size_t plen = strlen(config->password);
data/libneo4j-client-2.2.0/src/lib/client_config.c:377: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).
    size_t pwlen = strlen(password);
data/libneo4j-client-2.2.0/src/lib/client_config.c:494:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(username_buf, (config->username != NULL)? config->username : "",
data/libneo4j-client-2.2.0/src/lib/client_config.c:497:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(password_buf, (config->password != NULL)? config->password : "",
data/libneo4j-client-2.2.0/src/lib/connection.c:110:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t userinfolen = strlen(uri->userinfo);
data/libneo4j-client-2.2.0/src/lib/dotdir.c:53: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).
        alen = strlen(append);
data/libneo4j-client-2.2.0/src/lib/dotdir.c:123: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).
    size_t hlen = strlen(hdir);
data/libneo4j-client-2.2.0/src/lib/iostream.h:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return ios->read(ios, buf, nbyte);
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:322:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t (*read)(struct neo4j_iostream *self,
data/libneo4j-client-2.2.0/src/lib/neo4j-client.h:749:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define neo4j_string(s) (neo4j_ustring((s), strlen(s)))
data/libneo4j-client-2.2.0/src/lib/openssl.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(name_str) != (size_t)ASN1_STRING_length(name->d.dNSName))
data/libneo4j-client-2.2.0/src/lib/openssl.c:576: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(cn_str) != (size_t)ASN1_STRING_length(asn1))
data/libneo4j-client-2.2.0/src/lib/openssl_iostream.c:298: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).
    ssize_t result = neo4j_ios_write(ios, s, strlen(s));
data/libneo4j-client-2.2.0/src/lib/posix_iostream.c:76:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(ios->fd, buf, nbyte);
data/libneo4j-client-2.2.0/src/lib/print.c:81:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, (v->value > 0)? "true" : "false", n);
data/libneo4j-client-2.2.0/src/lib/render_plan.c:165: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(HEADERS[n]);
data/libneo4j-client-2.2.0/src/lib/render_plan.c:369: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).
        size_t l = strlen(list[i]);
data/libneo4j-client-2.2.0/src/lib/render_results.c:221:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t l = (s == NULL)? 0 : strlen(s);
data/libneo4j-client-2.2.0/src/lib/render_results.c:279: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).
    return (*s != NULL)? strlen(*s) : 0;
data/libneo4j-client-2.2.0/src/lib/render_results.c:391:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write_csv_quoted_string(stream, fieldname, strlen(fieldname)))
data/libneo4j-client-2.2.0/src/lib/render_results.c:539:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return write_csv_quoted_string(stream, *buf, strlen(*buf));
data/libneo4j-client-2.2.0/src/lib/tofu.c:48: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).
    REQUIRE(strlen(hostname) < 256 && hostname[0] != '\0', -1);
data/libneo4j-client-2.2.0/src/lib/tofu.c:82: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).
                strlen(existing) == 127 && strlen(fingerprint) == 128 &&
data/libneo4j-client-2.2.0/src/lib/tofu.c:82:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(existing) == 127 && strlen(fingerprint) == 128 &&
data/libneo4j-client-2.2.0/src/lib/tofu.c:150: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).
    size_t hostlen = strlen(host);
data/libneo4j-client-2.2.0/src/lib/tofu.c:165: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).
            size_t l = strlen(f);
data/libneo4j-client-2.2.0/src/lib/tofu.c:210: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).
    size_t filelen = strlen(file);
data/libneo4j-client-2.2.0/src/lib/tofu.c:211: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).
    size_t suffixlen = strlen(NEO4J_TEMP_FILE_SUFFIX);
data/libneo4j-client-2.2.0/src/lib/tofu.c:253: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).
        size_t hostlen = strlen(host);
data/libneo4j-client-2.2.0/src/lib/util.c:33:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *end = path + strlen(path) - 1;
data/libneo4j-client-2.2.0/src/lib/util.c:71:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *end = path + strlen(path) - 1;
data/libneo4j-client-2.2.0/src/lib/util.c:110:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(path);
data/libneo4j-client-2.2.0/src/lib/util.c:164: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).
    size_t s1len = strlen(s1);
data/libneo4j-client-2.2.0/src/lib/util.c:165: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).
    size_t s2len = strlen(s2);
data/libneo4j-client-2.2.0/tests/check_logging.c:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(logger->name, name, sizeof(logger->name));
data/libneo4j-client-2.2.0/tests/check_logging.c:95:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(event->format, format, sizeof(event->format));
data/libneo4j-client-2.2.0/tests/check_render_results.c:79: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).
    size_t n = strlen(s);
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:248:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ck_assert_int_eq(read(fds[0], outbuf, sizeof(outbuf)), 10);
data/libneo4j-client-2.2.0/tests/check_ring_buffer.c:255:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ck_assert_int_eq(read(fds[0], outbuf, sizeof(outbuf)), 6);
data/libneo4j-client-2.2.0/tests/check_tofu.c:61:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data->host, host, sizeof(data->host));
data/libneo4j-client-2.2.0/tests/check_tofu.c:63:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data->fingerprint, fingerprint, sizeof(data->fingerprint));
data/libneo4j-client-2.2.0/tests/check_tofu.c:274: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).
    size_t dirlen = strlen(dir);
data/libneo4j-client-2.2.0/tests/check_tofu.c:275: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).
    ck_assert_int_lt(dirlen + strlen(kh_path), PATH_MAX);
data/libneo4j-client-2.2.0/tests/check_tofu.c:278:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path + dirlen, kh_path, PATH_MAX - dirlen);
data/libneo4j-client-2.2.0/tests/util.c:47: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).
    size_t c = strlen(dir);
data/libneo4j-client-2.2.0/tests/util.c:48: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).
    size_t tlen = strlen(CHECK_TMPDIR_TEMPLATE);
data/libneo4j-client-2.2.0/tests/util.c:105: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).
    size_t dirlen = strlen(dir);
data/libneo4j-client-2.2.0/tests/util.c:106: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).
    size_t nlen = strlen(name);

ANALYSIS SUMMARY:

Hits = 345
Lines analyzed = 36472 in approximately 0.97 seconds (37695 lines/second)
Physical Source Lines of Code (SLOC) = 25511
Hits@level = [0]  86 [1]  64 [2] 260 [3]  12 [4]   9 [5]   0
Hits@level+ = [0+] 431 [1+] 345 [2+] 281 [3+]  21 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 16.8947 [1+] 13.5236 [2+] 11.0149 [3+] 0.823174 [4+] 0.352789 [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.