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/sigscheme-0.9.1/test-c/test-gc-protect-stack.c
Examining data/sigscheme-0.9.1/test-c/test-storage-compact-coll.c
Examining data/sigscheme-0.9.1/test-c/test-storage.c
Examining data/sigscheme-0.9.1/test-c/test-alignment-coll.c
Examining data/sigscheme-0.9.1/test-c/test-format.c
Examining data/sigscheme-0.9.1/test-c/test-gc.c
Examining data/sigscheme-0.9.1/test-c/test-storage-compact.c
Examining data/sigscheme-0.9.1/test-c/test-gc-protect.c
Examining data/sigscheme-0.9.1/test-c/test-length-coll.c
Examining data/sigscheme-0.9.1/test-c/sscm-test.h
Examining data/sigscheme-0.9.1/test-c/test-global.c
Examining data/sigscheme-0.9.1/test-c/test-array2list.c
Examining data/sigscheme-0.9.1/test-c/utils.c
Examining data/sigscheme-0.9.1/test-c/test-format-coll.c
Examining data/sigscheme-0.9.1/test-c/test-array2list-coll.c
Examining data/sigscheme-0.9.1/test-c/test-strcasecmp-coll.c
Examining data/sigscheme-0.9.1/test-c/test-gc-protect-stack-coll.c
Examining data/sigscheme-0.9.1/test-c/test-gc-coll.c
Examining data/sigscheme-0.9.1/test-c/test-strcasecmp.c
Examining data/sigscheme-0.9.1/test-c/test-global-coll.c
Examining data/sigscheme-0.9.1/test-c/test-minishell.c
Examining data/sigscheme-0.9.1/test-c/test-alignment.c
Examining data/sigscheme-0.9.1/test-c/test-length.c
Examining data/sigscheme-0.9.1/test-c/test-gc-protect-coll.c
Examining data/sigscheme-0.9.1/test-c/test-storage-coll.c
Examining data/sigscheme-0.9.1/src/functable-srfi1.c
Examining data/sigscheme-0.9.1/src/dllentry.c
Examining data/sigscheme-0.9.1/src/storage.c
Examining data/sigscheme-0.9.1/src/scmport-null.c
Examining data/sigscheme-0.9.1/src/functable-srfi55.c
Examining data/sigscheme-0.9.1/src/scmport-config.h
Examining data/sigscheme-0.9.1/src/scmport-mbchar.c
Examining data/sigscheme-0.9.1/src/list.c
Examining data/sigscheme-0.9.1/src/functable-sscm-core.c
Examining data/sigscheme-0.9.1/src/read.c
Examining data/sigscheme-0.9.1/src/sigschemeinternal.h
Examining data/sigscheme-0.9.1/src/module-srfi48.c
Examining data/sigscheme-0.9.1/src/config-old.h
Examining data/sigscheme-0.9.1/src/functable-srfi23.c
Examining data/sigscheme-0.9.1/src/module-srfi28.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-qquote.c
Examining data/sigscheme-0.9.1/src/main.c
Examining data/sigscheme-0.9.1/src/functable-srfi9.c
Examining data/sigscheme-0.9.1/src/encoding.c
Examining data/sigscheme-0.9.1/src/module-srfi9.c
Examining data/sigscheme-0.9.1/src/functable-srfi8.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-core.c
Examining data/sigscheme-0.9.1/src/module-srfi6.c
Examining data/sigscheme-0.9.1/src/storage-compact.h
Examining data/sigscheme-0.9.1/src/gcroots/gcroots.h
Examining data/sigscheme-0.9.1/src/gcroots/gcroots.c
Examining data/sigscheme-0.9.1/src/scmport-str.h
Examining data/sigscheme-0.9.1/src/alloc.c
Examining data/sigscheme-0.9.1/src/module-srfi60.c
Examining data/sigscheme-0.9.1/src/scmport-sbchar.h
Examining data/sigscheme-0.9.1/src/env.c
Examining data/sigscheme-0.9.1/src/encoding-config.h
Examining data/sigscheme-0.9.1/src/module-srfi38.c
Examining data/sigscheme-0.9.1/src/continuation.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-syntax.c
Examining data/sigscheme-0.9.1/src/scmport.h
Examining data/sigscheme-0.9.1/src/storage-gc.c
Examining data/sigscheme-0.9.1/src/sigscheme-combined.h
Examining data/sigscheme-0.9.1/src/encoding.h
Examining data/sigscheme-0.9.1/src/module-srfi34.c
Examining data/sigscheme-0.9.1/src/functable-srfi43.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-string.c
Examining data/sigscheme-0.9.1/src/eval.c
Examining data/sigscheme-0.9.1/src/module-srfi2.c
Examining data/sigscheme-0.9.1/src/string-procedure.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-read.c
Examining data/sigscheme-0.9.1/src/module-srfi1.c
Examining data/sigscheme-0.9.1/src/write.c
Examining data/sigscheme-0.9.1/src/global.h
Examining data/sigscheme-0.9.1/src/global-aggregated.c
Examining data/sigscheme-0.9.1/src/sigscheme.c
Examining data/sigscheme-0.9.1/src/char.c
Examining data/sigscheme-0.9.1/src/storage-common.h
Examining data/sigscheme-0.9.1/src/functable-srfi6.c
Examining data/sigscheme-0.9.1/src/functable-srfi60.c
Examining data/sigscheme-0.9.1/src/scmport-mbchar.h
Examining data/sigscheme-0.9.1/src/scmport-basechar.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-vector.c
Examining data/sigscheme-0.9.1/src/functable-srfi48.c
Examining data/sigscheme-0.9.1/src/functable-srfi38.c
Examining data/sigscheme-0.9.1/src/syntax.c
Examining data/sigscheme-0.9.1/src/sigscheme.h
Examining data/sigscheme-0.9.1/src/functable-r5rs-string-procedure.c
Examining data/sigscheme-0.9.1/src/scmport-sbchar.c
Examining data/sigscheme-0.9.1/src/functable-srfi2.c
Examining data/sigscheme-0.9.1/src/port.c
Examining data/sigscheme-0.9.1/src/deep-cadrs.c
Examining data/sigscheme-0.9.1/src/strcasecmp.c
Examining data/sigscheme-0.9.1/src/functable-srfi34.c
Examining data/sigscheme-0.9.1/src/vector.c
Examining data/sigscheme-0.9.1/src/load.c
Examining data/sigscheme-0.9.1/src/functable-sscm-ext.c
Examining data/sigscheme-0.9.1/src/storage-fatty.h
Examining data/sigscheme-0.9.1/src/scmport-file.h
Examining data/sigscheme-0.9.1/src/promise.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-port.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-load.c
Examining data/sigscheme-0.9.1/src/module-srfi8.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-char.c
Examining data/sigscheme-0.9.1/src/scmint.h
Examining data/sigscheme-0.9.1/src/scmport-null.h
Examining data/sigscheme-0.9.1/src/module-siod.c
Examining data/sigscheme-0.9.1/src/legacy-macro.c
Examining data/sigscheme-0.9.1/src/symbol.c
Examining data/sigscheme-0.9.1/src/encoding-dummy.h
Examining data/sigscheme-0.9.1/src/procedure.c
Examining data/sigscheme-0.9.1/src/number-io.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-write.c
Examining data/sigscheme-0.9.1/src/template.h
Examining data/sigscheme-0.9.1/src/error.c
Examining data/sigscheme-0.9.1/src/functable-siod.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-deep-cadrs.c
Examining data/sigscheme-0.9.1/src/string.c
Examining data/sigscheme-0.9.1/src/scmport-str.c
Examining data/sigscheme-0.9.1/src/qquote.c
Examining data/sigscheme-0.9.1/src/module-srfi55.c
Examining data/sigscheme-0.9.1/src/number.c
Examining data/sigscheme-0.9.1/src/module-sscm-ext.c
Examining data/sigscheme-0.9.1/src/functable-legacy-macro.c
Examining data/sigscheme-0.9.1/src/module-srfi23.c
Examining data/sigscheme-0.9.1/src/module-srfi43.c
Examining data/sigscheme-0.9.1/src/module.c
Examining data/sigscheme-0.9.1/src/macro.c
Examining data/sigscheme-0.9.1/src/sigscheme-combined-trim.h
Examining data/sigscheme-0.9.1/src/functable-r5rs-number.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-promise.c
Examining data/sigscheme-0.9.1/src/format.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-number-io.c
Examining data/sigscheme-0.9.1/src/template.c
Examining data/sigscheme-0.9.1/src/scmport-file.c
Examining data/sigscheme-0.9.1/src/functable-srfi28.c
Examining data/sigscheme-0.9.1/src/functable-r5rs-macro.c
Examining data/sigscheme-0.9.1/libgcroots/mach_dep.c
Examining data/sigscheme-0.9.1/libgcroots/mark.c
Examining data/sigscheme-0.9.1/libgcroots/include/gc_mark.h
Examining data/sigscheme-0.9.1/libgcroots/include/gc_tiny_fl.h
Examining data/sigscheme-0.9.1/libgcroots/include/gcroots.h
Examining data/sigscheme-0.9.1/libgcroots/include/private/gc_locks.h
Examining data/sigscheme-0.9.1/libgcroots/include/private/gcconfig.h
Examining data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h
Examining data/sigscheme-0.9.1/libgcroots/include/private/gc_hdrs.h
Examining data/sigscheme-0.9.1/libgcroots/include/private/gcroots_priv.h
Examining data/sigscheme-0.9.1/libgcroots/include/gc_config_macros.h
Examining data/sigscheme-0.9.1/libgcroots/include/gc.h
Examining data/sigscheme-0.9.1/libgcroots/gcroots.c

