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/xpuzzles-7.7.1/barrel/Barrel.c
Examining data/xpuzzles-7.7.1/barrel/Barrel.h
Examining data/xpuzzles-7.7.1/barrel/BarrelP.h
Examining data/xpuzzles-7.7.1/barrel/BarrelS.c
Examining data/xpuzzles-7.7.1/barrel/BarrelU.c
Examining data/xpuzzles-7.7.1/barrel/file.c
Examining data/xpuzzles-7.7.1/barrel/file.h
Examining data/xpuzzles-7.7.1/barrel/picture.c
Examining data/xpuzzles-7.7.1/barrel/picture.h
Examining data/xpuzzles-7.7.1/barrel/rngs.c
Examining data/xpuzzles-7.7.1/barrel/rngs.h
Examining data/xpuzzles-7.7.1/barrel/sound.c
Examining data/xpuzzles-7.7.1/barrel/sound.h
Examining data/xpuzzles-7.7.1/barrel/timer.c
Examining data/xpuzzles-7.7.1/barrel/timer.h
Examining data/xpuzzles-7.7.1/barrel/version.h
Examining data/xpuzzles-7.7.1/barrel/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/barrel/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/barrel/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/barrel/xbarrel.c
Examining data/xpuzzles-7.7.1/barrel/xwin.c
Examining data/xpuzzles-7.7.1/barrel/xwin.h
Examining data/xpuzzles-7.7.1/cubes/Cubes.c
Examining data/xpuzzles-7.7.1/cubes/Cubes.h
Examining data/xpuzzles-7.7.1/cubes/CubesP.h
Examining data/xpuzzles-7.7.1/cubes/CubesS.c
Examining data/xpuzzles-7.7.1/cubes/CubesU.c
Examining data/xpuzzles-7.7.1/cubes/file.c
Examining data/xpuzzles-7.7.1/cubes/file.h
Examining data/xpuzzles-7.7.1/cubes/picture.c
Examining data/xpuzzles-7.7.1/cubes/picture.h
Examining data/xpuzzles-7.7.1/cubes/rngs.c
Examining data/xpuzzles-7.7.1/cubes/rngs.h
Examining data/xpuzzles-7.7.1/cubes/sound.c
Examining data/xpuzzles-7.7.1/cubes/sound.h
Examining data/xpuzzles-7.7.1/cubes/timer.c
Examining data/xpuzzles-7.7.1/cubes/timer.h
Examining data/xpuzzles-7.7.1/cubes/version.h
Examining data/xpuzzles-7.7.1/cubes/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/cubes/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/cubes/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/cubes/xcubes.c
Examining data/xpuzzles-7.7.1/cubes/xwin.c
Examining data/xpuzzles-7.7.1/cubes/xwin.h
Examining data/xpuzzles-7.7.1/dial/Dial.c
Examining data/xpuzzles-7.7.1/dial/Dial.h
Examining data/xpuzzles-7.7.1/dial/DialP.h
Examining data/xpuzzles-7.7.1/dial/DialSq.c
Examining data/xpuzzles-7.7.1/dial/DialSq.h
Examining data/xpuzzles-7.7.1/dial/DialSqP.h
Examining data/xpuzzles-7.7.1/dial/version.h
Examining data/xpuzzles-7.7.1/dial/xdial.c
Examining data/xpuzzles-7.7.1/dial/xwin.c
Examining data/xpuzzles-7.7.1/dial/xwin.h
Examining data/xpuzzles-7.7.1/dino/Dino.c
Examining data/xpuzzles-7.7.1/dino/Dino.h
Examining data/xpuzzles-7.7.1/dino/Dino2d.c
Examining data/xpuzzles-7.7.1/dino/Dino2d.h
Examining data/xpuzzles-7.7.1/dino/Dino2dP.h
Examining data/xpuzzles-7.7.1/dino/Dino3d.c
Examining data/xpuzzles-7.7.1/dino/Dino3d.h
Examining data/xpuzzles-7.7.1/dino/Dino3dP.h
Examining data/xpuzzles-7.7.1/dino/DinoGL.c
Examining data/xpuzzles-7.7.1/dino/DinoGL.h
Examining data/xpuzzles-7.7.1/dino/DinoGLP.h
Examining data/xpuzzles-7.7.1/dino/DinoP.h
Examining data/xpuzzles-7.7.1/dino/DinoS.c
Examining data/xpuzzles-7.7.1/dino/DinoU.c
Examining data/xpuzzles-7.7.1/dino/file.c
Examining data/xpuzzles-7.7.1/dino/file.h
Examining data/xpuzzles-7.7.1/dino/rngs.c
Examining data/xpuzzles-7.7.1/dino/rngs.h
Examining data/xpuzzles-7.7.1/dino/sound.c
Examining data/xpuzzles-7.7.1/dino/sound.h
Examining data/xpuzzles-7.7.1/dino/timer.c
Examining data/xpuzzles-7.7.1/dino/timer.h
Examining data/xpuzzles-7.7.1/dino/version.h
Examining data/xpuzzles-7.7.1/dino/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/dino/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/dino/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/dino/xdino.c
Examining data/xpuzzles-7.7.1/dino/xwin.c
Examining data/xpuzzles-7.7.1/dino/xwin.h
Examining data/xpuzzles-7.7.1/hexagons/file.c
Examining data/xpuzzles-7.7.1/hexagons/file.h
Examining data/xpuzzles-7.7.1/hexagons/Hexagons.c
Examining data/xpuzzles-7.7.1/hexagons/Hexagons.h
Examining data/xpuzzles-7.7.1/hexagons/HexagonsP.h
Examining data/xpuzzles-7.7.1/hexagons/HexagonsU.c
Examining data/xpuzzles-7.7.1/hexagons/picture.c
Examining data/xpuzzles-7.7.1/hexagons/picture.h
Examining data/xpuzzles-7.7.1/hexagons/rngs.c
Examining data/xpuzzles-7.7.1/hexagons/rngs.h
Examining data/xpuzzles-7.7.1/hexagons/sound.c
Examining data/xpuzzles-7.7.1/hexagons/sound.h
Examining data/xpuzzles-7.7.1/hexagons/timer.c
Examining data/xpuzzles-7.7.1/hexagons/timer.h
Examining data/xpuzzles-7.7.1/hexagons/version.h
Examining data/xpuzzles-7.7.1/hexagons/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/hexagons/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/hexagons/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/hexagons/xhexagons.c
Examining data/xpuzzles-7.7.1/hexagons/xwin.c
Examining data/xpuzzles-7.7.1/hexagons/xwin.h
Examining data/xpuzzles-7.7.1/mball/file.c
Examining data/xpuzzles-7.7.1/mball/file.h
Examining data/xpuzzles-7.7.1/mball/Mball.c
Examining data/xpuzzles-7.7.1/mball/Mball.h
Examining data/xpuzzles-7.7.1/mball/MballP.h
Examining data/xpuzzles-7.7.1/mball/MballS.c
Examining data/xpuzzles-7.7.1/mball/MballU.c
Examining data/xpuzzles-7.7.1/mball/rngs.c
Examining data/xpuzzles-7.7.1/mball/rngs.h
Examining data/xpuzzles-7.7.1/mball/sound.c
Examining data/xpuzzles-7.7.1/mball/sound.h
Examining data/xpuzzles-7.7.1/mball/timer.c
Examining data/xpuzzles-7.7.1/mball/timer.h
Examining data/xpuzzles-7.7.1/mball/version.h
Examining data/xpuzzles-7.7.1/mball/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/mball/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/mball/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/mball/xmball.c
Examining data/xpuzzles-7.7.1/mball/xwin.c
Examining data/xpuzzles-7.7.1/mball/xwin.h
Examining data/xpuzzles-7.7.1/mlink/file.c
Examining data/xpuzzles-7.7.1/mlink/file.h
Examining data/xpuzzles-7.7.1/mlink/Mlink.c
Examining data/xpuzzles-7.7.1/mlink/Mlink.h
Examining data/xpuzzles-7.7.1/mlink/MlinkP.h
Examining data/xpuzzles-7.7.1/mlink/MlinkS.c
Examining data/xpuzzles-7.7.1/mlink/MlinkU.c
Examining data/xpuzzles-7.7.1/mlink/picture.c
Examining data/xpuzzles-7.7.1/mlink/picture.h
Examining data/xpuzzles-7.7.1/mlink/rngs.c
Examining data/xpuzzles-7.7.1/mlink/rngs.h
Examining data/xpuzzles-7.7.1/mlink/sound.c
Examining data/xpuzzles-7.7.1/mlink/sound.h
Examining data/xpuzzles-7.7.1/mlink/timer.c
Examining data/xpuzzles-7.7.1/mlink/timer.h
Examining data/xpuzzles-7.7.1/mlink/version.h
Examining data/xpuzzles-7.7.1/mlink/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/mlink/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/mlink/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/mlink/xmlink.c
Examining data/xpuzzles-7.7.1/mlink/xwin.c
Examining data/xpuzzles-7.7.1/mlink/xwin.h
Examining data/xpuzzles-7.7.1/oct/file.c
Examining data/xpuzzles-7.7.1/oct/file.h
Examining data/xpuzzles-7.7.1/oct/Oct.c
Examining data/xpuzzles-7.7.1/oct/Oct.h
Examining data/xpuzzles-7.7.1/oct/OctP.h
Examining data/xpuzzles-7.7.1/oct/OctS.c
Examining data/xpuzzles-7.7.1/oct/OctU.c
Examining data/xpuzzles-7.7.1/oct/rngs.c
Examining data/xpuzzles-7.7.1/oct/rngs.h
Examining data/xpuzzles-7.7.1/oct/sound.c
Examining data/xpuzzles-7.7.1/oct/sound.h
Examining data/xpuzzles-7.7.1/oct/timer.c
Examining data/xpuzzles-7.7.1/oct/timer.h
Examining data/xpuzzles-7.7.1/oct/version.h
Examining data/xpuzzles-7.7.1/oct/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/oct/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/oct/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/oct/xoct.c
Examining data/xpuzzles-7.7.1/oct/xwin.c
Examining data/xpuzzles-7.7.1/oct/xwin.h
Examining data/xpuzzles-7.7.1/panex/file.c
Examining data/xpuzzles-7.7.1/panex/file.h
Examining data/xpuzzles-7.7.1/panex/Panex.c
Examining data/xpuzzles-7.7.1/panex/Panex.h
Examining data/xpuzzles-7.7.1/panex/PanexP.h
Examining data/xpuzzles-7.7.1/panex/PanexS.c
Examining data/xpuzzles-7.7.1/panex/PanexU.c
Examining data/xpuzzles-7.7.1/panex/rngs.c
Examining data/xpuzzles-7.7.1/panex/rngs.h
Examining data/xpuzzles-7.7.1/panex/sound.c
Examining data/xpuzzles-7.7.1/panex/sound.h
Examining data/xpuzzles-7.7.1/panex/timer.c
Examining data/xpuzzles-7.7.1/panex/timer.h
Examining data/xpuzzles-7.7.1/panex/version.h
Examining data/xpuzzles-7.7.1/panex/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/panex/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/panex/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/panex/xpanex.c
Examining data/xpuzzles-7.7.1/panex/xwin.c
Examining data/xpuzzles-7.7.1/panex/xwin.h
Examining data/xpuzzles-7.7.1/pyraminx/file.c
Examining data/xpuzzles-7.7.1/pyraminx/file.h
Examining data/xpuzzles-7.7.1/pyraminx/Pyraminx.c
Examining data/xpuzzles-7.7.1/pyraminx/Pyraminx.h
Examining data/xpuzzles-7.7.1/pyraminx/PyraminxP.h
Examining data/xpuzzles-7.7.1/pyraminx/PyraminxS.c
Examining data/xpuzzles-7.7.1/pyraminx/PyraminxU.c
Examining data/xpuzzles-7.7.1/pyraminx/rngs.c
Examining data/xpuzzles-7.7.1/pyraminx/rngs.h
Examining data/xpuzzles-7.7.1/pyraminx/sound.c
Examining data/xpuzzles-7.7.1/pyraminx/sound.h
Examining data/xpuzzles-7.7.1/pyraminx/timer.c
Examining data/xpuzzles-7.7.1/pyraminx/timer.h
Examining data/xpuzzles-7.7.1/pyraminx/version.h
Examining data/xpuzzles-7.7.1/pyraminx/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/pyraminx/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/pyraminx/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/pyraminx/xpyraminx.c
Examining data/xpuzzles-7.7.1/pyraminx/xwin.c
Examining data/xpuzzles-7.7.1/pyraminx/xwin.h
Examining data/xpuzzles-7.7.1/rubik/file.c
Examining data/xpuzzles-7.7.1/rubik/file.h
Examining data/xpuzzles-7.7.1/rubik/rngs.c
Examining data/xpuzzles-7.7.1/rubik/rngs.h
Examining data/xpuzzles-7.7.1/rubik/Rubik.c
Examining data/xpuzzles-7.7.1/rubik/Rubik.h
Examining data/xpuzzles-7.7.1/rubik/Rubik2d.c
Examining data/xpuzzles-7.7.1/rubik/Rubik2d.h
Examining data/xpuzzles-7.7.1/rubik/Rubik2dP.h
Examining data/xpuzzles-7.7.1/rubik/Rubik3d.c
Examining data/xpuzzles-7.7.1/rubik/Rubik3d.h
Examining data/xpuzzles-7.7.1/rubik/Rubik3dP.h
Examining data/xpuzzles-7.7.1/rubik/RubikGL.c
Examining data/xpuzzles-7.7.1/rubik/RubikGL.h
Examining data/xpuzzles-7.7.1/rubik/RubikGLP.h
Examining data/xpuzzles-7.7.1/rubik/RubikP.h
Examining data/xpuzzles-7.7.1/rubik/RubikS.c
Examining data/xpuzzles-7.7.1/rubik/RubikU.c
Examining data/xpuzzles-7.7.1/rubik/sound.c
Examining data/xpuzzles-7.7.1/rubik/sound.h
Examining data/xpuzzles-7.7.1/rubik/timer.c
Examining data/xpuzzles-7.7.1/rubik/timer.h
Examining data/xpuzzles-7.7.1/rubik/version.h
Examining data/xpuzzles-7.7.1/rubik/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/rubik/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/rubik/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/rubik/xrubik.c
Examining data/xpuzzles-7.7.1/rubik/xwin.c
Examining data/xpuzzles-7.7.1/rubik/xwin.h
Examining data/xpuzzles-7.7.1/skewb/file.c
Examining data/xpuzzles-7.7.1/skewb/file.h
Examining data/xpuzzles-7.7.1/skewb/rngs.c
Examining data/xpuzzles-7.7.1/skewb/rngs.h
Examining data/xpuzzles-7.7.1/skewb/Skewb.c
Examining data/xpuzzles-7.7.1/skewb/Skewb.h
Examining data/xpuzzles-7.7.1/skewb/Skewb2d.c
Examining data/xpuzzles-7.7.1/skewb/Skewb2d.h
Examining data/xpuzzles-7.7.1/skewb/Skewb2dP.h
Examining data/xpuzzles-7.7.1/skewb/Skewb3d.c
Examining data/xpuzzles-7.7.1/skewb/Skewb3d.h
Examining data/xpuzzles-7.7.1/skewb/Skewb3dP.h
Examining data/xpuzzles-7.7.1/skewb/SkewbGL.c
Examining data/xpuzzles-7.7.1/skewb/SkewbGL.h
Examining data/xpuzzles-7.7.1/skewb/SkewbGLP.h
Examining data/xpuzzles-7.7.1/skewb/SkewbP.h
Examining data/xpuzzles-7.7.1/skewb/SkewbS.c
Examining data/xpuzzles-7.7.1/skewb/SkewbU.c
Examining data/xpuzzles-7.7.1/skewb/sound.c
Examining data/xpuzzles-7.7.1/skewb/sound.h
Examining data/xpuzzles-7.7.1/skewb/timer.c
Examining data/xpuzzles-7.7.1/skewb/timer.h
Examining data/xpuzzles-7.7.1/skewb/version.h
Examining data/xpuzzles-7.7.1/skewb/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/skewb/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/skewb/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/skewb/xskewb.c
Examining data/xpuzzles-7.7.1/skewb/xwin.c
Examining data/xpuzzles-7.7.1/skewb/xwin.h
Examining data/xpuzzles-7.7.1/threed/file.c
Examining data/xpuzzles-7.7.1/threed/file.h
Examining data/xpuzzles-7.7.1/threed/sound.c
Examining data/xpuzzles-7.7.1/threed/sound.h
Examining data/xpuzzles-7.7.1/threed/Threed.c
Examining data/xpuzzles-7.7.1/threed/Threed.h
Examining data/xpuzzles-7.7.1/threed/ThreedM.c
Examining data/xpuzzles-7.7.1/threed/ThreedP.h
Examining data/xpuzzles-7.7.1/threed/timer.c
Examining data/xpuzzles-7.7.1/threed/timer.h
Examining data/xpuzzles-7.7.1/threed/version.h
Examining data/xpuzzles-7.7.1/threed/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/threed/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/threed/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/threed/xthreed.c
Examining data/xpuzzles-7.7.1/threed/xwin.c
Examining data/xpuzzles-7.7.1/threed/xwin.h
Examining data/xpuzzles-7.7.1/triangles/file.c
Examining data/xpuzzles-7.7.1/triangles/file.h
Examining data/xpuzzles-7.7.1/triangles/picture.c
Examining data/xpuzzles-7.7.1/triangles/picture.h
Examining data/xpuzzles-7.7.1/triangles/rngs.c
Examining data/xpuzzles-7.7.1/triangles/rngs.h
Examining data/xpuzzles-7.7.1/triangles/sound.c
Examining data/xpuzzles-7.7.1/triangles/sound.h
Examining data/xpuzzles-7.7.1/triangles/timer.c
Examining data/xpuzzles-7.7.1/triangles/timer.h
Examining data/xpuzzles-7.7.1/triangles/Triangles.c
Examining data/xpuzzles-7.7.1/triangles/Triangles.h
Examining data/xpuzzles-7.7.1/triangles/TrianglesP.h
Examining data/xpuzzles-7.7.1/triangles/TrianglesU.c
Examining data/xpuzzles-7.7.1/triangles/version.h
Examining data/xpuzzles-7.7.1/triangles/vms/vms_amd.c
Examining data/xpuzzles-7.7.1/triangles/vms/vms_amd.h
Examining data/xpuzzles-7.7.1/triangles/vms/vms_mmov.c
Examining data/xpuzzles-7.7.1/triangles/xtriangles.c
Examining data/xpuzzles-7.7.1/triangles/xwin.c
Examining data/xpuzzles-7.7.1/triangles/xwin.h

