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/icon-9.4.3/ipl/packs/loadfunc/ddump.c
Examining data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c
Examining data/icon-9.4.3/ipl/packs/loadfunc/argdump.c
Examining data/icon-9.4.3/ipl/cfuncs/internal.c
Examining data/icon-9.4.3/ipl/cfuncs/bitcount.c
Examining data/icon-9.4.3/ipl/cfuncs/osf.c
Examining data/icon-9.4.3/ipl/cfuncs/ppm.c
Examining data/icon-9.4.3/ipl/cfuncs/files.c
Examining data/icon-9.4.3/ipl/cfuncs/lgconv.c
Examining data/icon-9.4.3/ipl/cfuncs/ilists.c
Examining data/icon-9.4.3/ipl/cfuncs/pack.c
Examining data/icon-9.4.3/ipl/cfuncs/process.c
Examining data/icon-9.4.3/ipl/cfuncs/tconnect.c
Examining data/icon-9.4.3/ipl/cfuncs/icall.h
Examining data/icon-9.4.3/ipl/cfuncs/fpoll.c
Examining data/icon-9.4.3/src/h/rt.h
Examining data/icon-9.4.3/src/h/kdefs.h
Examining data/icon-9.4.3/src/h/parserr.h
Examining data/icon-9.4.3/src/h/esctab.h
Examining data/icon-9.4.3/src/h/sys.h
Examining data/icon-9.4.3/src/h/rstructs.h
Examining data/icon-9.4.3/src/h/fdefs.h
Examining data/icon-9.4.3/src/h/cstructs.h
Examining data/icon-9.4.3/src/h/grttin.h
Examining data/icon-9.4.3/src/h/config.h
Examining data/icon-9.4.3/src/h/lexdef.h
Examining data/icon-9.4.3/src/h/mswin.h
Examining data/icon-9.4.3/src/h/typedefs.h
Examining data/icon-9.4.3/src/h/grammar.h
Examining data/icon-9.4.3/src/h/rexterns.h
Examining data/icon-9.4.3/src/h/odefs.h
Examining data/icon-9.4.3/src/h/gsupport.h
Examining data/icon-9.4.3/src/h/opdefs.h
Examining data/icon-9.4.3/src/h/mproto.h
Examining data/icon-9.4.3/src/h/rmacros.h
Examining data/icon-9.4.3/src/h/xwin.h
Examining data/icon-9.4.3/src/h/rproto.h
Examining data/icon-9.4.3/src/h/header.h
Examining data/icon-9.4.3/src/h/version.h
Examining data/icon-9.4.3/src/h/graphics.h
Examining data/icon-9.4.3/src/h/cpuconf.h
Examining data/icon-9.4.3/src/h/features.h
Examining data/icon-9.4.3/src/h/monitor.h
Examining data/icon-9.4.3/src/rtt/rtt.h
Examining data/icon-9.4.3/src/rtt/rttparse.c
Examining data/icon-9.4.3/src/rtt/rttdb.c
Examining data/icon-9.4.3/src/rtt/rttilc.c
Examining data/icon-9.4.3/src/rtt/rttlex.c
Examining data/icon-9.4.3/src/rtt/rttout.c
Examining data/icon-9.4.3/src/rtt/rttinlin.c
Examining data/icon-9.4.3/src/rtt/rttsym.c
Examining data/icon-9.4.3/src/rtt/rttproto.h
Examining data/icon-9.4.3/src/rtt/ltoken.h
Examining data/icon-9.4.3/src/rtt/rtt1.h
Examining data/icon-9.4.3/src/rtt/rttmain.c
Examining data/icon-9.4.3/src/rtt/rttmisc.c
Examining data/icon-9.4.3/src/rtt/rttnode.c
Examining data/icon-9.4.3/src/xpm/XpmCrDataFI.c
Examining data/icon-9.4.3/src/xpm/XpmCrDataFP.c
Examining data/icon-9.4.3/src/xpm/rgb.c
Examining data/icon-9.4.3/src/xpm/xpm.h
Examining data/icon-9.4.3/src/xpm/XpmRdFToI.c
Examining data/icon-9.4.3/src/xpm/XpmRdFToP.c
Examining data/icon-9.4.3/src/xpm/XpmWrFFrI.c
Examining data/icon-9.4.3/src/xpm/XpmWrFFrP.c
Examining data/icon-9.4.3/src/xpm/XpmCrIFData.c
Examining data/icon-9.4.3/src/xpm/data.c
Examining data/icon-9.4.3/src/xpm/hashtable.c
Examining data/icon-9.4.3/src/xpm/misc.c
Examining data/icon-9.4.3/src/xpm/XpmRdFToData.c
Examining data/icon-9.4.3/src/xpm/scan.c
Examining data/icon-9.4.3/src/xpm/sxpm.c
Examining data/icon-9.4.3/src/xpm/XpmCrPFData.c
Examining data/icon-9.4.3/src/xpm/converters/xpmtoppm.c
Examining data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c
Examining data/icon-9.4.3/src/xpm/xpmP.h
Examining data/icon-9.4.3/src/xpm/parse.c
Examining data/icon-9.4.3/src/xpm/create.c
Examining data/icon-9.4.3/src/xpm/XpmWrFFrData.c
Examining data/icon-9.4.3/src/iconc/cmain.c
Examining data/icon-9.4.3/src/iconc/dbase.c
Examining data/icon-9.4.3/src/iconc/ivalues.c
Examining data/icon-9.4.3/src/iconc/ctree.c
Examining data/icon-9.4.3/src/iconc/ctree.h
Examining data/icon-9.4.3/src/iconc/ctoken.h
Examining data/icon-9.4.3/src/iconc/ctrans.h
Examining data/icon-9.4.3/src/iconc/typinfer.c
Examining data/icon-9.4.3/src/iconc/chkinv.c
Examining data/icon-9.4.3/src/iconc/clex.c
Examining data/icon-9.4.3/src/iconc/cmem.c
Examining data/icon-9.4.3/src/iconc/incheck.c
Examining data/icon-9.4.3/src/iconc/csym.c
Examining data/icon-9.4.3/src/iconc/csym.h
Examining data/icon-9.4.3/src/iconc/cparse.c
Examining data/icon-9.4.3/src/iconc/lifetime.c
Examining data/icon-9.4.3/src/iconc/types.c
Examining data/icon-9.4.3/src/iconc/cproto.h
Examining data/icon-9.4.3/src/iconc/cgrammar.c
Examining data/icon-9.4.3/src/iconc/codegen.c
Examining data/icon-9.4.3/src/iconc/fixcode.c
Examining data/icon-9.4.3/src/iconc/ccode.c
Examining data/icon-9.4.3/src/iconc/ccode.h
Examining data/icon-9.4.3/src/iconc/ccomp.c
Examining data/icon-9.4.3/src/iconc/inline.c
Examining data/icon-9.4.3/src/iconc/cglobals.h
Examining data/icon-9.4.3/src/iconc/ctrans.c
Examining data/icon-9.4.3/src/icont/tgrammar.c
Examining data/icon-9.4.3/src/icont/ixhdr.c
Examining data/icon-9.4.3/src/icont/lcode.c
Examining data/icon-9.4.3/src/icont/tglobals.c
Examining data/icon-9.4.3/src/icont/tglobals.h
Examining data/icon-9.4.3/src/icont/lfile.h
Examining data/icon-9.4.3/src/icont/lglob.c
Examining data/icon-9.4.3/src/icont/tcode.c
Examining data/icon-9.4.3/src/icont/lnklist.c
Examining data/icon-9.4.3/src/icont/ttoken.h
Examining data/icon-9.4.3/src/icont/trans.c
Examining data/icon-9.4.3/src/icont/link.c
Examining data/icon-9.4.3/src/icont/link.h
Examining data/icon-9.4.3/src/icont/llex.c
Examining data/icon-9.4.3/src/icont/lmem.c
Examining data/icon-9.4.3/src/icont/lsym.c
Examining data/icon-9.4.3/src/icont/keyword.h
Examining data/icon-9.4.3/src/icont/opcode.c
Examining data/icon-9.4.3/src/icont/opcode.h
Examining data/icon-9.4.3/src/icont/tlex.c
Examining data/icon-9.4.3/src/icont/tmem.c
Examining data/icon-9.4.3/src/icont/tree.c
Examining data/icon-9.4.3/src/icont/tree.h
Examining data/icon-9.4.3/src/icont/tsym.c
Examining data/icon-9.4.3/src/icont/tsym.h
Examining data/icon-9.4.3/src/icont/util.c
Examining data/icon-9.4.3/src/icont/newhdr.c
Examining data/icon-9.4.3/src/icont/tparse.c
Examining data/icon-9.4.3/src/icont/tproto.h
Examining data/icon-9.4.3/src/icont/tunix.c
Examining data/icon-9.4.3/src/common/doincl.c
Examining data/icon-9.4.3/src/common/icontype.h
Examining data/icon-9.4.3/src/common/patchstr.c
Examining data/icon-9.4.3/src/common/ipp.c
Examining data/icon-9.4.3/src/common/yylex.h
Examining data/icon-9.4.3/src/common/error.h
Examining data/icon-9.4.3/src/common/xwindow.c
Examining data/icon-9.4.3/src/common/getopt.c
Examining data/icon-9.4.3/src/common/filepart.c
Examining data/icon-9.4.3/src/common/lextab.h
Examining data/icon-9.4.3/src/common/munix.c
Examining data/icon-9.4.3/src/common/long.c
Examining data/icon-9.4.3/src/common/dlrgint.c
Examining data/icon-9.4.3/src/common/identify.c
Examining data/icon-9.4.3/src/common/rtdb.c
Examining data/icon-9.4.3/src/common/time.c
Examining data/icon-9.4.3/src/common/alloc.c
Examining data/icon-9.4.3/src/common/yacctok.h
Examining data/icon-9.4.3/src/common/infer.c
Examining data/icon-9.4.3/src/common/literals.c
Examining data/icon-9.4.3/src/common/strtbl.c
Examining data/icon-9.4.3/src/wincap/dibapi.h
Examining data/icon-9.4.3/src/wincap/errors.c
Examining data/icon-9.4.3/src/wincap/errors.h
Examining data/icon-9.4.3/src/wincap/copy.c
Examining data/icon-9.4.3/src/wincap/file.c
Examining data/icon-9.4.3/src/wincap/dibutil.c
Examining data/icon-9.4.3/src/wincap/dibutil.h
Examining data/icon-9.4.3/src/preproc/ptoken.h
Examining data/icon-9.4.3/src/preproc/evaluate.c
Examining data/icon-9.4.3/src/preproc/macro.c
Examining data/icon-9.4.3/src/preproc/bldtok.c
Examining data/icon-9.4.3/src/preproc/files.c
Examining data/icon-9.4.3/src/preproc/preproc.c
Examining data/icon-9.4.3/src/preproc/preproc.h
Examining data/icon-9.4.3/src/preproc/gettok.c
Examining data/icon-9.4.3/src/preproc/pchars.c
Examining data/icon-9.4.3/src/preproc/pproto.h
Examining data/icon-9.4.3/src/preproc/perr.c
Examining data/icon-9.4.3/src/preproc/pmem.c
Examining data/icon-9.4.3/src/preproc/pout.c
Examining data/icon-9.4.3/src/preproc/pinit.c
Examining data/icon-9.4.3/src/preproc/pmain.c
Examining data/icon-9.4.3/config/aix/define.h
Examining data/icon-9.4.3/config/bsd/vax.c
Examining data/icon-9.4.3/config/bsd/sparc.c
Examining data/icon-9.4.3/config/bsd/i386.c
Examining data/icon-9.4.3/config/bsd/m68k.c
Examining data/icon-9.4.3/config/bsd/define.h
Examining data/icon-9.4.3/config/hpux/define.h
Examining data/icon-9.4.3/config/hurd/define.h
Examining data/icon-9.4.3/config/hurd/rswitch.c
Examining data/icon-9.4.3/config/irix/define.h
Examining data/icon-9.4.3/config/linux/sparc.c
Examining data/icon-9.4.3/config/linux/define.h
Examining data/icon-9.4.3/config/posix/define.h
Examining data/icon-9.4.3/config/tru64/define.h
Examining data/icon-9.4.3/config/solaris/sparc.c
Examining data/icon-9.4.3/config/solaris/i386.c
Examining data/icon-9.4.3/config/solaris/define.h
Examining data/icon-9.4.3/config/cygwin/define.h
Examining data/icon-9.4.3/config/pthreads.c
Examining data/icon-9.4.3/config/solaris_sunc/sparc.c
Examining data/icon-9.4.3/config/solaris_sunc/define.h
Examining data/icon-9.4.3/config/macintosh/define.h
Examining data/icon-9.4.3/config/gnu/define.h
Examining data/icon-9.4.3/config/gnu/rswitch.c

