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/spacefm-1.0.6/src/compat/glib-mem.h
Examining data/spacefm-1.0.6/src/compat/glib-utils.c
Examining data/spacefm-1.0.6/src/compat/glib-utils.h
Examining data/spacefm-1.0.6/src/cust-dialog.c
Examining data/spacefm-1.0.6/src/cust-dialog.h
Examining data/spacefm-1.0.6/src/desktop/desktop-window.h
Examining data/spacefm-1.0.6/src/desktop/desktop.c
Examining data/spacefm-1.0.6/src/desktop/desktop.h
Examining data/spacefm-1.0.6/src/desktop/working-area.c
Examining data/spacefm-1.0.6/src/desktop/working-area.h
Examining data/spacefm-1.0.6/src/desktop/desktop-window.c
Examining data/spacefm-1.0.6/src/exo/exo-binding.c
Examining data/spacefm-1.0.6/src/exo/exo-binding.h
Examining data/spacefm-1.0.6/src/exo/exo-cell-renderer-ellipsized-text.c
Examining data/spacefm-1.0.6/src/exo/exo-cell-renderer-ellipsized-text.h
Examining data/spacefm-1.0.6/src/exo/exo-cell-renderer-icon.c
Examining data/spacefm-1.0.6/src/exo/exo-cell-renderer-icon.h
Examining data/spacefm-1.0.6/src/exo/exo-common.h
Examining data/spacefm-1.0.6/src/exo/exo-gdk-pixbuf-extensions.c
Examining data/spacefm-1.0.6/src/exo/exo-gdk-pixbuf-extensions.h
Examining data/spacefm-1.0.6/src/exo/exo-gtk-extensions.c
Examining data/spacefm-1.0.6/src/exo/exo-gtk-extensions.h
Examining data/spacefm-1.0.6/src/exo/exo-icon-chooser-dialog.c
Examining data/spacefm-1.0.6/src/exo/exo-icon-chooser-dialog.h
Examining data/spacefm-1.0.6/src/exo/exo-icon-chooser-model.c
Examining data/spacefm-1.0.6/src/exo/exo-icon-chooser-model.h
Examining data/spacefm-1.0.6/src/exo/exo-icon-view.c
Examining data/spacefm-1.0.6/src/exo/exo-icon-view.h
Examining data/spacefm-1.0.6/src/exo/exo-marshal.c
Examining data/spacefm-1.0.6/src/exo/exo-marshal.h
Examining data/spacefm-1.0.6/src/exo/exo-private.c
Examining data/spacefm-1.0.6/src/exo/exo-private.h
Examining data/spacefm-1.0.6/src/exo/exo-string.c
Examining data/spacefm-1.0.6/src/exo/exo-string.h
Examining data/spacefm-1.0.6/src/exo/exo-thumbnail-preview.c
Examining data/spacefm-1.0.6/src/exo/exo-thumbnail-preview.h
Examining data/spacefm-1.0.6/src/exo/exo-tree-view.c
Examining data/spacefm-1.0.6/src/exo/exo-tree-view.h
Examining data/spacefm-1.0.6/src/exo/exo-utils.c
Examining data/spacefm-1.0.6/src/exo/exo-utils.h
Examining data/spacefm-1.0.6/src/find-files.c
Examining data/spacefm-1.0.6/src/find-files.h
Examining data/spacefm-1.0.6/src/go-dialog.c
Examining data/spacefm-1.0.6/src/go-dialog.h
Examining data/spacefm-1.0.6/src/gtk2-compat.h
Examining data/spacefm-1.0.6/src/item-prop.c
Examining data/spacefm-1.0.6/src/item-prop.h
Examining data/spacefm-1.0.6/src/libmd5-rfc/md5.c
Examining data/spacefm-1.0.6/src/libmd5-rfc/md5.h
Examining data/spacefm-1.0.6/src/main-window.h
Examining data/spacefm-1.0.6/src/mime-type/mime-action.c
Examining data/spacefm-1.0.6/src/mime-type/mime-action.h
Examining data/spacefm-1.0.6/src/mime-type/mime-cache.c
Examining data/spacefm-1.0.6/src/mime-type/mime-cache.h
Examining data/spacefm-1.0.6/src/mime-type/mime-type.c
Examining data/spacefm-1.0.6/src/mime-type/mime-type.h
Examining data/spacefm-1.0.6/src/pcmanfm.h
Examining data/spacefm-1.0.6/src/pref-dialog.h
Examining data/spacefm-1.0.6/src/private.h
Examining data/spacefm-1.0.6/src/ptk/ptk-app-chooser.c
Examining data/spacefm-1.0.6/src/ptk/ptk-app-chooser.h
Examining data/spacefm-1.0.6/src/ptk/ptk-clipboard.c
Examining data/spacefm-1.0.6/src/ptk/ptk-clipboard.h
Examining data/spacefm-1.0.6/src/ptk/ptk-console-output.c
Examining data/spacefm-1.0.6/src/ptk/ptk-console-output.h
Examining data/spacefm-1.0.6/src/ptk/ptk-dir-tree-view.c
Examining data/spacefm-1.0.6/src/ptk/ptk-dir-tree-view.h
Examining data/spacefm-1.0.6/src/ptk/ptk-dir-tree.c
Examining data/spacefm-1.0.6/src/ptk/ptk-dir-tree.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-archiver.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-browser.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-browser.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-icon-renderer.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-icon-renderer.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-list.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-list.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-menu.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-menu.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-misc.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-misc.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-properties.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-properties.h
Examining data/spacefm-1.0.6/src/ptk/ptk-file-task.c
Examining data/spacefm-1.0.6/src/ptk/ptk-file-task.h
Examining data/spacefm-1.0.6/src/ptk/ptk-handler.h
Examining data/spacefm-1.0.6/src/ptk/ptk-input-dialog.c
Examining data/spacefm-1.0.6/src/ptk/ptk-input-dialog.h
Examining data/spacefm-1.0.6/src/ptk/ptk-location-view.c
Examining data/spacefm-1.0.6/src/ptk/ptk-location-view.h
Examining data/spacefm-1.0.6/src/ptk/ptk-path-entry.c
Examining data/spacefm-1.0.6/src/ptk/ptk-path-entry.h
Examining data/spacefm-1.0.6/src/ptk/ptk-text-renderer.c
Examining data/spacefm-1.0.6/src/ptk/ptk-text-renderer.h
Examining data/spacefm-1.0.6/src/ptk/ptk-utils.c
Examining data/spacefm-1.0.6/src/ptk/ptk-utils.h
Examining data/spacefm-1.0.6/src/ptk/ptk-handler.c
Examining data/spacefm-1.0.6/src/vfs/vfs-app-desktop.c
Examining data/spacefm-1.0.6/src/vfs/vfs-app-desktop.h
Examining data/spacefm-1.0.6/src/vfs/vfs-async-task.c
Examining data/spacefm-1.0.6/src/vfs/vfs-async-task.h
Examining data/spacefm-1.0.6/src/vfs/vfs-dir.c
Examining data/spacefm-1.0.6/src/vfs/vfs-dir.h
Examining data/spacefm-1.0.6/src/vfs/vfs-execute.c
Examining data/spacefm-1.0.6/src/vfs/vfs-execute.h
Examining data/spacefm-1.0.6/src/vfs/vfs-file-info.c
Examining data/spacefm-1.0.6/src/vfs/vfs-file-info.h
Examining data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c
Examining data/spacefm-1.0.6/src/vfs/vfs-file-monitor.h
Examining data/spacefm-1.0.6/src/vfs/vfs-file-task.c
Examining data/spacefm-1.0.6/src/vfs/vfs-file-task.h
Examining data/spacefm-1.0.6/src/vfs/vfs-mime-type.c
Examining data/spacefm-1.0.6/src/vfs/vfs-mime-type.h
Examining data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c
Examining data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.h
Examining data/spacefm-1.0.6/src/vfs/vfs-utils.c
Examining data/spacefm-1.0.6/src/vfs/vfs-utils.h
Examining data/spacefm-1.0.6/src/vfs/vfs-volume-hal-options.c
Examining data/spacefm-1.0.6/src/vfs/vfs-volume-hal-options.h
Examining data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c
Examining data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c
Examining data/spacefm-1.0.6/src/vfs/vfs-volume.h
Examining data/spacefm-1.0.6/src/xml-purge.c
Examining data/spacefm-1.0.6/src/main-window.c
Examining data/spacefm-1.0.6/src/pref-dialog.c
Examining data/spacefm-1.0.6/src/main.c
Examining data/spacefm-1.0.6/src/settings.c
Examining data/spacefm-1.0.6/src/settings.h

