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/gv-3.7.4/lib/sys_time.in.h
Examining data/gv-3.7.4/lib/sys_stat.in.h
Examining data/gv-3.7.4/lib/signal.in.h
Examining data/gv-3.7.4/lib/stat.c
Examining data/gv-3.7.4/lib/mkstemp.c
Examining data/gv-3.7.4/lib/verify.h
Examining data/gv-3.7.4/lib/errno.in.h
Examining data/gv-3.7.4/lib/dosname.h
Examining data/gv-3.7.4/lib/pathmax.h
Examining data/gv-3.7.4/lib/tempname.h
Examining data/gv-3.7.4/lib/stdint.in.h
Examining data/gv-3.7.4/lib/inttypes.in.h
Examining data/gv-3.7.4/lib/getopt1.c
Examining data/gv-3.7.4/lib/readlink.c
Examining data/gv-3.7.4/lib/tempname.c
Examining data/gv-3.7.4/lib/alloca.in.h
Examining data/gv-3.7.4/lib/lstat.c
Examining data/gv-3.7.4/lib/gettimeofday.c
Examining data/gv-3.7.4/lib/getopt.c
Examining data/gv-3.7.4/lib/unistd.in.h
Examining data/gv-3.7.4/lib/stdbool.in.h
Examining data/gv-3.7.4/lib/stdlib.in.h
Examining data/gv-3.7.4/lib/canonicalize-lgpl.c
Examining data/gv-3.7.4/lib/stddef.in.h
Examining data/gv-3.7.4/lib/getopt_int.h
Examining data/gv-3.7.4/lib/time.in.h
Examining data/gv-3.7.4/lib/mkdtemp.c
Examining data/gv-3.7.4/lib/malloca.h
Examining data/gv-3.7.4/lib/malloca.c
Examining data/gv-3.7.4/lib/getopt.in.h
Examining data/gv-3.7.4/lib/gettext.h
Examining data/gv-3.7.4/warn-on-use.h
Examining data/gv-3.7.4/src/version.c
Examining data/gv-3.7.4/src/file.c
Examining data/gv-3.7.4/src/Vlist.h
Examining data/gv-3.7.4/src/MButtonP.h
Examining data/gv-3.7.4/src/Clip.h
Examining data/gv-3.7.4/src/MButton.h
Examining data/gv-3.7.4/src/doc_misc.h
Examining data/gv-3.7.4/src/actions.h
Examining data/gv-3.7.4/src/Frame.h
Examining data/gv-3.7.4/src/error.h
Examining data/gv-3.7.4/src/Scrollbar.c
Examining data/gv-3.7.4/src/Switch.c
Examining data/gv-3.7.4/src/Button.h
Examining data/gv-3.7.4/src/dialog.c
Examining data/gv-3.7.4/src/AaaP.h
Examining data/gv-3.7.4/src/zoom.h
Examining data/gv-3.7.4/src/misc_private.c
Examining data/gv-3.7.4/src/FileSel.c
Examining data/gv-3.7.4/src/main_globals.h
Examining data/gv-3.7.4/src/miscmenu.c
Examining data/gv-3.7.4/src/process.c
Examining data/gv-3.7.4/src/gv_signal.h
Examining data/gv-3.7.4/src/FrameP.h
Examining data/gv-3.7.4/src/callbacks.c
Examining data/gv-3.7.4/src/Aaa.h
Examining data/gv-3.7.4/src/main.c
Examining data/gv-3.7.4/src/misc.h
Examining data/gv-3.7.4/src/miscmenu.h
Examining data/gv-3.7.4/src/note.c
Examining data/gv-3.7.4/src/FileSelP.h
Examining data/gv-3.7.4/src/version.h
Examining data/gv-3.7.4/src/VlistP.h
Examining data/gv-3.7.4/src/versionp.h
Examining data/gv-3.7.4/src/options.c
Examining data/gv-3.7.4/src/misc_private.h
Examining data/gv-3.7.4/src/Aaa.c
Examining data/gv-3.7.4/src/Ghostview.h
Examining data/gv-3.7.4/src/Switch.h
Examining data/gv-3.7.4/src/options_gv.c
Examining data/gv-3.7.4/src/actions.c
Examining data/gv-3.7.4/src/popup.c
Examining data/gv-3.7.4/src/config.h
Examining data/gv-3.7.4/src/media.c
Examining data/gv-3.7.4/src/Ghostview.c
Examining data/gv-3.7.4/src/ps.h
Examining data/gv-3.7.4/src/SwitchP.h
Examining data/gv-3.7.4/src/widgets_misc.h
Examining data/gv-3.7.4/src/options_setup.c
Examining data/gv-3.7.4/src/info.c
Examining data/gv-3.7.4/src/main_resources.h
Examining data/gv-3.7.4/src/gv_signal.c
Examining data/gv-3.7.4/src/magmenu.c
Examining data/gv-3.7.4/src/ps.c
Examining data/gv-3.7.4/src/FileSel.h
Examining data/gv-3.7.4/src/Scrollbar.h
Examining data/gv-3.7.4/src/note.h
Examining data/gv-3.7.4/src/doc_misc.c
Examining data/gv-3.7.4/src/GhostviewP.h
Examining data/gv-3.7.4/src/popup.h
Examining data/gv-3.7.4/src/magmenu.h
Examining data/gv-3.7.4/src/zoom.c
Examining data/gv-3.7.4/src/Clip.c
Examining data/gv-3.7.4/src/callbacks.h
Examining data/gv-3.7.4/src/options_fs.h
Examining data/gv-3.7.4/src/options_gs.h
Examining data/gv-3.7.4/src/options_gs.c
Examining data/gv-3.7.4/src/widgets_misc.c
Examining data/gv-3.7.4/src/ClipP.h
Examining data/gv-3.7.4/src/scale.h
Examining data/gv-3.7.4/src/save.c
Examining data/gv-3.7.4/src/options_setup.h
Examining data/gv-3.7.4/src/setenv.h
Examining data/gv-3.7.4/src/secscanf.h
Examining data/gv-3.7.4/src/save.h
Examining data/gv-3.7.4/src/misc.c
Examining data/gv-3.7.4/src/options_gv.h
Examining data/gv-3.7.4/src/process.h
Examining data/gv-3.7.4/src/confirm.h
Examining data/gv-3.7.4/src/gv_message.h
Examining data/gv-3.7.4/src/Aaa_bison.h
Examining data/gv-3.7.4/src/setenv.c
Examining data/gv-3.7.4/src/media.h
Examining data/gv-3.7.4/src/options_fs.c
Examining data/gv-3.7.4/src/secscanf.c
Examining data/gv-3.7.4/src/ButtonP.h
Examining data/gv-3.7.4/src/MButton.c
Examining data/gv-3.7.4/src/error.c
Examining data/gv-3.7.4/src/Aaa_lex.c
Examining data/gv-3.7.4/src/confirm.c
Examining data/gv-3.7.4/src/Aaa_bison.c
Examining data/gv-3.7.4/src/Aaa_intern.h
Examining data/gv-3.7.4/src/info.h
Examining data/gv-3.7.4/src/file.h
Examining data/gv-3.7.4/src/options.h
Examining data/gv-3.7.4/src/types.h
Examining data/gv-3.7.4/src/Button.c
Examining data/gv-3.7.4/src/gv-i18n.h
Examining data/gv-3.7.4/src/scale.c
Examining data/gv-3.7.4/src/Vlist.c
Examining data/gv-3.7.4/src/paths.h
Examining data/gv-3.7.4/src/Frame.c
Examining data/gv-3.7.4/src/ScrollbarP.h
Examining data/gv-3.7.4/src/resource.c
Examining data/gv-3.7.4/src/message.h
Examining data/gv-3.7.4/src/resource.h
Examining data/gv-3.7.4/src/dialog.h
Examining data/gv-3.7.4/c++defs.h
Examining data/gv-3.7.4/arg-nonnull.h

FINAL RESULTS:

