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/libfizmo-0.7.15/src/interpreter/blockbuf.c
Examining data/libfizmo-0.7.15/src/interpreter/debugger.c
Examining data/libfizmo-0.7.15/src/interpreter/filelist.c
Examining data/libfizmo-0.7.15/src/interpreter/cmd_hst.c
Examining data/libfizmo-0.7.15/src/interpreter/mt19937ar.h
Examining data/libfizmo-0.7.15/src/interpreter/routine.h
Examining data/libfizmo-0.7.15/src/interpreter/table.h
Examining data/libfizmo-0.7.15/src/interpreter/babel.c
Examining data/libfizmo-0.7.15/src/interpreter/babel.h
Examining data/libfizmo-0.7.15/src/interpreter/sound.c
Examining data/libfizmo-0.7.15/src/interpreter/misc.h
Examining data/libfizmo-0.7.15/src/interpreter/blorb.h
Examining data/libfizmo-0.7.15/src/interpreter/undo.c
Examining data/libfizmo-0.7.15/src/interpreter/blockbuf.h
Examining data/libfizmo-0.7.15/src/interpreter/iff.h
Examining data/libfizmo-0.7.15/src/interpreter/text.c
Examining data/libfizmo-0.7.15/src/interpreter/wordwrap.h
Examining data/libfizmo-0.7.15/src/interpreter/undo.h
Examining data/libfizmo-0.7.15/src/interpreter/filelist.h
Examining data/libfizmo-0.7.15/src/interpreter/hyphenation.c
Examining data/libfizmo-0.7.15/src/interpreter/property.h
Examining data/libfizmo-0.7.15/src/interpreter/history.c
Examining data/libfizmo-0.7.15/src/interpreter/sound.h
Examining data/libfizmo-0.7.15/src/interpreter/routine.c
Examining data/libfizmo-0.7.15/src/interpreter/history.h
Examining data/libfizmo-0.7.15/src/interpreter/object.c
Examining data/libfizmo-0.7.15/src/interpreter/savegame.h
Examining data/libfizmo-0.7.15/src/interpreter/property.c
Examining data/libfizmo-0.7.15/src/interpreter/savegame.c
Examining data/libfizmo-0.7.15/src/interpreter/wordwrap.c
Examining data/libfizmo-0.7.15/src/interpreter/blorb.c
Examining data/libfizmo-0.7.15/src/interpreter/misc.c
Examining data/libfizmo-0.7.15/src/interpreter/text.h
Examining data/libfizmo-0.7.15/src/interpreter/variable.c
Examining data/libfizmo-0.7.15/src/interpreter/hyphenation.h
Examining data/libfizmo-0.7.15/src/interpreter/config.c
Examining data/libfizmo-0.7.15/src/interpreter/streams.h
Examining data/libfizmo-0.7.15/src/interpreter/output.c
Examining data/libfizmo-0.7.15/src/interpreter/mt19937ar.c
Examining data/libfizmo-0.7.15/src/interpreter/zpu.c
Examining data/libfizmo-0.7.15/src/interpreter/zscii.h
Examining data/libfizmo-0.7.15/src/interpreter/fizmo.c
Examining data/libfizmo-0.7.15/src/interpreter/stack.c
Examining data/libfizmo-0.7.15/src/interpreter/config.h
Examining data/libfizmo-0.7.15/src/interpreter/debugger.h
Examining data/libfizmo-0.7.15/src/interpreter/cmd_hst.h
Examining data/libfizmo-0.7.15/src/interpreter/table.c
Examining data/libfizmo-0.7.15/src/interpreter/zpu.h
Examining data/libfizmo-0.7.15/src/interpreter/variable.h
Examining data/libfizmo-0.7.15/src/interpreter/mathemat.h
Examining data/libfizmo-0.7.15/src/interpreter/mathemat.c
Examining data/libfizmo-0.7.15/src/interpreter/object.h
Examining data/libfizmo-0.7.15/src/interpreter/streams.c
Examining data/libfizmo-0.7.15/src/interpreter/iff.c
Examining data/libfizmo-0.7.15/src/interpreter/stack.h
Examining data/libfizmo-0.7.15/src/interpreter/output.h
Examining data/libfizmo-0.7.15/src/interpreter/fizmo.h
Examining data/libfizmo-0.7.15/src/tools/list.h
Examining data/libfizmo-0.7.15/src/tools/filesys.h
Examining data/libfizmo-0.7.15/src/tools/i18n.c
Examining data/libfizmo-0.7.15/src/tools/tracelog.h
Examining data/libfizmo-0.7.15/src/tools/unused.h
Examining data/libfizmo-0.7.15/src/tools/stringmap.c
Examining data/libfizmo-0.7.15/src/tools/types.h
Examining data/libfizmo-0.7.15/src/tools/tools_test.c
Examining data/libfizmo-0.7.15/src/tools/types.c
Examining data/libfizmo-0.7.15/src/tools/filesys.c
Examining data/libfizmo-0.7.15/src/tools/z_ucs.c
Examining data/libfizmo-0.7.15/src/tools/i18n.h
Examining data/libfizmo-0.7.15/src/tools/list.c
Examining data/libfizmo-0.7.15/src/tools/z_ucs.h
Examining data/libfizmo-0.7.15/src/tools/filesys_c.h
Examining data/libfizmo-0.7.15/src/tools/stringmap.h
Examining data/libfizmo-0.7.15/src/tools/tracelog.c
Examining data/libfizmo-0.7.15/src/tools/filesys_c.c
Examining data/libfizmo-0.7.15/src/filesys_interface/filesys_interface.h
Examining data/libfizmo-0.7.15/src/locales/libfizmo_locales.c
Examining data/libfizmo-0.7.15/src/locales/libfizmo_locales.h
Examining data/libfizmo-0.7.15/src/sound_interface/sound_interface.h
Examining data/libfizmo-0.7.15/src/screen_interface/ScreenInterface.cpp
Examining data/libfizmo-0.7.15/src/screen_interface/screen_interface.h
Examining data/libfizmo-0.7.15/src/screen_interface/ScreenInterface.h
Examining data/libfizmo-0.7.15/src/blorb_interface/blorb_interface.h

