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/scheme48-1.9.2/c/asm-glue.c
Examining data/scheme48-1.9.2/c/bignum.c
Examining data/scheme48-1.9.2/c/bignum.h
Examining data/scheme48-1.9.2/c/bignumint.h
Examining data/scheme48-1.9.2/c/c-mods.h
Examining data/scheme48-1.9.2/c/double_to_string.c
Examining data/scheme48-1.9.2/c/event.h
Examining data/scheme48-1.9.2/c/extension.c
Examining data/scheme48-1.9.2/c/external-init.c
Examining data/scheme48-1.9.2/c/external-lib.c
Examining data/scheme48-1.9.2/c/external.c
Examining data/scheme48-1.9.2/c/fd-io.h
Examining data/scheme48-1.9.2/c/ffi.c
Examining data/scheme48-1.9.2/c/ffi.h
Examining data/scheme48-1.9.2/c/free.c
Examining data/scheme48-1.9.2/c/init.c
Examining data/scheme48-1.9.2/c/io.h
Examining data/scheme48-1.9.2/c/main.c
Examining data/scheme48-1.9.2/c/prescheme.h
Examining data/scheme48-1.9.2/c/scheme48-bibop-heap-32.c
Examining data/scheme48-1.9.2/c/scheme48-bibop-heap-64.c
Examining data/scheme48-1.9.2/c/scheme48-twospace-heap-32.c
Examining data/scheme48-1.9.2/c/scheme48-twospace-heap-64.c
Examining data/scheme48-1.9.2/c/scheme48.h
Examining data/scheme48-1.9.2/c/scheme48heap.h
Examining data/scheme48-1.9.2/c/scheme48image.h
Examining data/scheme48-1.9.2/c/scheme48vm-32.c
Examining data/scheme48-1.9.2/c/scheme48vm-64.c
Examining data/scheme48-1.9.2/c/scheme48vm-prelude.h
Examining data/scheme48-1.9.2/c/scheme48vm.h
Examining data/scheme48-1.9.2/c/srfi-27.c
Examining data/scheme48-1.9.2/c/unix.h
Examining data/scheme48-1.9.2/c/bibop/area_roots.c
Examining data/scheme48-1.9.2/c/bibop/area_roots.h
Examining data/scheme48-1.9.2/c/bibop/areas.c
Examining data/scheme48-1.9.2/c/bibop/areas.h
Examining data/scheme48-1.9.2/c/bibop/bibop.h
Examining data/scheme48-1.9.2/c/bibop/check_heap.c
Examining data/scheme48-1.9.2/c/bibop/check_heap.h
Examining data/scheme48-1.9.2/c/bibop/data.h
Examining data/scheme48-1.9.2/c/bibop/find_all.c
Examining data/scheme48-1.9.2/c/bibop/find_all.h
Examining data/scheme48-1.9.2/c/bibop/gc_config.h
Examining data/scheme48-1.9.2/c/bibop/generation_gc.c
Examining data/scheme48-1.9.2/c/bibop/generation_gc.h
Examining data/scheme48-1.9.2/c/bibop/measure.h
Examining data/scheme48-1.9.2/c/bibop/memory.h
Examining data/scheme48-1.9.2/c/bibop/memory_map.c
Examining data/scheme48-1.9.2/c/bibop/memory_map.h
Examining data/scheme48-1.9.2/c/bibop/page_alloc.c
Examining data/scheme48-1.9.2/c/bibop/page_alloc.h
Examining data/scheme48-1.9.2/c/bibop/page_constants.h
Examining data/scheme48-1.9.2/c/bibop/remset.c
Examining data/scheme48-1.9.2/c/bibop/remset.h
Examining data/scheme48-1.9.2/c/bibop/utils.c
Examining data/scheme48-1.9.2/c/bibop/utils.h
Examining data/scheme48-1.9.2/c/fake/dlfcn.h
Examining data/scheme48-1.9.2/c/fake/environ.c
Examining data/scheme48-1.9.2/c/fake/environ.h
Examining data/scheme48-1.9.2/c/fake/glue.c
Examining data/scheme48-1.9.2/c/fake/langinfo.c
Examining data/scheme48-1.9.2/c/fake/langinfo.h
Examining data/scheme48-1.9.2/c/fake/sigact.h
Examining data/scheme48-1.9.2/c/fake/strerror.c
Examining data/scheme48-1.9.2/c/fake/strerror.h
Examining data/scheme48-1.9.2/c/fake/sys-select.h
Examining data/scheme48-1.9.2/c/fake/sysexits.h
Examining data/scheme48-1.9.2/c/ffi-test/ffi-test.c
Examining data/scheme48-1.9.2/c/ffi-test/ffi-test.h
Examining data/scheme48-1.9.2/c/net/address.h
Examining data/scheme48-1.9.2/c/net/net.c
Examining data/scheme48-1.9.2/c/net/socket.c
Examining data/scheme48-1.9.2/c/net/socket.h
Examining data/scheme48-1.9.2/c/net/address.c
Examining data/scheme48-1.9.2/c/posix/dir.c
Examining data/scheme48-1.9.2/c/posix/errno.c
Examining data/scheme48-1.9.2/c/posix/io.c
Examining data/scheme48-1.9.2/c/posix/posix.c
Examining data/scheme48-1.9.2/c/posix/posix.h
Examining data/scheme48-1.9.2/c/posix/proc-env.c
Examining data/scheme48-1.9.2/c/posix/proc.c
Examining data/scheme48-1.9.2/c/posix/regexp.c
Examining data/scheme48-1.9.2/c/posix/s48_errno.h
Examining data/scheme48-1.9.2/c/posix/s48_signals.h
Examining data/scheme48-1.9.2/c/posix/syslog.c
Examining data/scheme48-1.9.2/c/posix/time.c
Examining data/scheme48-1.9.2/c/posix/user.c
Examining data/scheme48-1.9.2/c/r6rs/ieee_bytevect.c
Examining data/scheme48-1.9.2/c/r6rs/r6rs_externals.c
Examining data/scheme48-1.9.2/c/unix/dynlink.c
Examining data/scheme48-1.9.2/c/unix/event.c
Examining data/scheme48-1.9.2/c/unix/fd-io.c
Examining data/scheme48-1.9.2/c/unix/io.c
Examining data/scheme48-1.9.2/c/unix/misc.c
Examining data/scheme48-1.9.2/c/unix/socket.c
Examining data/scheme48-1.9.2/c/unix/sysexits.c
Examining data/scheme48-1.9.2/c/unix/time.c
Examining data/scheme48-1.9.2/c/win32/dynlink.c
Examining data/scheme48-1.9.2/c/win32/event.c
Examining data/scheme48-1.9.2/c/win32/fd-io.c
Examining data/scheme48-1.9.2/c/win32/io.c
Examining data/scheme48-1.9.2/c/win32/main_win32.c
Examining data/scheme48-1.9.2/c/win32/misc.c
Examining data/scheme48-1.9.2/c/win32/scheme48arch.h
Examining data/scheme48-1.9.2/c/win32/sysexits.c
Examining data/scheme48-1.9.2/c/win32/time.c
Examining data/scheme48-1.9.2/c/win32/utf-8of16.c
Examining data/scheme48-1.9.2/c/scheme48write-barrier.h
Examining data/scheme48-1.9.2/c/script-interpreter.c

