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/openlayer-2.1/utils/glyphkeeper/src/glyph_main.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_memory.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_allegro.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_global_vars.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_dimensions.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_memory.h
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_allegro_mono.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_structs.h
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_sdl.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_index.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_allegro_aa.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_text.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_opengl.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_rend.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_sdl_rect.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_utils.c
Examining data/openlayer-2.1/utils/glyphkeeper/src/glyph_internal.h
Examining data/openlayer-2.1/utils/glyphkeeper/include/glyph.h
Examining data/openlayer-2.1/src/RenderModes.cpp
Examining data/openlayer-2.1/src/Settings.cpp
Examining data/openlayer-2.1/src/Line.cpp
Examining data/openlayer-2.1/src/Canvas.cpp
Examining data/openlayer-2.1/src/Blenders.cpp
Examining data/openlayer-2.1/src/regpng.c
Examining data/openlayer-2.1/src/Rectangle.cpp
Examining data/openlayer-2.1/src/TextRenderer.cpp
Examining data/openlayer-2.1/src/Rgba.cpp
Examining data/openlayer-2.1/src/GarbageCollector.cpp
Examining data/openlayer-2.1/src/FpsCounter.cpp
Examining data/openlayer-2.1/src/Effects.cpp
Examining data/openlayer-2.1/src/TextureInfo.cpp
Examining data/openlayer-2.1/src/Transforms.cpp
Examining data/openlayer-2.1/src/Polygon.cpp
Examining data/openlayer-2.1/src/Animation.cpp
Examining data/openlayer-2.1/src/Setup.cpp
Examining data/openlayer-2.1/src/Internal.cpp
Examining data/openlayer-2.1/src/General.cpp
Examining data/openlayer-2.1/src/GlDriver.cpp
Examining data/openlayer-2.1/src/Circle.cpp
Examining data/openlayer-2.1/src/Framebuffer.cpp
Examining data/openlayer-2.1/src/GfxRend.cpp
Examining data/openlayer-2.1/src/Shape.cpp
Examining data/openlayer-2.1/src/Point.cpp
Examining data/openlayer-2.1/src/TexturedPoly.cpp
Examining data/openlayer-2.1/src/Matrix.cpp
Examining data/openlayer-2.1/src/LineStrip.cpp
Examining data/openlayer-2.1/src/PendingLoad.cpp
Examining data/openlayer-2.1/src/Placement.cpp
Examining data/openlayer-2.1/src/Collisions.cpp
Examining data/openlayer-2.1/src/Glyph.cpp
Examining data/openlayer-2.1/src/Bitmap.cpp
Examining data/openlayer-2.1/src/loadpng.c
Examining data/openlayer-2.1/src/savepng.c
Examining data/openlayer-2.1/demos/linestripdemo/Main.cpp
Examining data/openlayer-2.1/demos/renderbitmap/Main.cpp
Examining data/openlayer-2.1/demos/gamedemo/Demo.cpp
Examining data/openlayer-2.1/demos/textdemo/Main.cpp
Examining data/openlayer-2.1/demos/collisiondemo/main.cpp
Examining data/openlayer-2.1/demos/shapedemo/Main.cpp
Examining data/openlayer-2.1/demos/gameloop/Main.cpp
Examining data/openlayer-2.1/include/OpenLayer/RawLineStrip.hpp
Examining data/openlayer-2.1/include/OpenLayer/TexturedPoly.hpp
Examining data/openlayer-2.1/include/OpenLayer/Canvas.hpp
Examining data/openlayer-2.1/include/OpenLayer/Settings.hpp
Examining data/openlayer-2.1/include/OpenLayer/Point.hpp
Examining data/openlayer-2.1/include/OpenLayer/TextureInfo.hpp
Examining data/openlayer-2.1/include/OpenLayer/Effects.hpp
Examining data/openlayer-2.1/include/OpenLayer/RenderModes.hpp
Examining data/openlayer-2.1/include/OpenLayer/Mouse.hpp
Examining data/openlayer-2.1/include/OpenLayer/Declspec.hpp
Examining data/openlayer-2.1/include/OpenLayer/Rgba.hpp
Examining data/openlayer-2.1/include/OpenLayer/OlRectangle.hpp
Examining data/openlayer-2.1/include/OpenLayer/Matrix.hpp
Examining data/openlayer-2.1/include/OpenLayer/Blenders.hpp
Examining data/openlayer-2.1/include/OpenLayer/Framebuffer.hpp
Examining data/openlayer-2.1/include/OpenLayer/TransformMatrix.hpp
Examining data/openlayer-2.1/include/OpenLayer/General.hpp
Examining data/openlayer-2.1/include/OpenLayer/Bitmap.hpp
Examining data/openlayer-2.1/include/OpenLayer/GfxRend.hpp
Examining data/openlayer-2.1/include/OpenLayer/Internal.hpp
Examining data/openlayer-2.1/include/OpenLayer/Glyph.hpp
Examining data/openlayer-2.1/include/OpenLayer/Line.hpp
Examining data/openlayer-2.1/include/OpenLayer/Shape.hpp
Examining data/openlayer-2.1/include/OpenLayer/Includes.hpp
Examining data/openlayer-2.1/include/OpenLayer/Rectangle.hpp
Examining data/openlayer-2.1/include/OpenLayer/GlDriver.hpp
Examining data/openlayer-2.1/include/OpenLayer/Templates.hpp
Examining data/openlayer-2.1/include/OpenLayer/LineStrip.hpp
Examining data/openlayer-2.1/include/OpenLayer/PendingLoad.hpp
Examining data/openlayer-2.1/include/OpenLayer/LineStripRender.hpp
Examining data/openlayer-2.1/include/OpenLayer/Animation.hpp
Examining data/openlayer-2.1/include/OpenLayer/TextRenderer.hpp
Examining data/openlayer-2.1/include/OpenLayer/Setup.hpp
Examining data/openlayer-2.1/include/OpenLayer/Polygon.hpp
Examining data/openlayer-2.1/include/OpenLayer/Placement.hpp
Examining data/openlayer-2.1/include/OpenLayer/Vec2D.hpp
Examining data/openlayer-2.1/include/OpenLayer/GarbageCollector.hpp
Examining data/openlayer-2.1/include/OpenLayer/Circle.hpp
Examining data/openlayer-2.1/include/OpenLayer/loadpng.h
Examining data/openlayer-2.1/include/OpenLayer/FpsCounter.hpp
Examining data/openlayer-2.1/include/OpenLayer/Transforms.hpp
Examining data/openlayer-2.1/include/OpenLayer/Collisions.hpp
Examining data/openlayer-2.1/include/OpenLayer/VertexListCollision.hpp
Examining data/openlayer-2.1/include/OpenLayer.hpp
Examining data/openlayer-2.1/cbuild.c