FINAL RESULTS:

data/sigscheme-0.9.1/src/alloc.c:178: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(copied, str);
data/sigscheme-0.9.1/src/alloc.c:200:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(copied, str);
data/sigscheme-0.9.1/src/load.c:276:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(path, filename);
data/sigscheme-0.9.1/src/module-sscm-ext.c:266:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(loaded_str, "*%s-loaded*", filename);
data/sigscheme-0.9.1/src/number-io.c:132: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(&str[sign_len + pad_len], p);
data/sigscheme-0.9.1/src/scmport-basechar.c:121:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(combined, "%s %s %s", header, encoding, bport_part);
data/sigscheme-0.9.1/src/scmport-file.c:206:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(combined, "file %s", port->aux_info);
data/sigscheme-0.9.1/src/sigscheme.c:525:17:  [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,
data/sigscheme-0.9.1/test-c/sscm-test.h:66:11:  [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.
    len = vsnprintf(NULL, 0, msg, va);
data/sigscheme-0.9.1/test-c/sscm-test.h:84:5:  [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.
    vsnprintf (buf, len + 1, msg, va);
data/sigscheme-0.9.1/libgcroots/include/private/gc_locks.h:58:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		{ EnterCriticalSection(&GC_allocate_ml); \
data/sigscheme-0.9.1/libgcroots/include/private/gc_locks.h:64:29:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#      define UNCOND_LOCK() EnterCriticalSection(&GC_allocate_ml);
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:357: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.
	  char * tmp = getenv(name);
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:364:29:  [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.
#       define GETENV(name) getenv(name)
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:295:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define BCOPY(x,y,n) memcpy(y, x, (size_t)(n))
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:298:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define BCOPY(x,y,n) bcopy((void *)(x),(void *)(y),(size_t)(n))
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:732: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 _hb_marks[MARK_BITS_SZ];
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:759: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 hb_body[HBLKSIZE];
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:934:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char _valid_offsets[VALID_OFFSET_SZ];
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:937:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char _modws_valid_offsets[sizeof(word)];
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:1899:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
# define GC_STATIC_ASSERT(expr) do { if (0) { char j[(expr)? 1 : -1]; j[0]='\0'; j[0]=j[0]; } } while(0)
data/sigscheme-0.9.1/src/alloc.c:239:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        lbuf->buf = memcpy(scm_malloc(size), lbuf->buf, lbuf->size);
data/sigscheme-0.9.1/src/format.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 buf[sizeof("0127")];
data/sigscheme-0.9.1/src/load.c:297:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(filepath, "r");
data/sigscheme-0.9.1/src/load.c:341: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[SCRIPT_PRELUDE_MAXLEN];
data/sigscheme-0.9.1/src/macro.c:1016: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(ctx->indices, ctx->index_buf,
data/sigscheme-0.9.1/src/main.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 lib_path[MAXPATHLEN + sizeof("")];
data/sigscheme-0.9.1/src/module-srfi6.c:139: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(new_str, str, size);
data/sigscheme-0.9.1/src/module-sscm-ext.c:324:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(SCM_STRING_STR(filepath), "r");
data/sigscheme-0.9.1/src/number-io.c:106: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[sizeof("-") + sizeof(uintmax_t) * CHAR_BIT];
data/sigscheme-0.9.1/src/read.c:635: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 dot_buf[sizeof("...")];
data/sigscheme-0.9.1/src/read.c:742: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 seq[sizeof("x0010ffff")];
data/sigscheme-0.9.1/src/read.c:773: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[CHAR_LITERAL_LEN_MAX + sizeof("")];
data/sigscheme-0.9.1/src/read.c:824: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 init_buf[SCM_INITIAL_STRING_BUF_SIZE];
data/sigscheme-0.9.1/src/read.c:920: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 init_buf[SCM_INITIAL_SYMBOL_BUF_SIZE];
data/sigscheme-0.9.1/src/read.c:949: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[INT_LITERAL_LEN_MAX + sizeof("")];
data/sigscheme-0.9.1/src/read.c:1021: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[INT_LITERAL_LEN_MAX + sizeof("")];
data/sigscheme-0.9.1/src/scmport-file.c:155:12:  [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 = fopen(path, mode);
data/sigscheme-0.9.1/src/scmport-mbchar.c:244: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 wbuf[SCM_MB_CHAR_BUF_SIZE];
data/sigscheme-0.9.1/src/scmport-sbchar.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1];
data/sigscheme-0.9.1/src/scmport-str.c:418: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(port->str + port->cur, str, len);
data/sigscheme-0.9.1/src/string-procedure.c:87: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 ch_buf[SCM_MB_CHAR_BUF_SIZE];
data/sigscheme-0.9.1/src/string-procedure.c:136: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(dst, ch_buf, ch_len);
data/sigscheme-0.9.1/src/string-procedure.c:182:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ch = ((unsigned char *)SCM_STRING_STR(str))[idx];
data/sigscheme-0.9.1/src/string-procedure.c:199: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 ch_buf[SCM_MB_CHAR_BUF_SIZE];
data/sigscheme-0.9.1/src/string-procedure.c:253: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(&new_str[prefix_len], ch_buf, ch_len);
data/sigscheme-0.9.1/src/string-procedure.c:430:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_str, SCM_MBS_GET_STR(mbs), SCM_MBS_GET_SIZE(mbs));
data/sigscheme-0.9.1/src/string-procedure.c:434: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(new_str, &c_str[c_start], sub_len);
data/sigscheme-0.9.1/src/string-procedure.c:486:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        ch = ((unsigned char *)c_str)[--mb_len];
data/sigscheme-0.9.1/src/string-procedure.c:563: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 ch_buf[SCM_MB_CHAR_BUF_SIZE];
data/sigscheme-0.9.1/src/string-procedure.c:594: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(dst, ch_buf, ch_len);
data/sigscheme-0.9.1/test-c/sscm-test.h:233: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(suite->results, cases, sizeof(cases));               \
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:86: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 c[3];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:96: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 c[5];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:118: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 c[9];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:129: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 offset[1];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:134: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 offset[2];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:139: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 offset[3];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:144: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 offset[4];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:149: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 offset[5];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:154: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 offset[6];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:159: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 offset[7];
data/sigscheme-0.9.1/test-c/test-alignment-coll.c:164: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 offset[8];
data/sigscheme-0.9.1/test-c/test-alignment.c:85: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 c[3];
data/sigscheme-0.9.1/test-c/test-alignment.c:95: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 c[5];
data/sigscheme-0.9.1/test-c/test-alignment.c:117: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 c[9];
data/sigscheme-0.9.1/test-c/test-alignment.c:128: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 offset[1];
data/sigscheme-0.9.1/test-c/test-alignment.c:133: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 offset[2];
data/sigscheme-0.9.1/test-c/test-alignment.c:138: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 offset[3];
data/sigscheme-0.9.1/test-c/test-alignment.c:143: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 offset[4];
data/sigscheme-0.9.1/test-c/test-alignment.c:148: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 offset[5];
data/sigscheme-0.9.1/test-c/test-alignment.c:153: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 offset[6];
data/sigscheme-0.9.1/test-c/test-alignment.c:158: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 offset[7];
data/sigscheme-0.9.1/test-c/test-alignment.c:163: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 offset[8];
data/sigscheme-0.9.1/test-c/utils.c:61: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(ret, p, size);
data/sigscheme-0.9.1/libgcroots/include/private/gc_priv.h:358:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (tmp == 0 || strlen(tmp) == 0)
data/sigscheme-0.9.1/src/alloc.c:98:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    p = memalign(sizeof(ScmCell), size);
data/sigscheme-0.9.1/src/alloc.c:176: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).
    size = strlen(str) + sizeof("");
data/sigscheme-0.9.1/src/alloc.c:198: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 = strlen(str) + sizeof("");
data/sigscheme-0.9.1/src/encoding-dummy.h:62: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).
#define scm_mb_bare_c_strlen(codec, str) strlen(str)
data/sigscheme-0.9.1/src/encoding.c:304:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    SCM_MBS_INIT2(mbs, s, strlen(s));
data/sigscheme-0.9.1/src/format.c:140: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).
    SCM_MBS_INIT2((mbs_fmt), (str), strlen(str))
data/sigscheme-0.9.1/src/format.c:356: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).
        cstr_len = strlen(str);
data/sigscheme-0.9.1/src/load.c:269: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).
            filename_len = strlen(filename);
