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/gle-graphics-4.2.5/src/config_noauto.h
Examining data/gle-graphics-4.2.5/src/gle/d_svg.cpp
Examining data/gle-graphics-4.2.5/src/gle/glearray.h
Examining data/gle-graphics-4.2.5/src/gle/font.cpp
Examining data/gle-graphics-4.2.5/src/gle/fitbez.cpp
Examining data/gle-graphics-4.2.5/src/gle/cutils.h
Examining data/gle-graphics-4.2.5/src/gle/bitmap/lzwencode.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/glepng.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h
Examining data/gle-graphics-4.2.5/src/gle/bitmap/lzwencode.h
Examining data/gle-graphics-4.2.5/src/gle/bitmap/glegif.h
Examining data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/ascii85.cpp
Examining data/gle-graphics-4.2.5/src/gle/bitmap/gletiff.cpp
Examining data/gle-graphics-4.2.5/src/gle/fitcf.cpp
Examining data/gle-graphics-4.2.5/src/gle/key.cpp
Examining data/gle-graphics-4.2.5/src/gle/cmdline.cpp
Examining data/gle-graphics-4.2.5/src/gle/glearray.cpp
Examining data/gle-graphics-4.2.5/src/gle/numberformat.h
Examining data/gle-graphics-4.2.5/src/gle/cmdline.h
Examining data/gle-graphics-4.2.5/src/gle/core.h
Examining data/gle-graphics-4.2.5/src/gle/d_x.cpp
Examining data/gle-graphics-4.2.5/src/gle/graph2.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-poppler.h
Examining data/gle-graphics-4.2.5/src/gle/sub.cpp
Examining data/gle-graphics-4.2.5/src/gle/config.cpp
Examining data/gle-graphics-4.2.5/src/gle/leastsq.h
Examining data/gle-graphics-4.2.5/src/gle/mem_limits.h
Examining data/gle-graphics-4.2.5/src/gle/texinterface.h
Examining data/gle-graphics-4.2.5/src/gle/all.h
Examining data/gle-graphics-4.2.5/src/gle/surface/gsurface.h
Examining data/gle-graphics-4.2.5/src/gle/surface/fcontour.cpp
Examining data/gle-graphics-4.2.5/src/gle/surface/f2c.h
Examining data/gle-graphics-4.2.5/src/gle/surface/hide.cpp
Examining data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp
Examining data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp
Examining data/gle-graphics-4.2.5/src/gle/surface/ffitcontour.cpp
Examining data/gle-graphics-4.2.5/src/gle/curve.cpp
Examining data/gle-graphics-4.2.5/src/gle/tokens/RefCount.h
Examining data/gle-graphics-4.2.5/src/gle/tokens/StringKeyHash.cpp
Examining data/gle-graphics-4.2.5/src/gle/tokens/CharBitMap.h
Examining data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp
Examining data/gle-graphics-4.2.5/src/gle/tokens/stokenizer.h
Examining data/gle-graphics-4.2.5/src/gle/tokens/StringKeyHash.h
Examining data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp
Examining data/gle-graphics-4.2.5/src/gle/tokens/BinIO.h
Examining data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h
Examining data/gle-graphics-4.2.5/src/gle/gle.cpp
Examining data/gle-graphics-4.2.5/src/gle/savgol.cpp
Examining data/gle-graphics-4.2.5/src/gle/fitcf.h
Examining data/gle-graphics-4.2.5/src/gle/axis.h
Examining data/gle-graphics-4.2.5/src/gle/b_text.cpp
Examining data/gle-graphics-4.2.5/src/gle/var.h
Examining data/gle-graphics-4.2.5/src/gle/token.h
Examining data/gle-graphics-4.2.5/src/gle/key.h
Examining data/gle-graphics-4.2.5/src/gle/begin.h
Examining data/gle-graphics-4.2.5/src/gle/d_dummy.cpp
Examining data/gle-graphics-4.2.5/src/gle/texinterface.cpp
Examining data/gle-graphics-4.2.5/src/gle/op_def.h
Examining data/gle-graphics-4.2.5/src/gle/letzfitz/let.cpp
Examining data/gle-graphics-4.2.5/src/gle/letzfitz/ffit.cpp
Examining data/gle-graphics-4.2.5/src/gle/letzfitz/f2c.h
Examining data/gle-graphics-4.2.5/src/gle/letzfitz/fit.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-poppler.cpp
Examining data/gle-graphics-4.2.5/src/gle/keyword.h
Examining data/gle-graphics-4.2.5/src/gle/polish.h
Examining data/gle-graphics-4.2.5/src/gle/var.cpp
Examining data/gle-graphics-4.2.5/src/gle/gprint.cpp
Examining data/gle-graphics-4.2.5/src/gle/axis.cpp
Examining data/gle-graphics-4.2.5/src/gle/color.cpp
Examining data/gle-graphics-4.2.5/src/gle/glepro.h
Examining data/gle-graphics-4.2.5/src/gle/keyword.cpp
Examining data/gle-graphics-4.2.5/src/gle/basicconf.h
Examining data/gle-graphics-4.2.5/src/gle/f2c.h
Examining data/gle-graphics-4.2.5/src/gle/d_interface.h
Examining data/gle-graphics-4.2.5/src/gle/d_cairo.cpp
Examining data/gle-graphics-4.2.5/src/gle/builtin-double.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-block.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-sourcefile.h
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-base.h
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-shapemath.h
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-interface.h
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-datatype.h
Examining data/gle-graphics-4.2.5/src/gle/gle-interface/gle-const.h
Examining data/gle-graphics-4.2.5/src/gle/glec.cpp
Examining data/gle-graphics-4.2.5/src/gle/general.cpp
Examining data/gle-graphics-4.2.5/src/gle/run.h
Examining data/gle-graphics-4.2.5/src/gle/config.h
Examining data/gle-graphics-4.2.5/src/gle/fn.h
Examining data/gle-graphics-4.2.5/src/gle/drawit.h
Examining data/gle-graphics-4.2.5/src/gle/glebtool.cpp
Examining data/gle-graphics-4.2.5/src/gle/token.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-sourcefile.cpp
Examining data/gle-graphics-4.2.5/src/gle/graph.h
Examining data/gle-graphics-4.2.5/src/gle/justify.h
Examining data/gle-graphics-4.2.5/src/gle/font.h
Examining data/gle-graphics-4.2.5/src/gle/gprint.h
Examining data/gle-graphics-4.2.5/src/gle/pass.h
Examining data/gle-graphics-4.2.5/src/gle/begin.cpp
Examining data/gle-graphics-4.2.5/src/gle/cutils.cpp
Examining data/gle-graphics-4.2.5/src/gle/fn.cpp
Examining data/gle-graphics-4.2.5/src/gle/builtin-double.h
Examining data/gle-graphics-4.2.5/src/gle/tex.h
Examining data/gle-graphics-4.2.5/src/gle/file_io.h
Examining data/gle-graphics-4.2.5/src/gle/graph.cpp
Examining data/gle-graphics-4.2.5/src/gle/b_tab.cpp
Examining data/gle-graphics-4.2.5/src/gle/sub.h
Examining data/gle-graphics-4.2.5/src/gle/gle-block.h
Examining data/gle-graphics-4.2.5/src/gle/color.h
Examining data/gle-graphics-4.2.5/src/gle/gle-base.cpp
Examining data/gle-graphics-4.2.5/src/gle/op_def.cpp
Examining data/gle-graphics-4.2.5/src/gle/memory.cpp
Examining data/gle-graphics-4.2.5/src/gle/mychar.cpp
Examining data/gle-graphics-4.2.5/src/gle/leastsq.cpp
Examining data/gle-graphics-4.2.5/src/gle/unit-tests/part1.cpp
Examining data/gle-graphics-4.2.5/src/gle/run.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-datatype.cpp
Examining data/gle-graphics-4.2.5/src/gle/polish.cpp
Examining data/gle-graphics-4.2.5/src/gle/eval.cpp
Examining data/gle-graphics-4.2.5/src/gle/d_ps.cpp
Examining data/gle-graphics-4.2.5/src/gle/drawit.cpp
Examining data/gle-graphics-4.2.5/src/gle/gle-interface.cpp
Examining data/gle-graphics-4.2.5/src/gle/numberformat.cpp
Examining data/gle-graphics-4.2.5/src/gle/pass.cpp
Examining data/gle-graphics-4.2.5/src/gle/tex.cpp
Examining data/gle-graphics-4.2.5/src/gle/file_io.cpp
Examining data/gle-graphics-4.2.5/src/gle/core.cpp
Examining data/gle-graphics-4.2.5/src/makefmt/basicconf.h
Examining data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp
Examining data/gle-graphics-4.2.5/src/makefmt/parseAFM.h
Examining data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp
Examining data/gle-graphics-4.2.5/src/fbuild/token.h
Examining data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp
Examining data/gle-graphics-4.2.5/src/fbuild/basicconf.h
Examining data/gle-graphics-4.2.5/src/fbuild/token.cpp
Examining data/gle-graphics-4.2.5/src/gui/gledrawing.h
Examining data/gle-graphics-4.2.5/src/gui/fileinfo.h
Examining data/gle-graphics-4.2.5/src/gui/mainwindow.h
Examining data/gle-graphics-4.2.5/src/gui/serverthread.h
Examining data/gle-graphics-4.2.5/src/gui/newfile.cpp
Examining data/gle-graphics-4.2.5/src/gui/circle.h
Examining data/gle-graphics-4.2.5/src/gui/polararray.cpp
Examining data/gle-graphics-4.2.5/src/gui/arc.h
Examining data/gle-graphics-4.2.5/src/gui/propertymodel.cpp
Examining data/gle-graphics-4.2.5/src/gui/colourbutton.cpp
Examining data/gle-graphics-4.2.5/src/gui/circle.cpp
Examining data/gle-graphics-4.2.5/src/gui/snapline.cpp
Examining data/gle-graphics-4.2.5/src/gui/settings.cpp
Examining data/gle-graphics-4.2.5/src/gui/propertymodel.h
Examining data/gle-graphics-4.2.5/src/gui/objectblocks.h
Examining data/gle-graphics-4.2.5/src/gui/glegs.cpp
Examining data/gle-graphics-4.2.5/src/gui/settings_dialogue.cpp
Examining data/gle-graphics-4.2.5/src/gui/drawingobject.cpp
Examining data/gle-graphics-4.2.5/src/gui/propertyeditor.cpp
Examining data/gle-graphics-4.2.5/src/gui/grid.h
Examining data/gle-graphics-4.2.5/src/gui/fileinfo.cpp
Examining data/gle-graphics-4.2.5/src/gui/downloader.cpp
Examining data/gle-graphics-4.2.5/src/gui/qgs.cpp
Examining data/gle-graphics-4.2.5/src/gui/settings_dialogue.h
Examining data/gle-graphics-4.2.5/src/gui/colourpicker.cpp
Examining data/gle-graphics-4.2.5/src/gui/snapline.h
Examining data/gle-graphics-4.2.5/src/gui/ellipse.h
Examining data/gle-graphics-4.2.5/src/gui/component.cpp
Examining data/gle-graphics-4.2.5/src/gui/propertyeditor.h
Examining data/gle-graphics-4.2.5/src/gui/grid.cpp
Examining data/gle-graphics-4.2.5/src/gui/ellipse.cpp
Examining data/gle-graphics-4.2.5/src/gui/settings.h
Examining data/gle-graphics-4.2.5/src/gui/qgle_definitions.h
Examining data/gle-graphics-4.2.5/src/gui/macspecific.cpp
Examining data/gle-graphics-4.2.5/src/gui/text.cpp
Examining data/gle-graphics-4.2.5/src/gui/polararray.h
Examining data/gle-graphics-4.2.5/src/gui/component.h
Examining data/gle-graphics-4.2.5/src/gui/arc.cpp
Examining data/gle-graphics-4.2.5/src/gui/downloader.h
Examining data/gle-graphics-4.2.5/src/gui/3dviewer.h
Examining data/gle-graphics-4.2.5/src/gui/about.cpp
Examining data/gle-graphics-4.2.5/src/gui/serverthread.cpp
Examining data/gle-graphics-4.2.5/src/gui/line.h
Examining data/gle-graphics-4.2.5/src/gui/gledrawing.cpp
Examining data/gle-graphics-4.2.5/src/gui/amove.h
Examining data/gle-graphics-4.2.5/src/gui/colourpicker.h
Examining data/gle-graphics-4.2.5/src/gui/consolewindow.cpp
Examining data/gle-graphics-4.2.5/src/gui/drawingobject.h
Examining data/gle-graphics-4.2.5/src/gui/amove.cpp
Examining data/gle-graphics-4.2.5/src/gui/line.cpp
Examining data/gle-graphics-4.2.5/src/gui/text.h
Examining data/gle-graphics-4.2.5/src/gui/variantdelegate.cpp
Examining data/gle-graphics-4.2.5/src/gui/gsinc/gscdefs.h
Examining data/gle-graphics-4.2.5/src/gui/gsinc/ierrors.h
Examining data/gle-graphics-4.2.5/src/gui/gsinc/gdevdsp.h
Examining data/gle-graphics-4.2.5/src/gui/gsinc/iapi.h
Examining data/gle-graphics-4.2.5/src/gui/main.cpp
Examining data/gle-graphics-4.2.5/src/gui/about.h
Examining data/gle-graphics-4.2.5/src/gui/colourbutton.h
Examining data/gle-graphics-4.2.5/src/gui/consolewindow.h
Examining data/gle-graphics-4.2.5/src/gui/newfile.h
Examining data/gle-graphics-4.2.5/src/gui/qgle_statics.h
Examining data/gle-graphics-4.2.5/src/gui/variantdelegate.h
Examining data/gle-graphics-4.2.5/src/gui/3dviewer.cpp
Examining data/gle-graphics-4.2.5/src/gui/dialogues.cpp
Examining data/gle-graphics-4.2.5/src/gui/dialogues.h
Examining data/gle-graphics-4.2.5/src/gui/mainwindow.cpp
Examining data/gle-graphics-4.2.5/src/gui/objectblocks.cpp
Examining data/gle-graphics-4.2.5/src/gui/qgs.h
Examining data/gle-graphics-4.2.5/src/gui/qgle_statics.cpp
Examining data/gle-graphics-4.2.5/src/gui/qgslibloader.cpp
Examining data/gle-graphics-4.2.5/src/manip/cell.cpp
Examining data/gle-graphics-4.2.5/src/manip/sub.cpp
Examining data/gle-graphics-4.2.5/src/manip/edt.h
Examining data/gle-graphics-4.2.5/src/manip/all.h
Examining data/gle-graphics-4.2.5/src/manip/nofnkeys.h
Examining data/gle-graphics-4.2.5/src/manip/manip.h
Examining data/gle-graphics-4.2.5/src/manip/filemenu.cpp
Examining data/gle-graphics-4.2.5/src/manip/vaxinkey.cpp
Examining data/gle-graphics-4.2.5/src/manip/cmd.h
Examining data/gle-graphics-4.2.5/src/manip/vaxconio.h
Examining data/gle-graphics-4.2.5/src/manip/cursesscr.cpp
Examining data/gle-graphics-4.2.5/src/manip/ffblk_def.h
Examining data/gle-graphics-4.2.5/src/manip/keyword.h
Examining data/gle-graphics-4.2.5/src/manip/manip.cpp
Examining data/gle-graphics-4.2.5/src/manip/var.cpp
Examining data/gle-graphics-4.2.5/src/manip/keyword.cpp
Examining data/gle-graphics-4.2.5/src/manip/mjl.cpp
Examining data/gle-graphics-4.2.5/src/manip/cell.h
Examining data/gle-graphics-4.2.5/src/manip/unixscr.cpp
Examining data/gle-graphics-4.2.5/src/manip/general.cpp
Examining data/gle-graphics-4.2.5/src/manip/mygraph.h
Examining data/gle-graphics-4.2.5/src/manip/token.cpp
Examining data/gle-graphics-4.2.5/src/manip/filemenu.h
Examining data/gle-graphics-4.2.5/src/manip/mscreen.h
Examining data/gle-graphics-4.2.5/src/manip/fn.cpp
Examining data/gle-graphics-4.2.5/src/manip/eval.h
Examining data/gle-graphics-4.2.5/src/manip/varargs.cpp
Examining data/gle-graphics-4.2.5/src/manip/color.h
Examining data/gle-graphics-4.2.5/src/manip/mjl.h
Examining data/gle-graphics-4.2.5/src/manip/unix_extra.cpp
Examining data/gle-graphics-4.2.5/src/manip/unixinkey.cpp
Examining data/gle-graphics-4.2.5/src/manip/unix_extra.h
Examining data/gle-graphics-4.2.5/src/manip/eval.cpp
Examining data/gle-graphics-4.2.5/src/manip/polish.cpp
Examining data/gle-graphics-4.2.5/src/manip/cmd.cpp