FINAL RESULTS:

data/icon-9.4.3/ipl/cfuncs/files.c:40:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
   if (chmod(StringVal(argv[1]), IntegerVal(argv[2])) == 0)
data/icon-9.4.3/src/common/munix.c:157:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
      if ((n = readlink(buf, tbuf, sizeof(tbuf) - 1)) <= 0)
data/icon-9.4.3/src/icont/link.c:226:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      chmod(fname,m);			/* change file mode */
data/icon-9.4.3/ipl/cfuncs/ppm.c:367:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(rv, "%d,%s,", hdr.w, pname);
data/icon-9.4.3/ipl/cfuncs/ppm.c:416: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((void *)d.vword, buf);
data/icon-9.4.3/ipl/cfuncs/tconnect.c:94:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(filename, "%s:%d", hostname, port);
data/icon-9.4.3/src/common/alloc.c:26: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).
   return strcpy(s1, s);
data/icon-9.4.3/src/common/doincl.c:62:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
         if (sscanf(line, " # include \"%s\"", newname) == 1) {
data/icon-9.4.3/src/common/error.h:167: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,msg,arg);
data/icon-9.4.3/src/common/filepart.c:153: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(fp.ext, p);
data/icon-9.4.3/src/common/filepart.c:170:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(dest,"%s%s%s",fp.dir,fp.name,fp.ext);
data/icon-9.4.3/src/common/identify.c:22: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(sbuf, ctime(&ct));
data/icon-9.4.3/src/common/ipp.c:208:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "m4 %s", filename);
data/icon-9.4.3/src/common/ipp.c:209:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   f = popen(s, "r");
data/icon-9.4.3/src/common/ipp.c:478:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tbuf, "#line %ld \"%s\"\n", lno, fname);
data/icon-9.4.3/src/common/ipp.c:963: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(d->s, name);
data/icon-9.4.3/src/common/ipp.c:964: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(d->s + nlen, val);
data/icon-9.4.3/src/common/munix.c:43: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(baseloc, buf);
data/icon-9.4.3/src/common/munix.c:46: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(buf, baseloc);		/* start with base location */
data/icon-9.4.3/src/common/munix.c:47: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(buf, mod);			/* append adjustment */
data/icon-9.4.3/src/common/munix.c:71: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(buf, name);
data/icon-9.4.3/src/common/munix.c:128: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(buf + plen + 1, name);
data/icon-9.4.3/src/common/munix.c:129:11:  [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(buf, X_OK) == 0) {
data/icon-9.4.3/src/common/munix.c:154: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(buf, name);
data/icon-9.4.3/src/common/munix.c:163:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf, tbuf);
data/icon-9.4.3/src/common/munix.c:174:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(s, tbuf);
data/icon-9.4.3/src/common/rtdb.c:85:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg_buf, "found version %s, %s requires version %s",
data/icon-9.4.3/src/h/fdefs.h:77:8:  [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.
FncDef(system,1)
data/icon-9.4.3/src/iconc/ccode.c:895:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sbuf, "signal = R%s_%s(", rec->prefix, rec->name);
data/icon-9.4.3/src/iconc/ccode.c:899:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sbuf, "R%s_%s(", rec->prefix, rec->name);
data/icon-9.4.3/src/iconc/ccode.c:1513:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(sbuf, "%c%c%c_%s", impl->oper_typ, impl->prefix[0], impl->prefix[1],
data/icon-9.4.3/src/iconc/ccode.c:3425:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(str, "\"%s\"/*Z*/", cur->csym->image);
data/icon-9.4.3/src/iconc/ccode.c:4429:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sbuf, "end %s", impl->name);
data/icon-9.4.3/src/iconc/ccode.c:4455:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sbuf, "end %s", impl->name);
data/icon-9.4.3/src/iconc/ccode.c:4680:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(sbuf, "P%s_%s", proc->prefix, proc->name);
data/icon-9.4.3/src/iconc/ccomp.c:86: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(buf, c_comp);
data/icon-9.4.3/src/iconc/ccomp.c:89: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(s, c_opts);
data/icon-9.4.3/src/iconc/ccomp.c:92: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(s, ExeFlag);
data/icon-9.4.3/src/iconc/ccomp.c:95: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(s, exename);
data/icon-9.4.3/src/iconc/ccomp.c:98: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(s, srcname);
data/icon-9.4.3/src/iconc/ccomp.c:102: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(s, dlrgint);
data/icon-9.4.3/src/iconc/ccomp.c:107: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(s, l->libname);
data/icon-9.4.3/src/iconc/ccomp.c:113: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, refpath);
data/icon-9.4.3/src/iconc/ccomp.c:115: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, ICONC_XLIB);
data/icon-9.4.3/src/iconc/ccomp.c:119: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(s, LinkLibs);
data/icon-9.4.3/src/iconc/ccomp.c:121:8:  [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(buf) != 0)
data/icon-9.4.3/src/iconc/ccomp.c:125: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(s, exename);
data/icon-9.4.3/src/iconc/ccomp.c:126:4:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   system(buf);
data/icon-9.4.3/src/iconc/cmain.c:160:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(s, "%s %s", c_opts, optarg);
data/icon-9.4.3/src/iconc/cmain.c:214: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(db_path, refpath);
data/icon-9.4.3/src/iconc/cmain.c:215: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(db_path, db_name);
data/icon-9.4.3/src/iconc/cmain.c:279: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(incl_path, refpath);
data/icon-9.4.3/src/iconc/cmain.c:280: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(incl_path, incl_file);
data/icon-9.4.3/src/iconc/cmain.c:355:4:  [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(ofile,argv);
data/icon-9.4.3/src/iconc/cparse.c:1291:13:  [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.
						(void)printf( _POP_, *yy_ps,
data/icon-9.4.3/src/iconc/inline.c:492:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(oper_nm, "%c%c%c%c_%s", impl->oper_typ, impl->prefix[0],
data/icon-9.4.3/src/iconc/inline.c:1489:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(sbuf, "%s: %s", s, impl->name);
data/icon-9.4.3/src/iconc/typinfer.c:279:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         FILE *popen();
data/icon-9.4.3/src/iconc/typinfer.c:281:20:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         trcfile = popen(trcname+1, "w");
data/icon-9.4.3/src/icont/ixhdr.c:51:7:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execv(argv[0], argv);		/* exec file specified by $ICONX */
data/icon-9.4.3/src/icont/ixhdr.c:56:4:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   execv(argv[0], argv);  /* try iconx in same dir; just continue if absent */
data/icon-9.4.3/src/icont/ixhdr.c:60:7:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execv(xcmd, argv);
data/icon-9.4.3/src/icont/lcode.c:467: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(icnname, &lsspace[fnmfree->fname]);
data/icon-9.4.3/src/icont/lcode.c:1324: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((char *)hdr.config,IVersion);
data/icon-9.4.3/src/icont/link.c:121:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(script, "%s\n%s%-72s\n%s\n\n%s\n%s\n%s\n%s\n\n%s\n",
data/icon-9.4.3/src/icont/link.c:130: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(script, "        \n\f\n" + ((int)(strlen(script) + 4) % 8));
data/icon-9.4.3/src/icont/newhdr.c:31:7:  [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, Usage, argv[0]);
data/icon-9.4.3/src/icont/newhdr.c:39:7:  [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, Usage, argv[0]);
data/icon-9.4.3/src/icont/tparse.c:1295:13:  [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.
						(void)printf( _POP_, *yy_ps,
data/icon-9.4.3/src/icont/tunix.c:261:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buf, "ICONX=%s", iconxloc);
data/icon-9.4.3/src/icont/tunix.c:267:4:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   execv(ofile, argv);
data/icon-9.4.3/src/icont/tunix.c:299: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(buf, s);
data/icon-9.4.3/src/icont/tunix.c:373:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buf, "ICODE_TEMP=%s:%s", icode, progname);
data/icon-9.4.3/src/preproc/files.c:63:30:  [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.
void include(trigger, fname, system)
data/icon-9.4.3/src/preproc/files.c:66:5:  [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.
int system;
data/icon-9.4.3/src/preproc/files.c:83:12:  [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) {
data/icon-9.4.3/src/preproc/files.c:203: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(s1, s);
data/icon-9.4.3/src/rtt/rttmain.c:174: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(in_header, refpath);
data/icon-9.4.3/src/rtt/rttmain.c:175: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(in_header, grttin_path);
data/icon-9.4.3/src/rtt/rttmain.c:177: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(inclname, refpath);
data/icon-9.4.3/src/rtt/rttmain.c:178: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(inclname, rt_path);
data/icon-9.4.3/src/rtt/rttout.c:53:74:  [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.
static void tnd_var       (struct sym_entry *sym, char *strct_ptr, char *access, int indent);
data/icon-9.4.3/src/rtt/rttout.c:270:37:  [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.
static void tnd_var(sym, strct_ptr, access, indent)
data/icon-9.4.3/src/rtt/rttout.c:273:7:  [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.
char *access;
data/icon-9.4.3/src/rtt/rttout.c:313:12:  [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.
   prt_str(access, indent);  /* access the vword for tended pointers */
data/icon-9.4.3/src/rtt/rttout.c:3766:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(il->u[1].s, "\"%s\"", t->image);
data/icon-9.4.3/src/rtt/rttout.c:3771:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(il->u[1].s, "'%s'", t->image);
data/icon-9.4.3/src/rtt/rttparse.c:1921:13:  [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.
						(void)printf( _POP_, *yy_ps,
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:147: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(*header, buf);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:197: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(*sptr, *sptr2);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:243:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "\t%s %s", xpmColorKeys[key - 1], s2);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:248:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(s, "\tc %s", TRANSPARENT_COLOR);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:255: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(s, buf);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:305:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s, "\t%s %s", xpmColorKeys[key - 1], s2);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:317:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(s, "\tc %s", colorname);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:328: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(s, buf);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:402:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(*dataptr, "XPMEXT %s", ext->name);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:409: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(*dataptr, *sptr);
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:119:26:  [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 (argn == argc || sscanf(argv[argn], "%s", out_name) != 1)
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:125:26:  [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 (argn == argc || sscanf(argv[argn], "%s", rgb_fname) != 1)
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:144: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(out_name, argv[argn]);
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:283: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(rgbname, name);
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:455: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(str, rgbn[j].name);
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:474:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(str, mval == 0x000F ? "#%X%X%X" :
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:142:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "/* %s */", str1) == 1
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:223: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(curbuf, str2);		/* append buf */
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:277:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    if (sscanf(line, "#define %s %d", str1, &v) == 2) {
data/icon-9.4.3/src/xpm/data.c:315:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf, "uncompress -c %s", filename);
data/icon-9.4.3/src/xpm/data.c:316:33:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    if (!(mdata->stream.file = popen(buf, "r")))
data/icon-9.4.3/src/xpm/data.c:323: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(compressfile, filename);
data/icon-9.4.3/src/xpm/data.c:326:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "uncompress -c %s", compressfile);
data/icon-9.4.3/src/xpm/data.c:327:30:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (!(mdata->stream.file = popen(buf, "r"))) {
data/icon-9.4.3/src/xpm/data.c:368:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf, "compress > %s", filename);
data/icon-9.4.3/src/xpm/data.c:369:33:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    if (!(mdata->stream.file = popen(buf, "w")))
data/icon-9.4.3/src/xpm/parse.c:281: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(s, curbuf);
data/icon-9.4.3/src/xpm/parse.c:294: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(curbuf, buf);	/* append buf */
data/icon-9.4.3/src/xpm/parse.c:307: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(s, curbuf);
data/icon-9.4.3/src/xpm/sxpm.c:430:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(xString, "Sxpm: %s\0", input);
data/icon-9.4.3/src/xpm/xpmP.h:30:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern FILE *popen();
data/icon-9.4.3/src/common/filepart.c:212:23:  [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 (!pathfind(buf, getenv("PATH"), fname, NULL))
data/icon-9.4.3/src/common/getopt.c:23:5:  [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.
int getopt(int nargc, char *const nargv[], const char *ostr)
data/icon-9.4.3/src/common/munix.c:101: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.
   path = getenv("PATH");
data/icon-9.4.3/src/h/fdefs.h:32:8:  [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.
FncDef(getenv,1)
data/icon-9.4.3/src/h/kdefs.h:53:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
KDef(random,K_RANDOM)
data/icon-9.4.3/src/h/mproto.h:53:8:  [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.
   int	getopt		(int argc, char * const argv[], const char *optstring);
data/icon-9.4.3/src/h/odefs.h:42:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
OpDef(random,1,"?",-1)
data/icon-9.4.3/src/iconc/cmain.c:72:16:  [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.
   while ((c = getopt(argc,argv,"+C:ELS:Tcf:mn:o:p:r:stuv:x")) != EOF)
data/icon-9.4.3/src/iconc/cmain.c:194:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   db_lst = getenv("DBLIST");
data/icon-9.4.3/src/iconc/ctrans.c:39: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.
   lpath = getenv("LPATH");	/* remains null if unspecified */
data/icon-9.4.3/src/iconc/typinfer.c:274: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.
   trcname = getenv("TYPTRC");
data/icon-9.4.3/src/icont/ixhdr.c:50:19:  [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 ((argv[0] = getenv("ICONX")) != NULL && argv[0][0] != '\0') {
data/icon-9.4.3/src/icont/tunix.c:64:16:  [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.
   while ((c = getopt(argc, argv, "+ce:f:o:stuv:ELNP:VX:")) != EOF)
data/icon-9.4.3/src/icont/tunix.c:294:8:  [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(envname);
data/icon-9.4.3/src/icont/tunix.c:328:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand(time(NULL));
data/icon-9.4.3/src/preproc/files.c:163:18:  [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.
      incl_var = getenv("C_INCLUDE_PATH");
data/icon-9.4.3/src/preproc/pmain.c:52:16:  [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.
   while ((c = getopt(argc, argv, ostr)) != EOF)
data/icon-9.4.3/src/rtt/rttmain.c:121:16:  [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.
   while ((c = getopt(argc, argv, ostr)) != EOF)
data/icon-9.4.3/config/pthreads.c:121: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 name[50];
data/icon-9.4.3/config/pthreads.c:122:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(name, "i%ld.sem", (long)getpid());
data/icon-9.4.3/ipl/cfuncs/lgconv.c:66: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 tbuf[25], *o, *p;
data/icon-9.4.3/ipl/cfuncs/lgconv.c:75:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tbuf, "%ld", IntegerVal(argv[1]));
data/icon-9.4.3/ipl/cfuncs/pack.c:77: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.
   unsigned char *s, obuf[MAX_WIDTH];
data/icon-9.4.3/ipl/cfuncs/pack.c:78:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   union { float f; double d; unsigned char buf[MAX_WIDTH]; } u;
data/icon-9.4.3/ipl/cfuncs/pack.c:160:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   union { float f; double d; unsigned char buf[MAX_WIDTH]; } u;
data/icon-9.4.3/ipl/cfuncs/pack.c:166: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.
   s = (unsigned char *)StringAddr(argv[1]);
data/icon-9.4.3/ipl/cfuncs/pack.c:186:10:  [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(u.buf, s, n);
data/icon-9.4.3/ipl/cfuncs/ppm.c:217:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   prev = (unsigned char *) a[-1];
data/icon-9.4.3/ipl/cfuncs/ppm.c:218:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   curr = (unsigned char *) a[0];
data/icon-9.4.3/ipl/cfuncs/ppm.c:219:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   next = (unsigned char *) a[1];
data/icon-9.4.3/ipl/cfuncs/ppm.c:270:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   prev = (unsigned char *) a[-1];
data/icon-9.4.3/ipl/cfuncs/ppm.c:271:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   curr = (unsigned char *) a[0];
data/icon-9.4.3/ipl/cfuncs/ppm.c:272:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   next = (unsigned char *) a[1];
data/icon-9.4.3/ipl/cfuncs/ppm.c:305:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char dfactor[MSIZE] = {
data/icon-9.4.3/ipl/cfuncs/ppm.c:409: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[32];
data/icon-9.4.3/ipl/cfuncs/ppm.c:412: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, "P6\n%d %d\n%d\n", w, h, max);
data/icon-9.4.3/ipl/cfuncs/ppm.c:570:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(dst, src, 3 * w);
data/icon-9.4.3/ipl/cfuncs/tconnect.c:50: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 *hostname, filename[1000];
data/icon-9.4.3/ipl/cfuncs/tconnect.c:76: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(&sin.sin_addr, h->h_addr, sizeof(struct in_addr));
data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c:34: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 hbuf[20];			/* image header buffer */
data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c:41: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.
   static char map[256];		/* mapping from one char to next */
data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c:93:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(old - w, old + n - w, w);	/* dup last row first first */
data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c:94:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(old + n, old, w);		/* dup first row beyond last */
data/icon-9.4.3/ipl/packs/loadfunc/cspgen.c:99:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(ibuf, hbuf, hlen);
data/icon-9.4.3/src/common/doincl.c:30: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).
      if ((outfile = fopen(argv[2], "w")) != NULL) {
data/icon-9.4.3/src/common/doincl.c:56: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 line[MAXLINE], newname[MAXLINE], *p;
data/icon-9.4.3/src/common/doincl.c:60:13:  [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 ((f = fopen(fname, "r")) != NULL) {
data/icon-9.4.3/src/common/filepart.c:42: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 pbuf[MaxPath];
data/icon-9.4.3/src/common/filepart.c:106:13:  [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 ((f = fopen(buf, "r")) != NULL) {
data/icon-9.4.3/src/common/filepart.c:121: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.
   static char buf[MaxPath+2];
data/icon-9.4.3/src/common/filepart.c:127: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 posix_s[_POSIX_PATH_MAX + 1];
data/icon-9.4.3/src/common/filepart.c:202: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[MaxPath];
data/icon-9.4.3/src/common/filepart.c:208: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).
         return fopen(fname, mode);
data/icon-9.4.3/src/common/filepart.c:215:11:  [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).
   return fopen(buf, mode);
data/icon-9.4.3/src/common/identify.c:16: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.
   static char sbuf[26];
data/icon-9.4.3/src/common/ipp.c:57: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 s[1];				/* name then value, as needed, no \0 */
data/icon-9.4.3/src/common/ipp.c:184:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      f = fopen(fname, "r");
data/icon-9.4.3/src/common/ipp.c:476: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.
   static char tbuf[200];
data/icon-9.4.3/src/common/ipp.c:606: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 fullpath[MaxPath];
data/icon-9.4.3/src/common/munix.c:27: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.
   static char baseloc[MaxPath];
data/icon-9.4.3/src/common/munix.c:28: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[MaxPath];
data/icon-9.4.3/src/common/munix.c:33: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 posix_prog[_POSIX_PATH_MAX + 1];
data/icon-9.4.3/src/common/munix.c:83: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(s + 1, buf + len - n, n);
data/icon-9.4.3/src/common/munix.c:126: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(buf, next, plen);
data/icon-9.4.3/src/common/munix.c:152: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 *s, tbuf[MaxPath];
data/icon-9.4.3/src/common/munix.c:236:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, "../", 3);	/* cannot trim, so must keep ".." */
data/icon-9.4.3/src/common/patchstr.c:71: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[MAXLEN+2];
data/icon-9.4.3/src/common/patchstr.c:73:14:  [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 (!(f = fopen(fname, "rb"))) {	/* open read-only */
data/icon-9.4.3/src/common/patchstr.c:83: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 (buf+40, "...  [unterminated]");
data/icon-9.4.3/src/common/patchstr.c: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 buf[MAXLEN+2];
data/icon-9.4.3/src/common/patchstr.c:105:14:  [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 (!(f = fopen(fname, "r+b"))) {	/* open for read-and-update */
data/icon-9.4.3/src/common/patchstr.c:178:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buf[MAXLEN+2];
data/icon-9.4.3/src/common/rtdb.c:74:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   db = fopen(dbname, "rb");
data/icon-9.4.3/src/h/cstructs.h:31: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 s[1];                     /* variable size buffer, really > 1 */
data/icon-9.4.3/src/h/cstructs.h:64: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 prefix[2];	      /* prefix to make start of name unique */
data/icon-9.4.3/src/h/fdefs.h:89:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FncDefV(open)
data/icon-9.4.3/src/h/fdefs.h:91:11:  [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).
   FncDef(open,3)
data/icon-9.4.3/src/h/graphics.h:204: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[MAXDISPLAYNAME];
data/icon-9.4.3/src/h/graphics.h:304: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		eventQueue[EQUEUELEN];  /* queue of cooked-mode keystrokes */
data/icon-9.4.3/src/h/mswin.h:143: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[6+MAXCOLORNAME];	/* name for WAttrib & WColor reads */
data/icon-9.4.3/src/h/rstructs.h:245: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[sizeof(double)];
data/icon-9.4.3/src/h/xwin.h:171: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[6+MAXCOLORNAME];	/* name for WAttrib & WColor reads */
data/icon-9.4.3/src/iconc/ccode.c:161:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char frm_prfx[PrfxSz + 1];/* prefix for procedure frame */
data/icon-9.4.3/src/iconc/ccode.c:1721: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 sav_prfx[PrfxSz];
data/icon-9.4.3/src/iconc/ccode.h:177: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 prefix[PrfxSz+1];   /* function prefix */
data/icon-9.4.3/src/iconc/ccode.h:178: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 frm_prfx[PrfxSz+1]; /* procedure frame prefix */
data/icon-9.4.3/src/iconc/ccode.h:240: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 pre[PrfxSz];        /* next unused prefix */
data/icon-9.4.3/src/iconc/ccomp.c:56: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 sbuf[MaxPath];			/* file name construction buffer */
data/icon-9.4.3/src/iconc/ccomp.c:112: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," -L");
data/icon-9.4.3/src/iconc/ccomp.c:114: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," -lIgpx ");
data/icon-9.4.3/src/iconc/ccomp.c:123: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(buf, "strip ");
data/icon-9.4.3/src/iconc/cgrammar.c:126:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define Invocop3(x1,x2,x3)      invocbl(x1, atoi(Str0(x3)));
data/icon-9.4.3/src/iconc/cmain.c:22:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char patchpath[MaxPath+18] = "%PatchStringHere->";
data/icon-9.4.3/src/iconc/cmain.c:59: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[MaxPath];			/* file name construction buffer */
data/icon-9.4.3/src/iconc/cmain.c:341: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[MaxPath];			/* file name construction buffer */
data/icon-9.4.3/src/iconc/cmain.c:395:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   f = fopen(fname, "r");
data/icon-9.4.3/src/iconc/cmain.c:407:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   f = fopen(fname, "w");
data/icon-9.4.3/src/iconc/cmem.c:22:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pre[PrfxSz] = {'0', '0', '0'};     /* initial function name prefix */
data/icon-9.4.3/src/iconc/codegen.c:469: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 prefix[3];
data/icon-9.4.3/src/iconc/cparse.c:1443:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{invocbl(yypvt[-2], atoi(Str0(yypvt[-0]))); ;} break;
data/icon-9.4.3/src/iconc/csym.h:197: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 prefix[PrfxSz+1];	/*   unique prefix used in data block name */
data/icon-9.4.3/src/iconc/csym.h:245: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 prefix[PrfxSz+1];	/* prefix to make name unique */
data/icon-9.4.3/src/iconc/csym.h:282: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 prefix[PrfxSz+1];	/* prefix to make name unique */
data/icon-9.4.3/src/iconc/ctrans.c:161: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[MaxPath];
data/icon-9.4.3/src/iconc/dbase.c:32: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[MaxPath];			/* file name construction buffer */
data/icon-9.4.3/src/iconc/typinfer.c:285: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).
      trcfile = fopen(trcname, "w");
data/icon-9.4.3/src/icont/ixhdr.c:13: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 *argvx[1000];
data/icon-9.4.3/src/icont/ixhdr.c:48: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 xcmd[256];
data/icon-9.4.3/src/icont/lcode.c:613: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 ovly[1];  /* Array used to overlay l and f on a bytewise basis. */
data/icon-9.4.3/src/icont/lcode.c:1398: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 c[IntBits/ByteBits];
data/icon-9.4.3/src/icont/lcode.c:1430: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 c[2];
data/icon-9.4.3/src/icont/lcode.c:1455:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char c[WordSize];
data/icon-9.4.3/src/icont/lglob.c:293:13:  [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(inname, "r");
data/icon-9.4.3/src/icont/link.c:24: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.
   static char dbgname[MaxPath];	/* debug file name */
data/icon-9.4.3/src/icont/link.c:29:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inname[MaxPath];			/* input file name */
data/icon-9.4.3/src/icont/link.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char icnname[MaxPath];			/* current icon source file name */
data/icon-9.4.3/src/icont/link.c:68: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).
      infile = fopen(inname, "r");
data/icon-9.4.3/src/icont/link.c:84:14:  [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).
   outfile = fopen(outname, "wb");
data/icon-9.4.3/src/icont/link.c:120: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 script[2 * MaxPath + 300];
data/icon-9.4.3/src/icont/link.c:149: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).
         dbgfile = fopen(dbgname, "w");
data/icon-9.4.3/src/icont/link.c:163: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).
      infile = fopen(inname, "r");
data/icon-9.4.3/src/icont/llex.c:225: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 cbuf[128];
data/icon-9.4.3/src/icont/lmem.c:123: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 file[MaxPath];
data/icon-9.4.3/src/icont/newhdr.c:29: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).
   else if ((fin = fopen(ifile, "rb")) == NULL) {
data/icon-9.4.3/src/icont/newhdr.c:37: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).
   else if ((fout = fopen(ofile, "w")) == NULL) {
data/icon-9.4.3/src/icont/trans.c:48: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[12];
data/icon-9.4.3/src/icont/trans.c:49:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tmp, "%d errors\n", afatals);
data/icon-9.4.3/src/icont/trans.c:64: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 oname1[MaxPath];	/* buffer for constructing file name */
data/icon-9.4.3/src/icont/trans.c:65: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 oname2[MaxPath];	/* buffer for constructing file name */
data/icon-9.4.3/src/icont/trans.c:91:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   codefile = fopen(oname1, "w");
data/icon-9.4.3/src/icont/trans.c:95:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   globfile = fopen(oname2, "w");
data/icon-9.4.3/src/icont/tunix.c:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char patchpath[MaxPath+18] = "%PatchStringHere->";
data/icon-9.4.3/src/icont/tunix.c:43: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[MaxPath];			/* file name construction buffer */
data/icon-9.4.3/src/icont/tunix.c:233: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[MaxPath+10];
data/icon-9.4.3/src/icont/tunix.c:292: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[1000], *s;
data/icon-9.4.3/src/icont/tunix.c:304: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(buf, "/usr/lib/icon-ipl");
data/icon-9.4.3/src/icont/tunix.c:315: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 *flist[2], *progname;
data/icon-9.4.3/src/icont/tunix.c:316: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 srcfile[MaxPath], u1[MaxPath], u2[MaxPath];
data/icon-9.4.3/src/icont/tunix.c:317: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 icode[MaxPath], buf[MaxPath + 20];
data/icon-9.4.3/src/icont/tunix.c:331: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(srcfile, "/tmp/i%d%c%c.icn", getpid(), c1, c2);
data/icon-9.4.3/src/icont/tunix.c:336:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   f = fopen(srcfile, "w");
data/icon-9.4.3/src/icont/tunix.c:402: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).
      if ((e = fopen(srcfile, "r")) == NULL)
data/icon-9.4.3/src/preproc/files.c:31: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 posix_path[ _POSIX_PATH_MAX + 1 ];
data/icon-9.4.3/src/preproc/files.c:54: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).
      if ((f = fopen(fname, "r")) == NULL)
data/icon-9.4.3/src/preproc/files.c:106:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                  f = fopen(path, "r");
data/icon-9.4.3/src/preproc/files.c:124:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         f = fopen(path, "r");
data/icon-9.4.3/src/preproc/files.c:131:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      f = fopen(path, "r");
data/icon-9.4.3/src/preproc/files.c:211:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char posix_path[ _POSIX_PATH_MAX ];
data/icon-9.4.3/src/preproc/macro.c:270: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.
   static char buf[20];
data/icon-9.4.3/src/preproc/macro.c:275:10:  [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, "%d", id->line);
data/icon-9.4.3/src/preproc/pmain.c:72:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            out_file = fopen(optarg, "w");
data/icon-9.4.3/src/rtt/rttdb.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fnc_pre[2];		/* next prefix available for functions */
data/icon-9.4.3/src/rtt/rttdb.c:46:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char op_pre[2];		/* next prefix available for operators */
data/icon-9.4.3/src/rtt/rttdb.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char key_pre[2];		/* next prefix available for keywords */
data/icon-9.4.3/src/rtt/rttdb.c:162: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 dmy_pre[2];
data/icon-9.4.3/src/rtt/rttdb.c:256:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   db = fopen(dbname, "wb");
data/icon-9.4.3/src/rtt/rttdb.c:1203:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   f = fopen(fname, "w");
data/icon-9.4.3/src/rtt/rttilc.c:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sbuf[SBufSz];      /* buffer for constructing fragments of code */
data/icon-9.4.3/src/rtt/rttinlin.c:218:29:  [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).
               il->u[0].n = atol(n->u[0].child->tok->image);
data/icon-9.4.3/src/rtt/rttinlin.c:404:37:  [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).
                  il->u[indx--].n = atol(n1->u[1].child->tok->image);
data/icon-9.4.3/src/rtt/rttinlin.c:414:32:  [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).
               il->u[indx].n = atol(n1->tok->image);
data/icon-9.4.3/src/rtt/rttinlin.c:711:20:  [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).
      il->u[1].n = atol(n->u[1].child->tok->image);  /* subscript */
data/icon-9.4.3/src/rtt/rttinlin.c:1400: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 buf1[6];
data/icon-9.4.3/src/rtt/rttinlin.c:1403: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[MaxPath];
data/icon-9.4.3/src/rtt/rttinlin.c:1456: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(buf1, "%c_%c%c%c", lc_letter, prfx1, prfx2, prfx3);
data/icon-9.4.3/src/rtt/rttinlin.c:1458: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).
   if ((out_file = fopen(cname, "w")) == NULL)
data/icon-9.4.3/src/rtt/rttmain.c:14:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char patchpath[MaxPath+18] = "%PatchStringHere->";
data/icon-9.4.3/src/rtt/rttmain.c:82: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[MaxPath];		/* file name construction buffer */
data/icon-9.4.3/src/rtt/rttmain.c:194: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).
      curlst = fopen(curlst_nm, "w");
data/icon-9.4.3/src/rtt/rttmain.c:246: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[MaxPath];		/* file name construction buffer */
data/icon-9.4.3/src/rtt/rttmain.c:331:23:  [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 ((out_file = fopen(cname, "w")) == NULL)
data/icon-9.4.3/src/rtt/rttout.c:798: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.
   static char buf[15];
data/icon-9.4.3/src/rtt/rttout.c:806: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(buf , "cnv_");
data/icon-9.4.3/src/rtt/rttout.c:808:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(buf, "def_");
data/icon-9.4.3/src/rtt/rttout.c:813:10:  [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(buf, "c_int");
data/icon-9.4.3/src/rtt/rttout.c:816:10:  [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(buf, "c_dbl");
data/icon-9.4.3/src/rtt/rttout.c:819:10:  [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(buf, "c_str");
data/icon-9.4.3/src/rtt/rttout.c:822:10:  [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(buf, "tstr");
data/icon-9.4.3/src/rtt/rttout.c:826:10:  [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(buf, "tcset");
data/icon-9.4.3/src/rtt/rttout.c:830:10:  [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(buf, "eint");
data/icon-9.4.3/src/rtt/rttout.c:833:10:  [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(buf, "ec_int");
data/icon-9.4.3/src/rtt/rttout.c:837:13:  [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(buf, "cset");
data/icon-9.4.3/src/rtt/rttout.c:841:13:  [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(buf, "int");
data/icon-9.4.3/src/rtt/rttout.c:843:13:  [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(buf, "real");
data/icon-9.4.3/src/rtt/rttout.c:845:13:  [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(buf, "str");
data/icon-9.4.3/src/rtt/rttout.c:3319: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 buf1[5];
data/icon-9.4.3/src/rtt/rttout.c:3320: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[MaxPath];
data/icon-9.4.3/src/rtt/rttout.c:3366:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf1, "%c_%c%c", lc_letter, prfx1, prfx2);
data/icon-9.4.3/src/rtt/rttout.c:3368:23:  [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 ((out_file = fopen(cname, "w")) == NULL)
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:98: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[BUFSIZ];
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:130: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(s, "%d %d %d %d", attrib->width, attrib->height,
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:135:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(s, " %d %d", attributes->x_hotspot, attributes->y_hotspot);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:140:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(s, " XPMEXT");
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:233: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[BUFSIZ];
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:275: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[BUFSIZ];
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:319: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(s, "\tc #%04X%04X%04X",
data/icon-9.4.3/src/xpm/XpmRdFToData.c:19: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[BUFSIZ];
data/icon-9.4.3/src/xpm/XpmRdFToI.c:35: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[BUFSIZ];
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:101: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 out_name[100], rgb_fname[100], *cp;
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:155: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(out_name, "noname");
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:163: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(out_name, "noname");
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[512], name[512], *rgbname, *n, *m;
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:241:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((rgbf = fopen(rgb_fname, "r")) == NULL)
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:453:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    if (!(str = (char *) malloc(strlen(rgbn[j].name) + 1)))
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE], str1[MAX_LINE], str2[MAX_LINE];
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:133: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 curbuf[BUFSIZ];		/* current buffer */
data/icon-9.4.3/src/xpm/create.c:576:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char Const _reverse_byte[0x100] = {
data/icon-9.4.3/src/xpm/create.c:690:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char Const _lomask[0x09] = {
data/icon-9.4.3/src/xpm/create.c:692:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char Const _himask[0x09] = {
data/icon-9.4.3/src/xpm/data.c:151: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[BUFSIZ];
data/icon-9.4.3/src/xpm/data.c:203: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 *p, *q, buf[BUFSIZ];
data/icon-9.4.3/src/xpm/data.c:304: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 *compressfile, buf[BUFSIZ];
data/icon-9.4.3/src/xpm/data.c:324: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(compressfile, ".Z");
data/icon-9.4.3/src/xpm/data.c:334:30:  [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 (!(mdata->stream.file = fopen(filename, "r"))) {
data/icon-9.4.3/src/xpm/data.c:359: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[BUFSIZ];
data/icon-9.4.3/src/xpm/data.c:375:33:  [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 (!(mdata->stream.file = fopen(filename, "w")))
data/icon-9.4.3/src/xpm/parse.c:184: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[BUFSIZ];
data/icon-9.4.3/src/xpm/parse.c:222: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[BUFSIZ];
data/icon-9.4.3/src/xpm/parse.c:223: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 curbuf[BUFSIZ];		/* current buffer */
data/icon-9.4.3/src/xpm/parse.c:389: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[BUFSIZ];
data/icon-9.4.3/src/xpm/rgb.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[512], name[512], *rgbname, *n, *m;
data/icon-9.4.3/src/xpm/rgb.c:46:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((rgbf = fopen(rgb_fname, "r")) == NULL)
data/icon-9.4.3/src/xpm/sxpm.c:270:33:  [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).
		symbols[numsymbols++].pixel = atol(argv[++n]);
data/icon-9.4.3/src/xpm/xpmP.h:46:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(source, dest, count) memcpy(dest, source, count)
data/icon-9.4.3/src/xpm/xpmP.h:46:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(source, dest, count) memcpy(dest, source, count)
data/icon-9.4.3/src/xpm/xpmP.h:59: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 Comment[BUFSIZ];
data/icon-9.4.3/ipl/cfuncs/files.c:51:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(n = umask(0));
data/icon-9.4.3/ipl/cfuncs/files.c:51:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(n = umask(0));
data/icon-9.4.3/ipl/cfuncs/files.c:55:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask(IntegerVal(argv[1]));
data/icon-9.4.3/ipl/cfuncs/icall.h:197:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
do { descriptor dd; dd.vword = (word)alcstr(name, dd.dword = strlen(name)); \
data/icon-9.4.3/ipl/cfuncs/icall.h:202: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).
do { word n = strlen(s); \
data/icon-9.4.3/ipl/cfuncs/icall.h:208:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define RetConstString(s) return (argv->dword=strlen(s), argv->vword=(word)s, 0)
data/icon-9.4.3/ipl/cfuncs/ppm.c:368: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).
   t = rv + strlen(rv);
data/icon-9.4.3/ipl/cfuncs/ppm.c:413: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).
   d.dword = strlen(buf) + 3 * w * h;
data/icon-9.4.3/src/common/alloc.c:21: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).
   s1 = (char *)malloc(strlen(s) + 1);
data/icon-9.4.3/src/common/alloc.c:23: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).
      fprintf(stderr, "salloc(%d): out of memory\n", (int)strlen(s) + 1);
data/icon-9.4.3/src/common/filepart.c:133: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).
   fp.ext = p = s + strlen(s);
data/icon-9.4.3/src/common/filepart.c:145:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(fp.dir,s,n);
data/icon-9.4.3/src/common/filepart.c:149:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(fp.name,q,n);
data/icon-9.4.3/src/common/ipp.c:207: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).
   char *s = alloc(4 + strlen(filename));
data/icon-9.4.3/src/common/ipp.c:353: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).
            blim = buf + strlen(buf);
data/icon-9.4.3/src/common/ipp.c:413:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(fp);
data/icon-9.4.3/src/common/ipp.c:425:31:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while (--n >= 0 && (c = getc(fp)) != '\n' && c != EOF)
data/icon-9.4.3/src/common/ipp.c:480: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).
   bstop = blim = tbuf + strlen(tbuf);
data/icon-9.4.3/src/common/ipp.c:529: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).
      n = strlen(s2);
data/icon-9.4.3/src/common/ipp.c:929: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(name);
data/icon-9.4.3/src/common/ipp.c:957: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).
   nlen = strlen(name);
data/icon-9.4.3/src/common/ipp.c:958: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).
   vlen = strlen(val);
data/icon-9.4.3/src/common/munix.c:49: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).
   if (mod[strlen(mod)-1] == '/')	/* if trailing slash wanted */
data/icon-9.4.3/src/common/munix.c:50:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(buf, "/");			/* append to result */
data/icon-9.4.3/src/common/munix.c:77: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).
      n = strlen(buf) + 1;
data/icon-9.4.3/src/common/munix.c:81: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).
      s = buf + strlen(buf);
data/icon-9.4.3/src/common/munix.c:100: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).
   nlen = strlen(name);
data/icon-9.4.3/src/common/munix.c:114: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).
   end = path + strlen(path);
data/icon-9.4.3/src/common/munix.c:207: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).
   end = path + strlen(path);		/* set end of input marker */
data/icon-9.4.3/src/common/patchstr.c:22: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).
#undef strlen
data/icon-9.4.3/src/common/patchstr.c:118:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if (n < (int)strlen(newstr)) {
data/icon-9.4.3/src/common/patchstr.c:125: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).
         n -= strlen(newstr);
data/icon-9.4.3/src/common/patchstr.c:154:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(f);		/* get next char from file */
data/icon-9.4.3/src/common/patchstr.c:185: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).
   n = strlen(buf);			/* count string length proper */
data/icon-9.4.3/src/common/rtdb.c:15:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);\
data/icon-9.4.3/src/common/rtdb.c:25:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);\
data/icon-9.4.3/src/common/rtdb.c:84: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).
      msg_buf = alloc(35 + strlen(s) + strlen(progname) + strlen(DVersion));
data/icon-9.4.3/src/common/rtdb.c:84: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).
      msg_buf = alloc(35 + strlen(s) + strlen(progname) + strlen(DVersion));
data/icon-9.4.3/src/common/rtdb.c:84: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).
      msg_buf = alloc(35 + strlen(s) + strlen(progname) + strlen(DVersion));
data/icon-9.4.3/src/common/rtdb.c:100:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:103:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:117:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:124:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:127:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:141:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:169:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:177:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:216:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:222:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:231:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:249:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:268:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:271:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:279:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:283:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:296:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:299:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:309:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:325:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:355:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:359:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   for (c = getc(db); c != '"' && c != '\n' && c != EOF; c = getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:359:62:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   for (c = getc(db); c != '"' && c != '\n' && c != EOF; c = getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:362:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:373:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:406:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:434:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:456:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:460:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:485:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:491:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:503:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:517:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:524:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:546:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:553:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:566:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:569:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:572:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:597:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if (getc(db) != 'v')
data/icon-9.4.3/src/common/rtdb.c:599:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:620:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:624:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  c = getc(db);              /* quoted literal without quotes */
data/icon-9.4.3/src/common/rtdb.c:629:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                     c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:640:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'e' || getc(db) != 'f')
data/icon-9.4.3/src/common/rtdb.c:640:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'e' || getc(db) != 'f')
data/icon-9.4.3/src/common/rtdb.c:642:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:662:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'u' || getc(db) != 'n' || getc(db) != 'e' ||
data/icon-9.4.3/src/common/rtdb.c:662:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'u' || getc(db) != 'n' || getc(db) != 'e' ||
data/icon-9.4.3/src/common/rtdb.c:662:52:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'u' || getc(db) != 'n' || getc(db) != 'e' ||
data/icon-9.4.3/src/common/rtdb.c:663:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getc(db) != 'r' || getc(db) != 'r')
data/icon-9.4.3/src/common/rtdb.c:663:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getc(db) != 'r' || getc(db) != 'r')
data/icon-9.4.3/src/common/rtdb.c:665:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:668:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:675:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:687:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:689:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:716:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:719:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:726:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:736:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if (getc(db) != 't')
data/icon-9.4.3/src/common/rtdb.c:756:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'c' || getc(db) != 'a' || getc(db) != 's' ||
data/icon-9.4.3/src/common/rtdb.c:756:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'c' || getc(db) != 'a' || getc(db) != 's' ||
data/icon-9.4.3/src/common/rtdb.c:756:52:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != 'c' || getc(db) != 'a' || getc(db) != 's' ||
data/icon-9.4.3/src/common/rtdb.c:757:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getc(db) != 'e')
data/icon-9.4.3/src/common/rtdb.c:759:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:762:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:772:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:793:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != '&')
data/icon-9.4.3/src/common/rtdb.c:821:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:827:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:832:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:837:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:842:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:870:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:893:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:911:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:915:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:935:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:946:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:948:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if (getc(db) != 'w')
data/icon-9.4.3/src/common/rtdb.c:951:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:962:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if (getc(db) != 'l')
data/icon-9.4.3/src/common/rtdb.c:992:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:999:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1015:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != '+')
data/icon-9.4.3/src/common/rtdb.c:1023:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) != '*')
data/icon-9.4.3/src/common/rtdb.c:1044:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1051:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1053:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1057:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1060:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1064:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1073:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1085:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1089:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1097:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1102:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1112:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1121:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1124:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1132:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1138:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1143:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1151:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1154:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           if (c != 'e' || getc(db) != 't')
data/icon-9.4.3/src/common/rtdb.c:1157:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1161:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1165:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1170:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                              c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1178:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1186:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1190:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1203:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1211:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                     c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1214:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1242:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1246:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1251:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1271:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1286:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1314:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1318:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1326:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:1338:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:1340:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if (getc(db) == 'i')
data/icon-9.4.3/src/common/rtdb.c:1352:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) == 'v')
data/icon-9.4.3/src/common/rtdb.c:1356:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) == 'n')
data/icon-9.4.3/src/common/rtdb.c:1360:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (getc(db) == 'v')
data/icon-9.4.3/src/common/rtdb.c:1364:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:1425:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      switch (getc(db)) {
data/icon-9.4.3/src/common/rtdb.c:1465:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = getc(db);
data/icon-9.4.3/src/common/rtdb.c:1476:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(db);
data/icon-9.4.3/src/h/fdefs.h:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FncDef(read,2)
data/icon-9.4.3/src/h/rmacros.h:136:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define AsgnCStr(d,s) (StrLoc(d) = (s), StrLen(d) = strlen(StrLoc(d)))
data/icon-9.4.3/src/iconc/ccode.c:893:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sbuf = (char *)alloc((unsigned int)(strlen(rec->name) + 
data/icon-9.4.3/src/iconc/ccode.c:894: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).
                strlen("signal = R_") + PrfxSz + 1));
data/icon-9.4.3/src/iconc/ccode.c:898:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sbuf = (char *)alloc((unsigned int)(strlen(rec->name) + PrfxSz +4));
data/icon-9.4.3/src/iconc/ccode.c:1512: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).
   sbuf = (char *)alloc((unsigned int)(strlen(impl->name) + 5));
data/icon-9.4.3/src/iconc/ccode.c:3424:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        str = (char *)alloc(strlen(cur->csym->image)+8);
data/icon-9.4.3/src/iconc/ccode.c:3579:26:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                     if (equal) {
data/icon-9.4.3/src/iconc/ccode.c:4428:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sbuf = (char *)alloc((unsigned int)(strlen(impl->name) + 5));
data/icon-9.4.3/src/iconc/ccode.c:4454:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sbuf = (char *)alloc((unsigned int)(strlen(impl->name) + 5));
data/icon-9.4.3/src/iconc/ccode.c:4679: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).
   sbuf = (char *)alloc((unsigned int)(strlen(proc->name) + PrfxSz + 3));
data/icon-9.4.3/src/iconc/ccomp.c:41: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->nm_sz = strlen(libname);
data/icon-9.4.3/src/iconc/ccomp.c:66: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).
   cmd_sz = strlen(c_comp);
data/icon-9.4.3/src/iconc/ccomp.c:67: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).
   opt_sz = strlen(c_opts);
data/icon-9.4.3/src/iconc/ccomp.c:68: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).
   flg_sz = strlen(ExeFlag);
data/icon-9.4.3/src/iconc/ccomp.c:69: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).
   exe_sz = strlen(exename);
data/icon-9.4.3/src/iconc/ccomp.c:70: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).
   src_sz = strlen(srcname);