data/sigscheme-0.9.1/src/load.c:273:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(path, begin, lib_path_len);
data/sigscheme-0.9.1/src/load.c:275:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(path, "/");
data/sigscheme-0.9.1/src/module-sscm-ext.c:264: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).
    size = strlen(filename) + sizeof("*-loaded*");
data/sigscheme-0.9.1/src/read.c:874:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(info->esc_seq) == 2 && c == info->esc_seq[1]) {
data/sigscheme-0.9.1/src/scmport-basechar.c:118: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).
    size = strlen(header) + strlen(encoding) + strlen(bport_part)
data/sigscheme-0.9.1/src/scmport-basechar.c:118:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(header) + strlen(encoding) + strlen(bport_part)
data/sigscheme-0.9.1/src/scmport-basechar.c:118:48:  [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 = strlen(header) + strlen(encoding) + strlen(bport_part)
data/sigscheme-0.9.1/src/scmport-file.c:204: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).
        size = sizeof("file ") + strlen(port->aux_info);
data/sigscheme-0.9.1/src/scmport-file.c:232:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(port->file);
data/sigscheme-0.9.1/src/scmport-mbchar.c:164: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 (1 < strlen((char *)mbcport->rbuf))
data/sigscheme-0.9.1/src/scmport-str.c:390:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ostrport_append(port, strlen(str), (const scm_byte_t *)str);
data/sigscheme-0.9.1/src/string-procedure.c:174: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).
    SCM_MBS_INIT2(mbs, SCM_STRING_STR(str), strlen(SCM_STRING_STR(str)));