FINAL RESULTS:

data/gle-graphics-4.2.5/src/gle/file_io.cpp:1363:14:  [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.
		int size = readlink(path2.c_str(), path, PATH_MAX - 1);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:61:16:  [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.
#define gprint printf
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:94: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(fname,*(++argv));
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:97: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(outfile,fname);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:98:31:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	if (strchr(fname,':')!=NULL) strcpy(outfile,strchr(fname,':')+1);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:108:31:  [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).
	for (i=0;i<TOKEN_LENGTH;i++) strcpy(tk[i],space_str);
data/gle-graphics-4.2.5/src/fbuild/token.cpp:71: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(tok[*ntok],token_start);
data/gle-graphics-4.2.5/src/fbuild/token.cpp:232:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(outbuff,s);
data/gle-graphics-4.2.5/src/fbuild/token.cpp:233:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(tk[*ntok],outbuff);
data/gle-graphics-4.2.5/src/gle/axis.cpp:541:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
							sprintf(cbuff, fmt, n);
data/gle-graphics-4.2.5/src/gle/axis.cpp:552:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
						sprintf(cbuff, fmt, lsize, n);
data/gle-graphics-4.2.5/src/gle/axis.cpp:1046: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(o, s);
data/gle-graphics-4.2.5/src/gle/axis.cpp:1055: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(e + 1, f);
data/gle-graphics-4.2.5/src/gle/axis.cpp:1056: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(o, s);
data/gle-graphics-4.2.5/src/gle/begin.cpp:71: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(srclin,(char *) ((*pcode)+3));
data/gle-graphics-4.2.5/src/gle/begin.cpp:82: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(srclin, sline.getCodeCStr());
data/gle-graphics-4.2.5/src/gle/begin.cpp:158: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(exp, eval_res.c_str());
data/gle-graphics-4.2.5/src/gle/begin.cpp:159: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(exp, at_end.c_str());
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:275:19:  [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* psfile = popen(GScmd.str().c_str(), "w");
data/gle-graphics-4.2.5/src/gle/eval.cpp:589: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(sbuf2,ctime(&today));
data/gle-graphics-4.2.5/src/gle/eval.cpp:590: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(sbuf,sbuf2);
data/gle-graphics-4.2.5/src/gle/eval.cpp:591: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(sbuf+11,sbuf2+20);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:490: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(temp, base);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:793:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), NULL);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1474: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(buf, GLE_TOP_DIR.c_str());
data/gle-graphics-4.2.5/src/gle/font.cpp:215: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, cfont->file_vector);
data/gle-graphics-4.2.5/src/gle/gprint.cpp:79:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(output, format, arg_ptr);
data/gle-graphics-4.2.5/src/gle/graph.cpp:668: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(s1,strtok(tk[ct],","));
data/gle-graphics-4.2.5/src/gle/graph.cpp:673:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s2,ss);
data/gle-graphics-4.2.5/src/gle/graph.h:328:39:  [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).
#define next_str(s)  (ct+=1,skipspace,strcpy(s,tk[ct]))
data/gle-graphics-4.2.5/src/gle/graph.h:333:40:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define next_quote(s) (ct+=1,skipspace,strcpy(s,un_quote(tk[ct])))
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3182: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(next,tk[*ct]);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3196: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,next);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3211: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(next,tk[*ct]);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3470:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(entry->lstyle,dp[d]->lstyle);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:4156: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(lstyle, other->lstyle);
data/gle-graphics-4.2.5/src/gle/key.cpp:81:29:  [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).
#define next_str(s)  (ct+=1,strcpy(s,tk[ct]))
data/gle-graphics-4.2.5/src/gle/key.cpp:83:30:  [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).
#define next_quote(s) (ct+=1,strcpy(&s,un_quote(tk[ct])))
data/gle-graphics-4.2.5/src/gle/keyword.cpp:156: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(kp,mkeywfn[i].word);
data/gle-graphics-4.2.5/src/gle/memory.cpp:48: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(v,s);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:298:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(result, format, pos_num / pow(10.0, *exp));
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:315:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(result, format, number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:330:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(result, format, 100*number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:512:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(res, fmt, prefix[(expof10-GLE_FMT_ENG_PREFIX_START)/3]);
data/gle-graphics-4.2.5/src/gle/pass.cpp:2273: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(*d,s);
data/gle-graphics-4.2.5/src/gle/polish.cpp:577: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(str_target, str.c_str());
data/gle-graphics-4.2.5/src/gle/polish.cpp:593: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(str_target, str);
data/gle-graphics-4.2.5/src/gle/run.cpp:573: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(ss,(char *) (pcode+cp));
data/gle-graphics-4.2.5/src/gle/run.cpp:1580: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(ss,(char *) (pcode+cp));
data/gle-graphics-4.2.5/src/gle/surface/ffitcontour.cpp:53:16:  [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.
#define gprint printf
data/gle-graphics-4.2.5/src/gle/tex.cpp:1820: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(SC out,SC in.c_str());
data/gle-graphics-4.2.5/src/gle/token.cpp:64: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(tok[*ntok],token_start);
data/gle-graphics-4.2.5/src/gle/token.cpp:213:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(outbuff,s);
data/gle-graphics-4.2.5/src/gle/token.cpp:214:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(tk[*ntok],outbuff);
data/gle-graphics-4.2.5/src/gui/glegs.cpp:99: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(res, str);
data/gle-graphics-4.2.5/src/gui/main.cpp:110:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(szOutBuffer, "   Error: %s not found.\n", szModuleName);
data/gle-graphics-4.2.5/src/gui/main.cpp:167:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(szOutBuffer, " (module %s)", fName);
data/gle-graphics-4.2.5/src/gui/main.cpp:214:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(szOutBuffer, "Error code 0x%08x in module %s at %04x:%08x.\n", (unsigned int)info->ExceptionRecord->ExceptionCode, szCrashModuleName, (unsigned int)Context->SegCs, (unsigned int)Context->Eip);
data/gle-graphics-4.2.5/src/gui/main.cpp:227:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(szOutBuffer, "\nGLE file: '%s'\n", QGLEScriptNameBackup);
data/gle-graphics-4.2.5/src/gui/main.cpp:237:2:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	lstrcpy(szCommandLine, szModuleName);
data/gle-graphics-4.2.5/src/gui/main.cpp:239:2:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
	lstrcat(szCommandLine, szTempName);
data/gle-graphics-4.2.5/src/gui/qgle_statics.cpp:451:23:  [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.
#error What operating system are you using?
data/gle-graphics-4.2.5/src/gui/qgs.cpp:221:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	set.sprintf("<< /Orientation %d >> setpagedevice .locksafe",m_orientation);
data/gle-graphics-4.2.5/src/gui/qgs.cpp:637:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		internalArgs << QString().sprintf("-dDisplayFormat=%d", format);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:129:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(filename, argv[argpos+2]);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:130:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(fmtname, argv[argpos+1]);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:132:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(filename, argv[argpos]);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:135:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(fmtname,filename);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:136:35:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if (strchr(filename,':')!=NULL) strcpy(fmtname,strchr(filename,':')+1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:309:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->afmVersion, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:317:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->fontName, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:323:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->encodingScheme, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:328:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->fullName, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:333:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->familyName, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:338:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->weight, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:363:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->version, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:368:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(gfi->notice, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:677:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(temp->name, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:699:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((*tail)->succ, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:702:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((*tail)->lig, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:897:25:  [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(fi->pkd[pos].name1, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:901:25:  [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(fi->pkd[pos].name2, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:920:25:  [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(fi->pkd[pos].name1, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:924:25:  [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(fi->pkd[pos].name2, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1035:25:  [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(fi->ccd[pos].ccName, keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1055:25:  [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(fi->ccd[pos].pieces[j].pccName, keyword);
data/gle-graphics-4.2.5/src/manip/all.h:91:9:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	#undef wprintf
data/gle-graphics-4.2.5/src/manip/all.h:92:10:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	#define wprintf printf
data/gle-graphics-4.2.5/src/manip/all.h:92:18:  [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.
	#define wprintf printf
data/gle-graphics-4.2.5/src/manip/all.h:134:16:  [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.
#define gprint printf
data/gle-graphics-4.2.5/src/manip/cmd.cpp:89:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(inbuff,cmd);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:163:41:  [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).
		else if (strcmp(tok(2),"MISSING")==0) strcpy(strmiss,unquote(tok(3)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:238:7:  [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("") == -1) {
data/gle-graphics-4.2.5/src/manip/cmd.cpp:242:3:  [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(getenv("COMSPEC"));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:314:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(s1,t1+5); strcpy(s2,s+1);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:314:20:  [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,t1+5); strcpy(s2,s+1);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:396:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(s,sxx);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:471: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(file_name,fname);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:606: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(savefmtg,fmtg);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:610: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(file_name,fname);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:636:18:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if (inlen>0) { strcpy(inbuff+inlen,between); inlen +=strlen(between);}
data/gle-graphics-4.2.5/src/manip/cmd.cpp:640:22:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if (coltype[k]==0) strcpy(fmtg,savefmtg);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:644:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			i = sprintf(buff1,fmtg,vcell(rr.col,rr.row));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:672: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(buff,src);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:689: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(dest,buff);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:690:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(dest,src);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:709: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(ss,s);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:773: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(pat,patx);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:778:37:  [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).
	if (pat[0]=='(') {strcpy(pat,"1"); strcat(pat,patx);}
data/gle-graphics-4.2.5/src/manip/cmd.cpp:781: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(middle,strtok(NULL,"()"));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:804:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p,pat);
data/gle-graphics-4.2.5/src/manip/eval.cpp:135: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(sbuf,eval_str(pcode,&c));
data/gle-graphics-4.2.5/src/manip/eval.cpp:209:29:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			if (stk_str[nstk]!=NULL) strcpy(sbuf,stk_str[nstk]);
data/gle-graphics-4.2.5/src/manip/eval.cpp:210:31:  [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).
			if (stk_str[nstk+1]!=NULL) strcat(sbuf,stk_str[nstk+1]);
data/gle-graphics-4.2.5/src/manip/eval.cpp:268: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(sbuf2,ctime(&today));
data/gle-graphics-4.2.5/src/manip/eval.cpp:269: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(sbuf,sbuf2);
data/gle-graphics-4.2.5/src/manip/eval.cpp:270: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(sbuf+11,sbuf2+20);
data/gle-graphics-4.2.5/src/manip/eval.cpp:313: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(sbuf,stk_str[nstk-1] + (int) stk[nstk] - 1);
data/gle-graphics-4.2.5/src/manip/eval.cpp:320: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(sbuf,stk_str[nstk-2] + (int) stk[nstk-1] - 1);
data/gle-graphics-4.2.5/src/manip/eval.cpp:363:41:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	if (*otyp==2) if (stk_str[nstk]!=NULL) strcpy(ostr,stk_str[nstk]);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:109:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(s,ques); strcat(s," ["); strcat(s,dflt); strcat(s,"] ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:109:41:  [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).
        strcpy(s,ques); strcat(s," ["); strcat(s,dflt); strcat(s,"] ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:111:32:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        if (strlen(result)==0) strcpy(result,dflt);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:277:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(mbuff,cmi->val + cx);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:300:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(mbuff,cmi->val + cx);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:418:33:  [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(fk1,strtok(NULL," \n"));
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:424:33:  [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(fk2,strtok(NULL," \n"));
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:532:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(msend,"\t%s ",s);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:533:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(cs,s);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:564:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(wild,wld);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:618:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(result,((ask.menu)[ask.ci]).val);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:621:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(wild,mwild->val);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:641:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buff2,wild+2); strcpy(wild,buff2);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:641:39:  [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(buff2,wild+2); strcpy(wild,buff2);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:647:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buff2,wild+2); strcpy(wild,buff2);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:647:39:  [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(buff2,wild+2); strcpy(wild,buff2);
data/gle-graphics-4.2.5/src/manip/general.cpp:78: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(v,s);
data/gle-graphics-4.2.5/src/manip/general.cpp:112: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(*d,s);
data/gle-graphics-4.2.5/src/manip/keyword.cpp:101: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(kp,mkeywfn[i].word);
data/gle-graphics-4.2.5/src/manip/manip.cpp:110:64:  [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).
                else if (strncmp( argv[i] , "-COMMANDS",2)==0) strcpy(atfile,argv[++i]);
data/gle-graphics-4.2.5/src/manip/manip.cpp:114:45:  [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).
                else if (isalnum(*argv[i])) strcpy(file_name, argv[i]);
data/gle-graphics-4.2.5/src/manip/manip.cpp:322:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buff,scell(x,y));
data/gle-graphics-4.2.5/src/manip/manip.cpp:347:6:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void wprintf(const char* arg_list, ...) {
data/gle-graphics-4.2.5/src/manip/manip.cpp:349:6:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void wprintf(va_list arg_list, ...) {
data/gle-graphics-4.2.5/src/manip/manip.cpp:357:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
         vsprintf(output, format, arg_ptr);
data/gle-graphics-4.2.5/src/manip/manip.cpp:359:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(output);
data/gle-graphics-4.2.5/src/manip/manip.cpp:455:25:  [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(ans,lastline[cl]);
data/gle-graphics-4.2.5/src/manip/manip.cpp:467:41:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                if (lastline[cl]!=NULL) strcpy(ans,lastline[cl]);
data/gle-graphics-4.2.5/src/manip/manip.cpp:550:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(mbuff,s + cx);
data/gle-graphics-4.2.5/src/manip/manip.cpp:551:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(s,mbuff);
data/gle-graphics-4.2.5/src/manip/manip.cpp:567:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(mbuff,s + cx);
data/gle-graphics-4.2.5/src/manip/manip.cpp:568:25:  [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,mbuff);
data/gle-graphics-4.2.5/src/manip/manip.h:64:7:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void wprintf(const char* arg_list, ...);
data/gle-graphics-4.2.5/src/manip/manip.h:68:7:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void wprintf(va_list arg_list, ...);
data/gle-graphics-4.2.5/src/manip/mjl.cpp:56:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if (strlen(infile)==0) strcpy(infile,buff);
data/gle-graphics-4.2.5/src/manip/polish.cpp:116: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(buff,cts);
data/gle-graphics-4.2.5/src/manip/polish.cpp:117:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buff,tok(++ct));
data/gle-graphics-4.2.5/src/manip/polish.cpp:119:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
					strcat(buff,tok(++ct));
data/gle-graphics-4.2.5/src/manip/sub.cpp:104:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(sb[i]->name,s);
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:62: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(mystr,s);
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:87: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(buff,wild);
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:89:3:  [4] (shell) execlp:
  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.
		execlp("sh","sh","-c", buff, NULL);
data/gle-graphics-4.2.5/src/manip/var.cpp:100:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if (var_str[jj]!=NULL) strcpy(s,var_str[jj]);
data/gle-graphics-4.2.5/src/manip/var.cpp:106:34:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		if ((*lvar_str)[jj-200]!=NULL) strcpy(s,(*lvar_str)[jj-200]);
data/gle-graphics-4.2.5/src/manip/varargs.cpp:58:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf(string, fmt, args);
data/gle-graphics-4.2.5/src/manip/varargs.cpp:68:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf(string, fmt, args);
data/gle-graphics-4.2.5/src/gle/config.cpp:601:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* top = getenv("GLE_TOP");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:127:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* env = getenv(name.c_str());
data/gle-graphics-4.2.5/src/gle/file_io.cpp:158:24:  [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.
	const char* usr_lib = getenv("GLE_USRLIB");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:160: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.
		paths = getenv("GLE_USRLIB");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:482:18:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
		UINT uRetVal = GetTempFileName(lpPathBuffer, TEXT("gle"), 0, szTempName);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:698:19:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	BOOL bFuncRetn = CreateProcess(NULL,
data/gle-graphics-4.2.5/src/gle/file_io.cpp:698:19:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	BOOL bFuncRetn = CreateProcess(NULL,
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1175:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* ldlibpath = getenv("LD_LIBRARY_PATH");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1217:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* path = getenv("PATH");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1415:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* home = getenv("HOME");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1509:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				char* var = getenv(envVar.c_str());
data/gle-graphics-4.2.5/src/gui/main.cpp:191:17:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
	UINT uRetVal = GetTempFileName(lpPathBuffer, TEXT("gle"), 0, szTempName);
data/gle-graphics-4.2.5/src/gui/main.cpp:248:6:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (CreateProcess(NULL,	szCommandLine, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
data/gle-graphics-4.2.5/src/gui/main.cpp:248:6:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (CreateProcess(NULL,	szCommandLine, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
data/gle-graphics-4.2.5/src/gui/qgslibloader.cpp:115:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		hmodule = LoadLibrary((const WCHAR*)m_LibGSLocation.unicode());
data/gle-graphics-4.2.5/src/gui/qgslibloader.cpp:118:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		hmodule = LoadLibrary((const WCHAR*)m_LibGSLocation.unicode());
data/gle-graphics-4.2.5/src/manip/cmd.cpp:242:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		system(getenv("COMSPEC"));
data/gle-graphics-4.2.5/src/manip/manip.cpp:587:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* top = getenv("GLE_TOP");
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:60:6:  [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(sym);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:67: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 inbuff[200],zzz[200];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:68: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 source[20];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:69: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 tk[TOKEN_LENGTH][TOKEN_WIDTH];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:70: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 tkbuff[500];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[80];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outfile[80];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:99:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(outfile,".fve");
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:100:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(fname,".gle");
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:104:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout.open(outfile, WRITE_BIN);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:106: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).
	fptr = fopen(fname,"r");
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:197:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			else thischar = atoi(tk[ct]);
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:234: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.
	union jjj {char a[2]; short b;} both;
data/gle-graphics-4.2.5/src/fbuild/token.cpp:76: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 term_table1[256];
data/gle-graphics-4.2.5/src/fbuild/token.cpp:77:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char term_table2[256];
data/gle-graphics-4.2.5/src/fbuild/token.cpp:78: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 term_table3[256];
data/gle-graphics-4.2.5/src/gle/axis.cpp:220: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 cbuff[100];
data/gle-graphics-4.2.5/src/gle/axis.cpp:223: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(cbuff, "%f", value);
data/gle-graphics-4.2.5/src/gle/axis.cpp:225: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(cbuff, "%e", value);
data/gle-graphics-4.2.5/src/gle/axis.cpp:523: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 cbuff[100];
data/gle-graphics-4.2.5/src/gle/axis.cpp:538:8:  [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(cbuff, "10");
data/gle-graphics-4.2.5/src/gle/axis.h:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ticks_lstyle[9];
data/gle-graphics-4.2.5/src/gle/axis.h:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subticks_lstyle[9],label_lstyle[9];
data/gle-graphics-4.2.5/src/gle/axis.h:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char side_lstyle[9];
data/gle-graphics-4.2.5/src/gle/begin.cpp:128:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(space_str," \0");
data/gle-graphics-4.2.5/src/gle/begin.h:53: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.
BEGINDEF char tk[TOKEN_LENGTH][TOKEN_WIDTH];
data/gle-graphics-4.2.5/src/gle/begin.h:54: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.
BEGINDEF char strbuf[STRBUF_LENGTH];
data/gle-graphics-4.2.5/src/gle/begin.h:55: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.
BEGINDEF char srclin[SRCLIN_LENGTH];
data/gle-graphics-4.2.5/src/gle/begin.h:56: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.
BEGINDEF char outbuff[OUTBUFF_LENGTH];
data/gle-graphics-4.2.5/src/gle/begin.h:57: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.
BEGINDEF char inbuff[OUTBUFF_LENGTH];
data/gle-graphics-4.2.5/src/gle/begin.h:58: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.
BEGINDEF char tkbuff[TKBUFF_LENGTH];
data/gle-graphics-4.2.5/src/gle/begin.h:59: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.
BEGINDEF char space_str[3];
data/gle-graphics-4.2.5/src/gle/bitmap/ascii85.cpp:53: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.
	static char encoded[6];
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.h:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sig[3];              // "GIF"
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.h:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ver[3];              // "87a" or "89a"
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char markstr[20];
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:130: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(markstr, "0x%X", marker);
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:148: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(markstr, "0x%X", marker);
data/gle-graphics-4.2.5/src/gle/bitmap/gletiff.cpp:62:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int GLETIFF::open(const string& fname) {
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:73:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int GLEBitmap::open(const string& fname) {
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:275:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int GLEFileBitmap::open(const string& fname) {
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:276:9:  [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).
	m_file.open(fname.c_str(), "rb");
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h:141:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual int open(const string& fname);
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h:159:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual int open(const string& fname);
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h:203:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual int open(const string& fname);
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h:345:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char m_Buffer[10];
data/gle-graphics-4.2.5/src/gle/cmdline.cpp:247:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	m_Value = atoi(value.c_str());
data/gle-graphics-4.2.5/src/gle/color.h:44:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b[4];
data/gle-graphics-4.2.5/src/gle/core.cpp:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void dis_mat(char *s,double m[3][3]);
data/gle-graphics-4.2.5/src/gle/core.cpp:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[20];
data/gle-graphics-4.2.5/src/gle/core.cpp:912:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (newmat != new_g->image) memcpy(&new_g->image, newmat, GLE_TRNS_MATRIX_SIZE);
data/gle-graphics-4.2.5/src/gle/core.cpp:971:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a,&c,GLE_TRNS_MATRIX_SIZE);	/* maybe sizeof(*a) would be better? */
data/gle-graphics-4.2.5/src/gle/core.cpp:989:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmpimg,g.image,GLE_TRNS_MATRIX_SIZE);
data/gle-graphics-4.2.5/src/gle/core.cpp:1011:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmpimg,g.image,GLE_TRNS_MATRIX_SIZE);
data/gle-graphics-4.2.5/src/gle/core.cpp:1033:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmpimg,g.image,GLE_TRNS_MATRIX_SIZE);
data/gle-graphics-4.2.5/src/gle/core.cpp:1058:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void dis_mat(char *s,double m[3][3]) {
data/gle-graphics-4.2.5/src/gle/core.cpp:1074:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmpimg,g.image,GLE_TRNS_MATRIX_SIZE);
data/gle-graphics-4.2.5/src/gle/core.cpp:2031:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			*bx1 = atoi(tokens.next_token().c_str());
data/gle-graphics-4.2.5/src/gle/core.cpp:2034:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			*by1 = atoi(tokens.next_token().c_str());
data/gle-graphics-4.2.5/src/gle/core.cpp:2037:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			*bx2 = atoi(tokens.next_token().c_str());
data/gle-graphics-4.2.5/src/gle/core.cpp:2040:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			*by2 = atoi(tokens.next_token().c_str());
data/gle-graphics-4.2.5/src/gle/core.cpp:2283:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (bitmap->open(fname) == 0) {
data/gle-graphics-4.2.5/src/gle/core.cpp:2347:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (bitmap->open(fname) == 0) {
data/gle-graphics-4.2.5/src/gle/core.cpp:2609:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_lstyle[15];
data/gle-graphics-4.2.5/src/gle/core.cpp:2666:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_lstyle[15];
data/gle-graphics-4.2.5/src/gle/core.cpp:3952:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_lstyle[15];
data/gle-graphics-4.2.5/src/gle/core.h:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle [9];
data/gle-graphics-4.2.5/src/gle/cutils.cpp:588:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_value[80];
data/gle-graphics-4.2.5/src/gle/cutils.cpp:589: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(str_value, "%d", value);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:331:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ob[200];
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:345: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(ob+strlen(ob),"%g ",(*(s+i)-'0')*g.lstyled);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:972: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 temp[50];
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:973: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(temp,"(\\%o)",cc);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:994:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inbuff[200];
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:1002: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).
	fptr = fopen(fname.c_str(), "r");
data/gle-graphics-4.2.5/src/gle/d_x.cpp:409: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 lastline[80];
data/gle-graphics-4.2.5/src/gle/d_x.cpp:558:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dashlist[64];
data/gle-graphics-4.2.5/src/gle/drawit.cpp:177:8:  [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).
	input.open(expanded.c_str());
data/gle-graphics-4.2.5/src/gle/drawit.cpp:186: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).
	FILE* result = fopen(expanded.c_str(), mode);
data/gle-graphics-4.2.5/src/gle/eval.cpp:99: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 sbuf[512];
data/gle-graphics-4.2.5/src/gle/eval.cpp:100: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 sbuf2[112];
data/gle-graphics-4.2.5/src/gle/eval.cpp:648: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(sbuf,"%g",getEvalStackDouble(stk, stk->last()));
data/gle-graphics-4.2.5/src/gle/eval.cpp:652: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(sbuf,"%g ",getEvalStackDouble(stk, stk->last()));
data/gle-graphics-4.2.5/src/gle/eval.cpp:886: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(sbuf, "D%d", getEvalStackInt(stk, stk->last()));
data/gle-graphics-4.2.5/src/gle/file_io.cpp:459:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR lpPathBuffer[WIN32_TMPNAM_BUFSIZE+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:478:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szTempName[WIN32_TMPNAM_BUFSIZE+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:479:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR lpPathBuffer[WIN32_TMPNAM_BUFSIZE+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:491:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(temp);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:543:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR buffer[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:557: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 buffer[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:571:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR buffer[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:579:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:626:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[GLEREAD_BUF+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:648:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char write_buffer[GLEREAD_BUF+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:812: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 read_buffer[GLEREAD_BUF+1], write_buffer[GLEREAD_BUF+1];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:902:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(fname.c_str(), "rb");
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1245:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file->open(fname.c_str());
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1250:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file->open(fullpath.c_str());
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1260:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file->open(path.c_str());
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1340:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1349:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1359:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1563:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void GLEFileIO::open(const char* fname, const char* flags)
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1566: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).
	m_file = fopen(fname, flags);
data/gle-graphics-4.2.5/src/gle/file_io.h:174:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const char* fname, const char* flags);
data/gle-graphics-4.2.5/src/gle/font.cpp:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inbuff[200];
data/gle-graphics-4.2.5/src/gle/font.cpp:147: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).
	FILE *fptr = fopen(fname.c_str(), READ_BIN);
data/gle-graphics-4.2.5/src/gle/font.cpp:285:6:  [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).
	fmt.open(fname.c_str(), READ_BIN);
data/gle-graphics-4.2.5/src/gle/font.cpp:294:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fmt.open(fname.c_str(), READ_BIN);
data/gle-graphics-4.2.5/src/gle/gle-datatype.cpp:335:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_Unicode[5];
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:227:76:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
GLERC<GLEScript> GLEInterface::newGLEFile(const char* glecode, const char* tmpfile) {
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:230:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		string in_name = tmpfile;
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:917:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char number[50];
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:920:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(number, "%d", msg->getLine());
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:2207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[15];
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:2214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[15];
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:2373:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[15];
data/gle-graphics-4.2.5/src/gle/gle-interface/gle-interface.h:799:70:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	DLLFCT GLERC<GLEScript> newGLEFile(const char* glecode, const char* tmpfile);
data/gle-graphics-4.2.5/src/gle/gle-sourcefile.cpp:244:9:  [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).
		input.open(getLocation()->getFullPath().c_str());
data/gle-graphics-4.2.5/src/gle/gle-sourcefile.cpp:256:8:  [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).
	input.open(getLocation()->getFullPath().c_str());
data/gle-graphics-4.2.5/src/gle/glearray.cpp:364:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&m_buffer[0], buffer, size);
data/gle-graphics-4.2.5/src/gle/glebtool.cpp:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char spliton[2];
data/gle-graphics-4.2.5/src/gle/gprint.cpp:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output[1024];
data/gle-graphics-4.2.5/src/gle/graph.cpp:592:3:  [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(br[g_nbar]->lstyle[i] ,"1\0");
data/gle-graphics-4.2.5/src/gle/graph.cpp:608:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			next_str((char *) br[g_nbar]->lstyle);
data/gle-graphics-4.2.5/src/gle/graph.cpp:666:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s1[40],s2[40];
data/gle-graphics-4.2.5/src/gle/graph.h:423:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[9];
data/gle-graphics-4.2.5/src/gle/graph.h:493:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[20][9];
data/gle-graphics-4.2.5/src/gle/graph.h:522: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.
GRAPHDEF char ebuff[400];
data/gle-graphics-4.2.5/src/gle/graph2.cpp:1190:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(xold,xnew,size*sizeof(double));
data/gle-graphics-4.2.5/src/gle/graph2.cpp:2810: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(new_let, "let d%d = %0.10e*x+%0.10e FROM %0.10e TO %0.10e", fitds, slope, offset, getFrom(), getTo());
data/gle-graphics-4.2.5/src/gle/graph2.cpp:2832: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(new_let, "let d%d = %0.10e*exp(%0.10e*x) FROM %0.10e TO %0.10e", fitds, offset, slope, getFrom(), getTo());
data/gle-graphics-4.2.5/src/gle/graph2.cpp:2854: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(new_let, "let d%d = %0.10e*10^(%0.10e*x) FROM %0.10e TO %0.10e", fitds, offset, slope, getFrom(), getTo());
data/gle-graphics-4.2.5/src/gle/graph2.cpp:2879: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(new_let, "let d%d = %0.10e*x^(%0.10e) FROM %0.10e TO %0.10e", fitds, offset, slope, getFrom(), getTo());
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char next[200];
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3192: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,"%g",temp);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char next[200];
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3237:9:  [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).
			*s = atoi(next);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3246:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#define next_dn  (ct+=1,skipspace,atoi(tk[ct]+1))
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3648:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			bigcol1 = atoi(col1.c_str());
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3655:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				bigcol2 = atoi(col2.c_str());
data/gle-graphics-4.2.5/src/gle/key.cpp:360: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(m_Justify, "BL");
data/gle-graphics-4.2.5/src/gle/key.cpp:363: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(m_Justify, "TR");
data/gle-graphics-4.2.5/src/gle/key.cpp:739:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char msep[9];
data/gle-graphics-4.2.5/src/gle/key.cpp:741:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(msep, "%d", info->getEntry(i - 1)->sepstyle);
data/gle-graphics-4.2.5/src/gle/key.h:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lstyle[9];
data/gle-graphics-4.2.5/src/gle/key.h:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_Justify[34];
data/gle-graphics-4.2.5/src/gle/letzfitz/fit.cpp:158:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			data.ncp = atoi(tk[++ct]);
data/gle-graphics-4.2.5/src/gle/memory.cpp:66: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(errgle,"\nError, attempt to allocate ZERO memory \n");
data/gle-graphics-4.2.5/src/gle/memory.cpp:73: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(errgle,"\nMemory allocation failure (size %d)\n", size);
data/gle-graphics-4.2.5/src/gle/memory.cpp:83: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(errgle,"\nError, attempt to allocate ZERO memory \n");
data/gle-graphics-4.2.5/src/gle/memory.cpp:90: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(errgle,"\nMemory allocation failure (size %d)\n", size);
data/gle-graphics-4.2.5/src/gle/memory.cpp:105: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 errgle[90];
data/gle-graphics-4.2.5/src/gle/mychar.cpp:67: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.
unsigned char my_name[80];
data/gle-graphics-4.2.5/src/gle/mychar.cpp:68: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 *my_code[80];
data/gle-graphics-4.2.5/src/gle/mychar.cpp:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(my_code[mi],my_buff+my_pnt[cc],plen+1);
data/gle-graphics-4.2.5/src/gle/mychar.cpp:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char vector_file[60];
data/gle-graphics-4.2.5/src/gle/mychar.cpp:130:6:  [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).
	fin.open(fontfname.c_str(), READ_BIN);
data/gle-graphics-4.2.5/src/gle/mychar.cpp:139:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fin.open(fontfname.c_str(), READ_BIN);
data/gle-graphics-4.2.5/src/gle/mychar.cpp:276: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.
	static union {char a[2];short b;} both;
data/gle-graphics-4.2.5/src/gle/mychar.cpp:297: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.
	static union {char a[2];short b;} both;
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:293:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[20], result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:297: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(format, "%%.%df", prec-1);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:313:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[20], result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:314: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(format, "%%.%df", m_NbDecPlaces);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:328:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char format[20], result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:329: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(format, "%%.%df", m_NbDecPlaces);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:471:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:478: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(res, "%.*f", digits-1, number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:531: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(res, "%.*f", digits-1, number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:535: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(res, "%.*f", digits-1, number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:608:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:612: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(result, "%d", number_int);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:616:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			if (hasUpper()) sprintf(result, "%X", number_int);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:617:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			else sprintf(result, "%x", number_int);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:675:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char result[100];
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:676: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(result, "%f", number);
data/gle-graphics-4.2.5/src/gle/numberformat.cpp:797:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int result = atoi(token.c_str());
data/gle-graphics-4.2.5/src/gle/op_def.h:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/gle-graphics-4.2.5/src/gle/pass.cpp:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[40];
data/gle-graphics-4.2.5/src/gle/pass.cpp:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *pname[20];
data/gle-graphics-4.2.5/src/gle/pass.cpp:86: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 *mark_name[30];
data/gle-graphics-4.2.5/src/gle/pass.cpp:87: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 *mrk_fname[61];
data/gle-graphics-4.2.5/src/gle/pass.cpp:88: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 *mrk_name[61];
data/gle-graphics-4.2.5/src/gle/pass.cpp:89: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 *mark_sub[30];
data/gle-graphics-4.2.5/src/gle/pass.cpp:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char block_type_str[20];
data/gle-graphics-4.2.5/src/gle/pass.cpp:171: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(block_type_str, "%d", type);
data/gle-graphics-4.2.5/src/gle/pass.cpp:1080:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&result, &xx, sizeof(int));
data/gle-graphics-4.2.5/src/gle/pass.cpp:1118:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&result, &xx, sizeof(int));
data/gle-graphics-4.2.5/src/gle/polish.cpp:40: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.
const char *ns[3] = {"nothing", "number", "string"};
data/gle-graphics-4.2.5/src/gle/polish.cpp:106: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 err_str[100];
data/gle-graphics-4.2.5/src/gle/polish.cpp:107: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(err_str, "': found >= %d, expected %d", nb_param+1, np);
data/gle-graphics-4.2.5/src/gle/polish.cpp:121: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 err_str[100];
data/gle-graphics-4.2.5/src/gle/polish.cpp:122: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(err_str, "': found %d, expected %d", nb_param, np);
data/gle-graphics-4.2.5/src/gle/run.cpp:178:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const char* fname) throw(ParserError);
data/gle-graphics-4.2.5/src/gle/run.cpp:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[50];
data/gle-graphics-4.2.5/src/gle/run.cpp:240: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(str, "byte code error (code = %d)", err);
data/gle-graphics-4.2.5/src/gle/run.cpp:517:35:  [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).
void GLERun::setDeviceIsOpen(bool open) {
data/gle-graphics-4.2.5/src/gle/run.cpp:518:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	done_open = open;
data/gle-graphics-4.2.5/src/gle/run.cpp:540: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.
	static char ss[255];
data/gle-graphics-4.2.5/src/gle/run.cpp:1238: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(&both.d,&x,sizeof(x));
data/gle-graphics-4.2.5/src/gle/run.cpp:1440:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&both.l,&x,4);
data/gle-graphics-4.2.5/src/gle/run.cpp:1445:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&both.l,&x,4);
data/gle-graphics-4.2.5/src/gle/run.cpp:1467:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(ss,"%d",i);
data/gle-graphics-4.2.5/src/gle/run.cpp:1816: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 ostr[80];
data/gle-graphics-4.2.5/src/gle/run.cpp:1879:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char str[80];
data/gle-graphics-4.2.5/src/gle/run.cpp:2082: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 ostr[500];
data/gle-graphics-4.2.5/src/gle/run.cpp:2208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ostr[255];
data/gle-graphics-4.2.5/src/gle/run.cpp:2406: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 chn_s[10];
data/gle-graphics-4.2.5/src/gle/run.cpp:2407: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(chn_s, "%d", chn);
data/gle-graphics-4.2.5/src/gle/run.cpp:2430:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->open(fname);
data/gle-graphics-4.2.5/src/gle/run.cpp:2465:15:  [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).
void GLEFile::open(const char* fname) throw(ParserError) {
data/gle-graphics-4.2.5/src/gle/run.cpp:2476: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).
		m_Output = fopen(m_FileName.c_str(), "w");
data/gle-graphics-4.2.5/src/gle/run.cpp:2514: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 set[2];
data/gle-graphics-4.2.5/src/gle/run.h:92:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void setDeviceIsOpen(bool open);
data/gle-graphics-4.2.5/src/gle/savgol.cpp:99:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(xold,xnew,size*sizeof(double));
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:172: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 buff[20];
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:173: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(buff,"%c",i+'A');
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp: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 buff[50];
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:178: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(buff,"%g",m_CVal[i]);
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:387:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			smoothsub = atoi(tk[++ct]);
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:96: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 input_file[80];
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:437: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 buff[2032];
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:571:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (cursize>0) memcpy(d,pntxyz,cursize*sizeof(float));
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:662:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.title_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:663:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.cube_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:664:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.droplines_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:665:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.riselines_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:666:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.marker_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:667:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.xaxis.color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:668:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.xaxis.title_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:669:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.yaxis.color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:670:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.yaxis.title_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:671:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.zaxis.color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:672:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sf.zaxis.title_color, "BLACK");
data/gle-graphics-4.2.5/src/gle/surface/gsurface.h:47: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.
typedef char MARKER[12];
data/gle-graphics-4.2.5/src/gle/surface/gsurface.h:48: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.
typedef char COLOR[12];
data/gle-graphics-4.2.5/src/gle/surface/gsurface.h:49: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.
typedef char LSTYLE[12];
data/gle-graphics-4.2.5/src/gle/surface/hide.cpp:88: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.
void matshow(const char *s, float m[4][4]);
data/gle-graphics-4.2.5/src/gle/surface/hide.cpp:965:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a,c,4*4*sizeof(float));
data/gle-graphics-4.2.5/src/gle/surface/hide.cpp:1137: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.
void matshow(const char *s, float m[4][4]) {
data/gle-graphics-4.2.5/src/gle/tex.cpp:185: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 *cdeftable[256];   /* Character macro's */
data/gle-graphics-4.2.5/src/gle/tex.cpp:847:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i = atoi(params->getCStr1());  if (i>15) i = 1;
data/gle-graphics-4.2.5/src/gle/tex.cpp:853:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_tex_font(select_font_encoding(p_fnt, atoi(params->getCStr1()), params->getCStr2()));
data/gle-graphics-4.2.5/src/gle/tex.cpp:999:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*i = atoi(s);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1007:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*i = atoi(s.c_str());
data/gle-graphics-4.2.5/src/gle/tex.cpp:1883:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout.open(fname.c_str(), "wb");
data/gle-graphics-4.2.5/src/gle/tex.cpp:1932:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str1[80],str2[80];
data/gle-graphics-4.2.5/src/gle/tex.cpp:1936: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).
	fhv = fopen("decode.tex","w");
data/gle-graphics-4.2.5/src/gle/tex.cpp:1939:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout.open(fname.c_str(), "rb");
data/gle-graphics-4.2.5/src/gle/tex.cpp:2034:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hexcode[10];
data/gle-graphics-4.2.5/src/gle/tex.cpp:2035: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(hexcode, "%.4X", unicode);
data/gle-graphics-4.2.5/src/gle/texinterface.cpp:387:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					int nblines = atoi(line.c_str());
data/gle-graphics-4.2.5/src/gle/texinterface.cpp:756:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					int nblines = atoi(line.c_str());
data/gle-graphics-4.2.5/src/gle/token.cpp:69: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 term_table1[256];
data/gle-graphics-4.2.5/src/gle/token.cpp:70: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 term_table2[256];
data/gle-graphics-4.2.5/src/gle/token.cpp:71: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 term_table3[256];
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:49:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ch[3];
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:60:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ch[3];
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:76:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:77: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(buf, "0x%x", m_pos);
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:109: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 buf[32];
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:110: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(buf, "%d <> %d", fver, version);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lines[15], cols[15], res[50];
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:239: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.
	else sprintf(lines, "%d", m_line);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:241: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.
	else sprintf(cols, "%d", m_col-1);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:308:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[30];
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:309: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(str, "%d", idx);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:578:53:  [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).
void TokenizerLanguageMultiLevel::setOpenClose(char open, char close) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:579:21:  [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).
	m_open_tokens[(int)open] = close;
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:817:43:  [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).
void Tokenizer::multi_level_do_multi(char open) throw(ParserError) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:819:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_open_token.push_back(open);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1366:8:  [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).
	m_fb->open(fname, ios::in);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1514:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void MyOutputFile::open(const char* fname) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1516:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_FB.open(fname, ios::out);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1520:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void MyOutputFile::open(const string& fname) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1522:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_FB.open(fname.c_str(), ios::out);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_open_tokens[255];
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:208:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void setOpenClose(char open, char close);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:297:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_token_pushback_ch[MAX_PUSHBACK_CH];
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:452:33:  [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).
	void multi_level_do_multi(char open) throw(ParserError);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:518:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const char* fname);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.h:519:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(const string& fname);
data/gle-graphics-4.2.5/src/gle/var.cpp:552:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int d = atoi(name.c_str()+1);
data/gle-graphics-4.2.5/src/gui/about.cpp:96: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).
	if (file.open(QIODevice::ReadOnly | QIODevice::Text))
data/gle-graphics-4.2.5/src/gui/dialogues.cpp:493:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (myfile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/gle-graphics-4.2.5/src/gui/dialogues.cpp:580:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (myfile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/gle-graphics-4.2.5/src/gui/dialogues.cpp:601:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (subfile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/gle-graphics-4.2.5/src/gui/downloader.cpp:196:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!file->open(QIODevice::WriteOnly)) {
data/gle-graphics-4.2.5/src/gui/downloader.cpp:296:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->open(QBuffer::ReadWrite);
data/gle-graphics-4.2.5/src/gui/glegs.cpp:66:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file.open(confname.c_str());
data/gle-graphics-4.2.5/src/gui/macspecific.cpp:32: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 buffer[10000];
data/gle-graphics-4.2.5/src/gui/macspecific.cpp:34:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file.open(fname.c_str());
data/gle-graphics-4.2.5/src/gui/main.cpp:76: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 QGLEScriptNameBackup[QGLE_SCRIPT_NAME_BACKUP_SIZE+1];
data/gle-graphics-4.2.5/src/gui/main.cpp:96: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 szModuleName[MAX_PATH+1];
data/gle-graphics-4.2.5/src/gui/main.cpp:99: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(szOutBuffer, "   Error: GetModuleFileName fails.\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:107: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(szModuleName, "dbghelp.dll");
data/gle-graphics-4.2.5/src/gui/main.cpp:115: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(szOutBuffer, "   Error: dbghelp.dll not found.\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:122: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(szOutBuffer, "   Error: dbghelp.dll does not include StackWalk.\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:129: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(szOutBuffer, "   Error: dbghelp.dll does not include the required functions.\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szBuf[MAX_PATH*2];
data/gle-graphics-4.2.5/src/gui/main.cpp:148: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(szOutBuffer, "   StackWalk end offset: %08lx - error code = %ld\n", frame.AddrPC.Offset, GetLastError());
data/gle-graphics-4.2.5/src/gui/main.cpp:153: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(szOutBuffer, "   Infinite call stack - offset: %08lx\n", frame.AddrPC.Offset);
data/gle-graphics-4.2.5/src/gui/main.cpp:160: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(szOutBuffer, "   Call: 0x%08lx", frame.AddrPC.Offset);
data/gle-graphics-4.2.5/src/gui/main.cpp:184:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR lpPathBuffer[MAX_PATH+1];
data/gle-graphics-4.2.5/src/gui/main.cpp:190:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szTempName[MAX_PATH+1];
data/gle-graphics-4.2.5/src/gui/main.cpp:202:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szCrashModulePathName[MAX_PATH*2];
data/gle-graphics-4.2.5/src/gui/main.cpp:203:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(szCrashModulePathName, "Unknown");
data/gle-graphics-4.2.5/src/gui/main.cpp:210:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szOutBuffer[5000];
data/gle-graphics-4.2.5/src/gui/main.cpp:218: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(szOutBuffer, "Write to location %08x caused an access violation.\n", (unsigned int)info-> ExceptionRecord->ExceptionInformation[1]);
data/gle-graphics-4.2.5/src/gui/main.cpp:220: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(szOutBuffer, "Read from location %08x caused an access violation.\n", (unsigned int)info-> ExceptionRecord->ExceptionInformation[1]);
data/gle-graphics-4.2.5/src/gui/main.cpp:224: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(szOutBuffer, "\nStack trace:\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:231:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szModuleName[MAX_PATH+1];
data/gle-graphics-4.2.5/src/gui/main.cpp:236:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szCommandLine[2*MAX_PATH];
data/gle-graphics-4.2.5/src/gui/main.cpp:238:2:  [2] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant string.
	lstrcat(szCommandLine, L" -crashrecover \"");
data/gle-graphics-4.2.5/src/gui/mainwindow.cpp:2462:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!file.open(QIODevice::ReadOnly)) {
data/gle-graphics-4.2.5/src/gui/qgle_statics.cpp:383:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/gle-graphics-4.2.5/src/gui/qgs.cpp:51:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int open(void*, void*)
data/gle-graphics-4.2.5/src/gui/qgs.cpp:116:3:  [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).
	&open,
data/gle-graphics-4.2.5/src/gui/qgs.cpp:140:3:  [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).
	&open,
data/gle-graphics-4.2.5/src/gui/qgs.cpp:369:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/gle-graphics-4.2.5/src/gui/qgs.h:50:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int open(void* /*handle*/, void* /*device */ );
data/gle-graphics-4.2.5/src/gui/qgs.h:350:27:  [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).
	friend int GSApiWrapper::open(void* /*handle*/,void* /*device */ );
data/gle-graphics-4.2.5/src/gui/serverthread.cpp:101: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 buffer[2000];
data/gle-graphics-4.2.5/src/gui/serverthread.cpp:403: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).
	if (!file.open( QIODevice::ReadOnly ))
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[80];
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:118:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmtname[80];
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:137:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(fmtname,".fmt");
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:138:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(filename,".afm");
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:145: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).
	FILE* fp = fopen(filename, READ_BIN);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:183:6:  [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).
	fmt.open(fmtname, WRITE_BIN);
data/gle-graphics-4.2.5/src/makefmt/makefmt.cpp:230:8:  [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).
		strm.open(encname);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:354:43:  [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).
	                gfi->underlinePosition = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:358:47:  [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).
                    gfi->underlineThickness = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:372:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.llx = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:374:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.lly = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:376:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.urx = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:378:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.ury = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:382:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->capHeight = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:386:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->xHeight = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:390:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->descender = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:394:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->ascender = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:469:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                width = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:571:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    pos = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:581:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        cwi[pos] = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:658:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    temp->code = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:668:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wx = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:669:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wy = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:672:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wx = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:680:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.llx = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:681:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.lly = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:682:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.urx = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:683:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.ury = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:789:47:  [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).
                        fi->tkd[pos].degree = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:903: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).
                        fi->pkd[pos].xamt = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:905:47:  [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).
                        fi->pkd[pos++].yamt = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:926:47:  [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).
                        fi->pkd[pos++].xamt = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1037:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->ccd[pos].numOfPieces = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1057:57:  [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).
                        fi->ccd[pos].pieces[j].deltax = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1059:59:  [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).
                        fi->ccd[pos].pieces[j++].deltay = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1156:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        (*fi)->numOfChars = atoi(token(fp));
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1208:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfTracks = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1223:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfPairs = atoi(keyword);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1238:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfComps = atoi(keyword);
data/gle-graphics-4.2.5/src/manip/all.h:142: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.
typedef char (*(*TOKENS)[500]);
data/gle-graphics-4.2.5/src/manip/cell.cpp:232: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.
	static char buff[80];
data/gle-graphics-4.2.5/src/manip/cell.cpp:237: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(buff,"%g",f_numbers[j]);
data/gle-graphics-4.2.5/src/manip/cell.cpp:244: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(buff,"%g",d_numbers[j]);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:77: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 strmiss[40];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:80: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.
	static char inbuff[200];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:81: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.
	static char *tk[500];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:82: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.
	static char tkbuff[500];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:164:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strcmp(tok(2),"DIGITS")==0) outwidth2 = atoi(tok(3));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:166:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(tok(3));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:167:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (*ntok>3) dpoints[atoi(tok(4))] = i;
data/gle-graphics-4.2.5/src/manip/cmd.cpp:171:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(tok(3));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:172:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (*tok(3)=='C') i = atoi(tok(3)+1);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:177:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				j = atoi(tok(5));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:185:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strcmp(tok(2),"COLUMNS")==0) set_ncol(atoi(tok(3)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:186:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strcmp(tok(2),"NCOL")==0) set_ncol(atoi(tok(3)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:187:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strcmp(tok(2),"COLWIDTH")==0) set_colwidth(atoi(tok(3)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:188:55:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if (strcmp(tok(2),"PRECISION")==0) outwidth2 = atoi(tok(3));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:190:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			set_size(atoi(tok(3)),atoi(tok(4)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:190:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			set_size(atoi(tok(3)),atoi(tok(4)));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:281:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_newxy(atoi(tk[2]),atoi(tk[3]));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:281:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_newxy(atoi(tk[2]),atoi(tk[3]));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:296: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.
	static char outstr[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:307: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 s1[80],s2[80],*s;
data/gle-graphics-4.2.5/src/manip/cmd.cpp:355: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.
	static char outstr[100];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:393:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:445: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.
	static char buff[40],*b;
data/gle-graphics-4.2.5/src/manip/cmd.cpp:450:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*v = atoi(buff);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:465: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.
	static char inbuff[8001];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:483: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).
	fptr = fopen(fname,"r");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:497: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 term_table[256];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:560: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.
	static char bb[88];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:575: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.
	static char inbuff[2001];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:576: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.
	static char fmtg[80],buff1[80],savefmtg[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:604: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(fmtg,"%%.%dg",outwidth2);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:605:36:  [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.
	if (outwidth1==0 && outwidth2==0) strcpy(fmtg,"%g");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:624: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).
	fptr = fopen("manip_.tmp","w");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:641:22:  [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.
		if (coltype[k]==1) strcpy(fmtg,"%f");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:642:22:  [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.
		if (coltype[k]==2) strcpy(fmtg,"%e");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:670: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.
	static char buff[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:674:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buff,"0000000000000000000000000000000000");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:681: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.
	static char buff[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:698:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		outwidth1 = atoi(s);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:702:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		outwidth1 = atoi(s);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:703:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		outwidth2 = atoi(ss);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:708:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ss[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:722:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outstr[30];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:768: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.
	static char pat[188];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:769: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.
	static char middle[80];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:780:9:  [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).
	left = atoi(strtok(pat,"()"));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:782:10:  [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).
	right = atoi(strtok(NULL,"()"));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:799: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.
	static char *s,p[200];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:848:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outstr[30];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:1010: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.
	static char ans[155];
data/gle-graphics-4.2.5/src/manip/cmd.cpp:1102:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	logfile = fopen(fname,"w");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:1120:24:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if (strstr(s,".")==0) strcat(s,".man");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:1128: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).
	atfile = fopen(fname,"r");
data/gle-graphics-4.2.5/src/manip/eval.cpp:67: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 *stk_str[100];
data/gle-graphics-4.2.5/src/manip/eval.cpp:69: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 sbuf[512];
data/gle-graphics-4.2.5/src/manip/eval.cpp:70: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 sbuf2[112];
data/gle-graphics-4.2.5/src/manip/eval.cpp:94:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(oval,&both.d,sizeof(both.d));
data/gle-graphics-4.2.5/src/manip/eval.cpp:299: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(sbuf,"%g ",stk[nstk]);
data/gle-graphics-4.2.5/src/manip/eval.cpp:305: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(sbuf,"%g",stk[nstk]);
data/gle-graphics-4.2.5/src/manip/eval.cpp:361:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( oval,&(stk[nstk]),sizeof(double));
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:107:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char s[200];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:109:25:  [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.
        strcpy(s,ques); strcat(s," ["); strcat(s,dflt); strcat(s,"] ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:109:57:  [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.
        strcpy(s,ques); strcat(s," ["); strcat(s,dflt); strcat(s,"] ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:135: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 mbuff[255];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:345:37:  [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.
                if (m->typ==MTOGON) strcpy(m->val,"ON ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:346:38:  [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.
                if (m->typ==MTOGOFF) strcpy(m->val,"OFF");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:369:37:  [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.
                if (m->typ==MTOGON) strcpy(m->val,"ON ");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:370:38:  [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.
                if (m->typ==MTOGOFF) strcpy(m->val,"OFF");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:398: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 hbuff[90];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:400: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 fk1[20],fk2[20];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:407: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).
        hfile = fopen(gledir(hfilename).c_str(),"r");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:477: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 *m_val[20];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:478: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 m_tog[50];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:519: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 msend[200];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:521: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 cs[80]="xyz";
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:526:9:  [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(cs,"xyz");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:550: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 wild[80];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:551: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 *f[80];
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:624:33:  [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(wild,"*.dat");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:626:33:  [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(wild,"\\*.dat");
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:673: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.
        static char buf[255];
data/gle-graphics-4.2.5/src/manip/manip.cpp:85: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 file_name[80];
data/gle-graphics-4.2.5/src/manip/manip.cpp:93: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 ans[90];
data/gle-graphics-4.2.5/src/manip/manip.cpp:95: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.
        static char atfile[80];
data/gle-graphics-4.2.5/src/manip/manip.cpp:107:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        data_setsize(atoi(argv[i+1]),atoi(argv[i+2]));
data/gle-graphics-4.2.5/src/manip/manip.cpp:107:54:  [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).
                        data_setsize(atoi(argv[i+1]),atoi(argv[i+2]));
data/gle-graphics-4.2.5/src/manip/manip.cpp:128:35:  [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.
        if (strlen(file_name)==0) strcpy(file_name,"mtest.dat");
data/gle-graphics-4.2.5/src/manip/manip.cpp:200: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 buff[280];
data/gle-graphics-4.2.5/src/manip/manip.cpp:214:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff,"goto %d %d ",curx,cury);
data/gle-graphics-4.2.5/src/manip/manip.cpp:320: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 buff[280];
data/gle-graphics-4.2.5/src/manip/manip.cpp:353: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 output[200];
data/gle-graphics-4.2.5/src/manip/manip.cpp:420: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.
        static char *lastline[22];
data/gle-graphics-4.2.5/src/manip/manip.cpp:488: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 mbuff[280];
data/gle-graphics-4.2.5/src/manip/mjl.cpp:50: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.
	static char buff[80];
data/gle-graphics-4.2.5/src/manip/mjl.cpp:52:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		jouptr = fopen("manip_.j1","rb");
data/gle-graphics-4.2.5/src/manip/mjl.cpp:62:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	jptr.open("manip_.j1","wb");
data/gle-graphics-4.2.5/src/manip/mjl.cpp:69: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.
unsigned char mjl_buff[80];
data/gle-graphics-4.2.5/src/manip/mjl.cpp:85:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fptr.open("manip_.j1","ab");
data/gle-graphics-4.2.5/src/manip/polish.cpp:40: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.
const char *ns[3] = {"Nothing","Number","String"};
data/gle-graphics-4.2.5/src/manip/polish.cpp:66: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 *tk[500];
data/gle-graphics-4.2.5/src/manip/polish.cpp:67: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 tkbuff[500];
data/gle-graphics-4.2.5/src/manip/polish.cpp:70: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.
	static char buff[50];
data/gle-graphics-4.2.5/src/manip/polish.cpp:141: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 fcode[400];
data/gle-graphics-4.2.5/src/manip/polish.cpp:182: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 fcode[400];
data/gle-graphics-4.2.5/src/manip/polish.cpp:345:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p,fcode,*flen);
data/gle-graphics-4.2.5/src/manip/sub.cpp:49: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.
struct sub_st {char name[40];int typ; int np
data/gle-graphics-4.2.5/src/manip/sub.cpp:50:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		; int ptyp[20]; char *pname[20]; int start; int end ; }  ;
data/gle-graphics-4.2.5/src/manip/sub.cpp:54: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 return_string[80];
data/gle-graphics-4.2.5/src/manip/token.cpp:60: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 term_table1[256];
data/gle-graphics-4.2.5/src/manip/token.cpp:61: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 term_table2[256];
data/gle-graphics-4.2.5/src/manip/token.cpp:62: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 term_table3[256];
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:51:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (t!=NULL) memcpy(s,t+1,strlen(t));
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:58: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.
	static char mystr[200];
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:71: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.
	static char buff[200];
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:86:3:  [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(buff,"ls ");
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:88:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buff,">gledir.tmp");
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:97:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	wilddir = fopen("gledir.tmp","r");
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:108: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.
	static char buff[200];
data/gle-graphics-4.2.5/src/manip/unixinkey.cpp:309:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char esq[10];
data/gle-graphics-4.2.5/src/manip/unixinkey.cpp:327:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char esq[10];
data/gle-graphics-4.2.5/src/manip/var.cpp:42: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 *var_names[100];	/* Global variables */
data/gle-graphics-4.2.5/src/manip/var.cpp:45: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 *lvar_names[100];	/*  Local variables  */
data/gle-graphics-4.2.5/src/manip/var.cpp:51: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 *(*lvar_str)[100];
data/gle-graphics-4.2.5/src/manip/var.cpp:53: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 *var_str[100];
data/gle-graphics-4.2.5/src/manip/var.cpp:191:8:  [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).
			d = atoi(lvar_names[i]+1);
data/gle-graphics-4.2.5/src/manip/var.cpp:206:8:  [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).
			d = atoi(lvar_names[i]+1);
data/gle-graphics-4.2.5/src/manip/var.cpp:216:8:  [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).
			d = atoi(var_names[i]+1);
data/gle-graphics-4.2.5/src/manip/varargs.cpp:55: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 string[1024];
data/gle-graphics-4.2.5/src/manip/varargs.cpp:65: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 string[1024];
data/gle-graphics-4.2.5/src/manip/vaxinkey.cpp:190:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char esq[10];
data/gle-graphics-4.2.5/src/manip/vaxinkey.cpp:208:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char esq[10];
data/gle-graphics-4.2.5/src/manip/vaxinkey.cpp:239:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char inbuff[9];
data/gle-graphics-4.2.5/src/fbuild/fbuild.cpp:113: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).
				i = strlen(inbuff);
data/gle-graphics-4.2.5/src/fbuild/token.cpp:174:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (*ntok > 0) p2 =  tok[*ntok] + strlen(tok[*ntok])  - 1;
data/gle-graphics-4.2.5/src/fbuild/token.cpp:234: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).
		outbuff = outbuff + strlen(outbuff) + 1;
data/gle-graphics-4.2.5/src/gle/axis.cpp:536:8:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
							sprintf(cbuff, "1");
data/gle-graphics-4.2.5/src/gle/begin.cpp:74:3:  [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(tk[i], " ");
data/gle-graphics-4.2.5/src/gle/begin.cpp:87:3:  [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(tk[i], " ");
data/gle-graphics-4.2.5/src/gle/begin.cpp:130:3:  [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(tk[i], " ");
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:77:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].red = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:78:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].green = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:79:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].blue = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:83:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((type = m_file.fgetc()) > 0) {
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:111:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].red = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:112:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].green = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:113:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pal[i].blue = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:134:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int label = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:152:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nbytes = m_file.fgetc()) > 0) {
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:286:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_RootCodeSize = fgetc(input);
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:293:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	GLEDWORD buffCount = fgetc(input);
data/gle-graphics-4.2.5/src/gle/bitmap/glegif.cpp:338:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		buffCount = fgetc(input);
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:82:30:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_BitsPerComponent = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:85:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_Components = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:118:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			marker = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/glejpeg.cpp:180:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int nextByte = m_file.fgetc();
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:281:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int lh = fgetc(m_file.getFile());
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:282:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ll = fgetc(m_file.getFile());
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:287:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int lh = fgetc(m_file.getFile());
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.cpp:288:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ll = fgetc(m_file.getFile());
data/gle-graphics-4.2.5/src/gle/bitmap/img2ps.h:164:30:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inline int read8() { return fgetc(m_file.getFile()); }
data/gle-graphics-4.2.5/src/gle/cmdline.cpp:825:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(crarg);
data/gle-graphics-4.2.5/src/gle/core.cpp:760:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(g.lstyle,s,8);
data/gle-graphics-4.2.5/src/gle/core.cpp:764:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s, (char *)&g.lstyle, 8);
data/gle-graphics-4.2.5/src/gle/core.cpp:2118:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!str_ni_equals(line.c_str(), "%%BoundingBox:", strlen("%%BoundingBox:")) &&
data/gle-graphics-4.2.5/src/gle/core.cpp:2119: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).
		    !str_ni_equals(line.c_str(), "%%HiResBoundingBox:", strlen("%%HiResBoundingBox:")) &&
data/gle-graphics-4.2.5/src/gle/core.cpp:2120: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_ni_equals(line.c_str(), "%%EOF", strlen("%%EOF"))) {
data/gle-graphics-4.2.5/src/gle/cutils.cpp:239: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).
	int patternLength = strlen(needle);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:268: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).
	int endIndex = strlen(haystack);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:269: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).
	int patternLength = strlen(needle);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:345: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).
	int f_len = strlen(find);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:368:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		str.erase(0, strlen(find));
data/gle-graphics-4.2.5/src/gle/cutils.cpp:551: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).
	int len_repl = strlen(repl);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:552: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).
	int len_find = strlen(find);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:555:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen((const char*)str);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:559:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char*)str+pos, repl, len_repl);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:566: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).
	int len_find = strlen(find);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:567: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).
	int len_repl = strlen(repl);
data/gle-graphics-4.2.5/src/gle/cutils.cpp:627: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).
	int i = strlen(cts);
data/gle-graphics-4.2.5/src/gle/d_cairo.cpp:614:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) == 1) {
data/gle-graphics-4.2.5/src/gle/d_cairo.cpp:617: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 nb_dashes = strlen(s);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:333:2:  [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(ob,"[");
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:334:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) == 1) {
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:343: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).
	int l = strlen(s);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:345: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).
		sprintf(ob+strlen(ob),"%g ",(*(s+i)-'0')*g.lstyled);
data/gle-graphics-4.2.5/src/gle/d_ps.cpp:347:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(ob,"]");
data/gle-graphics-4.2.5/src/gle/d_x.cpp:560:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s)==1)  s = defline[*s-'0'];
data/gle-graphics-4.2.5/src/gle/eval.cpp:592: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).
				sbuf[strlen(sbuf)-1] = 0;
data/gle-graphics-4.2.5/src/gle/eval.cpp:1097: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).
	sl = strlen(s)+1;
data/gle-graphics-4.2.5/src/gle/file_io.cpp:352: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).
		string::size_type pos = fname.length() - strlen(ext);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:489:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char* temp = (char*)malloc(strlen(base)+1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:650:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		data->strm->read(write_buffer, GLEREAD_BUF);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:820:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						ins->read(write_buffer, GLEREAD_BUF);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:845:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int nbytes = read(pout[GLESYS_PIPE_RD], read_buffer, GLEREAD_BUF);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:999:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1004:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1013:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	file.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1017:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1315:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int res1 = read(sock, &ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1457:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_File.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1462:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_File.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1466:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_File.read(&ch, 1);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1549:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inFile.read(&(*contents)[0], length);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1613:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int GLEFileIO::fgetc()
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1615:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return ::fgetc(m_file);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1639:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int i = fgetc();
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1650: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).
		::fputc(strlen(s), m_file);
data/gle-graphics-4.2.5/src/gle/file_io.cpp:1651:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		fwrite(s, 1, strlen(s));
data/gle-graphics-4.2.5/src/gle/file_io.h:182:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int fgetc();
data/gle-graphics-4.2.5/src/gle/font.cpp:327:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fmt.fgetc() == 1) {
data/gle-graphics-4.2.5/src/gle/general.cpp:108:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(d,s,n);
data/gle-graphics-4.2.5/src/gle/general.cpp:115: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).
	i = strlen(d);
data/gle-graphics-4.2.5/src/gle/general.cpp:116:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(d,s,n);
data/gle-graphics-4.2.5/src/gle/gle-datatype.cpp:220: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).
		fromUTF8(str, strlen(str));
data/gle-graphics-4.2.5/src/gle/gle-datatype.cpp:469: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).
	unsigned int s_len = strlen(str);
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:921: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 nbspc = strlen(file) + strlen(number) + 4 + msg->getColumn() - msg->getDelta();
data/gle-graphics-4.2.5/src/gle/gle-interface.cpp:921: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).
		int nbspc = strlen(file) + strlen(number) + 4 + msg->getColumn() - msg->getDelta();
data/gle-graphics-4.2.5/src/gle/gle.cpp:105:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		csvData.read(fname);
data/gle-graphics-4.2.5/src/gle/glearray.cpp:211:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GLEZData::read(const string& fname) throw(ParserError) {
data/gle-graphics-4.2.5/src/gle/glearray.cpp:354:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool GLECSVData::read(const std::string& file) {
data/gle-graphics-4.2.5/src/gle/glearray.cpp:362: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).
	unsigned int size = strlen(buffer);
data/gle-graphics-4.2.5/src/gle/glearray.cpp:387:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			file.read((char*)&m_buffer[0], size);
data/gle-graphics-4.2.5/src/gle/glearray.cpp:432: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).
	unsigned int size = std::min<unsigned int>(m_cellSize[idx], strlen(data));
data/gle-graphics-4.2.5/src/gle/glearray.h:105:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(const string& fname) throw(ParserError);
data/gle-graphics-4.2.5/src/gle/glearray.h:163:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read(const std::string& file);
data/gle-graphics-4.2.5/src/gle/graph.cpp:120:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(name);
data/gle-graphics-4.2.5/src/gle/graph.cpp:671:3:  [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(s2,"");
data/gle-graphics-4.2.5/src/gle/graph.cpp:1761: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 len = strlen(ds);
data/gle-graphics-4.2.5/src/gle/graph.cpp:2094:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	csvData.read(expandedName);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:1477:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(tk[*curtok])==0){
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3183:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(next);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:3212:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(next);
data/gle-graphics-4.2.5/src/gle/graph2.cpp:4031:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		m_Data->read(fname);
data/gle-graphics-4.2.5/src/gle/key.cpp:247:20:  [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.
			else kw("LINE") strcpy(entry->lstyle, "1");
data/gle-graphics-4.2.5/src/gle/key.cpp:332:2:  [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(m_Justify, "");
data/gle-graphics-4.2.5/src/gle/key.cpp:479: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(info->getJustify())>0) gprint("Expecting POS BL,BR,TR or TL\n");
data/gle-graphics-4.2.5/src/gle/key.cpp:526: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(info->getJustify())>0) gprint("Expecting POS BL,BR,TR or TL\n");
data/gle-graphics-4.2.5/src/gle/key.cpp:655:4:  [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(entry->lstyle, "1");
data/gle-graphics-4.2.5/src/gle/memory.cpp:47: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).
	v = (char*) malloc((strlen(s)+1) * sizeof(char));
data/gle-graphics-4.2.5/src/gle/pass.cpp:2272: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).
	*d = (char*) myallocz(strlen(s)+1);
data/gle-graphics-4.2.5/src/gle/polish.cpp:586:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int slen = strlen(str) + 1;
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:102:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inline void read(const string& fname) throw(ParserError) { m_Data.read(fname); }
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:102:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inline void read(const string& fname) throw(ParserError) { m_Data.read(fname); }
data/gle-graphics-4.2.5/src/gle/surface/gcontour.cpp:381:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			g_ContourInfo->read(data_file);
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:216:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(s,tk[++ct],11);
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:452: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).
        if (s!=NULL) return atof(s+strlen(k));
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:516: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).
                b = strlen(buff);
data/gle-graphics-4.2.5/src/gle/surface/gsurface.cpp:519:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        buff[b] = getc(df);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1549:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(o,pm[n-1],pmlen[n-1]);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1840: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).
				memmove(SC s+strlen(SC r),SC s+dlen,strlen(SC s)+1);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1840: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).
				memmove(SC s+strlen(SC r),SC s+dlen,strlen(SC s)+1);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1841:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(SC s,SC r,strlen(SC r));
data/gle-graphics-4.2.5/src/gle/tex.cpp:1841: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).
				strncpy(SC s,SC r,strlen(SC r));
data/gle-graphics-4.2.5/src/gle/tex.cpp:1867: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).
			memmove(s+strlen(SC dfn)-1,s,strlen(SC s)+1);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1867: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).
			memmove(s+strlen(SC dfn)-1,s,strlen(SC s)+1);
data/gle-graphics-4.2.5/src/gle/tex.cpp:1868:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(SC s,SC dfn,strlen(SC dfn));
data/gle-graphics-4.2.5/src/gle/tex.cpp:1868: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).
			strncpy(SC s,SC dfn,strlen(SC dfn));
data/gle-graphics-4.2.5/src/gle/tex.cpp:1921:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int i = fmt->fgetc();
data/gle-graphics-4.2.5/src/gle/token.cpp:155:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (*ntok > 0) p2 =  tok[*ntok] + strlen(tok[*ntok])  - 1;
data/gle-graphics-4.2.5/src/gle/token.cpp:215: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).
		outbuff = outbuff + strlen(outbuff) + 1;
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:62:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	f->read((char*)ch, 3);
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:101:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_is->read(&valr, sizeof(valr));
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:121:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_is->read(&valr, sizeof(valr));
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:133:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_is->read(&valr, sizeof(valr));
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:140:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_is->read(buf,len);
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:147:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void BinIO::read(void* bytes, int size) {
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.cpp:148:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_is->read((char*)bytes, size);
data/gle-graphics-4.2.5/src/gle/tokens/BinIO.h:95:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(void* bytes, int size);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:238:18:  [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.
	if (m_line < 0) strcpy(lines, "?");
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:240:17:  [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.
	if (m_col < 0) strcpy(cols, "?");
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:242:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = tab1-strlen(lines); i > 0; i--) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:254:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = tab2-strlen(cols); i > 0; i--) {
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1148: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 len = strlen(charlist);
data/gle-graphics-4.2.5/src/gle/tokens/Tokenizer.cpp:1440: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).
	m_len = strlen(tokens);
data/gle-graphics-4.2.5/src/gle/unit-tests/part1.cpp:207:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	reader.read("unit-tests/expressions.txt");
data/gle-graphics-4.2.5/src/gle/var.cpp:602: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).
	int i = strlen(s);
data/gle-graphics-4.2.5/src/gui/drawingobject.cpp:267:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(myline);
data/gle-graphics-4.2.5/src/gui/glegs.cpp:98: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).
	char* res = (char*)malloc(strlen(str)+1);
data/gle-graphics-4.2.5/src/gui/macspecific.cpp:37:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				file.read(buffer, 9000);
data/gle-graphics-4.2.5/src/gui/main.cpp:80:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(QGLEScriptNameBackup, arr.constData(), QGLE_SCRIPT_NAME_BACKUP_SIZE);
data/gle-graphics-4.2.5/src/gui/main.cpp:100: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:111: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:116: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).
         WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:123: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:130: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:149:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:154:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:161: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:168:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:170:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(szOutBuffer, "\n");
data/gle-graphics-4.2.5/src/gui/main.cpp:171: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).
		WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:215: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).
	WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:223: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).
	WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:225: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).
	WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:228: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).
	WriteFile(hLogFile, szOutBuffer, strlen(szOutBuffer), &NumBytes, 0);
data/gle-graphics-4.2.5/src/gui/main.cpp:240:2:  [1] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant
  character.
	lstrcat(szCommandLine, L"\"");
data/gle-graphics-4.2.5/src/gui/qgs.cpp:377:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		qint64 nbRead = file.read(buf, sizeof(buf)-1);
data/gle-graphics-4.2.5/src/gui/qgs.cpp:430: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).
	m_gs->gsapi_run_string_continue(ghostScriptInstance, str, strlen(str), 0, &exit_code);
data/gle-graphics-4.2.5/src/gui/qgslibloader.cpp:127:50:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			last_error.setUtf16((const ushort *)lpMsgBuf, wcslen(lpMsgBuf));
data/gle-graphics-4.2.5/src/gui/serverthread.cpp:124:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					clientConnection->read(buffer, bytesread);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:158:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = fgetc(stream)) == ' ' || ch == lineterm ||
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:166:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(stream);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:193:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = fgetc(stream)) == ' ' || ch == '\t' );
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:199:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(stream);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:308: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).
                    gfi->afmVersion = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:316: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).
                    gfi->fontName = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:322:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    	malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:327: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).
                    gfi->fullName = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:332: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).
                    gfi->familyName = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:337:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    gfi->weight = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:362: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).
                    gfi->version = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:367:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    gfi->notice = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:676: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).
                temp->name = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:698: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).
                (*tail)->succ = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:701: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).
                (*tail)->lig = (char *) malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:896: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).
                            malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:900: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).
                            malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:919: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).
                            malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:923: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).
                            malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1034: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).
                            malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/makefmt/parseAFM.cpp:1054: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).
                                malloc(strlen(keyword) + 1);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:90: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).
	al = strlen(inbuff);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:127: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).
		*(tok(1)+strlen(tok(1))-1) = 0;