FINAL RESULTS:

data/openlayer-2.1/cbuild.c:71:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/openlayer-2.1/cbuild.c:71:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/openlayer-2.1/cbuild.c:111:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(strcpy(dir->name, name), all);
data/openlayer-2.1/cbuild.c:111: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).
			strcat(strcpy(dir->name, name), all);
data/openlayer-2.1/cbuild.c:1649: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(str, buf);
data/openlayer-2.1/cbuild.c:1677: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(str, buf);
data/openlayer-2.1/cbuild.c:2855:10:  [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.
			ret = system(buffer);
data/openlayer-2.1/cbuild.c:3119:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				ret = system(buffer);
data/openlayer-2.1/cbuild.c:3238:10:  [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.
			ret = system(buffer);
data/openlayer-2.1/cbuild.c:3318:10:  [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.
			ret = system(buffer);
data/openlayer-2.1/cbuild.c:3420:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				ret = system(buffer);
data/openlayer-2.1/cbuild.c:3569:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(linebuf, nextline);
data/openlayer-2.1/cbuild.c:3884: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(linebuf, invoke_backup[i].bkp_lbuf);
data/openlayer-2.1/cbuild.c:4349:10:  [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.
			ret = system(buffer);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_utils.c:29:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buf+8,format,arg);
data/openlayer-2.1/cbuild.c:203:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(!overwrite && getenv(env))
data/openlayer-2.1/cbuild.c:347: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 *var = getenv(env);
data/openlayer-2.1/demos/gamedemo/Demo.cpp:123:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand( time( 0 ));
data/openlayer-2.1/src/loadpng.c:36:29:  [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.
	AL_CONST char *gamma_str = getenv("SCREEN_GAMMA");
data/openlayer-2.1/cbuild.c:195: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[2];
data/openlayer-2.1/cbuild.c:202: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 buf[64*1024];
data/openlayer-2.1/cbuild.c:263: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 linebuf[64*1024];
data/openlayer-2.1/cbuild.c:264: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 buffer[64*1024];
data/openlayer-2.1/cbuild.c:265: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 obj[PATH_MAX];
data/openlayer-2.1/cbuild.c:323: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(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:357: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 buf[PATH_MAX];
data/openlayer-2.1/cbuild.c:398: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(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:699:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:747:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:810:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:818: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).
				val1 = atoi(opt);
data/openlayer-2.1/cbuild.c:819: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).
				val2 = atoi(sep);
data/openlayer-2.1/cbuild.c:835:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:944:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:955:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1087:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1144:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1202:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1579:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1621:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				size_t idx = atoi(ptr);
data/openlayer-2.1/cbuild.c:1628:51:  [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).
				size_t idx = ((ptr+1 >= end || !ptr[1]) ? 1 : atoi(ptr+1));
data/openlayer-2.1/cbuild.c:1639:51:  [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).
				size_t idx = ((ptr+1 >= end || !ptr[1]) ? 1 : atoi(ptr+1));
data/openlayer-2.1/cbuild.c:1737: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 dep[PATH_MAX];
data/openlayer-2.1/cbuild.c:1753:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	df = fopen(dep, "r");
data/openlayer-2.1/cbuild.c:1855:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(df, O_WRONLY|O_BINARY|O_TRUNC|O_CREAT, statbuf.st_mode);
data/openlayer-2.1/cbuild.c:1857:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(df, O_WRONLY|O_TRUNC|O_CREAT, statbuf.st_mode);
data/openlayer-2.1/cbuild.c:1868: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).
	src = fopen(sf, "rb");
data/openlayer-2.1/cbuild.c:1936: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(linebuf, "exit -1\n");
data/openlayer-2.1/cbuild.c:1944: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 dummy[2] = ".";
data/openlayer-2.1/cbuild.c:2001: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 buf[PATH_MAX];
data/openlayer-2.1/cbuild.c:2147:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(fname, "r");
data/openlayer-2.1/cbuild.c:2166:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(fname, "r");
data/openlayer-2.1/cbuild.c:2375: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).
			if((atoi(ptr) == ret) != !!reverse)
data/openlayer-2.1/cbuild.c:2892:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(ptr, "r");
data/openlayer-2.1/cbuild.c:3471: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).
			o = fopen(ptr, "w");
data/openlayer-2.1/cbuild.c:3502: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).
			o = fopen(ptr, "a");