FINAL RESULTS:

data/scheme48-1.9.2/c/posix/dir.c:517:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
      RETRY_NEG(status, readlink(s48_extract_byte_vector_readonly_2(call, svname), buf, buf_size - 1));
data/scheme48-1.9.2/c/bibop/utils.c:17:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, message, args);
data/scheme48-1.9.2/c/bibop/utils.c:32:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(prot, message, args);
data/scheme48-1.9.2/c/double_to_string.c:27:7:  [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(dest, digits);
data/scheme48-1.9.2/c/external.c:931:6:  [4] (shell) system:
  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.
			  system(s48_false_p_2(call, string)
data/scheme48-1.9.2/c/ffi-test/ffi-test.c:325:3:  [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(val->name, temp);
data/scheme48-1.9.2/c/free.c:407:8:  [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, sign ? "-inf.0" : "+inf.0");
data/scheme48-1.9.2/c/net/address.c:310:3:  [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(saddr.sun_path, s48_extract_byte_vector_readonly_2(call, sch_path));
data/scheme48-1.9.2/c/posix/dir.c:320:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    RETRY_NEG(status, access(path, local_modes));
data/scheme48-1.9.2/c/posix/proc-env.c:119:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
  char *login = getlogin();
data/scheme48-1.9.2/c/posix/proc.c:204:16:  [4] (shell) execv:
  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.
      status = execv(c_program, c_args);
data/scheme48-1.9.2/c/posix/proc.c:206:16:  [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.
      status = execvp(c_program, c_args);
data/scheme48-1.9.2/c/posix/syslog.c:172: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(syslog_ident, ident);
data/scheme48-1.9.2/c/script-interpreter.c:63:3:  [4] (shell) execv:
  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.
  execv(RUNNABLE, new_argv);
data/scheme48-1.9.2/c/unix/fd-io.c:301:7:  [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(*encoding_p, codeset);
data/scheme48-1.9.2/c/unix/misc.c:191:7:  [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(encoding, codeset);
data/scheme48-1.9.2/c/win32/misc.c:67:4:  [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(buffer, drive);
data/scheme48-1.9.2/c/win32/misc.c:68:4:  [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(buffer + drive_length, path);
data/scheme48-1.9.2/c/win32/misc.c:69:4:  [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(buffer + dir_len, name);
data/scheme48-1.9.2/c/win32/misc.c:73:4:  [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(buffer, dir);
data/scheme48-1.9.2/c/win32/misc.c:74:4:  [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(buffer + dir_len, name);
data/scheme48-1.9.2/c/win32/misc.c:84:7:  [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(buffer, name);
data/scheme48-1.9.2/c/posix/proc-env.c:129:11:  [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.
  value = getenv(s48_extract_byte_vector_readonly_2(call, name));
data/scheme48-1.9.2/c/posix/proc.c:145:10:  [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.
  path = getenv("PATH");
data/scheme48-1.9.2/c/unix/misc.c:44:13:  [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("HOME"); }
data/scheme48-1.9.2/c/unix/misc.c:78:11:  [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(user_name); }
data/scheme48-1.9.2/c/win32/misc.c:31: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.
      drive = getenv("HOMEDRIVE");
data/scheme48-1.9.2/c/win32/misc.c:35: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.
      path  = getenv("HOMEPATH");
data/scheme48-1.9.2/c/win32/misc.c:45:10:  [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(name+1);
data/scheme48-1.9.2/c/bibop/check_heap.c:52:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[512];
data/scheme48-1.9.2/c/bibop/check_heap.c:54:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(s, "corrupted header 0x%lX at 0x%p!", header, addr);
data/scheme48-1.9.2/c/bibop/check_heap.c:68:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[512];
data/scheme48-1.9.2/c/bibop/check_heap.c:69:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s, "content value 0x%lX at 0x%p is a header!",
data/scheme48-1.9.2/c/bibop/check_heap.c:73:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[512];
data/scheme48-1.9.2/c/bibop/check_heap.c:74:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(s, "stob value 0x%lX in object of type %ld at 0x%p pointing outside the heap!", v, S48_HEADER_TYPE(header), this_addr);
data/scheme48-1.9.2/c/bibop/find_all.c:39: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*)new_area->start, (void*)target_area->start, size);
data/scheme48-1.9.2/c/bibop/generation_gc.c:1112:4:  [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*)data_addr, S48_ADDRESS_AFTER_HEADER(copy_thing, void),
data/scheme48-1.9.2/c/bibop/utils.c:29:10:  [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).
  prot = fopen("BIBOP_LOG", "a");
data/scheme48-1.9.2/c/double_to_string.c:16: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 raw[33];
data/scheme48-1.9.2/c/extension.c:30: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 b[sizeof(double)];
data/scheme48-1.9.2/c/extension.c:137: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[40];
data/scheme48-1.9.2/c/external.c:2091:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(S48_UNSAFE_EXTRACT_BYTE_VECTOR(obj), bytes, length);
data/scheme48-1.9.2/c/external.c:2107:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(S48_UNSAFE_EXTRACT_BYTE_VECTOR(obj), bytes, length);
data/scheme48-1.9.2/c/external.c:2150:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, scheme_buf + start, length);
data/scheme48-1.9.2/c/external.c:2160:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(scheme_buf + start, buf, length);
data/scheme48-1.9.2/c/external.c:2304:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(S48_UNSAFE_EXTRACT_BYTE_VECTOR(obj), str, length);
data/scheme48-1.9.2/c/free.c:409:8:  [2] (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). Risk is low because the source is a constant string.
       strcpy(buf, "+nan.0");
data/scheme48-1.9.2/c/init.c:81:14:  [2] (integer) atol:
  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).
	heap_size = atol(*(*argv));
data/scheme48-1.9.2/c/init.c:87:15:  [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).
	stack_size = atoi(*(*argv));
data/scheme48-1.9.2/c/net/address.c:146:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s48_extract_value_pointer_2(call, sch_native, void), saddr,
data/scheme48-1.9.2/c/net/address.c:227:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s48_extract_value_pointer_2(call, sch_native, void), saddr,
data/scheme48-1.9.2/c/net/address.c:292:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s48_extract_value_pointer_2(call, sch_native, void), saddr, len+1);
data/scheme48-1.9.2/c/net/address.c:340:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s48_extract_value_pointer_2(call, sch_native, void), saddr,
data/scheme48-1.9.2/c/net/address.c:379: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 name[IF_NAMESIZE];
data/scheme48-1.9.2/c/net/address.c:388: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 ifname[IF_NAMESIZE];
data/scheme48-1.9.2/c/net/address.c:729: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 host[NI_MAXHOST];
data/scheme48-1.9.2/c/net/address.c:730: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 serv[NI_MAXSERV];
data/scheme48-1.9.2/c/net/address.c:794:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(handshake->addr), sa, salen);
data/scheme48-1.9.2/c/net/address.c:835:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 src[INET_ADDRSTRLEN+1]; /* be safe */
data/scheme48-1.9.2/c/net/address.c:856:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 src[INET6_ADDRSTRLEN+1]; /* be safe */
data/scheme48-1.9.2/c/net/address.c:890:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dest[INET_ADDRSTRLEN+1]; /* be safe */
data/scheme48-1.9.2/c/net/address.c:909:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dest[INET6_ADDRSTRLEN+1]; /* be safe */
data/scheme48-1.9.2/c/posix/dir.c:187: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	stack_buffer[256];
data/scheme48-1.9.2/c/posix/dir.c:242:28:  [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).
    RETRY_OR_RAISE_NEG(fd, open(c_path, c_options));
data/scheme48-1.9.2/c/posix/dir.c:245:28:  [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).
    RETRY_OR_RAISE_NEG(fd, open(c_path, c_options, c_mode));
data/scheme48-1.9.2/c/posix/dir.c:511: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 local_buf[1024];
data/scheme48-1.9.2/c/posix/proc-env.c:239: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 termid[L_ctermid];
data/scheme48-1.9.2/c/posix/proc.c:165: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/scheme48-1.9.2/c/posix/proc.c:167: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 + len + 1, file, file_len);
data/scheme48-1.9.2/c/posix/syslog.c:143: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 syslog_ident_initial[SYSLOG_IDENT_SIZE];
data/scheme48-1.9.2/c/posix/time.c:211: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 local_buf[1024];
data/scheme48-1.9.2/c/r6rs/ieee_bytevect.c:17: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 values[4];
data/scheme48-1.9.2/c/r6rs/ieee_bytevect.c:33: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 values[4];
data/scheme48-1.9.2/c/r6rs/ieee_bytevect.c:50: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 values[8];
data/scheme48-1.9.2/c/r6rs/ieee_bytevect.c:65: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 values[8]; 
data/scheme48-1.9.2/c/r6rs/ieee_bytevect.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 c[4];
data/scheme48-1.9.2/c/scheme48.h:559:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 STOB_BYTE_REF_INTERNAL_2(x, i) (((char *) ADDRESS_AFTER_HEADER_INTERNAL_2(x, s48_value))[i])
data/scheme48-1.9.2/c/scheme48.h:855:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 STOB_BYTE_REF_INTERNAL(x, i) (((char *) ADDRESS_AFTER_HEADER_INTERNAL(x, s48_value))[i])
data/scheme48-1.9.2/c/unix/dynlink.c:44:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(full_name,
data/scheme48-1.9.2/c/unix/dynlink.c:47:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(full_name + len,
data/scheme48-1.9.2/c/unix/fd-io.c:50: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 filename_temp[FILE_NAME_SIZE];
data/scheme48-1.9.2/c/unix/fd-io.c:70:14:  [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).
    int fd = open(expanded, flags, mode);
data/scheme48-1.9.2/c/unix/io.c:258: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 filename_temp[FILE_NAME_SIZE];
data/scheme48-1.9.2/c/unix/io.c:269:24:  [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).
  RETRY_NULL(new_file, fopen(expanded, mode));
data/scheme48-1.9.2/c/unix/misc.c:33: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 *dir, *p, user_name[USER_NAME_SIZE];
data/scheme48-1.9.2/c/win32/dynlink.c:32:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(full_name,
data/scheme48-1.9.2/c/win32/dynlink.c:35:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(full_name + len,
data/scheme48-1.9.2/c/win32/fd-io.c:285: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 filename_temp[FILE_NAME_SIZE];
data/scheme48-1.9.2/c/win32/fd-io.c:831:4:  [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, callback_data->current, size);
data/scheme48-1.9.2/c/win32/fd-io.c:839:4:  [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, callback_data->current, max);
data/scheme48-1.9.2/c/win32/fd-io.c:1044:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(callback_data->buffer, buffer, (size_t)max);
data/scheme48-1.9.2/c/win32/fd-io.c:1841:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(s48_extract_byte_vector_2(call, sch_buffer) + start,
data/scheme48-1.9.2/c/win32/fd-io.c:1896:2:  [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(callback_data->buffer, buffer, count);
data/scheme48-1.9.2/c/win32/io.c:257: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 filename_temp[FILE_NAME_SIZE];
data/scheme48-1.9.2/c/win32/io.c:268: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).
  new = fopen(expanded, mode);
data/scheme48-1.9.2/c/win32/misc.c:146:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char utf8[(ERROR_BUFFER_SIZE * 4) + 1];
data/scheme48-1.9.2/c/win32/utf-8of16.c:14: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 masks[4] = { 0x7f, 0x1f, 0x0f, 0x07 };
data/scheme48-1.9.2/c/win32/utf-8of16.c:87: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 states[3][32] =
data/scheme48-1.9.2/c/double_to_string.c:21: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).
  int digit_count = strlen(raw);
data/scheme48-1.9.2/c/external.c:2321:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return s48_enter_byte_substring(str, strlen(str));
data/scheme48-1.9.2/c/external.c:2327: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).
  return s48_enter_byte_substring_2(call, str, strlen(str));
data/scheme48-1.9.2/c/net/address.c:280:67:  [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 SOCKADDR_UN_LEN(su) (sizeof(su) - sizeof((su).sun_path) + strlen((su).sun_path))
data/scheme48-1.9.2/c/posix/dir.c:275:29:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    return enter_mode(call, umask(s48_extract_mode(call, arg0)));
data/scheme48-1.9.2/c/posix/proc-env.c:166:60:  [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).
    value = s48_enter_byte_substring_2(call, name_end + 1, strlen(name_end + 1));
data/scheme48-1.9.2/c/posix/proc.c:148:14:  [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_len = strlen(path);
data/scheme48-1.9.2/c/posix/proc.c:149:14:  [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).
  file_len = strlen(file);
data/scheme48-1.9.2/c/posix/regexp.c:113: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).
  int len = strlen(s48_extract_byte_vector_readonly_2(call, string));
data/scheme48-1.9.2/c/posix/syslog.c:162: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 ident_size = strlen(ident) + 1;
data/scheme48-1.9.2/c/prescheme.h:29:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (EOF == (TTchar = getc(TTport)))			\
data/scheme48-1.9.2/c/prescheme.h:41:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (EOF == (TTchar = getc(TTport)))			\
data/scheme48-1.9.2/c/scheme48-bibop-heap-32.c:1493: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).
      if ((i_151X == (strlen((char *) "Vanilla 40")))) {
data/scheme48-1.9.2/c/scheme48-bibop-heap-64.c:1493: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).
      if ((i_151X == (strlen((char *) "Vanilla 40")))) {
data/scheme48-1.9.2/c/scheme48-twospace-heap-32.c:3742: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).
      if ((i_416X == (strlen((char *) "Vanilla 40")))) {
data/scheme48-1.9.2/c/scheme48-twospace-heap-64.c:3742: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).
      if ((i_416X == (strlen((char *) "Vanilla 40")))) {
data/scheme48-1.9.2/c/scheme48vm-32.c:3843: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).
 {  size_670X = strlen((char *) (((char *)p_669X)));
data/scheme48-1.9.2/c/scheme48vm-32.c:4450: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).
  i_786X = strlen((char *) string_783X);
data/scheme48-1.9.2/c/scheme48vm-32.c:4466: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).
  if ((i_787X < (strlen((char *) string_783X)))) {
data/scheme48-1.9.2/c/scheme48vm-32.c:5535: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).
 {  return enter_stringAgc_n(s_990X, (strlen((char *) s_990X)));}
data/scheme48-1.9.2/c/scheme48vm-32.c:5869: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).
 {  value_1046X = enter_stringAgc_n(name_1045X, (strlen((char *) name_1045X)));
data/scheme48-1.9.2/c/scheme48vm-32.c:5882:47:  [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).
  name_1050X = enter_stringAgc_n(name_1048X, (strlen((char *) name_1048X)));
data/scheme48-1.9.2/c/scheme48vm-32.c:13422:65:  [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).
          val_1696X = enter_stringAgc_n(S48_HOST_ARCHITECTURE, (strlen((char *) S48_HOST_ARCHITECTURE)));
data/scheme48-1.9.2/c/scheme48vm-32.c:13430: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).
            val_1698X = enter_stringAgc_n(string_1697X, (strlen((char *) string_1697X)));
data/scheme48-1.9.2/c/scheme48vm-32.c:14473: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).
        len_1822X = 1 + (strlen((char *) raw_1821X));
data/scheme48-1.9.2/c/scheme48vm-32.c:22549:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    arg0K1 = (1 + (count_2797X + (strlen((char *) (*(startup_vector_2790X + i_2796X))))));
data/scheme48-1.9.2/c/scheme48vm-32.c:22566: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).
    len_2805X = strlen((char *) s_2804X);
data/scheme48-1.9.2/c/scheme48vm-32.c:22647:110:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 2)) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 2))))), 2)));
data/scheme48-1.9.2/c/scheme48vm-32.c:22647:210:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 2)) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 2))))), 2)));
data/scheme48-1.9.2/c/scheme48vm-32.c:22647:314:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 2)) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 2))))), 2)));
data/scheme48-1.9.2/c/scheme48vm-32.c:22647:419:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 2)) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 2))) + (PS_SHIFT_RIGHT_INLINE((3 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 2))))), 2)));
data/scheme48-1.9.2/c/scheme48vm-32.c:22736:15:  [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_2841X = strlen((char *) string_2792X);
data/scheme48-1.9.2/c/scheme48vm-64.c:3843: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).
 {  size_670X = strlen((char *) (((char *)p_669X)));
data/scheme48-1.9.2/c/scheme48vm-64.c:4450: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).
  i_786X = strlen((char *) string_783X);
