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/libcork-0.15.0+ds/include/libcork/cli.h
Examining data/libcork-0.15.0+ds/include/libcork/cli/commands.h
Examining data/libcork-0.15.0+ds/include/libcork/config.h
Examining data/libcork-0.15.0+ds/include/libcork/config/arch.h
Examining data/libcork-0.15.0+ds/include/libcork/config/bsd.h
Examining data/libcork-0.15.0+ds/include/libcork/config/gcc.h
Examining data/libcork-0.15.0+ds/include/libcork/config/linux.h
Examining data/libcork-0.15.0+ds/include/libcork/config/macosx.h
Examining data/libcork-0.15.0+ds/include/libcork/config/config.h
Examining data/libcork-0.15.0+ds/include/libcork/core.h
Examining data/libcork-0.15.0+ds/include/libcork/core/allocator.h
Examining data/libcork-0.15.0+ds/include/libcork/core/api.h
Examining data/libcork-0.15.0+ds/include/libcork/core/attributes.h
Examining data/libcork-0.15.0+ds/include/libcork/core/byte-order.h
Examining data/libcork-0.15.0+ds/include/libcork/core/callbacks.h
Examining data/libcork-0.15.0+ds/include/libcork/core/error.h
Examining data/libcork-0.15.0+ds/include/libcork/core/gc.h
Examining data/libcork-0.15.0+ds/include/libcork/core/id.h
Examining data/libcork-0.15.0+ds/include/libcork/core/mempool.h
Examining data/libcork-0.15.0+ds/include/libcork/core/net-addresses.h
Examining data/libcork-0.15.0+ds/include/libcork/core/timestamp.h
Examining data/libcork-0.15.0+ds/include/libcork/core/types.h
Examining data/libcork-0.15.0+ds/include/libcork/core/u128.h
Examining data/libcork-0.15.0+ds/include/libcork/core/hash.h
Examining data/libcork-0.15.0+ds/include/libcork/ds.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/array.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/bitset.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/buffer.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/dllist.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/hash-table.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/managed-buffer.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/ring-buffer.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/slice.h
Examining data/libcork-0.15.0+ds/include/libcork/ds/stream.h
Examining data/libcork-0.15.0+ds/include/libcork/helpers/errors.h
Examining data/libcork-0.15.0+ds/include/libcork/helpers/gc.h
Examining data/libcork-0.15.0+ds/include/libcork/helpers/posix.h
Examining data/libcork-0.15.0+ds/include/libcork/os.h
Examining data/libcork-0.15.0+ds/include/libcork/os/files.h
Examining data/libcork-0.15.0+ds/include/libcork/os/process.h
Examining data/libcork-0.15.0+ds/include/libcork/os/subprocess.h
Examining data/libcork-0.15.0+ds/include/libcork/threads.h
Examining data/libcork-0.15.0+ds/include/libcork/threads/atomics.h
Examining data/libcork-0.15.0+ds/include/libcork/threads/basics.h
Examining data/libcork-0.15.0+ds/src/cork-hash/cork-hash.c
Examining data/libcork-0.15.0+ds/src/cork-initializer/init1.c
Examining data/libcork-0.15.0+ds/src/cork-initializer/init2.c
Examining data/libcork-0.15.0+ds/src/cork-initializer/main.c
Examining data/libcork-0.15.0+ds/src/cork-test/cork-test.c
Examining data/libcork-0.15.0+ds/src/libcork/cli/commands.c
Examining data/libcork-0.15.0+ds/src/libcork/core/allocator.c
Examining data/libcork-0.15.0+ds/src/libcork/core/error.c
Examining data/libcork-0.15.0+ds/src/libcork/core/gc.c
Examining data/libcork-0.15.0+ds/src/libcork/core/hash.c
Examining data/libcork-0.15.0+ds/src/libcork/core/ip-address.c
Examining data/libcork-0.15.0+ds/src/libcork/core/mempool.c
Examining data/libcork-0.15.0+ds/src/libcork/core/timestamp.c
Examining data/libcork-0.15.0+ds/src/libcork/core/u128.c
Examining data/libcork-0.15.0+ds/src/libcork/core/version.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/array.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/bitset.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/buffer.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/dllist.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/hash-table.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/managed-buffer.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/ring-buffer.c
Examining data/libcork-0.15.0+ds/src/libcork/ds/slice.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/directory-walker.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/exec.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/process.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/env.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c
Examining data/libcork-0.15.0+ds/src/libcork/posix/files.c
Examining data/libcork-0.15.0+ds/src/libcork/pthreads/thread.c
Examining data/libcork-0.15.0+ds/tests/helpers.h
Examining data/libcork-0.15.0+ds/tests/test-array.c
Examining data/libcork-0.15.0+ds/tests/test-buffer.c
Examining data/libcork-0.15.0+ds/tests/test-dllist.c
Examining data/libcork-0.15.0+ds/tests/test-files.c
Examining data/libcork-0.15.0+ds/tests/test-gc.c
Examining data/libcork-0.15.0+ds/tests/test-hash-table.c
Examining data/libcork-0.15.0+ds/tests/test-managed-buffer.c
Examining data/libcork-0.15.0+ds/tests/test-mempool.c
Examining data/libcork-0.15.0+ds/tests/test-ring-buffer.c
Examining data/libcork-0.15.0+ds/tests/test-slice.c
Examining data/libcork-0.15.0+ds/tests/test-subprocess.c
Examining data/libcork-0.15.0+ds/tests/test-threads.c
Examining data/libcork-0.15.0+ds/tests/test-core.c
Examining data/libcork-0.15.0+ds/tests/test-bitset.c