data/gle-graphics-4.2.5/src/manip/cmd.cpp:564: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(s)>80) {
data/gle-graphics-4.2.5/src/manip/cmd.cpp:565:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(bb,s,80);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:618: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).
		fner("Invalid range given (%s)%d \n",range,strlen(range));
data/gle-graphics-4.2.5/src/manip/cmd.cpp:636: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).
		if (inlen>0) { strcpy(inbuff+inlen,between); inlen +=strlen(between);}
data/gle-graphics-4.2.5/src/manip/cmd.cpp:673:30:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	if (strchr(buff,'.')==NULL) strcat(buff,".");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:677: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).
	return strlen(dest);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:682: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).
	int i = wid-strlen(src);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:691: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).
	return strlen(dest);
data/gle-graphics-4.2.5/src/manip/cmd.cpp:711:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ss[strlen(ss)-1] = 0;
data/gle-graphics-4.2.5/src/manip/cmd.cpp:778:20:  [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.
	if (pat[0]=='(') {strcpy(pat,"1"); strcat(pat,patx);}
data/gle-graphics-4.2.5/src/manip/cmd.cpp:779:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (pat[strlen(pat)-1] == ')') strcat(pat,"1");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:779:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	if (pat[strlen(pat)-1] == ')') strcat(pat,"1");
data/gle-graphics-4.2.5/src/manip/cmd.cpp:1013: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).
		fner("Invalid range given (%s)%d \n",range,strlen(range));