data/scheme48-1.9.2/c/scheme48vm-64.c:4466: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).
  if ((i_787X < (strlen((char *) string_783X)))) {
data/scheme48-1.9.2/c/scheme48vm-64.c:5535: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).
 {  return enter_stringAgc_n(s_990X, (strlen((char *) s_990X)));}
data/scheme48-1.9.2/c/scheme48vm-64.c:5869: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).
 {  value_1046X = enter_stringAgc_n(name_1045X, (strlen((char *) name_1045X)));
data/scheme48-1.9.2/c/scheme48vm-64.c:5882:47:  [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).
  name_1050X = enter_stringAgc_n(name_1048X, (strlen((char *) name_1048X)));
data/scheme48-1.9.2/c/scheme48vm-64.c:13422:65:  [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).
          val_1696X = enter_stringAgc_n(S48_HOST_ARCHITECTURE, (strlen((char *) S48_HOST_ARCHITECTURE)));
data/scheme48-1.9.2/c/scheme48vm-64.c:13430: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).
            val_1698X = enter_stringAgc_n(string_1697X, (strlen((char *) string_1697X)));
data/scheme48-1.9.2/c/scheme48vm-64.c:14473: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).
        len_1822X = 1 + (strlen((char *) raw_1821X));
data/scheme48-1.9.2/c/scheme48vm-64.c:22549:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    arg0K1 = (1 + (count_2797X + (strlen((char *) (*(startup_vector_2790X + i_2796X))))));
data/scheme48-1.9.2/c/scheme48vm-64.c:22566: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).
    len_2805X = strlen((char *) s_2804X);