FINAL RESULTS:

data/libcork-0.15.0+ds/include/libcork/core/attributes.h:101:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, format_index, args_index)))
data/libcork-0.15.0+ds/include/libcork/core/error.h:112:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, fmt "\n  in %s (%s:%u)\n", \
data/libcork-0.15.0+ds/src/libcork/core/gc.c:26:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:26:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __VA_ARGS__); \
data/libcork-0.15.0+ds/src/libcork/core/mempool.c:25:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/libcork-0.15.0+ds/src/libcork/core/u128.c:71:9:  [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.
        snprintf(buf, CORK_U128_HEX_LENGTH, "%" PRIx64, lo);
data/libcork-0.15.0+ds/src/libcork/core/u128.c:73:9:  [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.
        snprintf(buf, CORK_U128_HEX_LENGTH, "%" PRIx64 "%016" PRIx64, hi, lo);
data/libcork-0.15.0+ds/src/libcork/core/u128.c:83:5:  [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.
    snprintf(buf, CORK_U128_HEX_LENGTH, "%016" PRIx64 "%016" PRIx64, hi, lo);
data/libcork-0.15.0+ds/src/libcork/ds/array.c:26:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __VA_ARGS__); \
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:169:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    format_size = vsnprintf(buffer->buf + buffer->size,
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:183:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    format_size = vsnprintf(buffer->buf + buffer->size,
data/libcork-0.15.0+ds/src/libcork/ds/hash-table.c:28:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __VA_ARGS__); \
data/libcork-0.15.0+ds/src/libcork/posix/exec.c:185:20:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    ri_check_posix(execvp(exec->program, (char * const *) params));
data/libcork-0.15.0+ds/src/libcork/posix/files.c:39:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/libcork-0.15.0+ds/src/libcork/posix/process.c:24:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:32:20:  [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.
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
data/libcork-0.15.0+ds/src/cork-hash/cork-hash.c:64:18:  [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 ((ch = getopt_long(argc, argv, "+bfs", opts, NULL)) != -1) {
data/libcork-0.15.0+ds/src/libcork/posix/env.c:131:16:  [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.
        return getenv(name);
data/libcork-0.15.0+ds/include/libcork/core/net-addresses.h:62:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy((addr), (src), sizeof(struct cork_ipv4)))
data/libcork-0.15.0+ds/include/libcork/core/net-addresses.h:85:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy((addr), (src), sizeof(struct cork_ipv6)))
data/libcork-0.15.0+ds/src/libcork/core/allocator.c:89: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(result, ptr, min_size);
data/libcork-0.15.0+ds/src/libcork/core/allocator.c:226:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, str, len);
data/libcork-0.15.0+ds/src/libcork/core/allocator.c:256:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dest, str, len);
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:87: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  parsed_ipv4[CORK_IPV4_STRING_LENGTH];
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:307: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  parsed_result[CORK_IPV6_STRING_LENGTH];
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:313: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(addr, before_double_colon,
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:315: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(&addr->_.u16[8-after_count], after_double_colon,
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:325: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  parsed_result[CORK_IPV6_STRING_LENGTH];
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:419:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            tp += sprintf(tp, "%u.%u.%u.%u",
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:423:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        tp += sprintf(tp, "%x", words[i]);
data/libcork-0.15.0+ds/src/libcork/ds/array.c:270:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dest->items, src->items, src->size * dest->priv->element_size);
data/libcork-0.15.0+ds/src/libcork/ds/buffer.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(buffer->buf, src, length);
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:141: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->buf + buffer->size, src, length);
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  hex[3 * 16];
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  print[16];
data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFFER_SIZE];
data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c:78:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rii_check_posix(fd = open(path, flags));
data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c:207:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rpi_check_posix(fd = open(path, flags));
data/libcork-0.15.0+ds/src/libcork/ds/managed-buffer.c:118:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *) self->parent.buf, buf, size);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:318:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUF_SIZE];
data/libcork-0.15.0+ds/src/libcork/pthreads/thread.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  thread_name[PTHREADS_MAX_THREAD_NAME_LENGTH];
data/libcork-0.15.0+ds/src/libcork/pthreads/thread.c:173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  thread_name[PTHREADS_MAX_THREAD_NAME_LENGTH];
data/libcork-0.15.0+ds/tests/test-core.c:468: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  actual[CORK_IPV4_STRING_LENGTH]; \
data/libcork-0.15.0+ds/tests/test-core.c:524: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  actual[CORK_IPV6_STRING_LENGTH]; \
data/libcork-0.15.0+ds/tests/test-core.c:581: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  actual[CORK_IP_STRING_LENGTH]; \
data/libcork-0.15.0+ds/tests/test-core.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  buf[CORK_U128_DECIMAL_LENGTH];
data/libcork-0.15.0+ds/tests/test-core.c:798:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CORK_U128_HEX_LENGTH];
data/libcork-0.15.0+ds/tests/test-core.c:806:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CORK_U128_HEX_LENGTH];
data/libcork-0.15.0+ds/tests/test-hash-table.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  key[256];
data/libcork-0.15.0+ds/src/cork-hash/cork-hash.c:99:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = cork_big_hash_buffer(result, string, strlen(string));
data/libcork-0.15.0+ds/src/cork-hash/cork-hash.c:108: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).
        result = cork_hash_buffer(result, string, strlen(string));