data/icon-9.4.3/src/iconc/ccomp.c:71: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).
   lib_sz += strlen(LinkLibs);
data/icon-9.4.3/src/iconc/ccomp.c:74: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).
      lib_sz += strlen(dlrgint) + 1;
data/icon-9.4.3/src/iconc/ccomp.c:78: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).
   lib_sz += strlen(" -L") +
data/icon-9.4.3/src/iconc/ccomp.c:79: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).
             strlen(refpath) +
data/icon-9.4.3/src/iconc/ccomp.c:80:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     strlen(" -lIgpx ");
data/icon-9.4.3/src/iconc/ccomp.c:81: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).
   lib_sz += strlen(ICONC_XLIB);
data/icon-9.4.3/src/iconc/ccomp.c:103: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).
      s += strlen(dlrgint);
data/icon-9.4.3/src/iconc/ccomp.c:116: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).
   s += strlen(s);
data/icon-9.4.3/src/iconc/cmain.c:64:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ((int)strlen(patchpath) > 18)
data/icon-9.4.3/src/iconc/cmain.c:159:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               s = (char *)alloc(strlen(c_opts) + 1 + strlen(optarg) + 1);
data/icon-9.4.3/src/iconc/cmain.c:159:55:  [1] (buffer) strlen:
  Does not handle 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 = (char *)alloc(strlen(c_opts) + 1 + strlen(optarg) + 1);