data/scheme48-1.9.2/c/scheme48vm-64.c:22647:110:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 3)) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 3))))), 3)));
data/scheme48-1.9.2/c/scheme48vm-64.c:22647:210:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 3)) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 3))))), 3)));
data/scheme48-1.9.2/c/scheme48vm-64.c:22647:314:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 3)) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 3))))), 3)));
data/scheme48-1.9.2/c/scheme48vm-64.c:22647:419:  [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).
s48_make_availableAgc((PS_SHIFT_LEFT_INLINE((3 * (12 + ((((PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) "standard output")), 2))), 3)) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) input_encoding_2824X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) output_encoding_2822X)), 2))), 3))) + (PS_SHIFT_RIGHT_INLINE((7 + (PS_SHIFT_LEFT_INLINE((strlen((char *) error_encoding_2826X)), 2))), 3))))), 3)));
data/scheme48-1.9.2/c/scheme48vm-64.c:22736:15:  [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_2841X = strlen((char *) string_2792X);
data/scheme48-1.9.2/c/unix/dynlink.c:42: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 len = strlen(s48_extract_byte_vector_readonly_2(call, name));
data/scheme48-1.9.2/c/unix/fd-io.c:209:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      got = read(fd, buf, max);
data/scheme48-1.9.2/c/unix/fd-io.c:298: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).
      *encoding_p = malloc(strlen(codeset) + 1);