data/gv-3.7.4/lib/canonicalize-lgpl.c:70:21:  [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.
# define __readlink readlink
data/gv-3.7.4/lib/readlink.c:32:1:  [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.
readlink (const char *name, char *buf _GL_UNUSED,
data/gv-3.7.4/lib/readlink.c:47: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.
# undef readlink
data/gv-3.7.4/lib/readlink.c:71:10:  [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.
  return readlink (name, buf, bufsize);
data/gv-3.7.4/lib/sys_stat.in.h:399:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#   define lchmod chmod
data/gv-3.7.4/lib/sys_stat.in.h:403:34:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int,
data/gv-3.7.4/lib/unistd.in.h:235:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   undef chown
data/gv-3.7.4/lib/unistd.in.h:236:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   define chown rpl_chown
data/gv-3.7.4/lib/unistd.in.h:238:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)
data/gv-3.7.4/lib/unistd.in.h:240:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid));
data/gv-3.7.4/lib/unistd.in.h:243:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)
data/gv-3.7.4/lib/unistd.in.h:246:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
data/gv-3.7.4/lib/unistd.in.h:248:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIASWARN (chown);
data/gv-3.7.4/lib/unistd.in.h:250:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
# undef chown
data/gv-3.7.4/lib/unistd.in.h:252:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
data/gv-3.7.4/lib/unistd.in.h:1139:12:  [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.
#   define readlink rpl_readlink
data/gv-3.7.4/lib/unistd.in.h:1141:19:  [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.
_GL_FUNCDECL_RPL (readlink, ssize_t,
data/gv-3.7.4/lib/unistd.in.h:1144:19:  [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.
_GL_CXXALIAS_RPL (readlink, ssize_t,
data/gv-3.7.4/lib/unistd.in.h:1148:19:  [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.
_GL_FUNCDECL_SYS (readlink, ssize_t,
data/gv-3.7.4/lib/unistd.in.h:1152:19:  [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.
_GL_CXXALIAS_SYS (readlink, ssize_t,
data/gv-3.7.4/lib/unistd.in.h:1155:19:  [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.
_GL_CXXALIASWARN (readlink);
data/gv-3.7.4/lib/unistd.in.h:1157: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.
# undef readlink
data/gv-3.7.4/lib/unistd.in.h:1159:18:  [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.
_GL_WARN_ON_USE (readlink, "readlink is unportable - "
data/gv-3.7.4/lib/stat.c:84:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (fixed_name, name);
data/gv-3.7.4/lib/unistd.in.h:222:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
_GL_WARN_ON_USE (access, "the access function is a security risk - "
data/gv-3.7.4/lib/unistd.in.h:690:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_FUNCDECL_SYS (getlogin, char *, (void));
data/gv-3.7.4/lib/unistd.in.h:692:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIAS_SYS (getlogin, char *, (void));
data/gv-3.7.4/lib/unistd.in.h:693:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIASWARN (getlogin);
data/gv-3.7.4/lib/unistd.in.h:695:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
# undef getlogin
data/gv-3.7.4/lib/unistd.in.h:697:18:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
data/gv-3.7.4/src/Aaa.c:599:31:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                       (void) sprintf (buf, "Aaa Widget: Variable '%s' is undefined.\n",
data/gv-3.7.4/src/Aaa_bison.c:1052:4:  [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(msg, count == 0 ? ", expecting `" : " or `");
data/gv-3.7.4/src/Aaa_bison.c:1053:4:  [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(msg, yytname[x]);
data/gv-3.7.4/src/FileSel.c:675:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy((cwild=malloc(strlen(wild)+1)),wild);
data/gv-3.7.4/src/FileSel.c:726:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(intemp,in);
data/gv-3.7.4/src/FileSel.c:733:7:  [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(out,temp); strcat(out,replace);
data/gv-3.7.4/src/FileSel.c:733:25:  [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(out,temp); strcat(out,replace);
data/gv-3.7.4/src/FileSel.c:736:4:  [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(out,temp);
data/gv-3.7.4/src/FileSel.c:1737:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(name,"%sframe",namebase);
data/gv-3.7.4/src/FileSel.c:1750:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(name,"%stext",namebase);
data/gv-3.7.4/src/FileSel.c:1827:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name,"%sscroll",namebase);
data/gv-3.7.4/src/FileSel.c:1837:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name,"%sframe",namebase);
data/gv-3.7.4/src/FileSel.c:1841:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name,"%sclip",namebase);
data/gv-3.7.4/src/FileSel.c:1846:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(name,"%saaa",namebase);
data/gv-3.7.4/src/Ghostview.c:541:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 printf(tmp);
data/gv-3.7.4/src/Ghostview.c:1299:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buf, "%s %d %d",
data/gv-3.7.4/src/Ghostview.c:1394:8:  [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(parameter, password);
data/gv-3.7.4/src/Ghostview.c:1434:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	     strcat( filename, gvw->ghostview.filename);
data/gv-3.7.4/src/Ghostview.c:1541:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "Chdir to %s failed",
data/gv-3.7.4/src/Ghostview.c:1547:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(argv[0], argv);
data/gv-3.7.4/src/Ghostview.c:1548:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, execOfFailedLabel, argv[0]);
data/gv-3.7.4/src/MButton.c:165:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(error_buf, "Mbutton: %s %s.","Could not find menu widget named", mbw->mbutton.menu_name);
data/gv-3.7.4/src/callbacks.c:207:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s,"gv: %s",t);
data/gv-3.7.4/src/callbacks.c:639:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "\\PutAtPos(%i,%i){%s}", last_psx, last_psy, "") ;
data/gv-3.7.4/src/callbacks.c:796:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(default_path,"%s%s",path,name);
data/gv-3.7.4/src/callbacks.c:797:8:  [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(default_path,ext);
data/gv-3.7.4/src/callbacks.c:994:8:  [4] (shell) execl:
  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.
       execl("/usr/bin/env", "env", gv_bin, "--presentation", gv_filename, (char*)0);
data/gv-3.7.4/src/callbacks.c:1295:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    	      sprintf(buf, app_res.locator_format, p->psx, p->psy);
data/gv-3.7.4/src/dialog.c:343:16:  [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).
    if (l<255) strcpy(string,s);
data/gv-3.7.4/src/error.c:71:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"%s %s: %s",error_str,file_name,m);
data/gv-3.7.4/src/file.c:148:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(tmpNameBuf,baseFilename);
data/gv-3.7.4/src/file.c:338:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(mext,ext);
data/gv-3.7.4/src/file.c:341:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(c,mext);
data/gv-3.7.4/src/main.c:694:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
     if (access(gv_safe_gs_workdir, R_OK | X_OK))
data/gv-3.7.4/src/main.c:697:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buffer, app_res.scratch_dir);
data/gv-3.7.4/src/main.c:717:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(gv_savepos_filename, tmp_savepos_filename);
data/gv-3.7.4/src/main.c:1119:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buf,app_res.locator_format,9999,9999);
data/gv-3.7.4/src/message.h:71:40:  [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).
	if (__result)	{ len=strlen(__result); strcpy(indent,__result); }\
data/gv-3.7.4/src/message.h:79:4:  [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,__indent);		\
data/gv-3.7.4/src/message.h:80:4:  [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,format,value);	\
data/gv-3.7.4/src/message.h:86:4:  [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,__indent);			\
data/gv-3.7.4/src/message.h:87:4:  [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,format,value1,value2);	\
data/gv-3.7.4/src/misc.c:369:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
         sprintf(error,str,name);
data/gv-3.7.4/src/misc.c:413:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(p,name);
data/gv-3.7.4/src/misc.c:415:40:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    if (!b && file_fileIsNotUseful(p)) sprintf(p,"%s.ps",name);  else b = True;
data/gv-3.7.4/src/misc.c:416:40:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    if (!b && file_fileIsNotUseful(p)) sprintf(p,"%s.pdf",name); else b = True;
data/gv-3.7.4/src/misc.c:417:40:  [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).
    if (!b)                            strcpy(p,name);
data/gv-3.7.4/src/misc.c:475:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(error,error_close_fail,name);
data/gv-3.7.4/src/misc.c:530:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        INFSMESSAGE(cannot access file:,tmpname)
data/gv-3.7.4/src/misc.c:531:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"Unable to access file '%s'\n",tmpname);
data/gv-3.7.4/src/misc.c:533:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        INFSMESSAGE(user not authorized to access file:,tmpname)
data/gv-3.7.4/src/misc.c:534:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"User is not authorized to access file '%s'\n",tmpname);
data/gv-3.7.4/src/misc.c:898:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(tmp, gv_gs_cmd_scan_pdf);
data/gv-3.7.4/src/misc.c:1017:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(tocp, "%*s\n", maxlen, doc->pages[j].label);
data/gv-3.7.4/src/options.c:152:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s,"%sLabel",name);
data/gv-3.7.4/src/options.c:154:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s,"%sButton",name);
data/gv-3.7.4/src/options.c:190:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(*argiP,name);
data/gv-3.7.4/src/options.c:192:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(*argiP,format);
data/gv-3.7.4/src/options.c:195:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(*argvP,value);
data/gv-3.7.4/src/options.c:266:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(*lineP,tmp);
data/gv-3.7.4/src/options.c:304:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(line,header);
data/gv-3.7.4/src/options.c:315:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(line,value);
data/gv-3.7.4/src/options.c:420:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errorMessage,"Save aborted: \nCannot rename temporary '%s'\n to '%s'",tempfilename,gv_user_defaults_file);
data/gv-3.7.4/src/options_gv.c:452:35:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     if (!strcmp(popupVerb[i],l)) sprintf(tmp,"%s",popupVerbExtern[i]);
data/gv-3.7.4/src/options_setup.c:364:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name,"%s",val);
data/gv-3.7.4/src/process.c:265:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(buf, "Chdir to %s failed", gv_safe_gs_workdir);
data/gv-3.7.4/src/process.c:270:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp(argv[0], argv);
data/gv-3.7.4/src/process.c:274:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
         sprintf(tmp, execOfFailedLabel, argv[0]);
data/gv-3.7.4/src/process.c:375:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(label,"Stop %s",pd->name);
data/gv-3.7.4/src/process.c:411:10:  [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(tmp,&(label[progress]));
data/gv-3.7.4/src/process.c:441:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(message,stillInProgressLabel);
data/gv-3.7.4/src/process.c:447:2:  [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(message,pd->name);
data/gv-3.7.4/src/ps.c:449:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "bzip2 -dc %s >%s", quoted_filename, quoted_filename_unc);
data/gv-3.7.4/src/ps.c:451:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd, "gzip -dc %s >%s", quoted_filename, quoted_filename_unc);
data/gv-3.7.4/src/ps.c:459:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system(cmd) || file_fileIsNotUseful(filename_unc)) {
data/gv-3.7.4/src/ps.c:462:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s,"Execution of\n%s\nfailed.",cmd);
data/gv-3.7.4/src/ps.c:482:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s,"333 Scanning\n%s\nfailed.",filename_unc);
data/gv-3.7.4/src/ps.c:495:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s,"Uncompressing of\n%s\nfailed.",filename);
data/gv-3.7.4/src/ps.c:569:4:  [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(cmd,quoted_filename);
data/gv-3.7.4/src/ps.c:571:4:  [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(cmd,quoted_filename_dsc);
data/gv-3.7.4/src/ps.c:572:4:  [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(cmd,dscpos+4);
data/gv-3.7.4/src/ps.c:575:4:  [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(cmd,quoted_filename_dsc);
data/gv-3.7.4/src/ps.c:577:4:  [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(cmd,quoted_filename);
data/gv-3.7.4/src/ps.c:578:4:  [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(cmd,pdfpos+4);
data/gv-3.7.4/src/ps.c:587:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	   strcat(parameter, password);
data/gv-3.7.4/src/ps.c:589:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	   sprintf(cmd,cmd_scan_pdf,quoted_filename,quoted_filename_dsc, parameter);
data/gv-3.7.4/src/ps.c:592:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	   sprintf(cmd,cmd_scan_pdf,quoted_filename,quoted_filename_dsc, "");
data/gv-3.7.4/src/ps.c:602:4:  [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(s, gv_safe_gs_workdir);
data/gv-3.7.4/src/ps.c:618:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system(cmd) || file_fileIsNotUseful(filename_dsc)) {
data/gv-3.7.4/src/ps.c:655:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s,"Execution of\n%s\nfailed.",cmd);
data/gv-3.7.4/src/ps.c:683:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s,"Scanning\n%s\nfailed.",filename_dsc);
data/gv-3.7.4/src/ps.c:838:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(doc->media[0].name, dmp->name);
data/gv-3.7.4/src/ps.c:870:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(doc->media[doc->nummedia].name, dmp->name);
data/gv-3.7.4/src/ps.c:1510:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(cp, text);
data/gv-3.7.4/src/ps.c:1918:10:  [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(cp, line);
data/gv-3.7.4/src/resource.c:157:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  INFMESSAGE(checking for system resources)
data/gv-3.7.4/src/resource.c:161:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat (rpath, GV_LIBDIR);
data/gv-3.7.4/src/resource.c:164:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    INFSMESSAGE(merging system resource file into database,rpath)
data/gv-3.7.4/src/resource.c:177:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(tmp,USER_DEFAULTS);
data/gv-3.7.4/src/resource.c:233:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(locale1, "noint:%s%s", loc_lang, loc_terr);
data/gv-3.7.4/src/resource.c:234:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(locale2, "noint:%s", loc_lang);
data/gv-3.7.4/src/resource.c:239:6:  [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(locale1, locale);
data/gv-3.7.4/src/resource.c:240:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(locale2, "%s%s%s", loc_lang, loc_terr, loc_cs);
data/gv-3.7.4/src/resource.c:241:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(locale3, "%s%s", loc_lang, loc_cs);
data/gv-3.7.4/src/resource.c:255:6:  [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(tmp,USER_DEFAULTS "-");
data/gv-3.7.4/src/resource.c:256:6:  [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(tmp, locale1);
data/gv-3.7.4/src/resource.c:269:6:  [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(tmp,GV_LIBDIR "/nls/");
data/gv-3.7.4/src/resource.c:270:6:  [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(tmp, locale1);
data/gv-3.7.4/src/resource.c:305:6:  [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(tmp,USER_DEFAULTS "-");
data/gv-3.7.4/src/resource.c:306:6:  [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(tmp, locale2);
data/gv-3.7.4/src/resource.c:319:6:  [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(tmp,GV_LIBDIR "/nls/");
data/gv-3.7.4/src/resource.c:320:6:  [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(tmp, locale2);
data/gv-3.7.4/src/resource.c:350:6:  [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(tmp,USER_DEFAULTS "-");
data/gv-3.7.4/src/resource.c:351:6:  [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(tmp, locale3);
data/gv-3.7.4/src/resource.c:364:6:  [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(tmp,GV_LIBDIR "/nls/");
data/gv-3.7.4/src/resource.c:365:6:  [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(tmp, locale3);
data/gv-3.7.4/src/resource.c:473:7:  [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(spartan_filename, GV_LIBDIR);
data/gv-3.7.4/src/resource.c:483:7:  [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(widgetless_filename, GV_LIBDIR);
data/gv-3.7.4/src/resource.c:677:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(resource_name, "%s%s", app_name, resource_class);
data/gv-3.7.4/src/resource.c:703:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str_name, "%s.%s",app_name,name_val);
data/gv-3.7.4/src/resource.c:704:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str_class,"%s.%s",app_class,class_val);
data/gv-3.7.4/src/resource.c:748:40:  [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).
    sprintf(g,"%d",(Dimension)gwidth); strcat(tmp,g);
data/gv-3.7.4/src/resource.c:752:42:  [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).
    sprintf(g,"x%d",(Dimension)gheight); strcat(tmp,g);
data/gv-3.7.4/src/resource.c:756:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(g,"%s%d",((flag&XNegative) ? (gx ? "":"-") : "+"),gx);   strcat(tmp,g);
data/gv-3.7.4/src/resource.c:756:70:  [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).
    sprintf(g,"%s%d",((flag&XNegative) ? (gx ? "":"-") : "+"),gx);   strcat(tmp,g);
data/gv-3.7.4/src/resource.c:759:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(g,"%s%d",((flag&YNegative) ? (gy ? "":"-") : "+"),gy);   strcat(tmp,g);
data/gv-3.7.4/src/resource.c:759:70:  [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).
    sprintf(g,"%s%d",((flag&YNegative) ? (gy ? "":"-") : "+"),gy);   strcat(tmp,g);
data/gv-3.7.4/src/resource.c:764:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s,"%s.geometry",app_name);
data/gv-3.7.4/src/resource.c:807:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if (access(resource_user_file, W_OK))
data/gv-3.7.4/src/resource.c:877:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(tmp,name);
data/gv-3.7.4/src/save.c:103:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#   define SYSTEM_SUCCEEDED_ON(bbb)  (system(bbb) == 0)
data/gv-3.7.4/src/save.c:104:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#   define SYSTEM_FAILED_ON(bbb)     (system(bbb) != 0)
data/gv-3.7.4/src/save.c:132:8:  [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(c,e);
data/gv-3.7.4/src/save.c:134:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	 strcat(c,print_quoted_filename);
data/gv-3.7.4/src/save.c:140:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(c, "%s %s",p,print_quoted_filename);
data/gv-3.7.4/src/save.c:146:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
     sprintf(error,printfail,c); 
data/gv-3.7.4/src/save.c:207:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(proc_name,pos);
data/gv-3.7.4/src/save.c:217:8:  [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(command,quoted_src_fn);
data/gv-3.7.4/src/save.c:219:8:  [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(command,quoted_conv_fn);
data/gv-3.7.4/src/save.c:220:8:  [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(command,pspos+3);
data/gv-3.7.4/src/save.c:223:8:  [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(command,quoted_conv_fn);
data/gv-3.7.4/src/save.c:225:8:  [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(command,quoted_src_fn);
data/gv-3.7.4/src/save.c:226:8:  [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(command,pdfpos+4);
data/gv-3.7.4/src/save.c:229:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
     sprintf(command,gv_gs_cmd_conv_pdf,quoted_conv_fn,quoted_src_fn);
data/gv-3.7.4/src/save.c:235:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(tmp, gv_gs_cmd_scan_pdf);
data/gv-3.7.4/src/save.c:291:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(tmp,error_scan_fail,src_filename);
data/gv-3.7.4/src/scale.c:241:10:  [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).
  if (s) strcpy(v,s); else v[0]='\0';
data/gv-3.7.4/src/scale.c:270:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(server,s);
data/gv-3.7.4/src/scale.c:285:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(server, ssh);
data/gv-3.7.4/src/scale.c:301:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  if (server[0]) sprintf(name, "screenSize_%s_%d_%d",server,disp,scr);
data/gv-3.7.4/src/secscanf.c:450:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(isprint(n)? "%c" : "\\%03o", n);
data/gv-3.7.4/src/secscanf.c:523:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	m = sscanf(s, fmt, v + 0, v + 1, v + 2, v + 3, v + 4);
data/gv-3.7.4/src/secscanf.c:556:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	m = sscanf(s, fmt, buf_ref, buf_ref + 1, buf_ref + 2);
data/gv-3.7.4/src/setenv.c:34:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(tmp, name);
data/gv-3.7.4/src/setenv.c:36:4:  [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(tmp, value);
data/gv-3.7.4/src/version.c:225:7:  [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(tmp2, copyrightTranslationLabel);
data/gv-3.7.4/src/version.c:226:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			   sprintf(tmp, *line, tmp2);
data/gv-3.7.4/src/version.c:230:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			   sprintf(tmp, *line, "");
data/gv-3.7.4/src/widgets_misc.c:135:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp,"%sLabel",name);
data/gv-3.7.4/src/widgets_misc.c:140:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp,"%sFrame",name);
data/gv-3.7.4/src/widgets_misc.c:196:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp,"%sLabel",name);
data/gv-3.7.4/src/widgets_misc.c:201:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp,"%sFrame",name);
data/gv-3.7.4/lib/canonicalize-lgpl.c:51:21:  [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.
# define __realpath realpath
data/gv-3.7.4/lib/canonicalize-lgpl.c:68:30:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define __getcwd(buf, max) getwd (buf)
data/gv-3.7.4/lib/canonicalize-lgpl.c:344: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.
versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
data/gv-3.7.4/lib/canonicalize-lgpl.c:361:38:  [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.
compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0);
data/gv-3.7.4/lib/getopt.c:101:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/gv-3.7.4/lib/getopt.c:237:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
data/gv-3.7.4/lib/getopt.c:1104:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char *const *argv, const char *optstring)
data/gv-3.7.4/lib/getopt.c:1139:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/gv-3.7.4/lib/getopt.in.h:57:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/gv-3.7.4/lib/getopt.in.h:58:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt_long
data/gv-3.7.4/lib/getopt.in.h:68:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/gv-3.7.4/lib/getopt.in.h:68:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/gv-3.7.4/lib/getopt.in.h:69:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/gv-3.7.4/lib/getopt.in.h:69:35:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/gv-3.7.4/lib/getopt.in.h:230:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/gv-3.7.4/lib/getopt.in.h:234:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/gv-3.7.4/lib/getopt1.c:40:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/gv-3.7.4/lib/getopt1.c:105:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/gv-3.7.4/lib/stdlib.in.h:561:12:  [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.
#   define realpath rpl_realpath
data/gv-3.7.4/lib/stdlib.in.h:563: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.
_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
data/gv-3.7.4/lib/stdlib.in.h:565: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.
_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
data/gv-3.7.4/lib/stdlib.in.h:568: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.
_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
data/gv-3.7.4/lib/stdlib.in.h:571: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.
_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
data/gv-3.7.4/lib/stdlib.in.h:573: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.
_GL_CXXALIASWARN (realpath);
data/gv-3.7.4/lib/stdlib.in.h:575:9:  [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.
# undef realpath
data/gv-3.7.4/lib/stdlib.in.h:577:18:  [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.
_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
data/gv-3.7.4/lib/tempname.c:76:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
# define __secure_getenv getenv
data/gv-3.7.4/src/FileSel.c:52:9:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getwd(aaa) getcwd((aaa),(FS_MAXNAMLEN-2))    
data/gv-3.7.4/src/FileSel.c:90:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define HOME getenv("HOME")	        /* chdir argument to go home (the login directory) */
data/gv-3.7.4/src/FileSel.c:460:8:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
       getwd(app_dir);
data/gv-3.7.4/src/FileSel.c:817:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    home=getenv("HOME");
data/gv-3.7.4/src/FileSel.c:1400:4:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
   getwd(CURRENT_DIR);
data/gv-3.7.4/src/FileSel.c:1709:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
      getwd(newpath);
data/gv-3.7.4/src/file.c:210:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *home = getenv("HOME");
data/gv-3.7.4/src/main.c:416:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("LC_ALL")) {
data/gv-3.7.4/src/main.c:418:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    locale = getenv("LC_ALL");
data/gv-3.7.4/src/main.c:452:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     xuf = getenv(xufsp); if (xuf) xuf = XtNewString(xuf);
data/gv-3.7.4/src/message.h:70:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *__result=getenv("MESSAGE_INDENT");			\
data/gv-3.7.4/src/resource.c:184:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    s = getenv("XUSERFILESEARCHPATH");
data/gv-3.7.4/src/resource.c:202:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  locale = getenv("LC_ALL");
data/gv-3.7.4/src/resource.c:204:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     locale = getenv("LC_MESSAGES");
data/gv-3.7.4/src/resource.c:206:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     locale = getenv("LANG");
data/gv-3.7.4/src/scale.c:282:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ssh = getenv("SSH_CLIENT");
data/gv-3.7.4/src/setenv.c:30:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (!overwrite && getenv(name))
data/gv-3.7.4/lib/canonicalize-lgpl.c:235:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (dest, start, end - start);
data/gv-3.7.4/lib/canonicalize-lgpl.c:296:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              name = end = memcpy (extra_buf, buf, n);
data/gv-3.7.4/lib/gettext.h:216: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/gv-3.7.4/lib/gettext.h:218:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/gv-3.7.4/lib/gettext.h:226:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/gv-3.7.4/lib/gettext.h:228:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/gv-3.7.4/lib/gettext.h:262: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/gv-3.7.4/lib/gettext.h:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/gv-3.7.4/lib/gettext.h:272:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/gv-3.7.4/lib/gettext.h:274:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/gv-3.7.4/lib/malloca.c:51:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct preliminary_header { void *next; char room[MAGIC_SIZE]; };
data/gv-3.7.4/lib/malloca.c:55:29:  [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.
struct header { void *next; char room[HEADER_SIZE - sizeof (struct preliminary_header) + MAGIC_SIZE]; };
data/gv-3.7.4/lib/mkstemp.c:47:1:  [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).
mkstemp (char *xtemplate)
data/gv-3.7.4/lib/stat.c:77:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fixed_name[PATH_MAX + 1] = {0};
data/gv-3.7.4/lib/stdlib.in.h:386:12:  [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).
#   define mkstemp rpl_mkstemp
data/gv-3.7.4/lib/stdlib.in.h:388:19:  [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).
_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/gv-3.7.4/lib/stdlib.in.h:389:19:  [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).
_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/));
data/gv-3.7.4/lib/stdlib.in.h:392:19:  [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).
_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/gv-3.7.4/lib/stdlib.in.h:394:19:  [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).
_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/));
data/gv-3.7.4/lib/stdlib.in.h:396:19:  [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).
_GL_CXXALIASWARN (mkstemp);
data/gv-3.7.4/lib/stdlib.in.h:398:9:  [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).
# undef mkstemp
data/gv-3.7.4/lib/stdlib.in.h:400:18:  [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).
_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
data/gv-3.7.4/lib/sys_stat.in.h:630:44:  [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.
_GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name,
data/gv-3.7.4/lib/sys_stat.in.h:633:44:  [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.
_GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name,
data/gv-3.7.4/lib/sys_stat.in.h:637:44:  [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.
_GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name,
data/gv-3.7.4/lib/sys_stat.in.h:641:44:  [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.
_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name,
data/gv-3.7.4/lib/tempname.c:69:17:  [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 __open open
data/gv-3.7.4/lib/tempname.c:70:19:  [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 __open64 open
data/gv-3.7.4/lib/tempname.c:175:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx);
data/gv-3.7.4/src/Aaa.c:598: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.
                       char    buf[256];
data/gv-3.7.4/src/Aaa_bison.c:1043:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	      strcpy(msg, "parse error");
data/gv-3.7.4/src/Aaa_lex.c:185: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.
           char s[WORD_MAXLEN+1]; int i=0;
data/gv-3.7.4/src/Aaa_lex.c:198: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 s[WORD_MAXLEN+1]; int i=0;
data/gv-3.7.4/src/Aaa_lex.c:202:22:  [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->ival = atoi(s);
data/gv-3.7.4/src/Aaa_lex.c:210: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 s[WORD_MAXLEN+1]; int i=0;
data/gv-3.7.4/src/Aaa_lex.c:213: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).
        v->ival = atoi(s);
data/gv-3.7.4/src/Aaa_lex.c:217: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 s[WORD_MAXLEN+1]; int i=0;
data/gv-3.7.4/src/Aaa_lex.c:235:18:  [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.
        int i=0; char s[WORD_MAXLEN+1];
data/gv-3.7.4/src/FileSel.c:310:43:  [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.
#define POSITION_TO_BUTTON_NAME(pos,name) sprintf((name),"button%d",(int)(pos))
data/gv-3.7.4/src/FileSel.c:459:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char app_dir[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:816: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 tmp[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:860:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char 	name[10];
data/gv-3.7.4/src/FileSel.c:1254:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(p, list[i], len);
data/gv-3.7.4/src/FileSel.c:1308: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 tmp[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1337: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 tmp[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1360:4:  [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 		path[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1387:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char tmpdir[FS_MAXNAMLEN],tempfile[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1606: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 newpath[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1650:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char		name[10];
data/gv-3.7.4/src/FileSel.c:1662:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1693: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 newpath[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1732:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[15];
data/gv-3.7.4/src/FileSel.c:1821:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[15];
data/gv-3.7.4/src/FileSel.c:1920:4:  [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 tmp[FS_MAXNAMLEN];
data/gv-3.7.4/src/FileSel.c:1972:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char			name[10];
data/gv-3.7.4/src/FileSel.c:1999:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char 		name[10];
data/gv-3.7.4/src/Ghostview.c:537:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char tmp[5000];
data/gv-3.7.4/src/Ghostview.c:540:2:  [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(tmp,"###END###\n");
data/gv-3.7.4/src/Ghostview.c:590: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.
           char peek_buf[ PEEK_SIZE ];
data/gv-3.7.4/src/Ghostview.c:624: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[GV_BUFSIZ+1];
data/gv-3.7.4/src/Ghostview.c:1259:4:  [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[GV_BUFSIZ];
data/gv-3.7.4/src/Ghostview.c:1286:4:  [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(buf, "%ld %d %d %d %d %d %g %g %d %d %d %d",
data/gv-3.7.4/src/Ghostview.c:1340: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[GV_BUFSIZ];
data/gv-3.7.4/src/Ghostview.c:1342: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 *argv[NUM_ARGS];
data/gv-3.7.4/src/Ghostview.c:1392:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(parameter, "-sPDFPassword=");
data/gv-3.7.4/src/Ghostview.c:1433:7:  [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( filename, "./" );
data/gv-3.7.4/src/Ghostview.c:1477:23:  [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).
          std_in[0] = open(gvw->ghostview.filename, O_RDONLY, 0);
data/gv-3.7.4/src/Ghostview.c:1519:12:  [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(buf, "%ld %ld", XtWindow(w), pix );
data/gv-3.7.4/src/Ghostview.c:1521:12:  [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(buf, "%ld", XtWindow(w));
data/gv-3.7.4/src/Ghostview.c:2132: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        lowerName[100];
data/gv-3.7.4/src/MButton.c:164: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 error_buf[BUFSIZ];
data/gv-3.7.4/src/actions.c:239:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      p = atoi(s);
data/gv-3.7.4/src/actions.c:300: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).
           (!toc_text && atoi(s)>0)) page_changed = 1;
data/gv-3.7.4/src/actions.c:919:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      i = atoi(params[0]);
data/gv-3.7.4/src/callbacks.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char utf8title [4096];
data/gv-3.7.4/src/callbacks.c:620: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[MAX_LOCATOR_LENGTH];
data/gv-3.7.4/src/callbacks.c:649: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).
    FILE* posfile = fopen(gv_savepos_filename, "a");
data/gv-3.7.4/src/callbacks.c:658:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
       INFMESSAGE(cannot open file for writting)
data/gv-3.7.4/src/callbacks.c:745: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 ext[20];
data/gv-3.7.4/src/callbacks.c:747: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 default_path[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/callbacks.c:772:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(ext,"_pages");
data/gv-3.7.4/src/callbacks.c:776:53:  [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.
       if (0<=current_page && current_page <= 9998) sprintf(ext,"_page_%d",(current_page+1));
data/gv-3.7.4/src/callbacks.c:777: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.
       else strcpy(ext,"_page");
data/gv-3.7.4/src/callbacks.c:961: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).
    FILE* posfile = fopen(gv_savepos_filename, "a");
data/gv-3.7.4/src/callbacks.c:965:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
       INFMESSAGE(cannot open file for writting)
data/gv-3.7.4/src/callbacks.c:1037: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).
      np = atoi(s);
data/gv-3.7.4/src/callbacks.c:1047: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).
      np = atoi(s)-1;
data/gv-3.7.4/src/callbacks.c:1292:19:  [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[MAX_LOCATOR_LENGTH];
data/gv-3.7.4/src/dialog.c:333: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 string[256];
data/gv-3.7.4/src/doc_misc.c:300: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).
   if (page<0 && pageLabel) page=atoi(pageLabel)-1;
data/gv-3.7.4/src/error.c:70: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[1024];
data/gv-3.7.4/src/file.c:124:4:  [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 tempFilename[256];
data/gv-3.7.4/src/file.c:126:4:  [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 tmpNameBuf[256];
data/gv-3.7.4/src/file.c:176:8:  [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).
	 fd = mkstemp(tempFilename);
data/gv-3.7.4/src/file.c:217:14:  [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(path, home, hl);
data/gv-3.7.4/src/file.c:296:4:  [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(e,".ps");
data/gv-3.7.4/src/magmenu.c:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[100];
data/gv-3.7.4/src/main.c:696: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 buffer[512];
data/gv-3.7.4/src/main.c:698:2:  [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(buffer,"gv-safe-workdir-XXXXXX");
data/gv-3.7.4/src/main.c:884: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).
       if (pos) { width=WidthOfScreen(gv_screen)+atoi(pos+strlen(max_size_screen)); }
data/gv-3.7.4/src/main.c:885: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).
       else     { width=atoi(app_res.maximum_width); }
data/gv-3.7.4/src/main.c:890: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).
       if (pos) { height=HeightOfScreen(gv_screen)+atoi(pos+strlen(max_size_screen)); }
data/gv-3.7.4/src/main.c:891: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).
       else     { height=atoi(app_res.maximum_height); }
data/gv-3.7.4/src/main.c:1118:11:  [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[MAX_LOCATOR_LENGTH];
data/gv-3.7.4/src/main_globals.h:77:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char                    gv_savepos_filename[GV_MAX_FILENAME_LENGTH];    /* filename used for savepos */
data/gv-3.7.4/src/media.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[100];
data/gv-3.7.4/src/message.h:77:4:  [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 __indent[100]; unsigned short __len;\
data/gv-3.7.4/src/message.h:84:4:  [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 __indent[100]; unsigned short __len;	\
data/gv-3.7.4/src/message.h:91:4:  [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 __indent[100]; unsigned short __len;		\
data/gv-3.7.4/src/message.h:98:21:  [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.
   if (__len <= 56) strcat(__indent,"    ");		\
data/gv-3.7.4/src/message.h:103:4:  [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 __indent[100]; unsigned short __len;		\
data/gv-3.7.4/src/misc.c:362:29:  [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).
      INFSMESSAGE(trying to open,name)
data/gv-3.7.4/src/misc.c:371: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).
      else if ((fp = fopen(name, "r")) == NULL) {
data/gv-3.7.4/src/misc.c:372:31:  [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).
         INFMESSAGE(failed to open)
data/gv-3.7.4/src/misc.c:423:25:  [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).
  INFSMESSAGE(trying to open,name)
data/gv-3.7.4/src/misc.c:528:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char message[GV_MAXLENGTH]; 
data/gv-3.7.4/src/misc.c:772:29:  [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).
		INFMESSAGE(### request to open or reopen file)
data/gv-3.7.4/src/misc.c:907:10:  [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(dest, "-P- -dSAFER -dDELAYSAFER ");
data/gv-3.7.4/src/misc.c:1019:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tocp, "%*d\n", maxlen, i+1);
data/gv-3.7.4/src/miscmenu.c:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[100];
data/gv-3.7.4/src/options.c:146: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 s[50];
data/gv-3.7.4/src/options.c:257:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[MAX_RECORD_LENGTH];
data/gv-3.7.4/src/options.c:323:12:  [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.
      else strcat(line,"\\n\\\n");
data/gv-3.7.4/src/options.c:346: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 errorMessage[MESSAGE_STRING_LEN];
data/gv-3.7.4/src/options.c:357: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(errorMessage,"Save aborted: \nUndefined destination file.");
data/gv-3.7.4/src/options.c:365:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  infile=fopen(gv_user_defaults_file,"r"); 
data/gv-3.7.4/src/options.c:370:37:  [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 (!tempfilename || !(tempfile = fopen(tempfilename,"w"))) {
data/gv-3.7.4/src/options.c:371: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(errorMessage,"Save aborted: \nCannot create temporary file");
data/gv-3.7.4/src/options_gv.c:165:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char number[80];
data/gv-3.7.4/src/options_gv.c:166:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(number, "%.3f", gv_ascale*gv_ascale);
data/gv-3.7.4/src/options_gv.c:401: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 tmp[20];
data/gv-3.7.4/src/options_gv.c:436:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf(tmp,"%d",b+1);
data/gv-3.7.4/src/options_gv.c:442: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(tmp,"%d",s-i);
data/gv-3.7.4/src/options_setup.c:117: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 tmp[50];
data/gv-3.7.4/src/options_setup.c:145:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp,"%d x %d",gv_screen_width,gv_screen_height);
data/gv-3.7.4/src/options_setup.c:312: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 tmp[20];
data/gv-3.7.4/src/options_setup.c:346:38:  [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.
     if (!strcmp(title_styles[i],l)) sprintf(tmp,"%d",i);
data/gv-3.7.4/src/options_setup.c:355:45:  [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.
     if (!strcmp(confirm_quit_styles[i],l)) sprintf(tmp,"%d",i);
data/gv-3.7.4/src/options_setup.c:361: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 name[255];
data/gv-3.7.4/src/options_setup.c:362: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 val[255];
data/gv-3.7.4/src/process.c:243:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *argv[4];
data/gv-3.7.4/src/process.c:264:4:  [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[512];
data/gv-3.7.4/src/process.c:273:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char tmp[512];
data/gv-3.7.4/src/process.c:368:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char label[512];
data/gv-3.7.4/src/process.c:432:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char message[MAX_DISALLOW_QUIT_MESSAGE];
data/gv-3.7.4/src/process.c:450:11:  [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.
  if (pd) strcat(message,"\n...");
data/gv-3.7.4/src/ps.c:416:14:  [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 b[3];         /* The first 3 bytes of the input file */
data/gv-3.7.4/src/ps.c:435:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cmd[512];
data/gv-3.7.4/src/ps.c:436:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[512];
data/gv-3.7.4/src/ps.c:475: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).
      tempfile = fopen(filename_unc, "r");
data/gv-3.7.4/src/ps.c:494:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[512];
data/gv-3.7.4/src/ps.c:547:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cmd[512];
data/gv-3.7.4/src/ps.c:548:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[512];
data/gv-3.7.4/src/ps.c:584: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 parameter[100];
data/gv-3.7.4/src/ps.c:585: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(parameter, " -sPDFPassword=");
data/gv-3.7.4/src/ps.c:601:4:  [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(s, "Chdir to ");
data/gv-3.7.4/src/ps.c:603:4:  [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(s, " failed");
data/gv-3.7.4/src/ps.c:611:2:  [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(s, "Cannot create temporary file!");
data/gv-3.7.4/src/ps.c:619: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 password_line[1000];
data/gv-3.7.4/src/ps.c:630: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).
        tmp_file = fopen( tmp_filename, "r" );
data/gv-3.7.4/src/ps.c:677: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).
      tempfile = fopen(filename_dsc, "r");
data/gv-3.7.4/src/ps.c:1149:6:  [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).
	l = atol(firstword(next_char));
data/gv-3.7.4/src/ps.c:1256:10:  [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).
	    l = atol(firstword(next_char));
data/gv-3.7.4/src/ps.c:1426: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 text[PSLINELENGTH];	/* Temporary storage for text */
data/gv-3.7.4/src/ps.c:1831:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char text[101];
data/gv-3.7.4/src/ps.c:1926:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char text[101];
data/gv-3.7.4/src/ps.c:2006: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).
    src_file = fopen(src_filename, "r");
data/gv-3.7.4/src/resource.c:145: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 tmp[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/resource.c:146: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 locale1[100], locale2[100], locale3[100];
data/gv-3.7.4/src/resource.c:147: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 loc_lang[100], loc_terr[100], loc_cs[100], loc_mod[100];
data/gv-3.7.4/src/resource.c:162:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat (rpath, "/gv_system.ad");
data/gv-3.7.4/src/resource.c:271:6:  [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(tmp, ".dat");
data/gv-3.7.4/src/resource.c:321:6:  [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(tmp, ".dat");
data/gv-3.7.4/src/resource.c:366:6:  [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(tmp, ".dat");
data/gv-3.7.4/src/resource.c:474:7:  [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(spartan_filename, "/gv_spartan.dat");
data/gv-3.7.4/src/resource.c:484:7:  [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(widgetless_filename, "/gv_widgetless.dat");
data/gv-3.7.4/src/resource.c:675: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 resource_name[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/resource.c:698: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 str_name[GV_MAX_FILENAME_LENGTH],str_class[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/resource.c:727: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 tmp[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/resource.c:732: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 g[20];
data/gv-3.7.4/src/resource.c:748: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(g,"%d",(Dimension)gwidth); strcat(tmp,g);
data/gv-3.7.4/src/resource.c:752: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(g,"x%d",(Dimension)gheight); strcat(tmp,g);
data/gv-3.7.4/src/resource.c:762: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 s[50];
data/gv-3.7.4/src/resource.c:868: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 tmp[GV_MAX_FILENAME_LENGTH];
data/gv-3.7.4/src/save.c:193:4:  [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 command[512], tmp[512];
data/gv-3.7.4/src/save.c:194:4:  [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 proc_name[256];
data/gv-3.7.4/src/save.c:208:4:  [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(proc_name," conversion");
data/gv-3.7.4/src/save.c:244:6:  [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(dest, "-P- -dSAFER ");
data/gv-3.7.4/src/save.c:273: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 ((save_file = fopen(save_filename, "w")) == NULL) 
data/gv-3.7.4/src/save.c:275:28:  [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 (!error && (src_file=fopen(src_filename,"r"))==NULL)
data/gv-3.7.4/src/save.c:290: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 tmp[512];
data/gv-3.7.4/src/save.c:295:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buf[BUFSIZ];
data/gv-3.7.4/src/scale.c:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[50],kind[50];
data/gv-3.7.4/src/scale.c:221: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 v[255];
data/gv-3.7.4/src/scale.c:263: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 server[255],*s;
data/gv-3.7.4/src/secscanf.c:54:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   return memcpy (new, s, len);
data/gv-3.7.4/src/secscanf.c:400:11:  [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	table[255];
data/gv-3.7.4/src/secscanf.c:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[3][256], buf_ref[3][256];
data/gv-3.7.4/src/version.c:192:22:  [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 widgetName[15];
data/gv-3.7.4/src/version.c:194:25:  [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(widgetName,"versionText%c",i);
data/gv-3.7.4/src/version.c:217:22:  [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 widgetName[10];
data/gv-3.7.4/src/version.c:219:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char tmp[1000];
data/gv-3.7.4/src/version.c:220:25:  [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(widgetName,"author%c",i);
data/gv-3.7.4/src/version.c:223:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			   char tmp2[1000];
data/gv-3.7.4/src/version.c:224:7:  [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(tmp2, "Translation:         ");
data/gv-3.7.4/src/widgets_misc.c:130:4:  [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     tmp[50];
data/gv-3.7.4/src/widgets_misc.c:191:4:  [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     tmp[50];
data/gv-3.7.4/src/zoom.c:238: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).
	    zoomfile = fopen(filename, "r");
data/gv-3.7.4/lib/canonicalize-lgpl.c:286: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).
              len = strlen (end);
data/gv-3.7.4/lib/getopt.c:268:56:  [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 = d->__nonoption_flags_max_len = strlen (orig_str);
data/gv-3.7.4/lib/getopt.c:498: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).
                == (unsigned int) strlen (p->name))
data/gv-3.7.4/lib/getopt.c:547: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).
          d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:620: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).
                  d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:660: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).
                  d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:665: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).
          d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:855: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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/gv-3.7.4/lib/getopt.c:903: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).
            d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:947: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).
                    d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:985: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).
                    d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/getopt.c:991: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).
            d->__nextchar += strlen (d->__nextchar);
data/gv-3.7.4/lib/gettext.h:212: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/gv-3.7.4/lib/gettext.h:213: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).
  size_t msgid_len = strlen (msgid) + 1;
data/gv-3.7.4/lib/gettext.h:258: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/gv-3.7.4/lib/gettext.h:259: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).
  size_t msgid_len = strlen (msgid) + 1;
data/gv-3.7.4/lib/lstat.c:74:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (file);
data/gv-3.7.4/lib/readlink.c:57:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (name);
data/gv-3.7.4/lib/stat.c:57:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (name);
data/gv-3.7.4/lib/stat.c:78:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (name);
data/gv-3.7.4/lib/tempname.c:136: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).
      plen = strlen (pfx);
data/gv-3.7.4/lib/tempname.c:164: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).
  dlen = strlen (dir);
data/gv-3.7.4/lib/tempname.c:225:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (tmpl);
data/gv-3.7.4/lib/unistd.in.h:1115:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef read
data/gv-3.7.4/lib/unistd.in.h:1116:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read rpl_read
data/gv-3.7.4/lib/unistd.in.h:1118:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count)
data/gv-3.7.4/lib/unistd.in.h:1120:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count));
data/gv-3.7.4/lib/unistd.in.h:1125:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count));
data/gv-3.7.4/lib/unistd.in.h:1127:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (read);
data/gv-3.7.4/lib/unistd.in.h:1360:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   undef usleep
data/gv-3.7.4/lib/unistd.in.h:1361:12:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   define usleep rpl_usleep
data/gv-3.7.4/lib/unistd.in.h:1363:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_RPL (usleep, int, (useconds_t n));
data/gv-3.7.4/lib/unistd.in.h:1364:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
data/gv-3.7.4/lib/unistd.in.h:1367:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
data/gv-3.7.4/lib/unistd.in.h:1369:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
data/gv-3.7.4/lib/unistd.in.h:1371:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIASWARN (usleep);
data/gv-3.7.4/lib/unistd.in.h:1373:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
# undef usleep
data/gv-3.7.4/lib/unistd.in.h:1375:18:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_WARN_ON_USE (usleep, "usleep is unportable - "
data/gv-3.7.4/src/Aaa_bison.c:1039:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size += strlen(yytname[x]) + 15, count++;
data/gv-3.7.4/src/Aaa_bison.c:1054:4:  [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(msg, "'");
data/gv-3.7.4/src/FileSel.c:675: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).
      strcpy((cwild=malloc(strlen(wild)+1)),wild);
data/gv-3.7.4/src/FileSel.c:678: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).
      wildlen=strlen(wild);
data/gv-3.7.4/src/FileSel.c:685:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  wildlen=strlen(wild);
data/gv-3.7.4/src/FileSel.c:722: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).
   findlength = strlen(find);
data/gv-3.7.4/src/FileSel.c:725: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).
   intemp = XtMalloc(strlen(in)+1);
data/gv-3.7.4/src/FileSel.c:750: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).
   if (path) l=strlen(path);
data/gv-3.7.4/src/FileSel.c:751:54:  [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.
   if (l && l<=(FS_MAXNAMLEN-2) && path[l-1] != '/') strcat(path,"/");   
data/gv-3.7.4/src/FileSel.c:764:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(dest,source,FS_MAXNAMLEN-1);
data/gv-3.7.4/src/FileSel.c:781: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).
  SET_Value(w,XtNinsertPosition,strlen(line));
data/gv-3.7.4/src/FileSel.c:796:8:  [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).
  ld = strlen(dest);
data/gv-3.7.4/src/FileSel.c:797:8:  [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).
  ls = strlen(source);
data/gv-3.7.4/src/FileSel.c:799:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(s,source,FS_MAXNAMLEN-1-ld);
data/gv-3.7.4/src/FileSel.c:1240:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     l = l +strlen(list[i]) + 1;
data/gv-3.7.4/src/FileSel.c:1252:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     size_t len = strlen(list[i]);
data/gv-3.7.4/src/FileSel.c:1429:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     malloced_filter = tmp = (char*) XtMalloc((strlen(filter)+10)*sizeof(char));
data/gv-3.7.4/src/FileSel.c:1664: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 ((l=strlen(CURRENT_DIR)) + strlen(CURDIR_ENTRY(item)) <= FS_MAXNAMLEN-2) {
data/gv-3.7.4/src/FileSel.c:1664:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((l=strlen(CURRENT_DIR)) + strlen(CURDIR_ENTRY(item)) <= FS_MAXNAMLEN-2) {
data/gv-3.7.4/src/FileSel.c:1879: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).
  d = md +strlen(md);
data/gv-3.7.4/src/Ghostview.c:538:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(tmp,gvw->ghostview.input_buffer_ptr,gvw->ghostview.buffer_bytes_left);
data/gv-3.7.4/src/Ghostview.c:630:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(gvw->ghostview.interpreter_output, buf, GV_BUFSIZ);
data/gv-3.7.4/src/Ghostview.c:645:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(gvw->ghostview.interpreter_error, buf, GV_BUFSIZ);
data/gv-3.7.4/src/Ghostview.c:1297: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).
		   (unsigned char *)buf, strlen(buf));
data/gv-3.7.4/src/Ghostview.c:1307: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).
		   (unsigned char *)buf, strlen(buf));
data/gv-3.7.4/src/Ghostview.c:1432: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).
	     filename = malloc( strlen(gvw->ghostview.filename) + 3);
data/gv-3.7.4/src/Vlist.c:198: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).
  vw->vlist.entries = (int)strlen(vw->vlist.vlist);
data/gv-3.7.4/src/Vlist.c:287: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).
    nvw->vlist.entries = (int)strlen(nvw->vlist.vlist);
data/gv-3.7.4/src/Vlist.c:339:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(s);
data/gv-3.7.4/src/Vlist.c:586:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(s);
data/gv-3.7.4/src/callbacks.c:132: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).
	insize = strlen(title);
data/gv-3.7.4/src/callbacks.c:144:4:  [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 (utf8title)
data/gv-3.7.4/src/callbacks.c:153:4:  [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 (utf8title)
data/gv-3.7.4/src/callbacks.c:179: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).
		tp.nitems = strlen (s);
data/gv-3.7.4/src/callbacks.c:206: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).
      s = XtMalloc((4+strlen(t)+1)*sizeof(char));
data/gv-3.7.4/src/callbacks.c:794: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).
    pathlen = strlen(path)+strlen(name)+strlen(ext);
data/gv-3.7.4/src/callbacks.c:794: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).
    pathlen = strlen(path)+strlen(name)+strlen(ext);
data/gv-3.7.4/src/callbacks.c:794:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pathlen = strlen(path)+strlen(name)+strlen(ext);
data/gv-3.7.4/src/dialog.c:303:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nw=	XmbTextEscapement( fontset, s, strlen(s));
data/gv-3.7.4/src/dialog.c:306:72:  [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).
      nw= ((font->max_bounds.width+font->min_bounds.width)*((Dimension)strlen(s))+1)/2;
data/gv-3.7.4/src/dialog.c:317:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    XtSetArg(args[n], XtNinsertPosition,strlen(s));	n++;
data/gv-3.7.4/src/dialog.c:342:8:  [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).
    l= strlen(s);
data/gv-3.7.4/src/dialog.c:344:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    else { strncpy(string,s,255); string[255]='\0'; }
data/gv-3.7.4/src/file.c:142:8:  [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(baseDirectory);
data/gv-3.7.4/src/file.c:159:8:  [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(tmpName)+strlen(tmpExt)>23) {
data/gv-3.7.4/src/file.c:159: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).
   if (strlen(tmpName)+strlen(tmpExt)>23) {
data/gv-3.7.4/src/file.c:160: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(tmpExt)>11) tmpExt[11] = '\0';     /* allow .ps_page_nnn */
data/gv-3.7.4/src/file.c:161: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(tmpName)+strlen(tmpExt)>23) tmpName[23-strlen(tmpExt)] = '\0';
data/gv-3.7.4/src/file.c:161: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 (strlen(tmpName)+strlen(tmpExt)>23) tmpName[23-strlen(tmpExt)] = '\0';
data/gv-3.7.4/src/file.c:161:57:  [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(tmpName)+strlen(tmpExt)>23) tmpName[23-strlen(tmpExt)] = '\0';
data/gv-3.7.4/src/file.c:175:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	 oldumask = umask(0077);
data/gv-3.7.4/src/file.c:177:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	 umask(oldumask);
data/gv-3.7.4/src/file.c:213: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).
         size_t pl = strlen(path);
data/gv-3.7.4/src/file.c:214: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).
         size_t hl = strlen(home);
data/gv-3.7.4/src/file.c:289:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  e = name+strlen(name);
data/gv-3.7.4/src/info.c:139: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).
    message_block.length = strlen(call_data);
data/gv-3.7.4/src/main.c:884:59:  [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 (pos) { width=WidthOfScreen(gv_screen)+atoi(pos+strlen(max_size_screen)); }
data/gv-3.7.4/src/main.c:890:61:  [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 (pos) { height=HeightOfScreen(gv_screen)+atoi(pos+strlen(max_size_screen)); }
data/gv-3.7.4/src/message.h:71: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 (__result)	{ len=strlen(__result); strcpy(indent,__result); }\
data/gv-3.7.4/src/misc.c:367: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).
         l = strlen(str) + strlen(name) + 1;
data/gv-3.7.4/src/misc.c:367: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).
         l = strlen(str) + strlen(name) + 1;
data/gv-3.7.4/src/misc.c:412: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).
  p = XtMalloc((strlen(name)+5)*sizeof(char));
data/gv-3.7.4/src/misc.c:473: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).
    l = strlen(error_close_fail) + strlen(name) + 1;
data/gv-3.7.4/src/misc.c:473: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).
    l = strlen(error_close_fail) + strlen(name) + 1;
data/gv-3.7.4/src/misc.c:999: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).
		maxlen = max(maxlen, (int)strlen(doc->pages[i].label));
data/gv-3.7.4/src/misc.c:1714: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).
    result = (char*) XtMalloc((2 * strlen (string) + 1) * sizeof(char));
data/gv-3.7.4/src/misc_private.c:94: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).
         int len = (int) strlen(text);
data/gv-3.7.4/src/misc_private.c:116: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).
		      x, y, text, (int)(strlen(text)));
data/gv-3.7.4/src/misc_private.c:122:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  	         x, y,(XChar2b*)text, (int)(strlen(text)));
data/gv-3.7.4/src/misc_private.c:126: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).
	  	       x, y, text, (int)(strlen(text)));
data/gv-3.7.4/src/miscmenu.c:127:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    else i=sscanf(c," %99s ",name);
data/gv-3.7.4/src/options.c:189: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).
  *argiP = XtMalloc((strlen(format)+strlen(name)+3)*sizeof(char));
data/gv-3.7.4/src/options.c:189:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  *argiP = XtMalloc((strlen(format)+strlen(name)+3)*sizeof(char));
data/gv-3.7.4/src/options.c:191:23:  [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.
  if (*format != '*') strcat(*argiP,".");
data/gv-3.7.4/src/options.c:193:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(*argiP,":");
data/gv-3.7.4/src/options.c:194: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).
  *argvP = XtMalloc((strlen(value)+1)*sizeof(char));
data/gv-3.7.4/src/options.c:217: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).
  d = md +strlen(md);
data/gv-3.7.4/src/options.c:243: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).
  d = md +strlen(md);
data/gv-3.7.4/src/options.c:263: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).
    multi = *lineP ? strlen(*lineP) : 0;
data/gv-3.7.4/src/options.c:264: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).
    *lineP = XtRealloc(*lineP,(multi+strlen(tmp)+1)*sizeof(char));
data/gv-3.7.4/src/options.c:301:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (i==(int)strlen(header)) i=24;
data/gv-3.7.4/src/options.c:302: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).
  line = XtMalloc((strlen(header) + strlen(value) + num_nl*3 + i + 2)*sizeof(char));
data/gv-3.7.4/src/options.c:302:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  line = XtMalloc((strlen(header) + strlen(value) + num_nl*3 + i + 2)*sizeof(char));
data/gv-3.7.4/src/options.c:310: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).
    l = strlen(line);
data/gv-3.7.4/src/options.c:312:20:  [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.
      if (l+8<=i) {strcat(line,"\t"); l= 8*(l/8)+8;}
data/gv-3.7.4/src/options.c:313:20:  [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.
      else        {strcat(line," "); l+=1;}
data/gv-3.7.4/src/options.c:320:2:  [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(line,"\n");
data/gv-3.7.4/src/options.c:325: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.
    else        strcat(line,"\n");
data/gv-3.7.4/src/options.c:388:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (argi[i][0] != '\0' && !strncmp(line,argi[i],strlen(argi[i]))) {
data/gv-3.7.4/src/process.c:409: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(label);
data/gv-3.7.4/src/process.c:414:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(tmp[(int)len-progress]),label,(size_t)progress);
data/gv-3.7.4/src/process.c:442:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(message);
data/gv-3.7.4/src/process.c:444: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).
      l = l + strlen(pd->name) + 1;
data/gv-3.7.4/src/process.c:446:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(message,"\n");
data/gv-3.7.4/src/ps.c:444:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      old_umask = umask(0077);
data/gv-3.7.4/src/ps.c:474:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(old_umask);
data/gv-3.7.4/src/ps.c:568:4:  [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(cmd,cmd_scan_pdf,(pdfpos-cmd_scan_pdf));
data/gv-3.7.4/src/ps.c:570:4:  [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(cmd,pdfpos+4,(dscpos-pdfpos-4));
data/gv-3.7.4/src/ps.c:574:4:  [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(cmd,cmd_scan_pdf,(dscpos-cmd_scan_pdf));
data/gv-3.7.4/src/ps.c:576:4:  [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(cmd,dscpos+4,(pdfpos-dscpos-4));
data/gv-3.7.4/src/ps.c:597:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      old_umask = umask(0077);
data/gv-3.7.4/src/ps.c:676:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask (old_umask);
data/gv-3.7.4/src/ps.c:836: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).
			doc->media[0].name = (char *)malloc(strlen(dmp->name)+1);
data/gv-3.7.4/src/ps.c:868: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).
				(char *)malloc(strlen(dmp->name)+1);
data/gv-3.7.4/src/ps.c:1406:6:  [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(line) == 0) {ENDMESSAGE(gettextline) return NULL;}
data/gv-3.7.4/src/ps.c:1407: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).
	cp = (char *) malloc(strlen(line));
data/gv-3.7.4/src/ps.c:1409:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cp, line, strlen(line)-1);
data/gv-3.7.4/src/ps.c:1409: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).
	strncpy(cp, line, strlen(line)-1);
data/gv-3.7.4/src/ps.c:1410:5:  [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).
	cp[strlen(line)-1] = '\0';
data/gv-3.7.4/src/ps.c:1507:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!quoted && strlen(text) == 0) {ENDMESSAGE(ps_gettext) return NULL;}
data/gv-3.7.4/src/ps.c:1508: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).
    cp = (char *) malloc(strlen(text)+1);
data/gv-3.7.4/src/ps.c:1697:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         INFMESSAGE(failed to read more chars)
data/gv-3.7.4/src/ps.c:1904: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).
      comment_length = strlen(comment);
data/gv-3.7.4/src/ps.c:1915:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         char *cp = (char *) malloc(strlen(line)+1);
data/gv-3.7.4/src/resource.c:159: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).
  rpath = XtMalloc (strlen (GV_LIBDIR) + strlen ("/gv_system.ad") + 1);
data/gv-3.7.4/src/resource.c:159:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rpath = XtMalloc (strlen (GV_LIBDIR) + strlen ("/gv_system.ad") + 1);
data/gv-3.7.4/src/resource.c:235:6:  [1] (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 character.
     strcpy(locale3, "C");
data/gv-3.7.4/src/resource.c:471:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_spartan.dat") + 1);
data/gv-3.7.4/src/resource.c:471: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).
	XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_spartan.dat") + 1);
data/gv-3.7.4/src/resource.c:481:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_widgetless.dat") + 1);
data/gv-3.7.4/src/resource.c:481: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).
	XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_widgetless.dat") + 1);
data/gv-3.7.4/src/save.c:123: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).
   m = (strlen(p)+(n>0?n:1)*strlen(print_quoted_filename)+5)*sizeof(char);
data/gv-3.7.4/src/save.c:123: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).
   m = (strlen(p)+(n>0?n:1)*strlen(print_quoted_filename)+5)*sizeof(char);
data/gv-3.7.4/src/save.c:144: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).
     m = (strlen(printfail)+strlen(c)+1)*sizeof(char);
data/gv-3.7.4/src/save.c:144: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).
     m = (strlen(printfail)+strlen(c)+1)*sizeof(char);
data/gv-3.7.4/src/save.c:216:8:  [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(command,gv_gs_cmd_conv_pdf,(pdfpos-gv_gs_cmd_conv_pdf));
data/gv-3.7.4/src/save.c:218:8:  [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(command,pdfpos+4,(pspos-pdfpos-4));
data/gv-3.7.4/src/save.c:222:8:  [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(command,gv_gs_cmd_conv_pdf,(pspos-gv_gs_cmd_conv_pdf));
data/gv-3.7.4/src/save.c:224:8:  [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(command,pspos+3,(pdfpos-pspos-3));
data/gv-3.7.4/src/save.c:298:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         while ((bytes = read(fileno(src_file),buf,BUFSIZ)))
data/gv-3.7.4/src/secscanf.c:287:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(buf, string, size);
data/gv-3.7.4/src/setenv.c:33:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *tmp = malloc(strlen(name)+strlen(value)+2);
data/gv-3.7.4/src/setenv.c:33: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).
   char *tmp = malloc(strlen(name)+strlen(value)+2);
data/gv-3.7.4/src/setenv.c:35:4:  [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(tmp, "=");
data/gv-3.7.4/src/setenv.c:54:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (name);
data/gv-3.7.4/src/widgets_misc.c:251:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    XtSetArg(args[0], XtNinsertPosition, strlen(value));

ANALYSIS SUMMARY:

Hits = 618
Lines analyzed = 44817 in approximately 1.30 seconds (34605 lines/second)
Physical Source Lines of Code (SLOC) = 31758
Hits@level = [0] 202 [1] 174 [2] 208 [3]  44 [4] 169 [5]  23
Hits@level+ = [0+] 820 [1+] 618 [2+] 444 [3+] 236 [4+] 192 [5+]  23
Hits/KSLOC@level+ = [0+] 25.8203 [1+] 19.4597 [2+] 13.9807 [3+] 7.4312 [4+] 6.04572 [5+] 0.724227
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.