data/icon-9.4.3/src/iconc/cmain.c:213: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).
   db_path = (char *)alloc((unsigned int)strlen(refpath) + strlen(db_name) + 1);
data/icon-9.4.3/src/iconc/cmain.c:213:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   db_path = (char *)alloc((unsigned int)strlen(refpath) + strlen(db_name) + 1);
data/icon-9.4.3/src/iconc/cmain.c:277:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   incl_path = (char *)alloc((unsigned int)(strlen(refpath) +
data/icon-9.4.3/src/iconc/cmain.c:278: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).
       strlen(incl_file) + 1));
data/icon-9.4.3/src/iconc/cmain.c:397: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).
      for (i = 0; i < (int)strlen(ident); ++i) {
data/icon-9.4.3/src/iconc/cmain.c:398:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(f);
data/icon-9.4.3/src/iconc/codegen.c:159: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).
               fprintf(codefile, "   {%d, \"%s\"},\n", strlen(gptr->name),
data/icon-9.4.3/src/iconc/codegen.c:355:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fprintf(inclfile, "\n   {%d, \"%s\"},\n", strlen(name), name);
data/icon-9.4.3/src/iconc/codegen.c:379:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fprintf(inclfile, "   {%d, \"%s\"},\n", strlen(lptr->name), lptr->name);
data/icon-9.4.3/src/iconc/codegen.c:398:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fprintf(inclfile, "   {%d, \"%s\"},\n", strlen(lptr->name), lptr->name);
data/icon-9.4.3/src/iconc/codegen.c:415:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fprintf(inclfile, "   {%d, \"%s\"},\n", strlen(lptr->name), lptr->name);
data/icon-9.4.3/src/iconc/codegen.c:480:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   fprintf(inclfile, "{%d, \"%s\"}}};\n", strlen(name), name);
data/icon-9.4.3/src/iconc/codegen.c:523:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   fprintf(inclfile, "\n   {%d, \"%s\"},\n", strlen(name), name);
data/icon-9.4.3/src/iconc/codegen.c:541:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   fprintf(inclfile, "   {%d, \"%s\"},\n", strlen(name), name);
data/icon-9.4.3/src/iconc/codegen.c:1051:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     fprintf(codefile, ".dword = %d;\n", strlen(lit->image));
data/icon-9.4.3/src/iconc/codegen.c:1196: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).
               prt_i_str(codefile, cd->FileName, strlen(cd->FileName));