data/gle-graphics-4.2.5/src/manip/cursesscr.cpp:237: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).
	sdesc.dsc$w_length = strlen(s);
data/gle-graphics-4.2.5/src/manip/eval.cpp:271: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).
			sbuf[strlen(sbuf)-1] = 0;
data/gle-graphics-4.2.5/src/manip/eval.cpp:287:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			stk[nstk] = strlen(stk_str[nstk]);
data/gle-graphics-4.2.5/src/manip/eval.cpp:420: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).
	sl = strlen(s)+1;
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:111:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(result)==0) strcpy(result,dflt);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:174: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 (cx < (int)strlen(cmi->val)) cx++;
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:274:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(cmi->val)==0) break;
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:333: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).
        else return strlen(s);
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:387: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 (m->title != NULL) if (strlen(m->title)>0) {
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:419: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).
                                if (strcmp(fk1,k1)==0 && strlen(k2)==0)
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:425:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                if (strlen(k2)>0)
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:468:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                s[strlen(s)-1] = 0;
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:520:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define mss msend+strlen(msend)
data/gle-graphics-4.2.5/src/manip/filemenu.cpp:623: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 (wild[strlen(wild)-1] == '\\')
data/gle-graphics-4.2.5/src/manip/general.cpp:64:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(d,s,n);
data/gle-graphics-4.2.5/src/manip/general.cpp:70: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).
	i = strlen(d);