FINAL RESULTS:

data/xpuzzles-7.7.1/barrel/Barrel.c:404:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/barrel/Barrel.c:410:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/barrel/picture.c:72:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/barrel/picture.c:85:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/barrel/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/barrel/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/barrel/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/barrel/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/barrel/xbarrel.c:352:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/barrel/xbarrel.c:426:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/barrel/xbarrel.c:428:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/barrel/xbarrel.c:450:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s: norm@ (%d/%s) - %s",
data/xpuzzles-7.7.1/barrel/xbarrel.c:453:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s: ind@ (%d/%s) - %s",
data/xpuzzles-7.7.1/barrel/xbarrel.c:558:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/barrel/xbarrel.c:563:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/barrel/xbarrel.c:570:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/barrel/xbarrel.c:683:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/barrel/xbarrel.c:686:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/barrel/xbarrel.c:1416:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1442:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1469:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/barrel/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/barrel/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/barrel/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/barrel/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/barrel/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/cubes/Cubes.c:353:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/cubes/Cubes.c:359:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/cubes/picture.c:72:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/cubes/picture.c:85:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/cubes/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/cubes/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/cubes/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/cubes/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/cubes/xcubes.c:363:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				(void) fscanf(fp, "%d %s", &n, userName);
data/xpuzzles-7.7.1/cubes/xcubes.c:447:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/cubes/xcubes.c:449:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/cubes/xcubes.c:470:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %dx%dx%d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/cubes/xcubes.c:591:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/cubes/xcubes.c:596:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/cubes/xcubes.c:603:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/cubes/xcubes.c:698:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:702:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:1278:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/cubes/xcubes.c:1304:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/cubes/xcubes.c:1331:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/cubes/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/cubes/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/cubes/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/cubes/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/cubes/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/dial/xdial.c:107:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%g%s", m / factor, prog);
data/xpuzzles-7.7.1/dial/xdial.c:185:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/dial/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/dial/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/dial/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/dial/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/dial/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/dino/Dino.c:156:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/dino/Dino.c:162:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/dino/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/dino/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/dino/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/dino/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/dino/xdino.c:381:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/dino/xdino.c:451:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/dino/xdino.c:453:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/dino/xdino.c:551:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%sGL.%s: (%d/%s) - %s",
data/xpuzzles-7.7.1/dino/xdino.c:555:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s%dd.%s: (%d/%s) - %s",
data/xpuzzles-7.7.1/dino/xdino.c:640:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/dino/xdino.c:645:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/dino/xdino.c:652:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/dino/xdino.c:843:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/dino/xdino.c:846:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/dino/xdino.c:1635:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/dino/xdino.c:1661:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/dino/xdino.c:1688:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/dino/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/dino/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/dino/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/dino/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/dino/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/hexagons/Hexagons.c:375:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/hexagons/Hexagons.c:381:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/hexagons/picture.c:72:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/hexagons/picture.c:85:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/hexagons/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/hexagons/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/hexagons/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/hexagons/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:353:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:424:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:426:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/hexagons/xhexagons.c:447:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %dx%d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/hexagons/xhexagons.c:554:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/hexagons/xhexagons.c:559:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:566:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:650:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(messageDsp, "%s can not slide",
data/xpuzzles-7.7.1/hexagons/xhexagons.c:664:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:668:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1243:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1269:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1296:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/hexagons/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/hexagons/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/hexagons/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/hexagons/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/hexagons/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/mball/Mball.c:484:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/mball/Mball.c:490:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/mball/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/mball/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/mball/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/mball/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/mball/xmball.c:381:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/mball/xmball.c:457:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/mball/xmball.c:459:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/mball/xmball.c:480:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s.%d: %d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/mball/xmball.c:592:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/mball/xmball.c:597:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/mball/xmball.c:604:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/mball/xmball.c:724:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/mball/xmball.c:727:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/mball/xmball.c:1439:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mball/xmball.c:1465:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mball/xmball.c:1492:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mball/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/mball/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/mball/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/mball/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/mball/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/mlink/Mlink.c:407:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/mlink/Mlink.c:413:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/mlink/picture.c:72:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/mlink/picture.c:85:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/mlink/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/mlink/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/mlink/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/mlink/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/mlink/xmlink.c:355:13:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/mlink/xmlink.c:433:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/mlink/xmlink.c:435:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/mlink/xmlink.c:457:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s: %dx%d norm@ (%d/%s) - %s",
data/xpuzzles-7.7.1/mlink/xmlink.c:460:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s: %dx%d ind@ (%d/%s) - %s",
data/xpuzzles-7.7.1/mlink/xmlink.c:573:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/mlink/xmlink.c:578:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/mlink/xmlink.c:585:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/mlink/xmlink.c:703:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/mlink/xmlink.c:707:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/mlink/xmlink.c:1459:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mlink/xmlink.c:1485:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mlink/xmlink.c:1512:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/mlink/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/mlink/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/mlink/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/mlink/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/mlink/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/oct/Oct.c:423:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/oct/Oct.c:429:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/oct/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/oct/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/oct/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/oct/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/oct/xoct.c:394:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/oct/xoct.c:470:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/oct/xoct.c:472:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/oct/xoct.c:503:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s.%s: %s@ (%d/%s) - %s",
data/xpuzzles-7.7.1/oct/xoct.c:621:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/oct/xoct.c:626:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/oct/xoct.c:633:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/oct/xoct.c:754:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/oct/xoct.c:757:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/oct/xoct.c:1537:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/oct/xoct.c:1563:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/oct/xoct.c:1590:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/oct/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/oct/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/oct/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/oct/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/oct/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/panex/Panex.c:291:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/panex/Panex.c:297:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/panex/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/panex/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/panex/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/panex/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/panex/xpanex.c:370:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/panex/xpanex.c:439:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/panex/xpanex.c:441:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/panex/xpanex.c:462:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/panex/xpanex.c:559:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/panex/xpanex.c:564:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/panex/xpanex.c:571:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/panex/xpanex.c:654:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/panex/xpanex.c:657:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/panex/xpanex.c:1118:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/panex/xpanex.c:1144:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/panex/xpanex.c:1171:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/panex/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/panex/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/panex/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/panex/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/panex/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:417:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:423:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/pyraminx/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/pyraminx/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/pyraminx/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/pyraminx/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:411:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:490:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:521:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s.%s: %s@ (%d/%s) - %s",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:638:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:643:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:650:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:771:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:774:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1542:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1568:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1595:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/pyraminx/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/pyraminx/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/pyraminx/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/pyraminx/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/pyraminx/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/rubik/Rubik.c:155:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/rubik/Rubik.c:161:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/rubik/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/rubik/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/rubik/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/rubik/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/rubik/xrubik.c:422:13:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
					(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/rubik/xrubik.c:514:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/rubik/xrubik.c:516:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/rubik/xrubik.c:613:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%sGL: %dx%dx%d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/rubik/xrubik.c:618:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s%dd: %dx%dx%d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/rubik/xrubik.c:717:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/rubik/xrubik.c:722:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/rubik/xrubik.c:729:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/rubik/xrubik.c:923:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/rubik/xrubik.c:927:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/rubik/xrubik.c:1851:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/rubik/xrubik.c:1877:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/rubik/xrubik.c:1904:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/rubik/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/rubik/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/rubik/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/rubik/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/rubik/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/skewb/Skewb.c:154:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/skewb/Skewb.c:160:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/skewb/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/skewb/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/skewb/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/skewb/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/skewb/xskewb.c:385:10:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/skewb/xskewb.c:450:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/skewb/xskewb.c:452:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/skewb/xskewb.c:542:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%sGL: (%d/%s) - %s",
data/xpuzzles-7.7.1/skewb/xskewb.c:546:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(titleDsp, "%s%dd: (%d/%s) - %s",
data/xpuzzles-7.7.1/skewb/xskewb.c:623:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/skewb/xskewb.c:628:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/skewb/xskewb.c:635:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/skewb/xskewb.c:805:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/skewb/xskewb.c:808:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/skewb/xskewb.c:1471:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/skewb/xskewb.c:1497:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/skewb/xskewb.c:1524:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/skewb/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/skewb/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/skewb/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/skewb/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/skewb/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/threed/Threed.c:984:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(obj->name, string);
data/xpuzzles-7.7.1/threed/Threed.c:1161:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf, "%s\\%s", szBuf, filename);
data/xpuzzles-7.7.1/threed/Threed.c:1166:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/threed/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/threed/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/threed/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/threed/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/threed/xthreed.c:722:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp,
data/xpuzzles-7.7.1/threed/xthreed.c:1055:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/threed/xthreed.c:1083:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/threed/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/threed/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/threed/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/threed/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/threed/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/triangles/Triangles.c:354:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(buf,
data/xpuzzles-7.7.1/triangles/Triangles.c:360:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(buf,
data/xpuzzles-7.7.1/triangles/picture.c:72:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/triangles/picture.c:85:52:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (strncmp(line, "#define", (size_t) 7) == 0 && sscanf(line,
data/xpuzzles-7.7.1/triangles/sound.c:175:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, fileName);
data/xpuzzles-7.7.1/triangles/sound.c:179: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.
		(void) system(progrun);
data/xpuzzles-7.7.1/triangles/sound.c:306:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(fullfile, "%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/triangles/sound.c:488:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(file, "%s%s%s%s", SOUNDPATH, FINALDELIM,
data/xpuzzles-7.7.1/triangles/xtriangles.c:331:10:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		(void) fscanf(fp, "%d %s\n", &n, userName);
data/xpuzzles-7.7.1/triangles/xtriangles.c:397:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "NEVER %s", NOACCESS);
data/xpuzzles-7.7.1/triangles/xtriangles.c:399:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(recordDsp, "%d %s",
data/xpuzzles-7.7.1/triangles/xtriangles.c:420:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %d@ (%d/%s) - %s",
data/xpuzzles-7.7.1/triangles/xtriangles.c:516:17:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		char *login = getlogin();
data/xpuzzles-7.7.1/triangles/xtriangles.c:521:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", login);
data/xpuzzles-7.7.1/triangles/xtriangles.c:528:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(userNameDsp, "%s", "guest");
data/xpuzzles-7.7.1/triangles/xtriangles.c:619:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/triangles/xtriangles.c:622:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			(void) sprintf(messageDsp,
data/xpuzzles-7.7.1/triangles/xtriangles.c:1054:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/triangles/xtriangles.c:1080:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/triangles/xtriangles.c:1107:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(titleDsp, "%s: %s", progDsp, title);
data/xpuzzles-7.7.1/triangles/xwin.c:96:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%d", var1, var2);
data/xpuzzles-7.7.1/triangles/xwin.c:105:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(*string, "%s%s", var1, var2);
data/xpuzzles-7.7.1/triangles/xwin.h:221:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DISPLAY_WARNING(s) (void) fprintf(stderr, s)
data/xpuzzles-7.7.1/triangles/xwin.h:247:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/triangles/xwin.h:247:20:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
#define getlogin() cuserid(NULL)
data/xpuzzles-7.7.1/barrel/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/barrel/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/barrel/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/barrel/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/cubes/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/cubes/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/cubes/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/cubes/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/dino/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/dino/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/dino/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/dino/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/hexagons/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/hexagons/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/hexagons/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/hexagons/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/mball/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/mball/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/mball/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/mball/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/mlink/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/mlink/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/mlink/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/mlink/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/oct/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/oct/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/oct/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/oct/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/panex/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/panex/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/panex/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/panex/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/pyraminx/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/pyraminx/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/pyraminx/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/pyraminx/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/rubik/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/rubik/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/rubik/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/rubik/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/skewb/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/skewb/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/skewb/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/skewb/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/triangles/rngs.h:16:15:  [3] (random) lrand48:
  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.
#define LRAND lrand48
data/xpuzzles-7.7.1/triangles/rngs.h:19:15:  [3] (random) srandom:
  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.
#define SRAND srandom
data/xpuzzles-7.7.1/triangles/rngs.h:20:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define LRAND random
data/xpuzzles-7.7.1/triangles/rngs.h:23:15:  [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.
#define SRAND srand
data/xpuzzles-7.7.1/barrel/Barrel.c:53: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.
static const char *faceColorString[MAX_COLORS] =
data/xpuzzles-7.7.1/barrel/Barrel.c:63: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 faceColorChar[MAX_COLORS] =
data/xpuzzles-7.7.1/barrel/Barrel.c:396: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[512];
data/xpuzzles-7.7.1/barrel/Barrel.c:777: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[66];
data/xpuzzles-7.7.1/barrel/Barrel.c:1605: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/barrel/Barrel.c:1607:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/barrel/Barrel.c:1730: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/barrel/Barrel.c:1732:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/barrel/Barrel.c:1985: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/barrel/Barrel.c:2033: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/barrel/Barrel.c:2041: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/barrel/BarrelP.h:134: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        userName[81], scoreFile[81], bumpSound[81], moveSound[81];
data/xpuzzles-7.7.1/barrel/BarrelP.h:135: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        picture[81];
data/xpuzzles-7.7.1/barrel/BarrelP.h:136: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        faceChar[MAX_COLORS];
data/xpuzzles-7.7.1/barrel/BarrelP.h: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       *faceName[MAX_COLORS];
data/xpuzzles-7.7.1/barrel/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/barrel/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/barrel/picture.c:58: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 line[256], name[256];
data/xpuzzles-7.7.1/barrel/picture.c:59: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 hex[256];
data/xpuzzles-7.7.1/barrel/picture.c:61:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/barrel/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/barrel/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/barrel/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/barrel/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/barrel/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/barrel/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/barrel/xbarrel.c:222: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/barrel/xbarrel.c:227: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/barrel/xbarrel.c:228: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/barrel/xbarrel.c:240:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buff[21];
data/xpuzzles-7.7.1/barrel/xbarrel.c:246: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/barrel/xbarrel.c:248: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/barrel/xbarrel.c:249: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/barrel/xbarrel.c:252: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/barrel/xbarrel.c:253: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/barrel/xbarrel.c:258: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/barrel/xbarrel.c:309: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/barrel/xbarrel.c:320: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/barrel/xbarrel.c:323:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/barrel/xbarrel.c:370: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/barrel/xbarrel.c:379: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/barrel/xbarrel.c:383:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/barrel/xbarrel.c:384:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/barrel/xbarrel.c:446: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1261: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1286: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1315: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1337: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1360: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/barrel/xbarrel.c:1410: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/barrel/xbarrel.c:1436: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/barrel/xbarrel.c:1466: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/cubes/Cubes.c:345: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[512];
data/xpuzzles-7.7.1/cubes/Cubes.c:724: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[65];
data/xpuzzles-7.7.1/cubes/Cubes.c:1608: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/cubes/Cubes.c:1610:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/cubes/Cubes.c:1734: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/cubes/Cubes.c:1736:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/cubes/Cubes.c:1996: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[80];
data/xpuzzles-7.7.1/cubes/CubesP.h:134: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        userName[81], scoreFile[81], bumpSound[81], dripSound[81];
data/xpuzzles-7.7.1/cubes/CubesP.h:135: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        picture[81];
data/xpuzzles-7.7.1/cubes/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/cubes/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/cubes/picture.c:58: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 line[256], name[256];
data/xpuzzles-7.7.1/cubes/picture.c:59: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 hex[256];
data/xpuzzles-7.7.1/cubes/picture.c:61:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/cubes/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/cubes/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/cubes/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/cubes/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/cubes/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/cubes/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/cubes/xcubes.c:220: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/cubes/xcubes.c:226: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/cubes/xcubes.c:227: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/cubes/xcubes.c:235: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[21];
data/xpuzzles-7.7.1/cubes/xcubes.c:241: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/cubes/xcubes.c:243: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/cubes/xcubes.c:244: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/cubes/xcubes.c:248: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/cubes/xcubes.c:249: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/cubes/xcubes.c:254: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/cubes/xcubes.c:319: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/cubes/xcubes.c:330: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/cubes/xcubes.c:333:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/cubes/xcubes.c:393: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/cubes/xcubes.c:402: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/cubes/xcubes.c:406:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/cubes/xcubes.c:407:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/cubes/xcubes.c:467: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/cubes/xcubes.c:1185: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/cubes/xcubes.c:1206: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/cubes/xcubes.c:1227: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/cubes/xcubes.c:1272: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/cubes/xcubes.c:1298: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/cubes/xcubes.c:1328: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/dial/xdial.c:87: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/dial/xdial.c:102: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.
		(void) sprintf(titleDsp, "%g      ", m / factor);
data/xpuzzles-7.7.1/dial/xdial.c:179: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/dino/Dino.c:43: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/dino/Dino.c:53: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.
static const char faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/dino/Dino.c:148: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[512];
data/xpuzzles-7.7.1/dino/Dino.c:1051: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/dino/Dino.c:1053:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/dino/Dino.c:1152: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/dino/Dino.c:1154:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/dino/Dino.c:1348: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/dino/Dino.c:1386: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/dino/Dino.c:1394: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/dino/Dino2d.c:438: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/xpuzzles-7.7.1/dino/Dino3d.c:539: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/xpuzzles-7.7.1/dino/DinoP.h:135: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/dino/DinoP.h:136: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/dino/DinoP.h:141: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/dino/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/dino/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/dino/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/dino/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/dino/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/dino/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/dino/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/dino/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/dino/xdino.c:247: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/dino/xdino.c:252: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/dino/xdino.c:253: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/dino/xdino.c:255: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/dino/xdino.c:257: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/dino/xdino.c:258: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/dino/xdino.c:262: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/dino/xdino.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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/dino/xdino.c:272: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[21];
data/xpuzzles-7.7.1/dino/xdino.c:287: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/dino/xdino.c:338: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/dino/xdino.c:349: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/dino/xdino.c:352:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/dino/xdino.c:399: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/dino/xdino.c:408: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/dino/xdino.c:412:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/dino/xdino.c:413:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/dino/xdino.c:540: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/dino/xdino.c:543: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 mb[10];
data/xpuzzles-7.7.1/dino/xdino.c:546:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		(void) strcpy(mb, "both");
data/xpuzzles-7.7.1/dino/xdino.c:548: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.
		(void) sprintf(mb, "%d", mode);
data/xpuzzles-7.7.1/dino/xdino.c:1530: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/dino/xdino.c:1553: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/dino/xdino.c:1577: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/dino/xdino.c:1629: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/dino/xdino.c:1655: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/dino/xdino.c:1685: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/hexagons/Hexagons.c:367: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[512];
data/xpuzzles-7.7.1/hexagons/Hexagons.c:922: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[65];
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2293: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2295:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2404: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).
	if ((fp = fopen(lname, "w")) == NULL) {
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2406:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fname, "w")) == NULL) {
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2574: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[80];
data/xpuzzles-7.7.1/hexagons/HexagonsP.h:137: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        userName[81], scoreFile[81], bumpSound[81], picture[81];
data/xpuzzles-7.7.1/hexagons/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/hexagons/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/hexagons/picture.c:58: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 line[256], name[256];
data/xpuzzles-7.7.1/hexagons/picture.c:59: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 hex[256];
data/xpuzzles-7.7.1/hexagons/picture.c:61:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/hexagons/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/hexagons/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/hexagons/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/hexagons/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/hexagons/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/hexagons/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:219: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:225: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/hexagons/xhexagons.c:226: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/hexagons/xhexagons.c:237: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[21];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:243: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/hexagons/xhexagons.c:245: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/hexagons/xhexagons.c:246: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:250: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/hexagons/xhexagons.c:251: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/hexagons/xhexagons.c:256: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/hexagons/xhexagons.c:309: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:320: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/hexagons/xhexagons.c:323:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/hexagons/xhexagons.c:371: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/hexagons/xhexagons.c:380: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:384:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:385:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/hexagons/xhexagons.c:444: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1136: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1163: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1190: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1237: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1263: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1293: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mball/Mball.c:38: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.
static const char *wedgeColorString[MAX_WEDGES] =
data/xpuzzles-7.7.1/mball/Mball.c:54: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 wedgeColorChar[MAX_WEDGES] =
data/xpuzzles-7.7.1/mball/Mball.c:476: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[512];
data/xpuzzles-7.7.1/mball/Mball.c:971: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[3];
data/xpuzzles-7.7.1/mball/Mball.c:1046: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/xpuzzles-7.7.1/mball/Mball.c:1315: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[66];
data/xpuzzles-7.7.1/mball/Mball.c:1393: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[65];
data/xpuzzles-7.7.1/mball/Mball.c:1835: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/mball/Mball.c:1837:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/mball/Mball.c:1950: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/mball/Mball.c:1952:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/mball/Mball.c:2168: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/mball/Mball.c:2206: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.
		(void) sprintf(buf, "wedgeColor%d", wedge);
data/xpuzzles-7.7.1/mball/Mball.c:2214: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.
		(void) sprintf(buf, "wedgeChar%d", wedge);
data/xpuzzles-7.7.1/mball/MballP.h:161: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/mball/MballP.h:162: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        wedgeChar[MAX_WEDGES];
data/xpuzzles-7.7.1/mball/MballP.h:167: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       *wedgeName[MAX_WEDGES];
data/xpuzzles-7.7.1/mball/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/mball/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/mball/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/mball/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/mball/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/mball/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/mball/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/mball/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/mball/xmball.c:245: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/mball/xmball.c:251: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/mball/xmball.c:252: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/mball/xmball.c:261: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[21];
data/xpuzzles-7.7.1/mball/xmball.c:271: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/mball/xmball.c:273: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/mball/xmball.c:274: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/mball/xmball.c:278: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/mball/xmball.c:279: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/mball/xmball.c:284: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/mball/xmball.c:337: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/mball/xmball.c:348: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/mball/xmball.c:351:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/mball/xmball.c:399: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/mball/xmball.c:408: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/mball/xmball.c:412:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/mball/xmball.c:413:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/mball/xmball.c:477: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/mball/xmball.c:1311: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mball/xmball.c:1335: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mball/xmball.c:1359: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mball/xmball.c:1384: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mball/xmball.c:1433: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mball/xmball.c:1459: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mball/xmball.c:1489: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mlink/Mlink.c:53: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/mlink/Mlink.c:65: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 faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/mlink/Mlink.c:399: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[512];
data/xpuzzles-7.7.1/mlink/Mlink.c:819: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[66];
data/xpuzzles-7.7.1/mlink/Mlink.c:1638: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/mlink/Mlink.c:1640:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/mlink/Mlink.c:1762: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/mlink/Mlink.c:1764:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/mlink/Mlink.c:2064: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/mlink/Mlink.c:2112: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/mlink/Mlink.c:2120: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/mlink/MlinkP.h:133: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        userName[81], scoreFile[81], bumpSound[81], moveSound[81];
data/xpuzzles-7.7.1/mlink/MlinkP.h:134: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        picture[81];
data/xpuzzles-7.7.1/mlink/MlinkP.h:135: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/mlink/MlinkP.h:144: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/mlink/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/mlink/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/mlink/picture.c:58: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 line[256], name[256];
data/xpuzzles-7.7.1/mlink/picture.c:59: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 hex[256];
data/xpuzzles-7.7.1/mlink/picture.c:61:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/mlink/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/mlink/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/mlink/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/mlink/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/mlink/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/mlink/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/mlink/xmlink.c:221: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/mlink/xmlink.c:227: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/mlink/xmlink.c:228: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/mlink/xmlink.c:237: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[21];
data/xpuzzles-7.7.1/mlink/xmlink.c:243: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/mlink/xmlink.c:245: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/mlink/xmlink.c:246: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/mlink/xmlink.c:249: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/mlink/xmlink.c:250: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/mlink/xmlink.c:255: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/mlink/xmlink.c:310: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/mlink/xmlink.c:321: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/mlink/xmlink.c:324:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/mlink/xmlink.c:373: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/mlink/xmlink.c:382: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/mlink/xmlink.c:386:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/mlink/xmlink.c:387:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/mlink/xmlink.c:453: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/mlink/xmlink.c:1296: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mlink/xmlink.c:1321: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mlink/xmlink.c:1352: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mlink/xmlink.c:1376: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mlink/xmlink.c:1403: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/mlink/xmlink.c:1453: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mlink/xmlink.c:1479: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/mlink/xmlink.c:1509: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/oct/Oct.c:38: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/oct/Oct.c:50: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 faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/oct/Oct.c:415: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[512];
data/xpuzzles-7.7.1/oct/Oct.c:987: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/xpuzzles-7.7.1/oct/Oct.c:2098: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/oct/Oct.c:2100:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/oct/Oct.c:2225: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/oct/Oct.c:2227:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/oct/Oct.c:2503: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/oct/Oct.c:2539: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/oct/Oct.c:2547: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/oct/OctP.h:151: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/oct/OctP.h:152: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/oct/OctP.h:157: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/oct/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/oct/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/oct/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/oct/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/oct/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/oct/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/oct/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/oct/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/oct/xoct.c:257: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/oct/xoct.c:262: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/oct/xoct.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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/oct/xoct.c:274: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[21];
data/xpuzzles-7.7.1/oct/xoct.c:284: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/oct/xoct.c:286: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/oct/xoct.c:287: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/oct/xoct.c:291: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/oct/xoct.c:292: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/oct/xoct.c:297: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/oct/xoct.c:350: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/oct/xoct.c:361: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/oct/xoct.c:364:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/oct/xoct.c:412: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/oct/xoct.c:421: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/oct/xoct.c:425:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/oct/xoct.c:426:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/oct/xoct.c:490: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/oct/xoct.c: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 ss[10], mb[10];
data/xpuzzles-7.7.1/oct/xoct.c:496:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		(void) strcpy(ss, "sticky");
data/xpuzzles-7.7.1/oct/xoct.c:498: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.
		(void) sprintf(ss, "%d", size);
data/xpuzzles-7.7.1/oct/xoct.c:500:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		(void) strcpy(mb, "both");
data/xpuzzles-7.7.1/oct/xoct.c:502: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.
		(void) sprintf(mb, "%d", mode);
data/xpuzzles-7.7.1/oct/xoct.c:1375: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/oct/xoct.c:1399: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/oct/xoct.c:1422: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/oct/xoct.c:1454: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/oct/xoct.c:1480: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/oct/xoct.c:1531: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/oct/xoct.c:1557: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/oct/xoct.c:1587: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/panex/Panex.c:38: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.
static const char *pyramidColorString[MAX_STACKS - 1] =
data/xpuzzles-7.7.1/panex/Panex.c:43: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 pyramidColorChar[MAX_STACKS - 1] =
data/xpuzzles-7.7.1/panex/Panex.c:283: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[512];
data/xpuzzles-7.7.1/panex/Panex.c:568: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/xpuzzles-7.7.1/panex/Panex.c:1281: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/panex/Panex.c:1283:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/panex/Panex.c:1392: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/panex/Panex.c:1394:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/panex/Panex.c:1602: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/panex/Panex.c:1640: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.
		(void) sprintf(buf, "pyramidColor%d", pyramid);
data/xpuzzles-7.7.1/panex/Panex.c:1648: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.
		(void) sprintf(buf, "pyramidChar%d", pyramid);
data/xpuzzles-7.7.1/panex/PanexP.h:136: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        userName[81], scoreFile[81], moveSound[81], dripSound[81];
data/xpuzzles-7.7.1/panex/PanexP.h:137: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        pyramidChar[MAX_STACKS - 1];
data/xpuzzles-7.7.1/panex/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/panex/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/panex/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/panex/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/panex/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/panex/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/panex/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/panex/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/panex/xpanex.c:240: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/panex/xpanex.c:245: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/panex/xpanex.c:246: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/panex/xpanex.c:254: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[21];
data/xpuzzles-7.7.1/panex/xpanex.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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/panex/xpanex.c:266: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/panex/xpanex.c:267: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/panex/xpanex.c:270: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/panex/xpanex.c:271: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/panex/xpanex.c:276: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/panex/xpanex.c:327: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/panex/xpanex.c:338: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/panex/xpanex.c:341:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/panex/xpanex.c:388: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/panex/xpanex.c:397: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/panex/xpanex.c:401:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/panex/xpanex.c:402:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/panex/xpanex.c:459: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/panex/xpanex.c:1046: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/panex/xpanex.c:1067: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/panex/xpanex.c:1112: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/panex/xpanex.c:1138: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/panex/xpanex.c:1168: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:38: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:46: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.
static const char faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:409: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[512];
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:834: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/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2013: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2015:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2140: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2142:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2390: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2426: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2434: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/pyraminx/PyraminxP.h:147: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/pyraminx/PyraminxP.h:148: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/pyraminx/PyraminxP.h:153: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/pyraminx/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/pyraminx/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/pyraminx/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/pyraminx/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/pyraminx/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/pyraminx/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/pyraminx/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/pyraminx/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:274: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:279: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:280: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:291: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[21];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:301: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:303: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:304: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:308: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:309: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:314: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:367: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:378: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:381:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:429: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:438: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:442:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:443:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:508: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:511: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[10], mb[10];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:514:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		(void) strcpy(ss, "sticky");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:516: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.
		(void) sprintf(ss, "%d", size);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:518:10:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		(void) strcpy(mb, "both");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:520: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.
		(void) sprintf(mb, "%d", mode);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1381: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1405: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1428: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1460: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1486: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1536: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1562: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1592: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/rubik/Rubik.c:43: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/rubik/Rubik.c:53: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.
static const char faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/rubik/Rubik.c:147: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[512];
data/xpuzzles-7.7.1/rubik/Rubik.c:935: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/rubik/Rubik.c:937:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/rubik/Rubik.c:1076: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/rubik/Rubik.c:1078:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/rubik/Rubik.c:1284: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/rubik/Rubik.c:1326: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/rubik/Rubik.c:1334: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/rubik/Rubik2d.c:435: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/xpuzzles-7.7.1/rubik/Rubik3d.c:601: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/xpuzzles-7.7.1/rubik/RubikP.h:123: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/rubik/RubikP.h:124: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/rubik/RubikP.h:129: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/rubik/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/rubik/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/rubik/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/rubik/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/rubik/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/rubik/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/rubik/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/rubik/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/rubik/xrubik.c:273: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/rubik/xrubik.c:279: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/rubik/xrubik.c:280: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/rubik/xrubik.c:282: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/rubik/xrubik.c:284: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/rubik/xrubik.c:285: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/rubik/xrubik.c:289: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/rubik/xrubik.c:290: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/rubik/xrubik.c:299: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[21];
data/xpuzzles-7.7.1/rubik/xrubik.c:310: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/rubik/xrubik.c:377: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/rubik/xrubik.c:388: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/rubik/xrubik.c:391:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/rubik/xrubik.c:452: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/rubik/xrubik.c:461: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/rubik/xrubik.c:465:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/rubik/xrubik.c:466:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/rubik/xrubik.c:608: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/rubik/xrubik.c:1688: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/rubik/xrubik.c:1715: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/rubik/xrubik.c:1742: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.
		(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/rubik/xrubik.c:1767: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/rubik/xrubik.c:1793: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/rubik/xrubik.c:1845: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/rubik/xrubik.c:1871: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/rubik/xrubik.c:1901: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/skewb/Skewb.c:43: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.
static const char *faceColorString[MAX_FACES] =
data/xpuzzles-7.7.1/skewb/Skewb.c:53: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.
static const char faceColorChar[MAX_FACES] =
data/xpuzzles-7.7.1/skewb/Skewb.c:146: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[512];
data/xpuzzles-7.7.1/skewb/Skewb.c: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/skewb/Skewb.c:1104:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/skewb/Skewb.c:1176: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/skewb/Skewb.c:1178:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/skewb/Skewb.c:1384: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[80], buf[20], charbuf[2];
data/xpuzzles-7.7.1/skewb/Skewb.c:1420: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.
		(void) sprintf(buf, "faceColor%d", face);
data/xpuzzles-7.7.1/skewb/Skewb.c:1428: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.
		(void) sprintf(buf, "faceChar%d", face);
data/xpuzzles-7.7.1/skewb/Skewb2d.c:491: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/xpuzzles-7.7.1/skewb/Skewb2d.c: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 buf[2];
data/xpuzzles-7.7.1/skewb/Skewb3d.c:494: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/xpuzzles-7.7.1/skewb/Skewb3d.c:553: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/xpuzzles-7.7.1/skewb/SkewbP.h:136: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        userName[81], scoreFile[81], moveSound[81];
data/xpuzzles-7.7.1/skewb/SkewbP.h:137: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        faceChar[MAX_FACES];
data/xpuzzles-7.7.1/skewb/SkewbP.h:142: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       *faceName[MAX_FACES];
data/xpuzzles-7.7.1/skewb/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/skewb/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/skewb/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/skewb/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/skewb/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/skewb/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/skewb/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/skewb/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/skewb/xskewb.c:260: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/skewb/xskewb.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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/skewb/xskewb.c:266: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/skewb/xskewb.c:268: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/skewb/xskewb.c:270: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/skewb/xskewb.c:271: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/skewb/xskewb.c:275: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/skewb/xskewb.c:276: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/skewb/xskewb.c:284: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[21];
data/xpuzzles-7.7.1/skewb/xskewb.c:295: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/skewb/xskewb.c:343: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/skewb/xskewb.c:354: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/skewb/xskewb.c:357:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/skewb/xskewb.c:403: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/skewb/xskewb.c:412: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/skewb/xskewb.c:416:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/skewb/xskewb.c:417:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/skewb/xskewb.c:537: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/skewb/xskewb.c:1391: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/skewb/xskewb.c:1413: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/skewb/xskewb.c:1465: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/skewb/xskewb.c:1491: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/skewb/xskewb.c:1521: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/threed/Threed.c:890: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[MAX_LINE];
data/xpuzzles-7.7.1/threed/Threed.c:1143: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[256], szBuf[144];
data/xpuzzles-7.7.1/threed/Threed.c:1149: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).
	if ((fp = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/threed/Threed.c:1165:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(buf, "r")) == NULL) {
data/xpuzzles-7.7.1/threed/Threed.c:1190: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[MAX_LINE];
data/xpuzzles-7.7.1/threed/Threed.c:1274: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[MAX_LINE];
data/xpuzzles-7.7.1/threed/Threed.c:1286: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/threed/Threed.c:1288:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/threed/Threed.h:93: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 message[81];
data/xpuzzles-7.7.1/threed/ThreedP.h:165: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        bumpSound[STRING_SIZE], moveSound[STRING_SIZE];
data/xpuzzles-7.7.1/threed/ThreedP.h:166: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        picture[STRING_SIZE];
data/xpuzzles-7.7.1/threed/ThreedP.h:167: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        shadeChar[COLORS];
data/xpuzzles-7.7.1/threed/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/threed/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/threed/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/threed/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/threed/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/threed/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/threed/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/threed/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/threed/xthreed.c:667: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/threed/xthreed.c:1049: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/threed/xthreed.c:1080: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/triangles/Triangles.c:346: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[512];
data/xpuzzles-7.7.1/triangles/Triangles.c:796: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[65];
data/xpuzzles-7.7.1/triangles/Triangles.c:1748: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).
	if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/triangles/Triangles.c:1750:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "r")) == NULL) {
data/xpuzzles-7.7.1/triangles/Triangles.c:1830: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).
	if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/triangles/Triangles.c:1832:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(name, "w")) == NULL) {
data/xpuzzles-7.7.1/triangles/Triangles.c:2002: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[80];
data/xpuzzles-7.7.1/triangles/TrianglesP.h:136: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        userName[81], scoreFile[81], bumpSound[81];
data/xpuzzles-7.7.1/triangles/TrianglesP.h:137: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	    picture[81];
data/xpuzzles-7.7.1/triangles/file.c:30: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 dirname[256];
data/xpuzzles-7.7.1/triangles/file.c:41:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, type)) == NULL)
data/xpuzzles-7.7.1/triangles/picture.c:58: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 line[256], name[256];
data/xpuzzles-7.7.1/triangles/picture.c:59: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 hex[256];
data/xpuzzles-7.7.1/triangles/picture.c:61:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((file = fopen(filename, "r")) == NULL) {
data/xpuzzles-7.7.1/triangles/sound.c: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 buffer[2048];
data/xpuzzles-7.7.1/triangles/sound.c:129: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).
	fp = open(fileName, O_RDONLY, 0777);	/* Open the file */