FINAL RESULTS:

data/libfizmo-0.7.15/src/interpreter/babel.c:366:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(
data/libfizmo-0.7.15/src/interpreter/babel.c:469:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(expr, xmlExpr, release, serial, release, serial, checksum);
data/libfizmo-0.7.15/src/interpreter/babel.c:470:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(namespacedExpr, xmlNamespacedExpr, release, serial, release,
data/libfizmo-0.7.15/src/interpreter/babel.c:579:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(filename, "%s/%s", config_dir_name, BABEL_TIMESTAMP_FILE_NAME);
data/libfizmo-0.7.15/src/interpreter/babel.c:639:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(filename, "%s/%s", config_dir_name, BABEL_TIMESTAMP_FILE_NAME);
data/libfizmo-0.7.15/src/interpreter/config.c:200:11:  [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(resultindex, homedir);
data/libfizmo-0.7.15/src/interpreter/config.c:236: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(str2, str);
data/libfizmo-0.7.15/src/interpreter/config.c:238:5:  [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(str2, value_to_append);
data/libfizmo-0.7.15/src/interpreter/debugger.c:287:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "Serial code: %s.\n", active_z_story->serial_code);
data/libfizmo-0.7.15/src/interpreter/filelist.c:512: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(filename, dir_name);
data/libfizmo-0.7.15/src/interpreter/filelist.c:852:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(abs_filename, "%s/%s", cwd, filename);
data/libfizmo-0.7.15/src/interpreter/filelist.c:1145: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(dirname, abs_dir_name);
data/libfizmo-0.7.15/src/interpreter/filelist.c:1148:5:  [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(dirname, z_dir_entry.d_name);
data/libfizmo-0.7.15/src/interpreter/filelist.c:1219: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(dirname, abs_dir_name);
data/libfizmo-0.7.15/src/interpreter/filelist.c:1222:5:  [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(dirname, z_dir_entry.d_name);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:265: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(result->absolute_file_name, absolute_directory_name);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:268:3:  [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(result->absolute_file_name, ptr2);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:669:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(xdg_config_home, "%s/%s", home_dir, config_dir_used);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:696:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fizmo_config_dir_name, "%s/%s",
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1041:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s/%s/%s",
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1055:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(filename, "%s/%s", dir, FIZMO_CONFIG_FILE_NAME);
data/libfizmo-0.7.15/src/interpreter/savegame.c:224: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(prefixed_filename, directory);
data/libfizmo-0.7.15/src/interpreter/savegame.c:226:5:  [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(prefixed_filename, filename_utf8);
data/libfizmo-0.7.15/src/interpreter/savegame.c:535: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(str, directory);
data/libfizmo-0.7.15/src/interpreter/savegame.c:537:9:  [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(str, system_filename);
data/libfizmo-0.7.15/src/interpreter/savegame.c:1627: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(str, directory);
data/libfizmo-0.7.15/src/interpreter/savegame.c:1629:9:  [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(str, system_filename);
data/libfizmo-0.7.15/src/interpreter/streams.c:306: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(stream_2_filename, src);
data/libfizmo-0.7.15/src/interpreter/streams.c:332: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(input_stream_1_filename, src);
data/libfizmo-0.7.15/src/interpreter/streams.c:353: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(stream_4_filename, src);
data/libfizmo-0.7.15/src/tools/filesys_c.c:161:16:  [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.
  int result = vfprintf((FILE*)fileref->file_object, format, args);
data/libfizmo-0.7.15/src/tools/filesys_c.c:169:10:  [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.
  return vfprintf((FILE*)fileref->file_object, format, ap);
data/libfizmo-0.7.15/src/tools/filesys_c.c:177:16:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  int result = vfscanf((FILE*)fileref->file_object, format, args);
data/libfizmo-0.7.15/src/tools/filesys_c.c:185:10:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  return vfscanf((FILE*)fileref->file_object, format, ap);
data/libfizmo-0.7.15/src/tools/i18n.c:178: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(filename, locale_dir_name);
data/libfizmo-0.7.15/src/tools/i18n.c:180:3:  [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(filename, module_name_utf8);
data/libfizmo-0.7.15/src/tools/i18n.c:491:13:  [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(locale_dir_name, dirname);
data/libfizmo-0.7.15/src/tools/i18n.c:493: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(locale_dir_name, z_dir_entry.d_name);
data/libfizmo-0.7.15/src/interpreter/config.c:773:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((user_homedir = getenv("HOME")) == NULL)
data/libfizmo-0.7.15/src/interpreter/config.c:774:22:  [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.
      user_homedir = getenv("HOMEPATH");
data/libfizmo-0.7.15/src/interpreter/filelist.c:1404:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((str = getenv("ZCODE_PATH")) == NULL)
data/libfizmo-0.7.15/src/interpreter/filelist.c:1405: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.
    str = getenv("INFOCOM_PATH");
data/libfizmo-0.7.15/src/interpreter/filelist.c:1409:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((str = getenv("ZCODE_ROOT_PATH")) != NULL)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:654:21:  [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.
  config_dir_used = getenv("XDG_CONFIG_HOME");
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1024: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.
  config_dirs = getenv("XDG_CONFIG_DIRS");
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1221:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((str = getenv("ZCODE_PATH")) == NULL)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1222: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.
    str = getenv("INFOCOM_PATH");
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1226:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((str = getenv("ZCODE_ROOT_PATH")) != NULL)
data/libfizmo-0.7.15/src/interpreter/mathemat.c:240:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(((unsigned)seconds) ^ uninitialized_unsigned);
data/libfizmo-0.7.15/src/interpreter/babel.c:356: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 expr[160]; // FIXME: Calculate length.
data/libfizmo-0.7.15/src/interpreter/babel.c:450: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 expr[strlen(xmlExpr) + 29];
data/libfizmo-0.7.15/src/interpreter/babel.c:451: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 namespacedExpr[strlen(xmlNamespacedExpr) + 29];
data/libfizmo-0.7.15/src/interpreter/babel.c:475:5:  [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(expr, "/ifindex/story");
data/libfizmo-0.7.15/src/interpreter/babel.c:476:5:  [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(namespacedExpr, "/if:ifindex/if:story");
data/libfizmo-0.7.15/src/interpreter/blorb.c:109: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 buf[5];
data/libfizmo-0.7.15/src/interpreter/config.c:253: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 buf[BUFSIZE];
data/libfizmo-0.7.15/src/interpreter/config.c:560:7:  [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).
      atoi(
data/libfizmo-0.7.15/src/interpreter/debugger.c:79:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 buffer[BUFFER_SIZE];
data/libfizmo-0.7.15/src/interpreter/debugger.c:148:3:  [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(buffer, ":%d", DEBUGGER_PORT);
data/libfizmo-0.7.15/src/interpreter/debugger.c:209:5:  [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(buffer, "\n: %6lx: %d %d %d\n", (long)(pc - z_mem),
data/libfizmo-0.7.15/src/interpreter/debugger.c:216: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(buffer, "L%02d:%x", i, local_variable_storage_index[i]);
data/libfizmo-0.7.15/src/interpreter/debugger.c:272:11:  [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(buffer, "%06x:", i);
data/libfizmo-0.7.15/src/interpreter/debugger.c:275:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, " %04x", z_stack[i]);
data/libfizmo-0.7.15/src/interpreter/debugger.c:283: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(buffer, "Z-Story version: %d.\n", active_z_story->version);
data/libfizmo-0.7.15/src/interpreter/debugger.c:285: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(buffer, "Release code: %d.\n", active_z_story->release_code);
data/libfizmo-0.7.15/src/interpreter/debugger.c:289: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(buffer, "Checksum: %d.\n", active_z_story->checksum);
data/libfizmo-0.7.15/src/interpreter/debugger.c:291: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(buffer, "Dynamic memory end: $%lx.\n",
data/libfizmo-0.7.15/src/interpreter/debugger.c:294: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(buffer, "Static memory end: $%lx.\n",
data/libfizmo-0.7.15/src/interpreter/debugger.c:297: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(buffer, "High memory: $%lx.\n",
data/libfizmo-0.7.15/src/interpreter/debugger.c:300: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(buffer, "High memory end: $%lx.\n",
data/libfizmo-0.7.15/src/interpreter/filelist.c:513:3:  [2] (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 string.
  strcat(filename, "/story-list.txt");
data/libfizmo-0.7.15/src/interpreter/filelist.c:825: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 serial[7];
data/libfizmo-0.7.15/src/interpreter/filelist.c:961: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(serial, buf + 0x12, 6);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:438: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(result->serial_code, result->memory+0x12, 6);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:936: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 key[MAX_CONFIG_OPTION_LENGTH];
data/libfizmo-0.7.15/src/interpreter/fizmo.c: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 value[MAX_CONFIG_OPTION_LENGTH];
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1266:11:  [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).
    val = atoi(str);
data/libfizmo-0.7.15/src/interpreter/history.c:479: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(
data/libfizmo-0.7.15/src/interpreter/iff.c:56: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 four_chars[5];
data/libfizmo-0.7.15/src/interpreter/savegame.c:1583:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(
data/libfizmo-0.7.15/src/interpreter/savegame.c:1747: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 serial_number[7];
data/libfizmo-0.7.15/src/interpreter/streams.c:263:7:  [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).
    ? atoi(stream_2_line_width)
data/libfizmo-0.7.15/src/interpreter/streams.c:268:7:  [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).
    ? atoi(stream_2_left_margin)
data/libfizmo-0.7.15/src/interpreter/streams.c:938: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 buf[128];
data/libfizmo-0.7.15/src/interpreter/text.c:1410: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 number[7]; // '-' + 32768 + '\0', 7 chars are okay.
data/libfizmo-0.7.15/src/interpreter/text.c:1414:3:  [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(number, "%d", (int16_t)op[0]);
data/libfizmo-0.7.15/src/interpreter/undo.c:193: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(
data/libfizmo-0.7.15/src/interpreter/undo.c:198: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(
data/libfizmo-0.7.15/src/interpreter/undo.c:262: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(
data/libfizmo-0.7.15/src/interpreter/undo.c:268: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(
data/libfizmo-0.7.15/src/tools/filesys_c.c:81:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        = (void*)fopen(filename, fileaccess_string[access_index]))
data/libfizmo-0.7.15/src/tools/filesys_c.c:142: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 buf[128];
data/libfizmo-0.7.15/src/tools/filesys_c.c:303:18:  [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).
  if ((filedes = open(filename, O_RDONLY)) < 0)
data/libfizmo-0.7.15/src/tools/i18n.c:59: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 *locale_aliases[4][6] =
data/libfizmo-0.7.15/src/tools/i18n.c:562:3:  [2] (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 string.
  strcat(module_name_utf8, "_i18n.txt");
data/libfizmo-0.7.15/src/tools/i18n.c:708: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 parameter_types[11]; // May each contain 's', 'z' or 'd'. Using 11
data/libfizmo-0.7.15/src/tools/i18n.c:712: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 *string_parameters[10]; // pointers to the parameters.
data/libfizmo-0.7.15/src/tools/i18n.c:714: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 formatted_parameters[10][MAXIMUM_FORMATTED_PARAMTER_LENGTH + 1];
data/libfizmo-0.7.15/src/tools/tools_test.c:52: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 buf[STREAM_BUFSIZE];
data/libfizmo-0.7.15/src/tools/tracelog.c:98: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 utf_8_output[80 * UTF_8_MB_LEN + 1];
data/libfizmo-0.7.15/src/tools/types.h:136: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 serial_code[7];
data/libfizmo-0.7.15/src/interpreter/babel.c:296:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strlen(z_dir_entry.d_name) >= 9)
data/libfizmo-0.7.15/src/interpreter/babel.c:299: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).
                    z_dir_entry.d_name + strlen(z_dir_entry.d_name) - 9,
data/libfizmo-0.7.15/src/interpreter/babel.c:397: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).
      len = strlen(ptr);
data/libfizmo-0.7.15/src/interpreter/babel.c:450: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).
  char expr[strlen(xmlExpr) + 29];
data/libfizmo-0.7.15/src/interpreter/babel.c:451: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).
  char namespacedExpr[strlen(xmlNamespacedExpr) + 29];
data/libfizmo-0.7.15/src/interpreter/babel.c:464:7:  [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(serial) > 6)
data/libfizmo-0.7.15/src/interpreter/babel.c:577:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
data/libfizmo-0.7.15/src/interpreter/babel.c:577: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).
      strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
data/libfizmo-0.7.15/src/interpreter/babel.c:636:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
data/libfizmo-0.7.15/src/interpreter/babel.c:636: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).
      strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
data/libfizmo-0.7.15/src/interpreter/babel.c:723: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).
          for (j=0; (size_t)j<strlen(timestamp_input); j++)
data/libfizmo-0.7.15/src/interpreter/config.c:130: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).
  homedir_len = strlen(homedir);
data/libfizmo-0.7.15/src/interpreter/config.c:153:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          resultlen += strlen(homedir);
data/libfizmo-0.7.15/src/interpreter/config.c:235: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).
    str2 = fizmo_malloc(strlen(str) + strlen(value_to_append) + 2);
data/libfizmo-0.7.15/src/interpreter/config.c:235: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).
    str2 = fizmo_malloc(strlen(str) + strlen(value_to_append) + 2);
data/libfizmo-0.7.15/src/interpreter/config.c:237:5:  [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(str2, ":");
data/libfizmo-0.7.15/src/interpreter/config.c:365:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(new_value) == 0)
data/libfizmo-0.7.15/src/interpreter/debugger.c:84: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).
  write(socked_fd, text, strlen(text));
data/libfizmo-0.7.15/src/interpreter/debugger.c:233:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(newsockfd, buffer, BUFFER_SIZE-1);
data/libfizmo-0.7.15/src/interpreter/filelist.c:511: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).
  filename = malloc(strlen(dir_name) + 16);
data/libfizmo-0.7.15/src/interpreter/filelist.c:851: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).
    abs_filename = fizmo_malloc(strlen(cwd) + strlen(filename) + 2);
data/libfizmo-0.7.15/src/interpreter/filelist.c:851: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).
    abs_filename = fizmo_malloc(strlen(cwd) + strlen(filename) + 2);
data/libfizmo-0.7.15/src/interpreter/filelist.c:1050: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).
      if ( ( (strlen(ptr) == 3) && (ptr[1] == 'z') && (isdigit(ptr[2]) != 0) )
data/libfizmo-0.7.15/src/interpreter/filelist.c:1138:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(abs_dir_name) + strlen(z_dir_entry.d_name) + 2;
data/libfizmo-0.7.15/src/interpreter/filelist.c:1138: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).
    len = strlen(abs_dir_name) + strlen(z_dir_entry.d_name) + 2;
data/libfizmo-0.7.15/src/interpreter/filelist.c:1146: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).
    if (dirname[strlen(dirname) - 1] != '/')
data/libfizmo-0.7.15/src/interpreter/filelist.c:1147:7:  [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(dirname, "/");
data/libfizmo-0.7.15/src/interpreter/filelist.c:1212:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(abs_dir_name) + strlen(z_dir_entry.d_name) + 2;
data/libfizmo-0.7.15/src/interpreter/filelist.c:1212: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).
    len = strlen(abs_dir_name) + strlen(z_dir_entry.d_name) + 2;
data/libfizmo-0.7.15/src/interpreter/filelist.c:1220: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).
    if (dirname[strlen(dirname) - 1] != '/')
data/libfizmo-0.7.15/src/interpreter/filelist.c:1221:7:  [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(dirname, "/");
data/libfizmo-0.7.15/src/interpreter/fizmo.c:260:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(absolute_directory_name) + strlen(ptr2) + 2;
data/libfizmo-0.7.15/src/interpreter/fizmo.c:260:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(absolute_directory_name) + strlen(ptr2) + 2;
data/libfizmo-0.7.15/src/interpreter/fizmo.c:267:3:  [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(result->absolute_file_name, "/");
data/libfizmo-0.7.15/src/interpreter/fizmo.c:499:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strlen(story_data->blorbfile) != 0)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:628:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(s1));
data/libfizmo-0.7.15/src/interpreter/fizmo.c:655:38:  [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 ( (config_dir_used == NULL) || (strlen(config_dir_used) == 0) )
data/libfizmo-0.7.15/src/interpreter/fizmo.c:666:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(home_dir)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:667:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        + strlen(config_dir_used)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:693:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(config_dir_used)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:694:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        + strlen(FIZMO_CONFIG_DIR_NAME)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1025: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).
  if ( (config_dirs == NULL) || (strlen(config_dirs) == 0) )
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1039:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(dir) + strlen(FIZMO_CONFIG_DIR_NAME)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1039: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).
        strlen(dir) + strlen(FIZMO_CONFIG_DIR_NAME)
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1040:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        + strlen(FIZMO_CONFIG_FILE_NAME) + 3);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1054:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(dir) + strlen(FIZMO_CONFIG_FILE_NAME) + 2);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1054: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).
        strlen(dir) + strlen(FIZMO_CONFIG_FILE_NAME) + 2);
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1080:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s) + 1;
data/libfizmo-0.7.15/src/interpreter/fizmo.c:1139:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(s) + 1;
data/libfizmo-0.7.15/src/interpreter/hyphenation.c:204: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).
  filename_len = strlen(filename);
data/libfizmo-0.7.15/src/interpreter/hyphenation.c:205:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  filename_as_zucs = fizmo_malloc(sizeof(z_ucs) * strlen(filename) + 1);
data/libfizmo-0.7.15/src/interpreter/savegame.c:223: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).
      = fizmo_malloc(strlen(filename_utf8) + strlen(directory) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:223:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      = fizmo_malloc(strlen(filename_utf8) + strlen(directory) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:225:5:  [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(prefixed_filename, "/");
data/libfizmo-0.7.15/src/interpreter/savegame.c:288: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).
    length = strlen(filename_suggestion);
data/libfizmo-0.7.15/src/interpreter/savegame.c:534: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).
        str = fizmo_malloc(strlen(system_filename) + strlen(directory) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:534:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str = fizmo_malloc(strlen(system_filename) + strlen(directory) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:536:9:  [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(str, "/");
data/libfizmo-0.7.15/src/interpreter/savegame.c:1626: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).
        str = fizmo_malloc(strlen(directory) + strlen(system_filename) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:1626: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).
        str = fizmo_malloc(strlen(directory) + strlen(system_filename) + 2);
data/libfizmo-0.7.15/src/interpreter/savegame.c:1628:9:  [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(str, "/");
data/libfizmo-0.7.15/src/interpreter/streams.c:298: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).
    bytes_required = strlen(src) + 1;
data/libfizmo-0.7.15/src/interpreter/streams.c:315:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(src) + 1);
data/libfizmo-0.7.15/src/interpreter/streams.c:323: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).
    bytes_required = strlen(src) + 1;
data/libfizmo-0.7.15/src/interpreter/streams.c:341:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(src) + 1);
data/libfizmo-0.7.15/src/interpreter/streams.c:345: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).
    bytes_required = strlen(src) + 1;
data/libfizmo-0.7.15/src/interpreter/streams.c:362:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(src) + 1);
data/libfizmo-0.7.15/src/interpreter/streams.c:931:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fsi->writechars(latin1_output, strlen(latin1_output), stream_4);
data/libfizmo-0.7.15/src/interpreter/text.c:1262: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).
    string_length = strlen((char*)(z_mem + op[0] + offset));
data/libfizmo-0.7.15/src/screen_interface/ScreenInterface.cpp:153:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((input = fgetc(stdin)) == EOF)
data/libfizmo-0.7.15/src/screen_interface/ScreenInterface.cpp:172:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((input = fgetc(stdin)) == EOF)
data/libfizmo-0.7.15/src/tools/filesys_c.c:111:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int result = fgetc((FILE*)fileref->file_object);
data/libfizmo-0.7.15/src/tools/filesys_c.c:136:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return writechars_c(s, strlen(s), fileref);
data/libfizmo-0.7.15/src/tools/i18n.c:167: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).
        = malloc(strlen(locale_dir_name) + strlen(module_name_utf8) + 2))
data/libfizmo-0.7.15/src/tools/i18n.c:167:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        = malloc(strlen(locale_dir_name) + strlen(module_name_utf8) + 2))
data/libfizmo-0.7.15/src/tools/i18n.c:179:3:  [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(filename, "/");
data/libfizmo-0.7.15/src/tools/i18n.c:476: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).
            dirname_len = strlen(dirname) + strlen(z_dir_entry.d_name);
data/libfizmo-0.7.15/src/tools/i18n.c:476: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).
            dirname_len = strlen(dirname) + strlen(z_dir_entry.d_name);