data/gle-graphics-4.2.5/src/manip/general.cpp:71:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(d,s,n);
data/gle-graphics-4.2.5/src/manip/general.cpp:77: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).
	v = (char*)malloc(strlen(s)+1);
data/gle-graphics-4.2.5/src/manip/general.cpp:110: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).
	*d = (char*)malloc(strlen(s)+1);
data/gle-graphics-4.2.5/src/manip/manip.cpp:100:28:  [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.
        if (strmiss[0]==0) strcpy(strmiss,"-");
data/gle-graphics-4.2.5/src/manip/manip.cpp:126:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(file_name)>0) cmd_load(file_name,"",2);
data/gle-graphics-4.2.5/src/manip/manip.cpp:128:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(file_name)==0) strcpy(file_name,"mtest.dat");
data/gle-graphics-4.2.5/src/manip/manip.cpp:323:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((int)strlen(buff)<(scr_colwidth-1))
data/gle-graphics-4.2.5/src/manip/manip.cpp:324: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).
                ncpy(buff+strlen(buff),"                ",
data/gle-graphics-4.2.5/src/manip/manip.cpp:325:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        scr_colwidth-strlen(buff)-1);
data/gle-graphics-4.2.5/src/manip/manip.cpp:472:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(ans)>0) {
data/gle-graphics-4.2.5/src/manip/manip.cpp:490: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).
        cputs(s); cx = strlen(s);