data/sigscheme-0.9.1/src/string-procedure.c:219: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).
    SCM_MBS_INIT2(mbs_ch, c_str, strlen(c_str));
data/sigscheme-0.9.1/src/string-procedure.c:238: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).
        suffix_len = strlen(suffix_src);
data/sigscheme-0.9.1/src/string-procedure.c:286:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    SCM_MBS_INIT2(mbs1, c_str1, strlen(c_str1));
data/sigscheme-0.9.1/src/string-procedure.c:287:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    SCM_MBS_INIT2(mbs2, c_str2, strlen(c_str2));
data/sigscheme-0.9.1/src/string-procedure.c:425: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).
    SCM_MBS_INIT2(mbs, c_str, strlen(c_str));
data/sigscheme-0.9.1/src/string-procedure.c:467: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).
    SCM_MBS_INIT2(mbs, c_str, strlen(c_str));
data/sigscheme-0.9.1/src/string-procedure.c:477: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).
            SCM_MBS_INIT2(mbs, c_str, strlen(c_str));
data/sigscheme-0.9.1/src/string.c:121: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).
        byte_len += strlen(SCM_STRING_STR(str));
data/sigscheme-0.9.1/src/write.c:411: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).
            len = strlen(str);

ANALYSIS SUMMARY:

Hits = 105
Lines analyzed = 48643 in approximately 1.53 seconds (31694 lines/second)
Physical Source Lines of Code (SLOC) = 31093
Hits@level = [0]   0 [1]  30 [2]  61 [3]   4 [4]  10 [5]   0
Hits@level+ = [0+] 105 [1+] 105 [2+]  75 [3+]  14 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 3.37697 [1+] 3.37697 [2+] 2.41212 [3+] 0.450262 [4+] 0.321616 [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.