data/libcork-0.15.0+ds/src/cork-hash/cork-hash.c:115:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = cork_stable_hash_buffer(result, string, strlen(string));
data/libcork-0.15.0+ds/src/cork-test/cork-test.c:234:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t  stdin_length = strlen(sub_stdin);
data/libcork-0.15.0+ds/src/libcork/cli/commands.c:56: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  len = strlen((*curr)->name);
data/libcork-0.15.0+ds/src/libcork/core/allocator.c:234:41:  [1] (buffer) strlen:
  Does not handle 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 strndup_internal(alloc, str, strlen(str));
data/libcork-0.15.0+ds/src/libcork/core/allocator.c:265:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return xstrndup_internal(alloc, str, strlen(str));
data/libcork-0.15.0+ds/src/libcork/core/ip-address.c:520: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(dest, "<INVALID>", CORK_IP_STRING_LENGTH);
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:150:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cork_buffer_set(buffer, str, strlen(str));
data/libcork-0.15.0+ds/src/libcork/ds/buffer.c:157: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).
    cork_buffer_append(buffer, str, strlen(str));
data/libcork-0.15.0+ds/src/libcork/ds/file-stream.c:35:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((bytes_read = read(fd, buf, BUFFER_SIZE)) > 0) {
data/libcork-0.15.0+ds/src/libcork/ds/hash-table.c:664: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  len = strlen(k);
data/libcork-0.15.0+ds/src/libcork/posix/env.c:101:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        const char  *equal;
data/libcork-0.15.0+ds/src/libcork/posix/files.c:70:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return cork_path_new_internal(source, source == NULL? 0: strlen(source));
data/libcork-0.15.0+ds/src/libcork/posix/files.c:115: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).
    cork_buffer_set(&path->given, dirname, strlen(dirname));
data/libcork-0.15.0+ds/src/libcork/posix/files.c:120: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).
    path->given.size = strlen(path->given.buf);
data/libcork-0.15.0+ds/src/libcork/posix/files.c:154:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cork_buffer_set(&buf, dirname, strlen(dirname));
data/libcork-0.15.0+ds/src/libcork/posix/files.c:160: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).
    buf.size = strlen(buf.buf);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:168:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t  bytes_read = read(p->fds[0], buf, BUF_SIZE);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:525:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(0);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:527:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:529:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep((*spin_count - 49) * 1000);
data/libcork-0.15.0+ds/src/libcork/posix/subprocess.c:531:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(25000);
data/libcork-0.15.0+ds/src/libcork/pthreads/thread.c:146:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(thread_name, self->name, PTHREADS_MAX_THREAD_NAME_LENGTH);
data/libcork-0.15.0+ds/src/libcork/pthreads/thread.c:186:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(thread_name, self->name, PTHREADS_MAX_THREAD_NAME_LENGTH);
data/libcork-0.15.0+ds/tests/test-buffer.c:40:28:  [1] (buffer) strlen:
  Does not handle 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  expected_len = strlen(expected);
data/libcork-0.15.0+ds/tests/test-buffer.c:50: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  SRC_LEN = strlen(SRC);
data/libcork-0.15.0+ds/tests/test-hash-table.c:286:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(key, "key1", sizeof(key));
data/libcork-0.15.0+ds/tests/test-hash-table.c:293:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(key, "key2", sizeof(key));

ANALYSIS SUMMARY:

Hits = 79
Lines analyzed = 17335 in approximately 0.62 seconds (28175 lines/second)
Physical Source Lines of Code (SLOC) = 12216
Hits@level = [0]  64 [1]  29 [2]  32 [3]   2 [4]  16 [5]   0
Hits@level+ = [0+] 143 [1+]  79 [2+]  50 [3+]  18 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 11.706 [1+] 6.46693 [2+] 4.09299 [3+] 1.47348 [4+] 1.30976 [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.