data/scheme48-1.9.2/c/unix/io.c:25:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (EOF == (TTchar = getc(TTport)))			\
data/scheme48-1.9.2/c/unix/io.c:44:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      result = getc(port);
data/scheme48-1.9.2/c/unix/misc.c:36: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).
  int name_len = strlen(name);
data/scheme48-1.9.2/c/unix/misc.c:53:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(user_name, name, i);
data/scheme48-1.9.2/c/unix/misc.c:73:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(user_name, name, i);
data/scheme48-1.9.2/c/unix/misc.c:81:15:  [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).
    dir_len = strlen(dir);
data/scheme48-1.9.2/c/unix/misc.c:85:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, dir, dir_len);
data/scheme48-1.9.2/c/unix/misc.c:86:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer + dir_len, name, name_len);
data/scheme48-1.9.2/c/unix/misc.c:93:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, name, name_len);
data/scheme48-1.9.2/c/unix/misc.c:188: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).
      encoding = malloc(strlen(codeset) + 1);
data/scheme48-1.9.2/c/win32/dynlink.c:27: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 len = strlen(s48_extract_byte_vector_readonly_2(call, name));
data/scheme48-1.9.2/c/win32/io.c:22:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (EOF == (TTchar = getc(TTport)))			\
data/scheme48-1.9.2/c/win32/io.c:41:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      result = getc(port);
data/scheme48-1.9.2/c/win32/misc.c:27: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).
  int name_len = strlen(name);
data/scheme48-1.9.2/c/win32/misc.c:54: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).
	dir_len = strlen(drive) + strlen(path);
data/scheme48-1.9.2/c/win32/misc.c:54: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).
	dir_len = strlen(drive) + strlen(path);
data/scheme48-1.9.2/c/win32/misc.c:56: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).
	dir_len = strlen(dir);
data/scheme48-1.9.2/c/win32/misc.c:65: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).
	  int drive_length = strlen(drive);

ANALYSIS SUMMARY:

Hits = 167
Lines analyzed = 95900 in approximately 2.17 seconds (44118 lines/second)
Physical Source Lines of Code (SLOC) = 88501
Hits@level = [0] 135 [1]  69 [2]  69 [3]   7 [4]  21 [5]   1
Hits@level+ = [0+] 302 [1+] 167 [2+]  98 [3+]  29 [4+]  22 [5+]   1
Hits/KSLOC@level+ = [0+] 3.41239 [1+] 1.88698 [2+] 1.10733 [3+] 0.32768 [4+] 0.248585 [5+] 0.0112993
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.