data/openlayer-2.1/cbuild.c:3858: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).
				verbose = atoi(ptr);
data/openlayer-2.1/cbuild.c:3870: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).
			ret = atoi(ptr);
data/openlayer-2.1/cbuild.c:4085: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 fp = open(ptr, O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, S_IRWXU);
data/openlayer-2.1/cbuild.c:4135:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				int fd = open(ptr, O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, S_IRWXU);
data/openlayer-2.1/cbuild.c:4191: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 fp = open(ptr, O_RDONLY, 0);
data/openlayer-2.1/cbuild.c:4286:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			tf = tmpfile();
data/openlayer-2.1/cbuild.c:4427: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).
			retval = atoi(ptr);
data/openlayer-2.1/cbuild.c:4490: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).
			exit(atoi(ptr));
data/openlayer-2.1/include/OpenLayer/Internal.hpp:46: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 linechars[64]; \
data/openlayer-2.1/include/OpenLayer/Internal.hpp: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 linechars[64]; \
data/openlayer-2.1/include/OpenLayer/Internal.hpp:55:1:  [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( linechars, "%i", __LINE__ ); \
data/openlayer-2.1/include/OpenLayer/Internal.hpp:66: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 linechars[64]; \
data/openlayer-2.1/include/OpenLayer/Internal.hpp:67:1:  [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( linechars, "%i", __LINE__ ); \
data/openlayer-2.1/src/GlDriver.cpp:308:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[FILENAME_BUF_SIZE];
data/openlayer-2.1/src/GlDriver.cpp:321: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[FILENAME_BUF_SIZE];
data/openlayer-2.1/src/Glyph.cpp:108: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(tempChar.line,face->glyph->bitmap.buffer,tempChar.rows * tempChar.pitch);
data/openlayer-2.1/src/Glyph.cpp:196: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 buff[1024];
data/openlayer-2.1/src/Glyph.cpp:234: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 buff[1024];
data/openlayer-2.1/src/loadpng.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PNG_BYTES_TO_CHECK];
data/openlayer-2.1/src/loadpng.c:306:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, f->buffer + f->current_pos, length);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000] = "";
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:255:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE* file = fopen(fname,"rb");
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:274:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    file = fopen(buf,"rb");
data/openlayer-2.1/utils/glyphkeeper/src/glyph_main.c:29:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        glyph_log = fopen("glyph.log","w");
data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_allegro.c:67:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char rtrans[256], gtrans[256], btrans[256];
data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_allegro_aa.c:15:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char gradient[256];
data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_opengl.c:229:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( dstptr, srcptr, glyphs[index]->width );
data/openlayer-2.1/utils/glyphkeeper/src/glyph_utils.c:26:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1000] = "[glyph] ";
data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c:589:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(glyph->bmp,rle_buffer,rle_size);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c:599:17:  [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( glyph->bmp+1, ((FT_BitmapGlyph)ft_glyph)->bitmap.buffer, bitpack_size );
data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c:605:21:  [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( d, ((FT_BitmapGlyph)ft_glyph)->bitmap.buffer + y * ((FT_BitmapGlyph)ft_glyph)->bitmap.pitch, pitch1 );
data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c:665:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(glyph->bmp,rle_buffer,rle_size);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_workout.c:674:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(glyph->bmp+1,ft_bmp->buffer,bmp_size);
data/openlayer-2.1/cbuild.c:105:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t base_length = strlen(name);
data/openlayer-2.1/cbuild.c:109: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).
		   (dir->name=(char*)malloc(base_length+strlen(all)+1)) != 0)