data/icon-9.4.3/src/iconc/csym.c:824: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).
      name, nargs, strlen(op));
data/icon-9.4.3/src/iconc/ctree.c:225: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).
           CSym0(t) = putlit(&s[1], F_CsetLit, strlen(s) - 2);
data/icon-9.4.3/src/iconc/ctree.c:237:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           CSym0(t) = putlit(&s[1], F_StrLit, strlen(s) - 2);
data/icon-9.4.3/src/iconc/inline.c:491:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   oper_nm = (char *)alloc((unsigned int)(strlen(impl->name) + 6));
data/icon-9.4.3/src/iconc/inline.c:1488: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).
   sbuf = (char *)alloc((unsigned int)(strlen(s) + strlen(impl->name) + 3));
data/icon-9.4.3/src/iconc/inline.c:1488:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   sbuf = (char *)alloc((unsigned int)(strlen(s) + strlen(impl->name) + 3));
data/icon-9.4.3/src/iconc/typinfer.c:276: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 (trcname != NULL && strlen(trcname) != 0) {
data/icon-9.4.3/src/icont/lcode.c:360: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).
            procname = putident(strlen(&lsspace[lsfree]) + 1, 0);
data/icon-9.4.3/src/icont/lcode.c:712:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (int)strlen(p), (long)(name), p);
data/icon-9.4.3/src/icont/lcode.c:724: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).
   outword(strlen(p));          /* procedure name: length & offset */