data/xpuzzles-7.7.1/triangles/sound.c:252: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.
	union { int i; char c[sizeof(int)]; } u;
data/xpuzzles-7.7.1/triangles/sound.c:283: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 fullfile[MAXPATHLEN];
data/xpuzzles-7.7.1/triangles/vms/vms_amd.c:19: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        ReadBuffer[512];	/* Asynchronous read buffer */
data/xpuzzles-7.7.1/triangles/vms/vms_mmov.c:33: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 extra_data[ NUM_DATA ];
data/xpuzzles-7.7.1/triangles/xtriangles.c:206: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[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/triangles/xtriangles.c:211: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 messageDsp[MESSAGE_LENGTH] = "Welcome";
data/xpuzzles-7.7.1/triangles/xtriangles.c:212: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 recordDsp[MESSAGE_LENGTH] = "NOT RECORDED";
data/xpuzzles-7.7.1/triangles/xtriangles.c:222: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[21];
data/xpuzzles-7.7.1/triangles/xtriangles.c:228: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 titleDsp[TITLE_LENGTH] = "";
data/xpuzzles-7.7.1/triangles/xtriangles.c:230: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 scoreFileName[FILE_NAME_LENGTH] = SCOREFILE;
data/xpuzzles-7.7.1/triangles/xtriangles.c:231: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 fileName[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/triangles/xtriangles.c:235: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 progDsp[PROGRAM_NAME_LENGTH] = TITLE;
data/xpuzzles-7.7.1/triangles/xtriangles.c:236: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 userNameDsp[USER_NAME_LENGTH] = "Guest";
data/xpuzzles-7.7.1/triangles/xtriangles.c:241: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 userNameDsp[USER_NAME_LENGTH] = "";
data/xpuzzles-7.7.1/triangles/xtriangles.c:289: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 userName[USER_NAME_LENGTH];
data/xpuzzles-7.7.1/triangles/xtriangles.c:300: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).
	if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/triangles/xtriangles.c:303:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(fileName, "r")) == NULL) {
data/xpuzzles-7.7.1/triangles/xtriangles.c:349: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).
	if ((fp = fopen(fileName, "w")) == NULL) {
data/xpuzzles-7.7.1/triangles/xtriangles.c:358: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 lockFile[FILE_NAME_LENGTH];
data/xpuzzles-7.7.1/triangles/xtriangles.c:362:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(lockFile, ".lock");
data/xpuzzles-7.7.1/triangles/xtriangles.c:363:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		while (((lfd = open(lockFile, O_CREAT | O_EXCL, 0644)) < 0) &&
data/xpuzzles-7.7.1/triangles/xtriangles.c:417: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.
	(void) sprintf(buff, "%d", nMoves);
data/xpuzzles-7.7.1/triangles/xtriangles.c:1003: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.
	(void) sprintf(buff, "%d", movesDsp);
data/xpuzzles-7.7.1/triangles/xtriangles.c:1048: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/triangles/xtriangles.c:1074: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/triangles/xtriangles.c:1104: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 titleDsp[FILE_NAME_LENGTH + 8];
data/xpuzzles-7.7.1/barrel/Barrel.c:1634:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:1656:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:1680:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:1685:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:1690:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:1698:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/Barrel.c:2050:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->barrel.picture, szBuf, 80);
data/xpuzzles-7.7.1/barrel/Barrel.c:2057:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->barrel.bumpSound, szBuf, 80);
data/xpuzzles-7.7.1/barrel/Barrel.c:2060:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->barrel.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/barrel/Barrel.c:2063:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->barrel.userName, szBuf, 80);
data/xpuzzles-7.7.1/barrel/Barrel.c:2066:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->barrel.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/barrel/BarrelU.c:193:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/BarrelU.c:222:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/barrel/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/barrel/picture.c:91:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:92:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:95:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:130:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:131:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:151:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:152:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:155:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c1 = getc(file);
data/xpuzzles-7.7.1/barrel/picture.c:208: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/barrel/picture.c:214:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/barrel/picture.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (bitmap_local && strlen(bitmap_local)) {
data/xpuzzles-7.7.1/barrel/picture.c:324: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/barrel/picture.c:330:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/barrel/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/barrel/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/barrel/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/barrel/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/barrel/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/barrel/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/barrel/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/barrel/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/barrel/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/barrel/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/barrel/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/barrel/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/barrel/xbarrel.c:299:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[l][k].name,
data/xpuzzles-7.7.1/barrel/xbarrel.c:319:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:321:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:356:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[l][k].name,
data/xpuzzles-7.7.1/barrel/xbarrel.c:381:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/barrel/xbarrel.c:420:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:423:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:472:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[l][k].name, userNameDsp,
data/xpuzzles-7.7.1/barrel/xbarrel.c:503:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:520:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:550:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:556:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:561:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:595:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:642:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:648:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/barrel/xbarrel.c:660:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/barrel/xbarrel.c:665:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "A space can not slide",
data/xpuzzles-7.7.1/barrel/xbarrel.c:670:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/barrel/xbarrel.c:689:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/barrel/xbarrel.c:700:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/barrel/xbarrel.c:1167: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/barrel/xbarrel.c:1264:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:1289:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:1318:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:1340:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:1364:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/barrel/xbarrel.c:1366:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/barrel/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/barrel/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/barrel/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/cubes/Cubes.c:1637:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/Cubes.c:1659:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/Cubes.c:1681:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/Cubes.c:1705:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/Cubes.c:2049:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->cubes.picture, szBuf, 80);
data/xpuzzles-7.7.1/cubes/Cubes.c:2056:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->cubes.bumpSound, szBuf, 80);
data/xpuzzles-7.7.1/cubes/Cubes.c:2059:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->cubes.dripSound, szBuf, 80);
data/xpuzzles-7.7.1/cubes/Cubes.c:2062:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->cubes.userName, szBuf, 80);
data/xpuzzles-7.7.1/cubes/Cubes.c:2065:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->cubes.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/cubes/CubesU.c:188:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/CubesU.c:216:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/cubes/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/cubes/picture.c:91:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:92:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:95:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:130:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:131:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:151:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:152:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:155:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c1 = getc(file);
data/xpuzzles-7.7.1/cubes/picture.c:208: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/cubes/picture.c:214:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/cubes/picture.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (bitmap_local && strlen(bitmap_local)) {
data/xpuzzles-7.7.1/cubes/picture.c:324: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/cubes/picture.c:330:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/cubes/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/cubes/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/cubes/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/cubes/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/cubes/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/cubes/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/cubes/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/cubes/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/cubes/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/cubes/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/cubes/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/cubes/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/cubes/xcubes.c:299:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[k][j][i].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:301:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[k][i][j].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:303:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[j][k][i].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:305:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[j][i][k].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:307:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[i][k][j].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:309:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[i][j][k].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:329:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:331:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:369:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[k][j][i].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:371:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[k][i][j].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:373:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[j][k][i].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:375:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[j][i][k].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:377:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[i][k][j].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:379:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[i][j][k].name,
data/xpuzzles-7.7.1/cubes/xcubes.c:404:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/cubes/xcubes.c:445:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:496:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][j][k].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:498:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][k][j].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:500:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[j][i][k].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:502:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[j][k][i].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:504:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[k][i][j].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:506:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[k][j][i].name, userNameDsp,
data/xpuzzles-7.7.1/cubes/xcubes.c:536:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:553:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:583:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:589:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:594:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/cubes/xcubes.c:629:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/cubes/xcubes.c:669:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:679:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/cubes/xcubes.c:684:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "A space can not slide",
data/xpuzzles-7.7.1/cubes/xcubes.c:689:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Clear to start",
data/xpuzzles-7.7.1/cubes/xcubes.c:705:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/cubes/xcubes.c:1119: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/cubes/xcubes.c:1188:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/cubes/xcubes.c:1209:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/cubes/xcubes.c:1230:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/cubes/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/cubes/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/cubes/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/dial/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/dial/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/dial/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/dino/Dino.c:1080:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/Dino.c:1107:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/Dino.c:1112:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/Dino.c:1120:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/Dino.c:1407:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(w->dino.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/dino/Dino.c:1410:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->dino.userName, szBuf, 80);
data/xpuzzles-7.7.1/dino/Dino.c:1413:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->dino.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/dino/DinoU.c:207:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/DinoU.c:236:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/dino/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/dino/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/dino/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/dino/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/dino/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/dino/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/dino/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/dino/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/dino/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/dino/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/dino/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/dino/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/dino/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/dino/xdino.c:328:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[mode][orient].name, NOACCESS,
data/xpuzzles-7.7.1/dino/xdino.c:348:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:350:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:385:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[mode][orient].name,
data/xpuzzles-7.7.1/dino/xdino.c:410:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/dino/xdino.c:449:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:499:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, *scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:576:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][j].name, userNameDsp,
data/xpuzzles-7.7.1/dino/xdino.c:581:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[!i][j].name, userNameDsp,
data/xpuzzles-7.7.1/dino/xdino.c:616:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:632:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:638:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:643:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:714:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:769:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/dino/xdino.c:775:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/dino/xdino.c:805:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move",
data/xpuzzles-7.7.1/dino/xdino.c:810:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/dino/xdino.c:813:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/dino/xdino.c:849:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/dino/xdino.c:868:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/dino/xdino.c:1024:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:1450: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/dino/xdino.c:1533:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:1556:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:1581:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/dino/xdino.c:1583:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/dino/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/dino/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/dino/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2322:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2327:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2350:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2375:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2625:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(w->hexagons.bumpSound, szBuf, 80);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2628:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->hexagons.userName, szBuf, 80);
data/xpuzzles-7.7.1/hexagons/Hexagons.c:2631:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->hexagons.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/hexagons/HexagonsU.c:191:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/HexagonsU.c:219:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/hexagons/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/hexagons/picture.c:91:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:92:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:95:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:130:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:131:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:151:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:152:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:155:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c1 = getc(file);
data/xpuzzles-7.7.1/hexagons/picture.c:208: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/hexagons/picture.c:214:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/hexagons/picture.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (bitmap_local && strlen(bitmap_local)) {
data/xpuzzles-7.7.1/hexagons/picture.c:324: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/hexagons/picture.c:330:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/hexagons/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/hexagons/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/hexagons/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/hexagons/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/hexagons/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/hexagons/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/hexagons/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/hexagons/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/hexagons/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/hexagons/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/hexagons/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/hexagons/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:299:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[i][j][k].name,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:319:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:321:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:357:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[i][j][k].name,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:382:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:422:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:468:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][j][k].name, userNameDsp,
data/xpuzzles-7.7.1/hexagons/xhexagons.c:499:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:516:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:546:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:552:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:557:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:592:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:632:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:642:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:645:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/hexagons/xhexagons.c:655:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Clear to start",
data/xpuzzles-7.7.1/hexagons/xhexagons.c:671:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1067: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1139:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1166:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/hexagons/xhexagons.c:1193:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/hexagons/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/hexagons/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/hexagons/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/mball/Mball.c:1864:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/Mball.c:1885:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/Mball.c:1907:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/Mball.c:1912:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/Mball.c:1920:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/Mball.c:2227:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mball.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/mball/Mball.c:2230:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mball.userName, szBuf, 80);
data/xpuzzles-7.7.1/mball/Mball.c:2233:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mball.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/mball/MballU.c:201:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/MballU.c:228:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mball/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/mball/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/mball/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/mball/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/mball/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/mball/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/mball/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/mball/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/mball/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/mball/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/mball/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/mball/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/mball/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/mball/xmball.c:327:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[orient][i][j].name,
data/xpuzzles-7.7.1/mball/xmball.c:347:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:349:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:385:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][i][j].name,
data/xpuzzles-7.7.1/mball/xmball.c:410:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/mball/xmball.c:453:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:455:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:501:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][w][r].name, userNameDsp,
data/xpuzzles-7.7.1/mball/xmball.c:506:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[!i][w][r].name, userNameDsp,
data/xpuzzles-7.7.1/mball/xmball.c:539:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:557:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:584:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:590:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:595:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:630:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:683:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mball/xmball.c:689:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/mball/xmball.c:703:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move",
data/xpuzzles-7.7.1/mball/xmball.c:708:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/mball/xmball.c:711:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/mball/xmball.c:730:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/mball/xmball.c:743:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/mball/xmball.c:1221: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/mball/xmball.c:1314:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:1338:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:1362:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:1388:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mball/xmball.c:1390:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mball/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/mball/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/mball/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/mlink/Mlink.c:1667:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:1689:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:1713:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:1718:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:1723:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:1731:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/Mlink.c:2129:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mlink.picture, szBuf, 80);
data/xpuzzles-7.7.1/mlink/Mlink.c:2136:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mlink.bumpSound, szBuf, 80);
data/xpuzzles-7.7.1/mlink/Mlink.c:2139:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mlink.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/mlink/Mlink.c:2143:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mlink.userName, szBuf, 80);
data/xpuzzles-7.7.1/mlink/Mlink.c:2146:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->mlink.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/mlink/MlinkU.c:192:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/MlinkU.c:221:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/mlink/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/mlink/picture.c:91:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:92:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:95:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:130:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:131:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:151:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:152:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:155:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c1 = getc(file);
data/xpuzzles-7.7.1/mlink/picture.c:208: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/mlink/picture.c:214:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/mlink/picture.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (bitmap_local && strlen(bitmap_local)) {
data/xpuzzles-7.7.1/mlink/picture.c:324: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/mlink/picture.c:330:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/mlink/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/mlink/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/mlink/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/mlink/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/mlink/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/mlink/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/mlink/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/mlink/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/mlink/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/mlink/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/mlink/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/mlink/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/mlink/xmlink.c:300:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[l][k][j][i].name,
data/xpuzzles-7.7.1/mlink/xmlink.c:320:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:322:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:359:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[l][k][j][i].name,
data/xpuzzles-7.7.1/mlink/xmlink.c:384:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/mlink/xmlink.c:429:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:431:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:480:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[l][k][j][i].name, userNameDsp,
data/xpuzzles-7.7.1/mlink/xmlink.c:484:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[!l][k][j][i].name,
data/xpuzzles-7.7.1/mlink/xmlink.c:518:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:537:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:565:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:571:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:576:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:611:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:662:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:668:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/mlink/xmlink.c:680:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mlink/xmlink.c:685:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "A space can not slide",
data/xpuzzles-7.7.1/mlink/xmlink.c:690:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/mlink/xmlink.c:710:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/mlink/xmlink.c:721:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/mlink/xmlink.c:1203: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/mlink/xmlink.c:1299:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:1324:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:1355:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:1379:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:1407:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/mlink/xmlink.c:1409:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/mlink/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/mlink/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/mlink/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/oct/Oct.c:2127:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2149:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2176:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2181:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2186:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2194:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/Oct.c:2560:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(w->oct.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/oct/Oct.c:2563:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->oct.userName, szBuf, 80);
data/xpuzzles-7.7.1/oct/Oct.c:2566:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->oct.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/oct/OctU.c:208:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/OctU.c:236:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/oct/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/oct/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/oct/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/oct/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/oct/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/oct/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/oct/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/oct/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/oct/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/oct/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/oct/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/oct/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/oct/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/oct/xoct.c:340:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[mode][orient][i].name,
data/xpuzzles-7.7.1/oct/xoct.c:360:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:362:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:398:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[mode][orient][i].name,
data/xpuzzles-7.7.1/oct/xoct.c:423:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/oct/xoct.c:466:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:468:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:525:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][j][k].name, userNameDsp,
data/xpuzzles-7.7.1/oct/xoct.c:532:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[i][!j][k].name, userNameDsp,
data/xpuzzles-7.7.1/oct/xoct.c:566:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:585:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:613:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:619:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:624:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:660:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:713:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/oct/xoct.c:719:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/oct/xoct.c:733:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move",
data/xpuzzles-7.7.1/oct/xoct.c:738:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/oct/xoct.c:741:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/oct/xoct.c:760:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/oct/xoct.c:773:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/oct/xoct.c:1286: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/oct/xoct.c:1378:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:1402:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:1425:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:1457:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:1484:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/oct/xoct.c:1486:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/oct/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/oct/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/oct/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/panex/Panex.c:1310:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/panex/Panex.c:1332:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/panex/Panex.c:1356:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/panex/Panex.c:1661:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->panex.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/panex/Panex.c:1664:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->panex.dripSound, szBuf, 80);
data/xpuzzles-7.7.1/panex/Panex.c:1667:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->panex.userName, szBuf, 80);
data/xpuzzles-7.7.1/panex/Panex.c:1670:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->panex.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/panex/PanexU.c:189:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/panex/PanexU.c:221:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/panex/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/panex/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/panex/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/panex/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/panex/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/panex/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/panex/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/panex/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/panex/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/panex/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/panex/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/panex/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/panex/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/panex/xpanex.c:317:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[mode][i].name, NOACCESS,
data/xpuzzles-7.7.1/panex/xpanex.c:337:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:339:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:374:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[mode][i].name,
data/xpuzzles-7.7.1/panex/xpanex.c:399:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/panex/xpanex.c:437:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:481:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[j][i].name, userNameDsp,
data/xpuzzles-7.7.1/panex/xpanex.c:510:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:526:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:551:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:557:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:562:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/panex/xpanex.c:597:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/panex/xpanex.c:632:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Illegal move", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:635:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/panex/xpanex.c:640:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Spaces can not slide",
data/xpuzzles-7.7.1/panex/xpanex.c:645:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Clear to start",
data/xpuzzles-7.7.1/panex/xpanex.c:660:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/panex/xpanex.c:981: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/panex/xpanex.c:1049:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/panex/xpanex.c:1070:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/panex/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/panex/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/panex/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2042:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2064:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2091:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2096:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2101:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2109:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2447:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->pyraminx.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2450:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->pyraminx.userName, szBuf, 80);
data/xpuzzles-7.7.1/pyraminx/Pyraminx.c:2453:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->pyraminx.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/pyraminx/PyraminxU.c:208:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/PyraminxU.c:236:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/pyraminx/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/pyraminx/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/pyraminx/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/pyraminx/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/pyraminx/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/pyraminx/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/pyraminx/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/pyraminx/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/pyraminx/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/pyraminx/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/pyraminx/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/pyraminx/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/pyraminx/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:357:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				(void) strncpy(puzzleRecord[mode][orient][i].name,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:377:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:379:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:415:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[mode][orient][i].name,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:440:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:484:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:486:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:543:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i][j][k].name, userNameDsp,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:549:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[i][!j][k].name, userNameDsp,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:583:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:602:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:630:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:636:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:641:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:677:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:730:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:736:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:750:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:755:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:758:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:777:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:790:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1296: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1384:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1408:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1431:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1463:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1490:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/pyraminx/xpyraminx.c:1492:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/pyraminx/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/pyraminx/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/pyraminx/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/rubik/Rubik.c:964:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:986:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:1008:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:1030:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:1035:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:1043:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/Rubik.c:1347:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->rubik.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/rubik/Rubik.c:1350:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->rubik.userName, szBuf, 80);
data/xpuzzles-7.7.1/rubik/Rubik.c:1353:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->rubik.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/rubik/RubikU.c:202:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/RubikU.c:229:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/rubik/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/rubik/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/rubik/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/rubik/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/rubik/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/rubik/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/rubik/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/rubik/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/rubik/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/rubik/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/rubik/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/rubik/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/rubik/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/rubik/xrubik.c:357:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][k][j][i].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:359:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][k][i][j].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:361:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][j][k][i].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:363:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][j][i][k].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:365:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][i][k][j].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:367:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					(void) strncpy(puzzleRecord[orient][i][j][k].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:387:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:389:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:428:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][k][j][i].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:430:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][k][i][j].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:432:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][j][k][i].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:434:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][j][i][k].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:436:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][i][k][j].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:438:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						(void) strncpy(puzzleRecord[orient][i][j][k].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:463:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/rubik/xrubik.c:509:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:512:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:565:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, *scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:641:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[l][i][j][k].name, userNameDsp,
data/xpuzzles-7.7.1/rubik/xrubik.c:648:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[!l][i][j][k].name,
data/xpuzzles-7.7.1/rubik/xrubik.c:685:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:709:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:715:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:720:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:791:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:850:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/rubik/xrubik.c:856:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/rubik/xrubik.c:886:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Ambiguous move",
data/xpuzzles-7.7.1/rubik/xrubik.c:891:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/rubik/xrubik.c:894:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/rubik/xrubik.c:930:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/rubik/xrubik.c:949:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/rubik/xrubik.c:1215:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1601: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/rubik/xrubik.c:1691:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1718:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1745:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1770:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1797:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/rubik/xrubik.c:1799:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/rubik/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/rubik/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/rubik/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/skewb/Skewb.c:1131:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/skewb/Skewb.c:1136:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/skewb/Skewb.c:1144:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/skewb/Skewb.c:1441:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        (void) strncpy(w->skewb.moveSound, szBuf, 80);
data/xpuzzles-7.7.1/skewb/Skewb.c:1444:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->skewb.userName, szBuf, 80);
data/xpuzzles-7.7.1/skewb/Skewb.c:1447:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->skewb.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/skewb/SkewbU.c:201:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/skewb/SkewbU.c:229:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/skewb/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/skewb/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/skewb/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/skewb/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/skewb/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/skewb/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/skewb/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/skewb/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/skewb/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/skewb/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/skewb/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/skewb/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/skewb/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/skewb/xskewb.c:334:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[orient].name, NOACCESS, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:353:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:355:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:389:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[orient].name, userName,
data/xpuzzles-7.7.1/skewb/xskewb.c:414:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/skewb/xskewb.c:448:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "practice", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:497:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, *scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:565:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i].name, userNameDsp, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:569:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[!i].name, userNameDsp,
data/xpuzzles-7.7.1/skewb/xskewb.c:602:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:615:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:621:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/skewb/xskewb.c:626:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/skewb/xskewb.c:696:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/skewb/xskewb.c:743:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(recordDsp, "practice",
data/xpuzzles-7.7.1/skewb/xskewb.c:774:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Illegal move",
data/xpuzzles-7.7.1/skewb/xskewb.c:777:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp,
data/xpuzzles-7.7.1/skewb/xskewb.c:811:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/skewb/xskewb.c:830:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Randomize to start",
data/xpuzzles-7.7.1/skewb/xskewb.c:969:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/skewb/xskewb.c:1314: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/skewb/xskewb.c:1394:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/skewb/xskewb.c:1417:10:  [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.
		(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/skewb/xskewb.c:1419:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Randomize to start", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/skewb/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/skewb/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/skewb/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/threed/Threed.c:898: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).
		length = strlen(buffer);
data/xpuzzles-7.7.1/threed/Threed.c:932: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(string)) {
data/xpuzzles-7.7.1/threed/Threed.c:983: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).
		obj->name = (char *) malloc(strlen(string) + 1);
data/xpuzzles-7.7.1/threed/Threed.c:1226:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->threed.bumpSound, string, 80);
data/xpuzzles-7.7.1/threed/Threed.c:1228:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->threed.moveSound, string, 80);
data/xpuzzles-7.7.1/threed/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/threed/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/threed/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/threed/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/threed/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/threed/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/threed/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/threed/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/threed/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/threed/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/threed/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/threed/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/threed/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/threed/xthreed.c:678: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/threed/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/threed/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/threed/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/triangles/Triangles.c:1777:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/triangles/Triangles.c:1802:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/triangles/Triangles.c:2045:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->triangles.picture, szBuf, 80);
data/xpuzzles-7.7.1/triangles/Triangles.c:2052:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->triangles.bumpSound, szBuf, 80);
data/xpuzzles-7.7.1/triangles/Triangles.c:2055:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->triangles.userName, szBuf, 80);
data/xpuzzles-7.7.1/triangles/Triangles.c:2058:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(w->triangles.scoreFile, szBuf, 80);
data/xpuzzles-7.7.1/triangles/TrianglesU.c:195:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/triangles/TrianglesU.c:223:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != SYMBOL);
data/xpuzzles-7.7.1/triangles/file.c:66: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).
	for (i = strlen(fileName); i >= 0; i--) {
data/xpuzzles-7.7.1/triangles/picture.c:91:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:92:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c1 = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:95:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c1 = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:130:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:131:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:151:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:152:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c1 = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:155:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c1 = getc(file);
data/xpuzzles-7.7.1/triangles/picture.c:208: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/triangles/picture.c:214:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/triangles/picture.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (bitmap_local && strlen(bitmap_local)) {
data/xpuzzles-7.7.1/triangles/picture.c:324: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 (filename && strlen(filename)) {
data/xpuzzles-7.7.1/triangles/picture.c:330:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(bitmap_local, filename, 256);
data/xpuzzles-7.7.1/triangles/sound.c:132:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(fp, buffer, 2048);
data/xpuzzles-7.7.1/triangles/sound.c:137:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(fp, buffer, 1024);
data/xpuzzles-7.7.1/triangles/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/triangles/sound.c:174: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).
	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(fileName) + 11)) != NULL) {
data/xpuzzles-7.7.1/triangles/sound.c:486:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/triangles/sound.c:486:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((file = (char *) malloc(strlen(SOUNDPATH) + strlen(FINALDELIM) +
data/xpuzzles-7.7.1/triangles/sound.c:487:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/triangles/sound.c:487: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).
			strlen(fileName) + strlen(SOUNDEXT) + 1)) != NULL) {
data/xpuzzles-7.7.1/triangles/timer.c:49:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/xpuzzles-7.7.1/triangles/timer.c:107:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	(void) usleep(cMilliseconds * 1000);
data/xpuzzles-7.7.1/triangles/timer.c:135:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		(void) usleep((unsigned int) sleepTime);
data/xpuzzles-7.7.1/triangles/vms/vms_amd.c:42: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).
	devname.dsc$w_length = strlen(device);