data/openlayer-2.1/cbuild.c:441: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).
					memmove(ptr, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:653: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).
						memmove(ptr, end, strlen(end)+1);
data/openlayer-2.1/cbuild.c:662: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).
					memmove(ptr, ptr+1, strlen(ptr));
data/openlayer-2.1/cbuild.c:667: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).
				memmove(ptr, ptr+1, strlen(ptr));
data/openlayer-2.1/cbuild.c:720: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).
				optlen = strlen(opt);
data/openlayer-2.1/cbuild.c:1795: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).
				memmove(stp, stp+1, strlen(stp));
data/openlayer-2.1/cbuild.c:1817:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ptr, buf, BUF_SIZE);
data/openlayer-2.1/cbuild.c:2196:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(linebuf, nextline, strlen(nextline)+1);
data/openlayer-2.1/cbuild.c:2196:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncpy(linebuf, nextline, strlen(nextline)+1);
data/openlayer-2.1/cbuild.c:2231: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).
			memmove(linebuf, ptr, strlen(ptr)+1);
data/openlayer-2.1/cbuild.c:2274: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).
			memmove(linebuf, ptr, strlen(ptr)+1);
data/openlayer-2.1/cbuild.c:2300: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).
			memmove(linebuf, ptr, strlen(ptr)+1);