data/icon-9.4.3/src/icont/lcode.c:738:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               fprintf(dbgfile, "\t%d\tS+%ld\t\t\t# %s\n", (int)strlen(p),
data/icon-9.4.3/src/icont/lcode.c:742:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         outword(strlen(p));
data/icon-9.4.3/src/icont/lcode.c:757:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               fprintf(dbgfile, "\t%d\tS+%ld\t\t\t# %s\n", (int)strlen(p),
data/icon-9.4.3/src/icont/lcode.c:761:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         outword(strlen(p));
data/icon-9.4.3/src/icont/lcode.c:776:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               fprintf(dbgfile, "\t%d\tS+%ld\t\t\t# %s\n", (int)strlen(p),
data/icon-9.4.3/src/icont/lcode.c:780:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         outword(strlen(p));
data/icon-9.4.3/src/icont/lcode.c:830:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               fprintf(dbgfile, "\t%d\tS+%ld\t\t\t# %s\n", (int)strlen(s),
data/icon-9.4.3/src/icont/lcode.c:842:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         outword(strlen(s));		/* name of record: size and offset */
data/icon-9.4.3/src/icont/lcode.c:866: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).
                              (int)strlen(&lsspace[fp->f_name]),
data/icon-9.4.3/src/icont/lcode.c:869: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).
                     outword(strlen(&lsspace[fp->f_name]));
data/icon-9.4.3/src/icont/lcode.c:1158: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).
               (long)pc, (int)strlen(s), (long)fp->f_name, s);