data/xpuzzles-7.7.1/triangles/xtriangles.c:280:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i].name, NOACCESS, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:299:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(fileName, lname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:301:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(fileName, fname, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:335:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(puzzleRecord[i].name, userName,
data/xpuzzles-7.7.1/triangles/xtriangles.c:360:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(lockFile, fileName, FILE_NAME_LENGTH - 6);
data/xpuzzles-7.7.1/triangles/xtriangles.c:395:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(recordDsp, "NOT RECORDED", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:439:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(puzzleRecord[i].name, userNameDsp,
data/xpuzzles-7.7.1/triangles/xtriangles.c:467:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:482:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(scoreFileName, scoreFile, FILE_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:508:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:514:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(userNameDsp, userName, USER_NAME_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:519:11:  [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.
			(void) strcpy(userNameDsp, "");
data/xpuzzles-7.7.1/triangles/xtriangles.c:554:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/triangles/xtriangles.c:590:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(messageDsp, solveHelp, MESSAGE_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:600:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Blocked", MESSAGE_LENGTH);
data/xpuzzles-7.7.1/triangles/xtriangles.c:605:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Spaces can not slide",
data/xpuzzles-7.7.1/triangles/xtriangles.c:610:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		(void) strncpy(messageDsp, "Clear to start",
data/xpuzzles-7.7.1/triangles/xtriangles.c:625:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			(void) strncpy(messageDsp, "Solved!",
data/xpuzzles-7.7.1/triangles/xtriangles.c:941: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).
	for (i = 0; i < strlen(synopsisHelp); i++) {
data/xpuzzles-7.7.1/triangles/xtriangles.c:1006:9:  [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.
	(void) strcpy(messageDsp, "");
data/xpuzzles-7.7.1/triangles/xwin.c:93: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 (!(*string = (char *) malloc(strlen(var1) + 21))) {
data/xpuzzles-7.7.1/triangles/xwin.c:102: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 (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {
data/xpuzzles-7.7.1/triangles/xwin.c:102: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).
	if (!(*string = (char *) malloc(strlen(var1) + strlen(var2) + 1))) {

ANALYSIS SUMMARY:

Hits = 1707
Lines analyzed = 140984 in approximately 3.52 seconds (40014 lines/second)
Physical Source Lines of Code (SLOC) = 121331
Hits@level = [0] 1134 [1] 739 [2] 606 [3]  48 [4] 314 [5]   0
Hits@level+ = [0+] 2841 [1+] 1707 [2+] 968 [3+] 362 [4+] 314 [5+]   0
Hits/KSLOC@level+ = [0+] 23.4153 [1+] 14.069 [2+] 7.97818 [3+] 2.98357 [4+] 2.58796 [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.