data/libfizmo-0.7.15/src/tools/i18n.c:492: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(locale_dir_name, "/");
data/libfizmo-0.7.15/src/tools/i18n.c:553: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).
  if ((ptr = realloc(module_name_utf8, strlen(module_name_utf8) + 9)) == NULL)
data/libfizmo-0.7.15/src/tools/i18n.c:852: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).
      length += strlen(string_parameters[i]);
data/libfizmo-0.7.15/src/tools/i18n.c:866: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).
      length += strlen(formatted_parameters[i]);
data/libfizmo-0.7.15/src/tools/i18n.c:874: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).
      length += strlen(formatted_parameters[i]);
data/libfizmo-0.7.15/src/tools/z_ucs.c:263:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(src);

ANALYSIS SUMMARY:

Hits = 185
Lines analyzed = 28418 in approximately 0.62 seconds (45681 lines/second)
Physical Source Lines of Code (SLOC) = 19378
Hits@level = [0]  33 [1]  84 [2]  52 [3]  11 [4]  38 [5]   0
Hits@level+ = [0+] 218 [1+] 185 [2+] 101 [3+]  49 [4+]  38 [5+]   0
Hits/KSLOC@level+ = [0+] 11.2499 [1+] 9.54691 [2+] 5.2121 [3+] 2.52864 [4+] 1.96099 [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.