data/icon-9.4.3/src/icont/lcode.c:1161: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).
      outword(strlen(s));      /* name of field: length & offset */
data/icon-9.4.3/src/icont/lcode.c:1217: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).
               (long)pc, (int)strlen(&lsspace[gp->g_name]), (long)(gp->g_name),
data/icon-9.4.3/src/icont/lcode.c:1221: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).
      outword(strlen(&lsspace[gp->g_name]));
data/icon-9.4.3/src/icont/link.c:130: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).
      strcat(script, "        \n\f\n" + ((int)(strlen(script) + 4) % 8));
data/icon-9.4.3/src/icont/link.c:131: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).
      hdrsize = strlen(script) + 1;	/* length includes \0 at end */
data/icon-9.4.3/src/icont/link.c:222:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask(u = umask(0));			/* get and restore umask */
data/icon-9.4.3/src/icont/link.c:222:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask(u = umask(0));			/* get and restore umask */
data/icon-9.4.3/src/icont/llex.c:60:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   return putident((int)strlen(&lsspace[indx])+1, 1);
data/icon-9.4.3/src/icont/llex.c:72:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) == ' ' || c == '\t') ;
data/icon-9.4.3/src/icont/llex.c:80:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:100:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) != '\n' && c != EOF) {
data/icon-9.4.3/src/icont/llex.c:123:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) == ' ' || c == '\t') ;
data/icon-9.4.3/src/icont/llex.c:128:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:132:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:147:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) == ' ' || c == '\t') ;
data/icon-9.4.3/src/icont/llex.c:152:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:178:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) >= '0' && c <= '9') {
data/icon-9.4.3/src/icont/llex.c:192:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((c = getc(infile)) != 0) {
data/icon-9.4.3/src/icont/llex.c:229:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) == '0')
data/icon-9.4.3/src/icont/llex.c:234:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:240:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((c = getc(infile)) >= '0' && c <= '9')
data/icon-9.4.3/src/icont/llex.c:246:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((c = getc(infile)) == '+' || c == '-') {
data/icon-9.4.3/src/icont/llex.c:249:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:257:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c = getc(infile);
data/icon-9.4.3/src/icont/llex.c:279:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(infile)) != 'L' && c != EOF && c != '\n') ;
data/icon-9.4.3/src/icont/llex.c:315:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((c = getc(infile)) != '\n' && c != EOF) ;
data/icon-9.4.3/src/icont/newhdr.c:53:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   for (n = 0; (b = getc(fin)) != EOF; n++)
data/icon-9.4.3/src/icont/tsym.c:445: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).
         writecheck(fprintf(fd,",%d,%s\n",(int)strlen(cp->c_name),cp->c_name));
data/icon-9.4.3/src/icont/tunix.c:54: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(patchpath) > 18)
data/icon-9.4.3/src/icont/tunix.c:129: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).
   n = strlen(argv[0]);