data/openlayer-2.1/cbuild.c:2351: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2377: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2572: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2598: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).
				size_t len = strlen(ptr);
data/openlayer-2.1/cbuild.c:2613: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2638: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2685: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).
				memmove(linebuf, next, strlen(next)+1);
data/openlayer-2.1/cbuild.c:2749:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/openlayer-2.1/cbuild.c:2757: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).
					int len = strlen(val);
data/openlayer-2.1/cbuild.c:2758: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).
					memmove(pos, pos+len, strlen(pos+len)+1);
data/openlayer-2.1/cbuild.c:2801: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).
			memmove(linebuf, linebuf+1, strlen(linebuf));
data/openlayer-2.1/cbuild.c:2808: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).
			memmove(linebuf, linebuf+1, strlen(linebuf));
data/openlayer-2.1/cbuild.c:2813: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).
			memmove(linebuf, linebuf+1, strlen(linebuf));
data/openlayer-2.1/cbuild.c:2952:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(varstr, getvar(ptr), 65536);
data/openlayer-2.1/cbuild.c:2957: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(front_word, varstr, strlen(varstr)+1);
data/openlayer-2.1/cbuild.c:3198:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(ptr, buf, BUF_SIZE);
data/openlayer-2.1/cbuild.c:3561: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).
					memmove(linebuf, &linebuf[i], strlen(&linebuf[i])+1);
data/openlayer-2.1/cbuild.c:3602:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				                            strlen(ptr) == 0))
data/openlayer-2.1/cbuild.c:3926: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(dfile[strlen(dfile)-1] == '/' || (stat(dfile, &st) == 0 &&
data/openlayer-2.1/cbuild.c:3931: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).
				         ((dfile[strlen(dfile)-1]=='/')?"":"/"),
data/openlayer-2.1/cbuild.c:3984: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(dfile[strlen(dfile)-1] == '/')
data/openlayer-2.1/cbuild.c:4260:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(buffer[0] && buffer[strlen(buffer)-1] == '\n')
data/openlayer-2.1/cbuild.c:4261: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).
				buffer[strlen(buffer)-1] = 0;
data/openlayer-2.1/cbuild.c:4263: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(buffer))
data/openlayer-2.1/cbuild.c:4377:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				size_t b = read(fd, bufptr, len);
data/openlayer-2.1/cbuild.c:4393:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(buffer[0] && buffer[strlen(buffer)-1] == '\n')
data/openlayer-2.1/cbuild.c:4394: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).
				buffer[strlen(buffer)-1] = 0;
data/openlayer-2.1/src/Glyph.cpp:271: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).
      const size_t text_length = strlen(text);
data/openlayer-2.1/src/Glyph.cpp:346: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).
      const size_t text_length = strlen(text);
data/openlayer-2.1/src/Glyph.cpp:382: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).
      const size_t text_length = strlen(text);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:258: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).
            int fname_length = strlen(fname);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:268:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(buf,c,dirname_length);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_face.c:269:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(buf+dirname_length,fname,fname_length);
data/openlayer-2.1/utils/glyphkeeper/src/glyph_to_opengl.c:394: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).
   glCallLists( strlen( text ), GL_UNSIGNED_BYTE, text );

ANALYSIS SUMMARY:

Hits = 137
Lines analyzed = 30863 in approximately 0.75 seconds (41207 lines/second)
Physical Source Lines of Code (SLOC) = 20339
Hits@level = [0] 333 [1]  48 [2]  70 [3]   4 [4]  15 [5]   0
Hits@level+ = [0+] 470 [1+] 137 [2+]  89 [3+]  19 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 23.1083 [1+] 6.73583 [2+] 4.37583 [3+] 0.934166 [4+] 0.737499 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.