data/gle-graphics-4.2.5/src/manip/manip.cpp:494:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if (strlen(s)==0) {
data/gle-graphics-4.2.5/src/manip/manip.cpp:533:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (cx >= (int)strlen(s)) break;
data/gle-graphics-4.2.5/src/manip/manip.cpp:547:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(s)==0) break;
data/gle-graphics-4.2.5/src/manip/manip.cpp:556: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).
                scr_left(strlen(s+cx)+1);
data/gle-graphics-4.2.5/src/manip/manip.cpp:571: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).
                        scr_left(strlen(s+cx));
data/gle-graphics-4.2.5/src/manip/mjl.cpp:56: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(infile)==0) strcpy(infile,buff);
data/gle-graphics-4.2.5/src/manip/mjl.cpp:63: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).
	jptr.fputc(strlen(infile));
data/gle-graphics-4.2.5/src/manip/mjl.cpp:64: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).
	jptr.fwrite(infile, 1, strlen(infile));
data/gle-graphics-4.2.5/src/manip/mjl.cpp:75: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).
	s = strlen((char*)mjl_buff);
data/gle-graphics-4.2.5/src/manip/mjl.cpp:83:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen((char*)mjl_buff)<7) return;
data/gle-graphics-4.2.5/src/manip/mjl.cpp:87: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).
	fptr.fwrite(mjl_buff, 1, strlen((char*)mjl_buff));