data/icon-9.4.3/src/icont/tunix.c:302:7:  [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(buf, ".");
data/icon-9.4.3/src/icont/tunix.c:303: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(buf, ":");
data/icon-9.4.3/src/icont/tunix.c:323:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   omask = umask(0077);		/* remember umask; keep /tmp files private */
data/icon-9.4.3/src/icont/tunix.c:375:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask(omask);			/* reset original umask */
data/icon-9.4.3/src/icont/tunix.c:386: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).
   fwrite(srcprog, 1, strlen(srcprog), f);
data/icon-9.4.3/src/icont/tunix.c:406:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(e)) != EOF)
data/icon-9.4.3/src/preproc/files.c:202: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).
         s1 = alloc(strlen(s) + 1);
data/icon-9.4.3/src/preproc/macro.c:542: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).
      (int)strlen(t->image) + (int)strlen(t1->image) + 7);
data/icon-9.4.3/src/preproc/macro.c:542: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).
      (int)strlen(t->image) + (int)strlen(t1->image) + 7);
data/icon-9.4.3/src/preproc/pchars.c:38:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((c2 = getc(f)) != EOF)
data/icon-9.4.3/src/preproc/pchars.c:39:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         c3 = getc(f);
data/icon-9.4.3/src/preproc/pchars.c:68:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c3 = getc(f);
data/icon-9.4.3/src/preproc/pchars.c:117:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if ((c2 = getc(f)) != EOF)
data/icon-9.4.3/src/preproc/pchars.c:118:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  c3 = getc(f);
data/icon-9.4.3/src/preproc/pchars.c:129:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               if ((c2 = getc(f)) != EOF)
data/icon-9.4.3/src/preproc/pchars.c:130:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  c3 = getc(f);
data/icon-9.4.3/src/preproc/pinit.c:74: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).
            undef_opt(opt_args[i], (int)strlen(opt_args[i]));
data/icon-9.4.3/src/preproc/pinit.c:81:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            define_opt(opt_args[i], (int)strlen(opt_args[i]), one_tok);
data/icon-9.4.3/src/preproc/pinit.c:126: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).
   str_src("<initialization>", s, (int)strlen(s));
data/icon-9.4.3/src/rtt/rttdb.c:1180: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).
   len = strlen(clst->name) + 1;
data/icon-9.4.3/src/rtt/rttmain.c:89:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ((int)strlen(patchpath) > 18)
data/icon-9.4.3/src/rtt/rttmain.c:173: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).
   in_header = alloc(strlen(refpath) + strlen(grttin_path) + 1);
data/icon-9.4.3/src/rtt/rttmain.c:173: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).
   in_header = alloc(strlen(refpath) + strlen(grttin_path) + 1);
data/icon-9.4.3/src/rtt/rttmain.c:176: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).
   inclname = alloc(strlen(refpath) + strlen(rt_path) + 1);
data/icon-9.4.3/src/rtt/rttmain.c:176:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   inclname = alloc(strlen(refpath) + strlen(rt_path) + 1);
data/icon-9.4.3/src/rtt/rttmain.c:263:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   str_src("<rtt initialization>", compiler_def, (int)strlen(compiler_def));
data/icon-9.4.3/src/rtt/rttmain.c:277: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).
         (int)strlen(test_largeints));
data/icon-9.4.3/src/rtt/rttout.c:3712:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            n = prt_i_str(out_file, t->image, (int)strlen(t->image));
data/icon-9.4.3/src/rtt/rttout.c:3720: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).
            cset_init(out_file, bitvect(t->image, (int)strlen(t->image)));
data/icon-9.4.3/src/rtt/rttout.c:3765: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).
            il->u[1].s = alloc(strlen(t->image) + 3);
data/icon-9.4.3/src/rtt/rttout.c:3770: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).
            il->u[1].s = alloc(strlen(t->image) + 3);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:132: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).
    s += strlen(s);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:136: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).
	s += strlen(s);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:142: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(buf) + 1;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:198: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).
	*(sptr + 1) = *sptr + strlen(*sptr2) + 1;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:237:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, *colors, cpp);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:244: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).
		s += strlen(s);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:250: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(buf) + 1;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:287:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, *colors, cpp);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:306: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).
			s += strlen(s);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:321: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).
	    s += strlen(s);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:323: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).
	l = strlen(buf) + 1;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:352:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(s, colors[*pixels], cpp);
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:378: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).
	size += strlen(ext->name) + 8;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:381: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).
	    size += strlen(*lines) + 1;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:405:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    *(dataptr + 1) = *dataptr + strlen(ext->name) + 8;
data/icon-9.4.3/src/xpm/XpmCrDataFI.c:412: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).
		*(dataptr + 1) = *dataptr + strlen(*sptr) + 1;
data/icon-9.4.3/src/xpm/XpmWrFFrI.c:304:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(s, colors[*pixels], cpp);
data/icon-9.4.3/src/xpm/XpmWrFFrI.c:314:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s, colors[*pixels], cpp);
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:117:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(argv[argn], "-name", max(strlen(argv[argn]), 2)) == 0) {
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:123:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	else if (strncmp(argv[argn], "-rgb", max(strlen(argv[argn]), 2)) == 0) {
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:274:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!(rgbname = (char *) malloc(strlen(name) + 1)))
data/icon-9.4.3/src/xpm/converters/ppmtoxpm.c:453: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).
		    if (!(str = (char *) malloc(strlen(rgbn[j].name) + 1)))
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:54: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).
    int ls2 = strlen(s2);
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:58: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).
    while (strlen(s1) >= ls2) {
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:187:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(str1, t1, *chars_per_pixelP);
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:209:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str2, t1, t2 - t1);
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:222: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(curbuf, " ");		/* append space */
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:348:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(str1, t1 + 1, t2 - t1 - 1);
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:355:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(str2, t1 + 1, t2 - t1 - 1);
data/icon-9.4.3/src/xpm/converters/xpmtoppm.c:431:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(line) == MAX_LINE - 1)
data/icon-9.4.3/src/xpm/data.c:67:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/icon-9.4.3/src/xpm/data.c:90:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(file);
data/icon-9.4.3/src/xpm/data.c:96:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(file);
data/icon-9.4.3/src/xpm/data.c:124:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c = getc(file)) != mdata->Eos && c != EOF);
data/icon-9.4.3/src/xpm/data.c:129:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c = getc(file)) != mdata->Bos && c != EOF)
data/icon-9.4.3/src/xpm/data.c:134:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while (mdata->Bcmt && (c = getc(file)) == mdata->Bcmt[0])
data/icon-9.4.3/src/xpm/data.c:181:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (isspace(c = getc(file)) && c != mdata->Eos);
data/icon-9.4.3/src/xpm/data.c:185:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(file);
data/icon-9.4.3/src/xpm/data.c:217:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(p, start, n);
data/icon-9.4.3/src/xpm/data.c:221:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (isspace(c = getc(file)) && c != mdata->Eos);
data/icon-9.4.3/src/xpm/data.c:240:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(q, buf, i);
data/icon-9.4.3/src/xpm/data.c:247:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(file);
data/icon-9.4.3/src/xpm/data.c:263:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(q, buf, i);
data/icon-9.4.3/src/xpm/data.c:289:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(*cmt, mdata->Comment, mdata->CommentLength);
data/icon-9.4.3/src/xpm/data.c:312: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).
	if (((int)strlen(filename) > 2) &&
data/icon-9.4.3/src/xpm/data.c:313: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).
	    !strcmp(".Z", filename + (strlen(filename) - 2))) {
data/icon-9.4.3/src/xpm/data.c:320:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (!(compressfile = (char *) malloc(strlen(filename) + 3)))
data/icon-9.4.3/src/xpm/data.c:366: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 ((int)strlen(filename) > 2
data/icon-9.4.3/src/xpm/data.c:367: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).
	    && !strcmp(".Z", filename + ((int)strlen(filename) - 2))) {
data/icon-9.4.3/src/xpm/misc.c:200:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int l = strlen(s1) + 1;
data/icon-9.4.3/src/xpm/misc.c:202:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s2, s1, l);
data/icon-9.4.3/src/xpm/parse.c:271: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).
		    if ((strlen(*sptr) == l) && (!strncmp(*sptr, buf, l)))
data/icon-9.4.3/src/xpm/parse.c:276: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).
		    s = cts[curkey] = (char *) malloc(strlen(curbuf) + 1);
data/icon-9.4.3/src/xpm/parse.c:292:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		    strcat(curbuf, " "); /* append space */
data/icon-9.4.3/src/xpm/parse.c:302: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).
	s = cts[curkey] = (char *) malloc(strlen(curbuf) + 1);
data/icon-9.4.3/src/xpm/parse.c:488:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ext->name, s + a, l - a - 6);
data/icon-9.4.3/src/xpm/rgb.c:75:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!(rgbname = (char *) malloc(strlen(name) + 1)))
data/icon-9.4.3/src/xpm/sxpm.c:238:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(argv[n]) == 1) && (argv[n][0] == '-'))
data/icon-9.4.3/src/xpm/sxpm.c:243: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(argv[n + 1]) == 1) && (argv[n + 1][0] == '-'))
data/icon-9.4.3/src/xpm/sxpm.c:429: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).
	    xString = (char *) XtMalloc((sizeof(char) * strlen(input)) + 20);
data/icon-9.4.3/src/xpm/xpmP.h:180:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(mdata->type ? (getc(mdata->stream.file)) : (*mdata->cptr++))

ANALYSIS SUMMARY:

Hits = 704
Lines analyzed = 73591 in approximately 2.21 seconds (33274 lines/second)
Physical Source Lines of Code (SLOC) = 53107
Hits@level = [0] 1231 [1] 359 [2] 208 [3]  18 [4] 116 [5]   3
Hits@level+ = [0+] 1935 [1+] 704 [2+] 345 [3+] 137 [4+] 119 [5+]   3
Hits/KSLOC@level+ = [0+] 36.4359 [1+] 13.2563 [2+] 6.49632 [3+] 2.5797 [4+] 2.24076 [5+] 0.0564897
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.