FINAL RESULTS:

data/spacefm-1.0.6/src/item-prop.c:1030:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( folder, 0700 );
data/spacefm-1.0.6/src/item-prop.c:1048:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( folder, 0700 );
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:215:15:  [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.
        len = readlink( link_path, buf, PATH_MAX );
data/spacefm-1.0.6/src/ptk/ptk-handler.c:771:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( parent_dir, 0700 );
data/spacefm-1.0.6/src/ptk/ptk-handler.c:1280:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod( path_dest, 0700 );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:792:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( parent, 0700 );
data/spacefm-1.0.6/src/settings.c:708:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        chown( settings_shared_tmp_dir, 0, 0 );
data/spacefm-1.0.6/src/settings.c:709:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( settings_shared_tmp_dir, S_IRWXU | S_IRWXG | S_IRWXO | S_ISVTX );
data/spacefm-1.0.6/src/settings.c:722:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( settings_config_dir, S_IRWXU );
data/spacefm-1.0.6/src/settings.c:777:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( last, S_IRUSR | S_IWUSR );
data/spacefm-1.0.6/src/settings.c:1938:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( settings_shared_tmp_dir,
data/spacefm-1.0.6/src/settings.c:4276:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( path, 0700 );
data/spacefm-1.0.6/src/settings.c:4317:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                chmod( new_dir, 0700 );
data/spacefm-1.0.6/src/settings.c:4321:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( path, S_IRUSR | S_IWUSR | S_IXUSR );
data/spacefm-1.0.6/src/settings.c:4351:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( path, S_IRUSR | S_IWUSR | S_IXUSR );
data/spacefm-1.0.6/src/settings.c:4373:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( dir, 0700 );
data/spacefm-1.0.6/src/settings.c:4418:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( path, S_IRUSR | S_IWUSR );
data/spacefm-1.0.6/src/settings.c:4550:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                chmod( path_dest, 0700 );
data/spacefm-1.0.6/src/settings.c:4570:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( path_dest, 0700 );
data/spacefm-1.0.6/src/settings.c:5578:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( plug_dir, 0700 );
data/spacefm-1.0.6/src/settings.c:7570:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( folder, 0700 );
data/spacefm-1.0.6/src/settings.c:7607:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( folder, 0700 );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:441:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( dest_file, file_stat.st_mode );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:471:22:  [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.
        if ( ( rfd = readlink( src_file, buffer, sizeof( buffer ) - 1 ) ) > 0 )
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:604:25:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                        chmod( dest_file, file_stat.st_mode );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:760:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( dest_file, file_stat.st_mode );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1025:22:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            result = chown( src_file, task->uid, task->gid );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1049:26:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                result = chmod( src_file, new_mode );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1708:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( task->exec_script,
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1712:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod( task->exec_script, S_IRWXU );
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:467:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                chmod( thumbnail_file, 0600 );  /* only the owner can read it. */
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:491:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                chmod( thumbnail_file, 0600 );  /* only the owner can read it. */
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:553:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod( dir, 0700 );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:345:9:  [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.
  num = readlink (full_path, link_path, sizeof(link_path) - 1);
data/spacefm-1.0.6/src/cust-dialog.c:68:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, str, a, b );
data/spacefm-1.0.6/src/cust-dialog.c:2182:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf( out, str, NULL );
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( buf, _("%s ( %lu bytes )"), buf2, ( guint64 ) data->total_size );
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:172:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( buf, _("%s ( %lu bytes )"), buf2, ( guint64 ) data->size_on_disk );
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:588:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( buf, _("%s  ( %lu bytes )"),
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:595:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( buf, _("%s  ( %lu bytes )"), buf2,
data/spacefm-1.0.6/src/settings.c:250: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( app_settings.encoding, value );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:531:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buf, "%u %s", ( guint ) size, unit );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:535:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf( buf, format, val, unit );  // "%.0f%s"
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:537:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buf, "%.1f %s", val, unit );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:539:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buf, "%.0f %s", val, unit );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:631:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( buf, "%u %s", ( guint ) size, unit );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:635:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( buf, "%.1f %s", val, unit );
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:291: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( icon_name, mime_type->type );
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:302:17:  [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( icon_name, sep + 1 );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1057:11:  [4] (buffer) sscanf:
  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 (sscanf (lines[n],
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1091:22:  [4] (buffer) sscanf:
  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 ( sscanf( sep + 3, "%s %s", typebuf, mount_source ) == 2 &&
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1680:14:  [4] (buffer) sscanf:
  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 ( sscanf( lines[n],
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1712:22:  [4] (buffer) sscanf:
  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 ( sscanf( sep + 3, "%s %s", typebuf, mount_source ) == 2 &&
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1732:25:  [4] (buffer) sscanf:
  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 ( sep && sscanf( sep + 3, "%s %s", typebuf, mount_source ) == 2 )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2669:14:  [4] (buffer) sscanf:
  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 ( sscanf( lines[n],
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3064:10:  [4] (shell) popen:
  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.
    fp = popen(g_strdup_printf( "/usr/bin/udisks --show-info %s", device_file ), "r");
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3885:17:  [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( newoptr, single );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3907:21:  [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( newoptr, single );
data/spacefm-1.0.6/src/exo/exo-icon-chooser-model.c:164:20:  [3] (random) g_random_int:
  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.
    model->stamp = g_random_int ();
data/spacefm-1.0.6/src/find-files.c:690:35:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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( g_spawn_async_with_pipes( g_get_home_dir(), argv, NULL,
data/spacefm-1.0.6/src/find-files.c:794:27:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    add_search_dir( data, g_get_home_dir() );
data/spacefm-1.0.6/src/find-files.c:832:48:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    item = gtk_image_menu_item_new_with_label( g_get_home_dir() );
data/spacefm-1.0.6/src/main-window.c:1103:29:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    char* canon = g_strdup( realpath( path, buf ) );
data/spacefm-1.0.6/src/main-window.c:1126:29:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                cwd_canon = realpath( ptk_file_browser_get_cwd( a_browser ),
data/spacefm-1.0.6/src/main-window.c:1580:64:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 = g_strdup_printf( "%s%s", g_get_home_dir(),
data/spacefm-1.0.6/src/main-window.c:1590:51:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                                    folder_path = g_get_home_dir();
data/spacefm-1.0.6/src/main-window.c:1628:43:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                            folder_path = g_get_home_dir();
data/spacefm-1.0.6/src/main-window.c:2699:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 =  g_get_home_dir();
data/spacefm-1.0.6/src/main-window.c:3783:23:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char* canon = realpath( cwd, buf );
data/spacefm-1.0.6/src/main.c:186:24:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
    const char* path = g_get_home_dir();
data/spacefm-1.0.6/src/ptk/ptk-dir-tree.c:184:19:  [3] (random) g_random_int:
  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.
    tree->stamp = g_random_int();
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:1948:17:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
      homedir = g_get_home_dir();
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2165:44:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
            msg = g_strdup_printf( "%s%s", g_get_home_dir(), path + 1 );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2764:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    char* canon = realpath( path, buf );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2858:33:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                                g_get_home_dir(), PTK_FB_CHDIR_ADD_HISTORY );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2869:67:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        ptk_file_browser_chdir( PTK_FILE_BROWSER( file_browser ), g_get_home_dir(),
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:3966:20:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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_path = g_get_home_dir();
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:3992:24:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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_path = g_get_home_dir();
data/spacefm-1.0.6/src/ptk/ptk-file-list.c:181:19:  [3] (random) g_random_int:
  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.
    list->stamp = g_random_int();
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:209:37:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if ( !( target_path = g_strdup( realpath( link_path, buf ) ) ) )
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:1859:38:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 ( !g_strcmp0( templates_path, g_get_home_dir() ) )
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:1871:44:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        templates_path = g_build_filename( g_get_home_dir(), "Templates",
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:1876:48:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
            templates_path = g_build_filename( g_get_home_dir(),
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:475:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    char* canon = realpath( block, buf );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:751:40:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
            parent = g_build_filename( g_get_home_dir(), set->s + 2, NULL );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:771:39:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 = g_strdup( g_get_home_dir() );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4785:34:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        child_set->z = g_strdup( g_get_home_dir() );
data/spacefm-1.0.6/src/settings.c:5686:56:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        use_url = tilde_url = g_strdup_printf( "%s%s", g_get_home_dir(),
data/spacefm-1.0.6/src/settings.c:7313:38:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
            file = g_build_filename( g_get_home_dir(), ".gtk-bookmarks", NULL );
data/spacefm-1.0.6/src/settings.c:9496:27:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 = (char*)g_get_home_dir();
data/spacefm-1.0.6/src/settings.c:10664:5:  [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 int)time( 0 ) + getpid() );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:634:49:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        else if( G_UNLIKELY( strcmp( dir->path, g_get_home_dir() ) == 0 ) )
data/spacefm-1.0.6/src/vfs/vfs-dir.c:1102:61:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                            desktop_dir = g_build_filename( g_get_home_dir(), line + 5, NULL );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:1116:41:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
        desktop_dir = g_build_filename( g_get_home_dir(), "Desktop", NULL );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:866:35:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
            g_string_append( ret, g_get_home_dir());
data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c:166:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    else if ( realpath( path, resolved_path ) == NULL )
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:283:31:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if ( !( task->dest_dir && realpath( task->dest_dir, real_dest_path ) ) )
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:285:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if ( realpath( src_dir, real_src_path ) &&
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1550:41:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                                        realpath( terminal, buf ) != NULL )
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:420:40:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    thumbnail_file = g_build_filename( g_get_home_dir(),
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:550:29:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 = g_build_filename( g_get_home_dir(), ".thumbnails/normal", NULL );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:355:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      if (realpath (absolute_path, resolved_path) != NULL)
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2960:45:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
        char* mtab_file = g_build_filename( g_get_home_dir(), ".mtab.fuseiso", NULL );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:4482:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        canon = realpath( point, buf );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:4630:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    char* canon = realpath( dir, buf );
data/spacefm-1.0.6/src/cust-dialog.c:93:18:  [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).
        *width = atoi( val );
data/spacefm-1.0.6/src/cust-dialog.c:102:23:  [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).
            *height = atoi( str );
data/spacefm-1.0.6/src/cust-dialog.c:106:21:  [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).
                i = atoi( sep + 1 );
data/spacefm-1.0.6/src/cust-dialog.c:141:35:  [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).
        if ( el->val[0] == '+' && atoi( el->val + 1 ) >= 0 )
data/spacefm-1.0.6/src/cust-dialog.c:142:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            default_row = atoi( el->val + 1 );
data/spacefm-1.0.6/src/cust-dialog.c:386:38:  [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).
            if ( col && str && ( i = atoi( str ) ) > 0 )
data/spacefm-1.0.6/src/cust-dialog.c:521:21:  [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).
                i = atoi( arg );
data/spacefm-1.0.6/src/cust-dialog.c:527:56:  [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).
                gtk_list_store_set( list, &iter, colx, atoi( arg ), -1 );
data/spacefm-1.0.6/src/cust-dialog.c:629:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/cust-dialog.c:632: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).
    FILE* file = fopen( path, "r" );
data/spacefm-1.0.6/src/cust-dialog.c:947:29:  [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).
                i = value ? atoi( value ) : 0;
data/spacefm-1.0.6/src/cust-dialog.c:1004:31:  [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).
            el_name->option = atoi( value ) + 1;
data/spacefm-1.0.6/src/cust-dialog.c:1463:19:  [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).
            out = fopen( cname, "w" );
data/spacefm-1.0.6/src/cust-dialog.c:1612:16:  [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 ( ( f = open( path + add, O_CREAT | O_WRONLY | O_TRUNC,
data/spacefm-1.0.6/src/cust-dialog.c:1639:20:  [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 ( ( f = open( path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR ) ) == -1 )
data/spacefm-1.0.6/src/cust-dialog.c:1648:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 4096 ];
data/spacefm-1.0.6/src/cust-dialog.c:1652:20:  [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 ( ( f = open( path, O_RDONLY ) ) == -1 )
data/spacefm-1.0.6/src/cust-dialog.c:1665:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen( path, "r" );
data/spacefm-1.0.6/src/cust-dialog.c:1875:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 4096 ];
data/spacefm-1.0.6/src/cust-dialog.c:1884:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen( pathx, "r" );
data/spacefm-1.0.6/src/cust-dialog.c:2193:40:  [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( (char*)el->args->next->data ) > 0 )
data/spacefm-1.0.6/src/cust-dialog.c:2194:23:  [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).
                pad = atoi( (char*)el->args->next->data );
data/spacefm-1.0.6/src/cust-dialog.c:2639:24:  [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).
            selstart = atoi( (char*)args->data );
data/spacefm-1.0.6/src/cust-dialog.c:2642:26:  [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).
                selend = atoi( sep + 1 );
data/spacefm-1.0.6/src/cust-dialog.c:3386:31:  [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).
                i = el->val ? atoi( el->val ) : 0;
data/spacefm-1.0.6/src/cust-dialog.c:3446:21:  [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).
                i = atoi( el->val );
data/spacefm-1.0.6/src/cust-dialog.c:3482:36:  [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).
            el->option = el->val ? atoi( el->val ) : 20;
data/spacefm-1.0.6/src/cust-dialog.c:3676:36:  [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).
            if ( el->args->next && atoi( (char*)el->args->next->data ) > 0 )
data/spacefm-1.0.6/src/cust-dialog.c:3677:23:  [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).
                pad = atoi( (char*)el->args->next->data );
data/spacefm-1.0.6/src/desktop/desktop-window.c:4116: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).
    FILE* file = fopen( path, "w" );
data/spacefm-1.0.6/src/desktop/desktop-window.c:4140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/desktop/desktop-window.c:4152: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).
    FILE* file = fopen( path, "r" );
data/spacefm-1.0.6/src/desktop/desktop-window.c:4169:33:  [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).
                        order = atoi( sep + 1 );
data/spacefm-1.0.6/src/desktop/desktop-window.c:4177:29:  [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).
                    order = atoi( line );
data/spacefm-1.0.6/src/exo/exo-gdk-pixbuf-extensions.c:60:36:  [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).
#define g_open(path, mode, flags) (open ((path), (mode), (flags)))
data/spacefm-1.0.6/src/find-files.c:605:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096 ];
data/spacefm-1.0.6/src/item-prop.c:258:12:  [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).
    *sub = atoi( vs );
data/spacefm-1.0.6/src/item-prop.c:263:13:  [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).
    *comp = atoi( vs );
data/spacefm-1.0.6/src/item-prop.c:288:14:  [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).
    action = atoi( s );
data/spacefm-1.0.6/src/item-prop.c:295:13:  [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).
    match = atoi( s );
data/spacefm-1.0.6/src/item-prop.c:359:24:  [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).
                test = atoi( context->var[sub] ) < atoi( eleval );
data/spacefm-1.0.6/src/item-prop.c:359:52:  [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).
                test = atoi( context->var[sub] ) < atoi( eleval );
data/spacefm-1.0.6/src/item-prop.c:362:24:  [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).
                test = atoi( context->var[sub] ) > atoi( eleval );
data/spacefm-1.0.6/src/item-prop.c:362:52:  [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).
                test = atoi( context->var[sub] ) > atoi( eleval );
data/spacefm-1.0.6/src/item-prop.c:593:68:  [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).
        gtk_combo_box_set_active( GTK_COMBO_BOX( ctxt->box_comp ), atoi( def_comp ) );
data/spacefm-1.0.6/src/item-prop.c:794:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char line[ 4096 ];
data/spacefm-1.0.6/src/item-prop.c:797:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen( script, "r" );
data/spacefm-1.0.6/src/item-prop.c:860: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).
    FILE* file = fopen( script, "w" );
data/spacefm-1.0.6/src/item-prop.c:1125:21:  [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).
    if ( rset->x && atoi( rset->x ) == XSET_CMD_SCRIPT )
data/spacefm-1.0.6/src/item-prop.c:2020:13:  [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).
        i = atoi( match );
data/spacefm-1.0.6/src/item-prop.c:2024:13:  [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).
        i = atoi( action );
data/spacefm-1.0.6/src/item-prop.c:2312:23:  [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).
        x = rset->x ? atoi( rset->x ) : 0;
data/spacefm-1.0.6/src/libmd5-rfc/md5.c:173: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(xbuf, data, 64);
data/spacefm-1.0.6/src/libmd5-rfc/md5.c:347: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(pms->buf + offset, p, copy);
data/spacefm-1.0.6/src/libmd5-rfc/md5.c:361: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(pms->buf, p, left);
data/spacefm-1.0.6/src/main-window.c:1102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/main-window.c:1535:56:  [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).
            main_window->panel_slide_x[p-1] = set->x ? atoi( set->x ) : 0;
data/spacefm-1.0.6/src/main-window.c:1536:56:  [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).
            main_window->panel_slide_y[p-1] = set->y ? atoi( set->y ) : 0;
data/spacefm-1.0.6/src/main-window.c:1537:56:  [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).
            main_window->panel_slide_s[p-1] = set->s ? atoi( set->s ) : 0;
data/spacefm-1.0.6/src/main-window.c:1602:36:  [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).
                        cur_tabx = atoi( set->x );
data/spacefm-1.0.6/src/main-window.c:3639: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 size_str[ 64 ];
data/spacefm-1.0.6/src/main-window.c:3640: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 free_space[100];
data/spacefm-1.0.6/src/main-window.c:3662:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char total_size_str[ 64 ];
data/spacefm-1.0.6/src/main-window.c:3698:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[ 64 ];
data/spacefm-1.0.6/src/main-window.c:3782:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/main-window.c:3802:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char hidden[128];
data/spacefm-1.0.6/src/main-window.c:4126:25:  [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).
                    i = atoi( xname );                
data/spacefm-1.0.6/src/main-window.c:5918:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[ 64 ];
data/spacefm-1.0.6/src/main-window.c:6347:21:  [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).
            panel = atoi( argv[i + 1] );
data/spacefm-1.0.6/src/main-window.c:6354:19:  [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).
            tab = atoi( argv[i + 1] );
data/spacefm-1.0.6/src/main-window.c:6446:33:  [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).
                        width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6447:34:  [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).
                        height = atoi( argv[i+2] );
data/spacefm-1.0.6/src/main-window.c:6453:29:  [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).
                    width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6454:30:  [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).
                    height = atoi( str + 1 );
data/spacefm-1.0.6/src/main-window.c:6489:25:  [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).
                width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6517:29:  [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).
                    width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6557:29:  [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).
                    width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6641:25:  [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).
                width = atoi( argv[i+1] );
data/spacefm-1.0.6/src/main-window.c:6661:25:  [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).
                width = atoi( argv[i+2] );
data/spacefm-1.0.6/src/main-window.c:6822:29:  [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).
                    width = atoi( argv[i+2] );
data/spacefm-1.0.6/src/main-window.c:6823:42:  [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).
                    height = argv[i+3] ? atoi( argv[i+3] ) : -1;
data/spacefm-1.0.6/src/main-window.c:7425:21:  [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).
                j = atoi( argv[i+2] );
data/spacefm-1.0.6/src/main-window.c:8171: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 var[3];
data/spacefm-1.0.6/src/main-window.h:47: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 panel_context[4];
data/spacefm-1.0.6/src/main.c:200: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[ 1024 ];
data/spacefm-1.0.6/src/main.c:519: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 lock_file[ 256 ];
data/spacefm-1.0.6/src/main.c:649: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[ 1024 ];
data/spacefm-1.0.6/src/mime-type/mime-cache.c:114:10:  [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).
    fd = open ( file_path, O_RDONLY, 0 );
data/spacefm-1.0.6/src/mime-type/mime-type.c:195: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).
        fd = open ( filepath, O_RDONLY, 0 );
data/spacefm-1.0.6/src/mime-type/mime-type.c:316: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 target[64];
data/spacefm-1.0.6/src/mime-type/mime-type.c:362:10:  [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).
    fd = open ( file_path, O_RDONLY, 0 );
data/spacefm-1.0.6/src/mime-type/mime-type.c:422: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 file_path[ 256 ];
data/spacefm-1.0.6/src/mime-type/mime-type.c:636:12:  [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).
    file = open ( file_path, O_RDONLY );
data/spacefm-1.0.6/src/mime-type/mime-type.c:651:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char data[ TEXT_MAX_EXTENT ];
data/spacefm-1.0.6/src/mime-type/mime-type.c:753:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        alias = (const char **) mime_cache_lookup_alias( caches[i], type );
data/spacefm-1.0.6/src/pref-dialog.c:477:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int margin_top = atoi( gtk_entry_get_text( 
data/spacefm-1.0.6/src/pref-dialog.c:479:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int margin_left = atoi( gtk_entry_get_text( 
data/spacefm-1.0.6/src/pref-dialog.c:481:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int margin_right = atoi( gtk_entry_get_text( 
data/spacefm-1.0.6/src/pref-dialog.c:483:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int margin_bottom = atoi( gtk_entry_get_text( 
data/spacefm-1.0.6/src/pref-dialog.c:485:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int margin_pad = atoi( gtk_entry_get_text( 
data/spacefm-1.0.6/src/pref-dialog.c:866:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 128 ];
data/spacefm-1.0.6/src/ptk/ptk-console-output.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/spacefm-1.0.6/src/ptk/ptk-console-output.c:74:13:  [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(buffer, _("\nComplete!"));
data/spacefm-1.0.6/src/ptk/ptk-dir-tree.c:632:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( p, name, len * sizeof(char) );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:1785:38:  [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).
                    width = set->y ? atoi( set->y ) : 100;
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2763:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:4437:30:  [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).
            width = set->y ? atoi( set->y ) : 100;
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:5427:60:  [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).
        copy_dest = main_window_get_tab_cwd( file_browser, atoi( setname + 9 ) );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:5433:62:  [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).
        copy_dest = main_window_get_panel_cwd( file_browser, atoi( setname + 11 ) );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:5444:60:  [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).
        move_dest = main_window_get_tab_cwd( file_browser, atoi( setname + 9 ) );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:5450:62:  [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).
        move_dest = main_window_get_panel_cwd( file_browser, atoi( setname + 11 ) );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:6583:21:  [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).
                i = atoi( xname );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:6651:17:  [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).
            i = atoi( xname );
data/spacefm-1.0.6/src/ptk/ptk-file-menu.c:2037:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE* file = fopen( path, "w" );
data/spacefm-1.0.6/src/ptk/ptk-file-menu.c:3139:21:  [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).
                i = atoi( xname );
data/spacefm-1.0.6/src/ptk/ptk-file-menu.c:3154:25:  [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).
                    i = atoi( xname );
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:126:16:  [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).
    GtkWidget* open;
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:199:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:750:16:  [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 ( mset->open )
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:751:41:  [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).
        gtk_widget_set_sensitive( mset->open, gtk_widget_get_sensitive( mset->next ) );
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:2210:70:  [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).
        gtk_dialog_add_action_widget( GTK_DIALOG( mset->dlg ), mset->open, GTK_RESPONSE_APPLY);
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:2211:58:  [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).
        gtk_button_set_focus_on_click( GTK_BUTTON( mset->open ), FALSE );
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:3452:22:  [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).
            result = open( full_path, O_CREAT, 0644 );
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:3837:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char * argv[ 2 ] = { full_path, NULL };
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf2[ 32 ];
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:353:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-file-properties.c:354:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf2[ 32 ];
data/spacefm-1.0.6/src/ptk/ptk-file-task.c:1180: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 percent_str[ 16 ];
data/spacefm-1.0.6/src/ptk/ptk-file-task.c:1653:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf1[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-file-task.c:1654:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf2[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-file-task.c:1662:13:  [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( buf2, "??" );  // total_size calculation timed out
data/spacefm-1.0.6/src/ptk/ptk-file-task.c:2157:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-handler.c:684:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 4096 ];
data/spacefm-1.0.6/src/ptk/ptk-handler.c:693:21:  [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).
        if ( file = fopen( script, "r" ) )
data/spacefm-1.0.6/src/ptk/ptk-handler.c:801:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( file = fopen( script, "w" ) )
data/spacefm-1.0.6/src/ptk/ptk-handler.c:2540:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int action = atoi( uri );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:474:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:2755:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:3011: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 size_str[ 64 ];
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4282:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4296: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).
    FILE* file = fopen( path, "r" );
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4533:29:  [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).
        cmd_type = set->x ? atoi( set->x ) : -1;
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4871:39:  [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).
                            set->x && atoi( set->x ) == XSET_CMD_BOOKMARK &&
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:4917:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int cmd_type = set->x ? atoi( set->x ) : -1;
data/spacefm-1.0.6/src/settings.c:258:39:  [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).
        app_settings.show_thumbnail = atoi( value );
data/spacefm-1.0.6/src/settings.c:260:39:  [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).
        app_settings.max_thumb_size = atoi( value ) << 10;
data/spacefm-1.0.6/src/settings.c:263:38:  [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).
        app_settings.big_icon_size = atoi( value );
data/spacefm-1.0.6/src/settings.c:270:40:  [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).
        app_settings.small_icon_size = atoi( value );
data/spacefm-1.0.6/src/settings.c:277:39:  [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).
        app_settings.tool_icon_size = atoi( value );
data/spacefm-1.0.6/src/settings.c:285:38:  [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).
        app_settings.use_trash_can = atoi(value);
data/spacefm-1.0.6/src/settings.c:288:37:  [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).
        app_settings.single_click = atoi(value);
data/spacefm-1.0.6/src/settings.c:290:40:  [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).
        app_settings.no_single_hover = atoi(value);
data/spacefm-1.0.6/src/settings.c:294:35:  [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).
        app_settings.sort_order = atoi( value );
data/spacefm-1.0.6/src/settings.c:296:34:  [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).
        app_settings.sort_type = atoi( value );
data/spacefm-1.0.6/src/settings.c:299:36:  [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).
        xset_set_b( "book_newtab", atoi( value ) != 1 ); //sfm backwards compat
data/spacefm-1.0.6/src/settings.c:314:38:  [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).
        app_settings.use_si_prefix = atoi( value );
data/spacefm-1.0.6/src/settings.c:316:35:  [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).
        app_settings.no_execute = atoi( value );  //MOD
data/spacefm-1.0.6/src/settings.c:324:35:  [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).
        app_settings.no_confirm = atoi( value );  //MOD
data/spacefm-1.0.6/src/settings.c:364:13:  [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).
        v = atoi( value );
data/spacefm-1.0.6/src/settings.c:369:13:  [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).
        v = atoi( value );
data/spacefm-1.0.6/src/settings.c:374:34:  [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).
        app_settings.maximized = atoi( value );
data/spacefm-1.0.6/src/settings.c:391:39:  [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).
        app_settings.show_wallpaper = atoi( value );
data/spacefm-1.0.6/src/settings.c:395:39:  [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).
        app_settings.wallpaper_mode = atoi( value );
data/spacefm-1.0.6/src/settings.c:407:40:  [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).
        app_settings.desktop_sort_by = atoi( value );
data/spacefm-1.0.6/src/settings.c:409:42:  [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).
        app_settings.desktop_sort_type = atoi( value );
data/spacefm-1.0.6/src/settings.c:411:37:  [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).
        app_settings.show_wm_menu = atoi( value );
data/spacefm-1.0.6/src/settings.c:413:42:  [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).
        app_settings.desk_single_click = atoi( value );
data/spacefm-1.0.6/src/settings.c:415:45:  [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).
        app_settings.desk_no_single_hover = atoi( value );
data/spacefm-1.0.6/src/settings.c:417:39:  [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).
        app_settings.desk_open_mime = atoi( value );
data/spacefm-1.0.6/src/settings.c:419:35:  [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).
        app_settings.margin_top = atoi( value );
data/spacefm-1.0.6/src/settings.c:421:36:  [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).
        app_settings.margin_left = atoi( value );
data/spacefm-1.0.6/src/settings.c:423:37:  [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).
        app_settings.margin_right = atoi( value );
data/spacefm-1.0.6/src/settings.c:425:38:  [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).
        app_settings.margin_bottom = atoi( value );
data/spacefm-1.0.6/src/settings.c:427:35:  [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).
        app_settings.margin_pad = atoi( value );
data/spacefm-1.0.6/src/settings.c:441:41:  [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).
        app_settings.always_show_tabs = atoi( value );
data/spacefm-1.0.6/src/settings.c:443:49:  [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).
        app_settings.close_panel_when_no_tabs = atoi( value );
data/spacefm-1.0.6/src/settings.c:445:48:  [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).
        app_settings.hide_close_tab_buttons = !atoi( value );
data/spacefm-1.0.6/src/settings.c:505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/settings.c:512: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).
    FILE* file = fopen( etc_path, "r" );
data/spacefm-1.0.6/src/settings.c:619:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/settings.c:784:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen( path, "r" );
data/spacefm-1.0.6/src/settings.c:1717:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen( path, "w" );
data/spacefm-1.0.6/src/settings.c:2196:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex[9];
data/spacefm-1.0.6/src/settings.c:2200: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(hex, "%08x", n);
data/spacefm-1.0.6/src/settings.c:2734:14:  [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).
    return !!atoi( varstring );
data/spacefm-1.0.6/src/settings.c:2764:12:  [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).
    return atoi( varstring );
data/spacefm-1.0.6/src/settings.c:3076:20:  [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).
        set->key = atoi( value );
data/spacefm-1.0.6/src/settings.c:3078:23:  [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).
        set->keymod = atoi( value );
data/spacefm-1.0.6/src/settings.c:3081:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        set->menu_style = atoi( value );
data/spacefm-1.0.6/src/settings.c:3194:21:  [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).
        set->tool = atoi( value );
data/spacefm-1.0.6/src/settings.c:3253:23:  [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).
        set->opener = atoi( value );
data/spacefm-1.0.6/src/settings.c:3499:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/settings.c:3513:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen( root_set_path, "r" );
data/spacefm-1.0.6/src/settings.c:4338:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file = fopen( path, "w" );
data/spacefm-1.0.6/src/settings.c:4411:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* file = fopen( path, "w" );
data/spacefm-1.0.6/src/settings.c:4434:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 1024 ];
data/spacefm-1.0.6/src/settings.c:4439: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 ( ( inF = open( src, O_RDONLY ) ) == -1 )
data/spacefm-1.0.6/src/settings.c:4443: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 ( ( ouF = open( dest, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR ) ) == -1 )
data/spacefm-1.0.6/src/settings.c:4982:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[ 2048 ];
data/spacefm-1.0.6/src/settings.c:5012: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).
    FILE* file = fopen( plugin, "r" );
data/spacefm-1.0.6/src/settings.c:5582:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* file = fopen( s1, "w" );
data/spacefm-1.0.6/src/settings.h:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char encoding[ 32 ];
data/spacefm-1.0.6/src/vfs/vfs-app-desktop.c:169:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* file = fopen( desktop_file_path, "w" );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:547: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( hidden_path, O_RDONLY );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:603: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).
        int fd = open( file_path, O_WRONLY | O_CREAT | O_APPEND, 0644 );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:1080: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).
        int fd = open( def, O_RDONLY );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:204:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[ 64 ];
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:329: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 uid_str_buf[ 32 ];
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:331: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 gid_str_buf[ 32 ];
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:342:13:  [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( uid_str_buf, "%d", fi->uid );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:351:13:  [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( gid_str_buf, "%d", fi->gid );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:363:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[ 64 ];
data/spacefm-1.0.6/src/vfs/vfs-file-info.h:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char disp_perm[ 12 ];  /* displayed permission in string form */
data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c:152: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 resolved_path[PATH_MAX];
data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c:427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ BUF_LEN ];
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:279: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 real_src_path[PATH_MAX];
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:280: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 real_dest_path[PATH_MAX];
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:360: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 buffer[ 4096 ];
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:532:22:  [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 ( ( rfd = open( src_file, O_RDONLY ) ) >= 0 )
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:795:17:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        tmpfd = mkstemp( dest_file );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1131:20:  [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).
            pidi = atoi( pida );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1170:16:  [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).
        pidi = atoi( pida );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1440:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1576:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file = fopen( task->exec_script, "w" );
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:2306: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* ) task->chmod_actions, ( void* ) chmod_actions,
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:221: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 icon_name[ 100 ];
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:298:17:  [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( icon_name, "gnome-mime-" );
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:329:17:  [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( icon_name, "-x-generic" );
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:363: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 file_name[ 40 ];
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:365: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 mtime_str[ 32 ];
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:408: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( file_name, g_checksum_get_string(cs), 32 );
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:416: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( ( file_name + i * 2 ), "%02x", md5[ i ] );
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:418:5:  [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( ( file_name + 32 ), ".png" );
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:447:17:  [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).
                atol( thumb_mtime ) != mtime )
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:463:17:  [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( mtime_str, "%lu", mtime );
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:456:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char size_str[64];
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:597: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 size_str[64];
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:1520:15:  [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).
    *handle = fopen (fstab_path, "r");
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:2141:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *args[3] = {"eject", NULL, NULL};
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:2338:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *args[3] = {MOUNT, NULL, NULL};
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:2700:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *args[3] = {UMOUNT, NULL, NULL};
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:334: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 link_path[PATH_MAX];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:335: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 resolved_path[PATH_MAX];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:375:16:  [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).
        return atoi( value ) != 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:759:30:  [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).
        drive_is_ejectable = atoi( value ) != 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:839:28:  [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).
        drive_can_detach = atoi( value ) != 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:885:26:  [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).
        partition_type = atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:930:21:  [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).
            is_cd = atoi( value ) != 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:935:25:  [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).
            is_floppy = atoi( value ) != 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:944: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).
            fd = open( device->devnode, O_RDONLY );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:952:33:  [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).
            media_available = ( atoi( value ) == 1 );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:955:29:  [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).
        media_available = ( atoi( value ) == 1 );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1151:56:  [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( value ) == 1 )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1249:75:  [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).
      if (slave_sysfs_path != NULL && scheme != NULL && number != NULL && atoi( number ) > 0)
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1330:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if ( optical_state && atoi( optical_state ) != 0 )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2282: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 size_str[ 64 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2290:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char total_size_str[ 64 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2314: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 size_str[ 64 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2551:28:  [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( device->optical_disc_num_audio_tracks ) > 0 );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2558:34:  [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( device->device_presentation_hide ) : TRUE;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2562:25:  [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( device->device_presentation_nopolicy ) : FALSE;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3053:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3112:49:  [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).
                        volume->is_removable = !atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3114:50:  [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).
                        volume->requires_eject = atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3116:46:  [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).
                        volume->is_mounted = atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3118:48:  [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).
                        volume->is_mountable = atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3119:68:  [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).
                    else if ( !strcmp( parameter, "    blank" ) && atoi( value ) )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3122:46:  [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).
                        volume->is_audiocd = atoi( value ) > 0;
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3127:52:  [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).
                        volume->is_user_visible = !atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3129:44:  [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).
                        volume->nopolicy = atoi( value );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3829: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 news[ strlen( options ) + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3864: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 newo[ strlen( opts ) + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:4478:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:4629:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ PATH_MAX + 1 ];
data/spacefm-1.0.6/src/xml-purge.c:20:7:  [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).
	fd = open( file, O_RDONLY );
data/spacefm-1.0.6/src/xml-purge.c:38:7:  [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).
	fo = fopen( file, "w" );
data/spacefm-1.0.6/src/cust-dialog.c:380:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                str = arg + strlen( "--colwidth=" );
data/spacefm-1.0.6/src/cust-dialog.c:1621:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( write( f, val, strlen( val ) ) < strlen( val ) )
data/spacefm-1.0.6/src/cust-dialog.c:1621: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).
        if ( write( f, val, strlen( val ) ) < strlen( val ) )
data/spacefm-1.0.6/src/cust-dialog.c:1658:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes = read( f, line, sizeof( line ) - 1 );
data/spacefm-1.0.6/src/cust-dialog.c:1930: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).
                el->val[strlen( el->val ) - 1] = '\0';
data/spacefm-1.0.6/src/cust-dialog.c:3773:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for ( j = 1; j <= 13 - strlen( cdlg_option[i*3] ); j++ )
data/spacefm-1.0.6/src/cust-dialog.c:3794:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for ( j = 1; j <= 11 - strlen( cdlg_cmd[i*3] ); j++ )
data/spacefm-1.0.6/src/exo/exo-icon-view.c:8630: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 (text);
data/spacefm-1.0.6/src/exo/exo-icon-view.c:8711: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 (text);
data/spacefm-1.0.6/src/exo/exo-icon-view.c:8890: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).
        if (strncmp (case_normalized_key, case_normalized_string, strlen (case_normalized_key)) == 0)
data/spacefm-1.0.6/src/exo/exo-string.c:59: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).
    result = g_malloc (strlen (text) + 1);
data/spacefm-1.0.6/src/find-files.c:609:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( ! data->task->cancel && ( rlen = read( data->stdo, buf, sizeof(buf) - 1 ) ) > 0 )
data/spacefm-1.0.6/src/item-prop.c:1358:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ( rset->line && strlen( rset->line ) > 2000 )
data/spacefm-1.0.6/src/main-window.c:2897:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen( gtk_label_get_text( GTK_LABEL( tab_text ) ) ) < 30)
data/spacefm-1.0.6/src/main-window.c:3001:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen( name ) < 30)
data/spacefm-1.0.6/src/main.c:211:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while( (r = read( client, buf, sizeof(buf) )) > 0 )
data/spacefm-1.0.6/src/main.c:381: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).
    addr_len = strlen( addr.sun_path ) + sizeof( addr.sun_family );
data/spacefm-1.0.6/src/main.c:458: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).
                    write( sock, real_path, strlen( real_path ) );
data/spacefm-1.0.6/src/main.c:588: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).
        write( client, reply, strlen( reply ) ); // send reply or error msg
data/spacefm-1.0.6/src/main.c:618: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).
    addr_len = strlen( addr.sun_path ) + sizeof( addr.sun_family );
data/spacefm-1.0.6/src/main.c:633:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write( sock, inode_tag, strlen( inode_tag ) );
data/spacefm-1.0.6/src/main.c:641: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).
        write( sock, argv[i], strlen( argv[i] ) );
data/spacefm-1.0.6/src/main.c:651:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( ( r = read( sock, buf, sizeof( buf ) ) ) > 0 )
data/spacefm-1.0.6/src/mime-type/mime-action.c:463: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).
        name = g_strndup( desktop_id, strlen(desktop_id) - 8 );
data/spacefm-1.0.6/src/mime-type/mime-action.c:486: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 = strlen( file_content );
data/spacefm-1.0.6/src/mime-type/mime-cache.c:130:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read( fd, buffer, statbuf.st_size );
data/spacefm-1.0.6/src/mime-type/mime-cache.c:401: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).
        fn_len = strlen( filename );
data/spacefm-1.0.6/src/mime-type/mime-cache.c:518:63:  [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( 0 == fnmatch( glob, filename, 0 ) && (_glob_len = strlen(glob)) > max_glob_len )
data/spacefm-1.0.6/src/mime-type/mime-type.c:214:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            len = read( fd, data, len );
data/spacefm-1.0.6/src/mime-type/mime-type.c:374:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read( fd, buffer, statbuf.st_size ) == -1 )
data/spacefm-1.0.6/src/mime-type/mime-type.c:652:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                rlen = read ( file, data, sizeof( data ) );
data/spacefm-1.0.6/src/ptk/ptk-console-output.c:75: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).
            rlen = strlen(buffer);
data/spacefm-1.0.6/src/ptk/ptk-dir-tree.c:625: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).
        len += strlen((char*)l->data) + 1;
data/spacefm-1.0.6/src/ptk/ptk-dir-tree.c:631: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 = strlen( name );
data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c:154: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).
                if (strlen( extension ) > len)
data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c:155: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).
                    len = strlen( extension );
data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c:166: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 = strlen( name ) - len;
data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1373: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).
                            n = strlen( filename ) - strlen( extension );
data/spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1373: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).
                            n = strlen( filename ) - strlen( extension );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:1982:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen( name ) < 30)
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:2152: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).
            path_end = path + strlen( path ) - 1;
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:4140: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).
        gboolean start = !end && ( strlen( key ) < 3 );
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:4149: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).
            key2[strlen( key2 )-1] = '\0';
data/spacefm-1.0.6/src/ptk/ptk-file-browser.c:6647: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).
        if ( strlen( set->name ) > 6 )
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:989:68:  [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 ( g_str_has_prefix( new_path, dir ) && new_path[strlen( dir )] == '/' )
data/spacefm-1.0.6/src/ptk/ptk-file-misc.c:990: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).
                    path = new_path + strlen( dir ) + 1;
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:898: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).
                    parent_dir[ strlen( parent_dir ) - 1] = '\0';
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:907: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).
                                    || strlen( parent_dir ) > 30 )
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:2365: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).
    if ( strlen( vol->device_file ) < 9 )
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:2525: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).
        if ( strlen( vol->device_file ) < 9 )
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:3033: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).
        if ( uuid && strlen( uuid ) < 9 )
data/spacefm-1.0.6/src/ptk/ptk-location-view.c:3062: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 ( fstab && strlen( fstab ) < 9 )
data/spacefm-1.0.6/src/ptk/ptk-path-entry.c:157: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).
        seek_dir[strlen( seek_dir ) - 1] = '\0';
data/spacefm-1.0.6/src/ptk/ptk-path-entry.c:209:63:  [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( *key == 0 || 0 == g_ascii_strncasecmp( name, key, strlen(key) ) )
data/spacefm-1.0.6/src/ptk/ptk-path-entry.c:765: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).
        unquote[strlen( unquote ) - 1] = '\0';
data/spacefm-1.0.6/src/settings.c:2303: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).
    uint final_ext_len = strlen( final_ext );
data/spacefm-1.0.6/src/settings.c:4449:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( ( bytes = read( inF, line, sizeof( line ) ) ) > 0 )
data/spacefm-1.0.6/src/settings.c:4743: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 ( strlen( name ) == 13 && g_str_has_prefix( name, "cstm_" )
data/spacefm-1.0.6/src/settings.c:10526:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cur = s + strlen( str );
data/spacefm-1.0.6/src/vfs/vfs-dir.c:555:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if( (s.st_size = read( fd, buf, s.st_size )) != -1 )
data/spacefm-1.0.6/src/vfs/vfs-dir.c:579: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).
            c = hidden[ strlen( file_name ) ];
data/spacefm-1.0.6/src/vfs/vfs-dir.c:585: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).
            c = str[ strlen( file_name ) ];
data/spacefm-1.0.6/src/vfs/vfs-dir.c:608: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 ( write( fd, buf, strlen( buf ) ) == -1 )
data/spacefm-1.0.6/src/vfs/vfs-dir.c:1088:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if( (s.st_size = read( fd, buf, s.st_size )) != -1 )
data/spacefm-1.0.6/src/vfs/vfs-dir.c:1136:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        home_trash_dir_len = strlen( home_trash_dir );
data/spacefm-1.0.6/src/vfs/vfs-file-info.c:859: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( relative_path );
data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c:161: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).
    if ( strlen( path ) > PATH_MAX - 1 )
data/spacefm-1.0.6/src/vfs/vfs-file-monitor.c:454:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( ( len = read ( inotify_fd, buf, BUF_LEN ) ) < 0
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:287: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).
                          ( len = strlen( real_src_path ) ) &&
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:568:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ( ( rsize = read( rfd, buffer, sizeof( buffer ) ) ) > 0 )
data/spacefm-1.0.6/src/vfs/vfs-file-task.c:1397: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).
        if ( strlen( sum ) != 64 )
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:299:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat( icon_name, mime_type->type,
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:301:17:  [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( icon_name, "-" );
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:319:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat( icon_name, mime_type->type,
data/spacefm-1.0.6/src/vfs/vfs-mime-type.c:326:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( icon_name, mime_type->type,
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:407:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    g_checksum_update(cs, uri, strlen(uri));
data/spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:412: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).
    md5_append( &md5_state, ( md5_byte_t * ) uri, strlen( uri ) );
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:460:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (label != NULL && strlen (label) > 0) {
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:560: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).
    if (vendor == NULL || strlen (vendor) == 0) {
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:561:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (model != NULL && strlen (model) > 0)
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:564:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (model == NULL || strlen (model) == 0)
data/spacefm-1.0.6/src/vfs/vfs-volume-hal.c:714: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).
                     strlen ("/org/freedesktop/Hal/devices/temp")) == 0)
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1054: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).
      if (strlen (lines[n]) == 0)
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1289: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).
      for (n = strlen (s) - 1; n >= 0 && g_ascii_isdigit (s[n]); n--)
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1585: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).
                                strlen (device->drive_connection_interface) == 0 )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1677: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).
        if ( strlen( lines[n] ) == 0 )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2170:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( colonx < strlen( line ) )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2176: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).
        while ( value[ strlen( value ) - 1 ] == '\n' )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:2177: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).
            value[ strlen( value ) - 1 ] = '\0';
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3097: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).
            if ( colonx < strlen( line ) )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3103:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while ( value[ strlen( value ) - 1 ] == '\n' )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3104: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).
                    value[ strlen( value ) - 1 ] = '\0';
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3829: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).
    char news[ strlen( options ) + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3830: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).
    for ( i = 0; i < strlen ( options ); i++ )
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3864: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).
    char newo[ strlen( opts ) + 1 ];
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3886: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).
                newoptr = newo + strlen( newo );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:3908: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).
                    newoptr = newo + strlen( newo );
data/spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:4657: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 len = strlen( fstype );
data/spacefm-1.0.6/src/xml-purge.c:29:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if( read( fd, buf, statbuf.st_size) == -1 )

ANALYSIS SUMMARY:

Hits = 481
Lines analyzed = 112191 in approximately 2.53 seconds (44318 lines/second)
Physical Source Lines of Code (SLOC) = 86630
Hits@level = [0] 473 [1]  99 [2] 277 [3]  47 [4]  24 [5]  34
Hits@level+ = [0+] 954 [1+] 481 [2+] 382 [3+] 105 [4+]  58 [5+]  34
Hits/KSLOC@level+ = [0+] 11.0124 [1+] 5.55235 [2+] 4.40956 [3+] 1.21205 [4+] 0.669514 [5+] 0.392474
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.