data/gle-graphics-4.2.5/src/manip/polish.cpp:97:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(expr)==0) {gprint("Zero length expression\n"); return;}
data/gle-graphics-4.2.5/src/manip/polish.cpp:107: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).
		,ct,unary,cts,(int)strlen(cts));
data/gle-graphics-4.2.5/src/manip/polish.cpp:108: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).
	  ln = strlen(cts);
data/gle-graphics-4.2.5/src/manip/polish.cpp:384: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).
	sl = strlen(s)+1;
data/gle-graphics-4.2.5/src/manip/polish.cpp:387:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 	strncpy(p,s,sl);
data/gle-graphics-4.2.5/src/manip/sub.cpp:98:4:  [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(sb[i]->name,"^");
data/gle-graphics-4.2.5/src/manip/token.cpp:145: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 (*ntok>0) p2 =  tok[*ntok] + strlen(tok[*ntok])  - 1;
data/gle-graphics-4.2.5/src/manip/unix_extra.cpp:51: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).
	if (t!=NULL) memcpy(s,t+1,strlen(t));
data/gle-graphics-4.2.5/src/manip/unixinkey.cpp:247:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (noscreenio) return getc(stdin);
data/gle-graphics-4.2.5/src/manip/unixscr.cpp:130:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           return getc(stdin);
data/gle-graphics-4.2.5/src/manip/var.cpp:102:4:  [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(s,"");
data/gle-graphics-4.2.5/src/manip/var.cpp:228: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).
	i = strlen(s);

ANALYSIS SUMMARY:

Hits = 937
Lines analyzed = 101355 in approximately 2.69 seconds (37624 lines/second)
Physical Source Lines of Code (SLOC) = 77104
Hits@level = [0] 178 [1] 253 [2] 499 [3]  19 [4] 165 [5]   1
Hits@level+ = [0+] 1115 [1+] 937 [2+] 684 [3+] 185 [4+] 166 [5+]   1
Hits/KSLOC@level+ = [0+] 14.461 [1+] 12.1524 [2+] 8.87114 [3+] 2.39936 [4+] 2.15294 [5+] 0.0129695
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.