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/goban-1.1/src/clp-x.h
Examining data/goban-1.1/src/rcur.h
Examining data/goban-1.1/src/msg.c
Examining data/goban-1.1/src/menu.h
Examining data/goban-1.1/src/goHash.h
Examining data/goban-1.1/src/screensaver.c
Examining data/goban-1.1/src/lsetup.c
Examining data/goban-1.1/src/rcur.c
Examining data/goban-1.1/src/net.h
Examining data/goban-1.1/src/sgfPlay.c
Examining data/goban-1.1/src/drawStone.c
Examining data/goban-1.1/src/editBoard.c
Examining data/goban-1.1/src/goScore.h
Examining data/goban-1.1/src/local.c
Examining data/goban-1.1/src/tblock.c
Examining data/goban-1.1/src/editInfo.h
Examining data/goban-1.1/src/textin.c
Examining data/goban-1.1/src/server.c
Examining data/goban-1.1/src/help.h
Examining data/goban-1.1/src/cm2pm.h
Examining data/goban-1.1/src/clp-x.c
Examining data/goban-1.1/src/abut.h
Examining data/goban-1.1/src/setup.c
Examining data/goban-1.1/src/client_setup.h
Examining data/goban-1.1/src/net.c
Examining data/goban-1.1/src/canvas.h
Examining data/goban-1.1/src/abut_msg.c
Examining data/goban-1.1/src/editBoard.h
Examining data/goban-1.1/src/term.h
Examining data/goban-1.1/src/look.c
Examining data/goban-1.1/src/str.h
Examining data/goban-1.1/src/sgfOut.c
Examining data/goban-1.1/src/menu_snd.c
Examining data/goban-1.1/src/goScore.c
Examining data/goban-1.1/src/fsel.h
Examining data/goban-1.1/src/control.h
Examining data/goban-1.1/src/goHash.c
Examining data/goban-1.1/src/but.h
Examining data/goban-1.1/src/sgfIn.c
Examining data/goban-1.1/src/msg.h
Examining data/goban-1.1/src/vroot.h
Examining data/goban-1.1/src/swin.h
Examining data/goban-1.1/src/cgbuts.c
Examining data/goban-1.1/src/goGame.h
Examining data/goban-1.1/src/checkbox.h
Examining data/goban-1.1/src/data.h
Examining data/goban-1.1/src/i_win.h
Examining data/goban-1.1/src/plasma.c
Examining data/goban-1.1/src/setup.h
Examining data/goban-1.1/src/slide.c
Examining data/goban-1.1/src/but.c
Examining data/goban-1.1/src/server.h
Examining data/goban-1.1/src/abut_msg.h
Examining data/goban-1.1/src/control.c
Examining data/goban-1.1/src/textin.h
Examining data/goban-1.1/src/board.h
Examining data/goban-1.1/src/goGame.c
Examining data/goban-1.1/src/list.c
Examining data/goban-1.1/src/snd.c
Examining data/goban-1.1/src/player.c
Examining data/goban-1.1/src/sgf.c
Examining data/goban-1.1/src/i_snd.c
Examining data/goban-1.1/src/i_finder.h
Examining data/goban-1.1/src/conn.c
Examining data/goban-1.1/src/look.h
Examining data/goban-1.1/src/text.c
Examining data/goban-1.1/src/menu.c
Examining data/goban-1.1/src/sgfMap.h
Examining data/goban-1.1/src/match.h
Examining data/goban-1.1/src/client_main.h
Examining data/goban-1.1/src/editTool.h
Examining data/goban-1.1/src/box.h
Examining data/goban-1.1/src/canvas.c
Examining data/goban-1.1/src/goTime.c
Examining data/goban-1.1/src/plasma.h
Examining data/goban-1.1/src/drawStone.h
Examining data/goban-1.1/src/plain.c
Examining data/goban-1.1/src/screensaver.h
Examining data/goban-1.1/src/goban.h
Examining data/goban-1.1/src/play.h
Examining data/goban-1.1/src/swin.c
Examining data/goban-1.1/src/engine.h
Examining data/goban-1.1/src/client_setup.c
Examining data/goban-1.1/src/editInfo.c
Examining data/goban-1.1/src/i_finder.c
Examining data/goban-1.1/src/i_general.h
Examining data/goban-1.1/src/timer.c
Examining data/goban-1.1/src/term.c
Examining data/goban-1.1/src/rnd.h
Examining data/goban-1.1/src/client.c
Examining data/goban-1.1/src/engine.c
Examining data/goban-1.1/src/radio.c
Examining data/goban-1.1/src/timer.h
Examining data/goban-1.1/src/snd.h
Examining data/goban-1.1/src/ctext.h
Examining data/goban-1.1/src/arena.c
Examining data/goban-1.1/src/editTool.c
Examining data/goban-1.1/src/local.h
Examining data/goban-1.1/src/goban.c
Examining data/goban-1.1/src/login.h
Examining data/goban-1.1/src/i_snd.h
Examining data/goban-1.1/src/sgfMap.c
Examining data/goban-1.1/src/abut.c
Examining data/goban-1.1/src/player.h
Examining data/goban-1.1/src/list.h
Examining data/goban-1.1/src/wms.h
Examining data/goban-1.1/src/gameSetup.h
Examining data/goban-1.1/src/lsetup.h
Examining data/goban-1.1/src/cgbuts.h
Examining data/goban-1.1/src/abut_help.c
Examining data/goban-1.1/src/goPic.h
Examining data/goban-1.1/src/sgf.h
Examining data/goban-1.1/src/arena.h
Examining data/goban-1.1/src/tbin.h
Examining data/goban-1.1/src/main.c
Examining data/goban-1.1/src/sgfPlay.h
Examining data/goban-1.1/src/gameSetup.c
Examining data/goban-1.1/src/match.c
Examining data/goban-1.1/src/cm2pm.c
Examining data/goban-1.1/src/checkbox.c
Examining data/goban-1.1/src/game.c
Examining data/goban-1.1/src/str.c
Examining data/goban-1.1/src/radio.h
Examining data/goban-1.1/src/goTime.h
Examining data/goban-1.1/src/login.c
Examining data/goban-1.1/src/tbin.c
Examining data/goban-1.1/src/conn.h
Examining data/goban-1.1/src/clp.h
Examining data/goban-1.1/src/ctext.c
Examining data/goban-1.1/src/goPic.c
Examining data/goban-1.1/src/sgfOut.h
Examining data/goban-1.1/src/abut_help.h
Examining data/goban-1.1/src/box.c
Examining data/goban-1.1/src/data.c
Examining data/goban-1.1/src/clp.c
Examining data/goban-1.1/src/main.h
Examining data/goban-1.1/src/text.h
Examining data/goban-1.1/src/crwin.h
Examining data/goban-1.1/src/i_general.c
Examining data/goban-1.1/src/write.h
Examining data/goban-1.1/src/board.c
Examining data/goban-1.1/src/tblock.h
Examining data/goban-1.1/src/slide.h
Examining data/goban-1.1/src/goBoard.h
Examining data/goban-1.1/src/menu_snd.h
Examining data/goban-1.1/src/plain.h
Examining data/goban-1.1/src/crwin.c
Examining data/goban-1.1/src/rnd.c
Examining data/goban-1.1/src/game.h
Examining data/goban-1.1/src/sgfIn.h
Examining data/goban-1.1/src/goBoard.c
Examining data/goban-1.1/src/i_win.c
Examining data/goban-1.1/src/wms.c
Examining data/goban-1.1/src/client_main.c
Examining data/goban-1.1/src/play.c
Examining data/goban-1.1/src/client.h
Examining data/goban-1.1/src/write.c
Examining data/goban-1.1/src/cgoban.h
Examining data/goban-1.1/src/fsel.c
Examining data/goban-1.1/src/help.c
Examining data/goban-1.1/src/cgoban.c

FINAL RESULTS:

data/goban-1.1/src/board.c:447:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(move, goBoard_loc2Sgf(cli->game->board, loc));
data/goban-1.1/src/but.c:124:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(env->protocol, protocol);
data/goban-1.1/src/clp.c:572:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, prestr);
data/goban-1.1/src/clp.c:576:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(name, prestr);
data/goban-1.1/src/conn.c:456:14:  [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.
    result = system(cmd);
data/goban-1.1/src/ctext.c:105:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ct->str, text);
data/goban-1.1/src/ctext.c:126:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ct->str, text);
data/goban-1.1/src/editBoard.c:380:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(moveTo, goBoard_loc2Sgf(eb->game->board, loc));
data/goban-1.1/src/engine.c:657:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(buf, cmdLine);
data/goban-1.1/src/game.c:828:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  args = sscanf(buf, "Removing @ %s", deadStone);
data/goban-1.1/src/gameSetup.c:304:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(curValue, msg_badSize, value, GOBOARD_MAXSIZE);
data/goban-1.1/src/gameSetup.c:376:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(curValue, msg_badKomi, value);
data/goban-1.1/src/i_win.c:336:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(annoyance, win->name);
data/goban-1.1/src/look.c:84:15:  [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.
    matches = sscanf(buf, "%d: %s", &lineNum, data);
data/goban-1.1/src/match.c:646:3:  [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.
  sscanf(buf, "%s", name);
data/goban-1.1/src/net.c:197:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(msgOut.perType.close, reason);
data/goban-1.1/src/net.c:410:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(temp, net->rBuffer.perType.protoWho.proto);
data/goban-1.1/src/net.c:413:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(temp, net->rBuffer.perType.protoWho.who);
data/goban-1.1/src/net.c:511:20:  [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.
  if ((loginName = getlogin()) == NULL)  {
data/goban-1.1/src/net.c:515:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(protoOut.perType.protoWho.proto, env->protocol);
data/goban-1.1/src/net.c:518:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(protoOut.perType.protoWho.who, "%s@%s",
data/goban-1.1/src/player.c:329:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  args = sscanf(playerInfo, "%c%c%c %s %s %s %s %s",
data/goban-1.1/src/player.c:386:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  args = sscanf(buf, "{%s ", name);
data/goban-1.1/src/player.c:410:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  args = sscanf(buf, "{%s [ %[^]]", name, rank);
data/goban-1.1/src/screensaver.c:107:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s - %s", n1, n2);
data/goban-1.1/src/screensaver.c:191:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s/%s", dir, namelist[random() % n]);
data/goban-1.1/src/sgf.c:147:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(mc->active->lVal, loc);
data/goban-1.1/src/sgf.c:155:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(mc->active->lVal, loc);
data/goban-1.1/src/snd.c:126:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(snd_error, "Sound device \"%s\" is busy.", sound_dev_name);
data/goban-1.1/src/snd.c:132:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(snd_error, "Couldn't open sound device \"%s\".  "
data/goban-1.1/src/snd.c:175:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(snd_error, "Sound device \"%s\" cannot use desired "
data/goban-1.1/src/snd.c:301:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(snd_error, "%s was compiled with sound turned off.",
data/goban-1.1/src/str.c:40:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ret->chars, s->chars);
data/goban-1.1/src/str.c:53:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ret->chars, chars);
data/goban-1.1/src/str.c:93:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(s->chars, src->chars);
data/goban-1.1/src/str.c:102:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(s->chars, src);
data/goban-1.1/src/str.c:139:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(dest->chars, src->chars);
data/goban-1.1/src/str.c:157:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(dest->chars, src);
data/goban-1.1/src/str.c:209:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newChars, dest->chars);
data/goban-1.1/src/str.c:214:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(dest->chars + dest->len, src->chars);
data/goban-1.1/src/str.c:229:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newChars, dest->chars);
data/goban-1.1/src/str.c:234:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(dest->chars + dest->len, src);
data/goban-1.1/src/str.c:248:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newChars, dest->chars);
data/goban-1.1/src/str.c:267:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newChars, dest->chars);
data/goban-1.1/src/str.c:307:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(tmp, tmpFmt,  va_arg(ap, int));
data/goban-1.1/src/tblock.c:146:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(tb->str, text);
data/goban-1.1/src/textin.c:141:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ti->str, text);
data/goban-1.1/src/textin.c:1069:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ti->str, newStr);
data/goban-1.1/src/wms.h:75:37:  [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  assert(exp)  do{if(!(exp)){fprintf(stderr,__FILE__":%d: Failed assertion %s\n",__LINE__,#exp);for(;;);}}while(0)
data/goban-1.1/src/clp.c:161:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    home = getenv("HOME");
data/goban-1.1/src/clp.c:220:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    home = getenv("HOME");
data/goban-1.1/src/screensaver.c:191:41:  [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.
    sprintf(buf, "%s/%s", dir, namelist[random() % n]);
data/goban-1.1/src/screensaver.c:252:3:  [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.
  srandom(time(0));
data/goban-1.1/src/board.c:442: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  move[10];
data/goban-1.1/src/but.c:80: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  greymaps[17][4] = {
data/goban-1.1/src/but.c:630: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  kbuf[STR_MAXLEN];
data/goban-1.1/src/but.c:647: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  kbuf[STR_MAXLEN];
data/goban-1.1/src/but.c:936: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  ebuf[1024];
data/goban-1.1/src/cgbuts.c:64:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char  *cgbuts_stoneChar[2] = {CGBUTS_WSTONECHAR, CGBUTS_BSTONECHAR};
data/goban-1.1/src/cgbuts.c:478: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  text[4];
data/goban-1.1/src/cgbuts.c:536:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(text, "%02d", markAux % 100);
data/goban-1.1/src/cgbuts.c:538:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(text, "%d", markAux);
data/goban-1.1/src/cgbuts.h:112: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.
extern const char  *cgbuts_stoneChar[2];
data/goban-1.1/src/client_main.c:227:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  but_resize(main->open, midY + bw + fontH * 2, bw * 2, fontH * 2, fontH * 2);
data/goban-1.1/src/client_main.c:349: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  oppName[21];
data/goban-1.1/src/client_main.c:610: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  oppName[31], freeChar = 'x';
data/goban-1.1/src/client_main.h:51:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  But  *userState, *looking, *open, *closed;
data/goban-1.1/src/clp-x.c:22: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  *xdef, wname[80];
data/goban-1.1/src/clp.c:149: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  line_in[1024], *arg;
data/goban-1.1/src/clp.c:172:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ifile = fopen(str_chars(&full_fn), "r");
data/goban-1.1/src/clp.c:231:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ofile = fopen(str_chars(&full_fn), "w");
data/goban-1.1/src/clp.c:560:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[40];
data/goban-1.1/src/conn.c:214:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(newBuf, *buf, len);
data/goban-1.1/src/conn.c:341:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cc->outBuf + cc->outLen, str + amtWritten, strLen - amtWritten);
data/goban-1.1/src/conn.c:385:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  port = atoi(portStr);
data/goban-1.1/src/conn.c:401:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&sa.sin_addr, hp->h_addr, hp->h_length);
data/goban-1.1/src/editBoard.c:377: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  moveTo[5];
data/goban-1.1/src/editBoard.c:861: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  letter[2];
data/goban-1.1/src/editBoard.c:897: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  labelStr[4];
data/goban-1.1/src/editBoard.c:932:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(labelStr, "%d", val);
data/goban-1.1/src/engine.c:66:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char  checksum(unsigned char p[4]);
data/goban-1.1/src/engine.c:66:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char  checksum(unsigned char p[4]);
data/goban-1.1/src/engine.c:140:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  charsIn[4], c;
data/goban-1.1/src/engine.c:189:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char  checksum(unsigned char p[4])  {
data/goban-1.1/src/engine.c:189:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char  checksum(unsigned char p[4])  {
data/goban-1.1/src/engine.h:66:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  recvData[4];
data/goban-1.1/src/engine.h:68:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  sendData[4];
data/goban-1.1/src/fsel.c:449:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(newList, dirs, maxDirs * sizeof(Str));
data/goban-1.1/src/fsel.c:461:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(newList, files, maxFiles * sizeof(Str));
data/goban-1.1/src/fsel.c:575: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  dirBuf[1024], *result, *tmpBuf;
data/goban-1.1/src/game.c:169: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  color, locStr[6];
data/goban-1.1/src/game.c:290: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  wName[41], bName[41], wRank[10], bRank[10], flags[5], temp[50];
data/goban-1.1/src/game.c:328:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(temp, "handicap %d\n", g->handicap);
data/goban-1.1/src/game.c:676:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char color[6];
data/goban-1.1/src/game.c:820: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  deadStone[5];
data/goban-1.1/src/game.c:955: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  tellerName[41];
data/goban-1.1/src/game.h:50: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  kibPlayer[41];
data/goban-1.1/src/gameSetup.c:50: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  curText[10];
data/goban-1.1/src/gameSetup.c:100:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%d", ls->size);
data/goban-1.1/src/gameSetup.c:105:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%d", ls->hcap);
data/goban-1.1/src/gameSetup.c:110:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%g", ls->komi);
data/goban-1.1/src/gameSetup.c:299: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  curValue[200];
data/goban-1.1/src/gameSetup.c:302:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  newSize = atoi(value);
data/goban-1.1/src/gameSetup.c:306:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(curValue, "%d", ls->size);
data/goban-1.1/src/gameSetup.c:319:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int  newVal = atoi(value);
data/goban-1.1/src/gameSetup.c:369: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  curValue[200];
data/goban-1.1/src/gameSetup.c:378:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(curValue, "%g", ls->komi);
data/goban-1.1/src/goBoard.c:453:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(str, "Pass");  /* BAD! */
data/goban-1.1/src/goBoard.c:458:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str+1, "%d", goBoard_size(board) + 1 - (loc / board->dirs[0]));
data/goban-1.1/src/goBoard.c:521:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char  loc[5] = "xxxx";
data/goban-1.1/src/goBoard.c:559: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  locStr[4];
data/goban-1.1/src/goPic.c:31: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  label[3];
data/goban-1.1/src/goPic.c:118:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(label, "%d", size-i);
data/goban-1.1/src/goTime.c:152:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	time->aux = atoi(desc);
data/goban-1.1/src/goban.c:460: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  newScore[40], locDesc[5];
data/goban-1.1/src/goban.c:486:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(newScore, "%g", score);
data/goban-1.1/src/i_finder.c:626:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(newbuts, butset->buts, butset->maxButs * sizeof(But *));
data/goban-1.1/src/look.c:64: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  data[GOBOARD_MAXSIZE + 1];
data/goban-1.1/src/look.c:65:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[40], rank[10];
data/goban-1.1/src/lsetup.c:70:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char  *menuOpts[SETUP_MAXSERVERS + 1];
data/goban-1.1/src/main.c:127:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tty = open("/dev/tty", 0);
data/goban-1.1/src/match.c:49: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  oppName[21];
data/goban-1.1/src/match.c:87: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  curText[20];
data/goban-1.1/src/match.c:178:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%d", m->size);
data/goban-1.1/src/match.c:194:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%d", m->hcap);
data/goban-1.1/src/match.c:210:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(curText, "%g", m->komi);
data/goban-1.1/src/match.c:428: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  curValue[3];
data/goban-1.1/src/match.c:431:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  newSize = atoi(value);
data/goban-1.1/src/match.c:437:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(curValue, "%d", m->size);
data/goban-1.1/src/match.c:458: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  curValue[2];
data/goban-1.1/src/match.c:467:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(curValue, "%d", m->hcap);
data/goban-1.1/src/match.c:488: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  curValue[7];
data/goban-1.1/src/match.c:498:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(curValue, "%g", m->komi);
data/goban-1.1/src/match.c:644:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[30];
data/goban-1.1/src/match.c:720: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  sizeStr[3];
data/goban-1.1/src/match.c:737:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sizeStr, "%d", m->size);
data/goban-1.1/src/match.c:745: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  komiStr[10];
data/goban-1.1/src/match.c:760:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(komiStr, "%g", m->komi);
data/goban-1.1/src/match.c:768: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  hcapStr[3];
data/goban-1.1/src/match.c:787:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(hcapStr, "%d", m->hcap);
data/goban-1.1/src/match.c:795: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  temp[20];
data/goban-1.1/src/match.c:799:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%d", hcap);
data/goban-1.1/src/match.c:801:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%g", komi);
data/goban-1.1/src/net.c:155:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&sa.sin_addr, hp->h_addr, hp->h_length);
data/goban-1.1/src/net.c:306:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(newBuf, net->wBuffer+net->wBufStart, net->wBufLen);
data/goban-1.1/src/net.c:312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(remainder, net->wBuffer + net->wBufStart + net->wBufLen, len);
data/goban-1.1/src/net.c:570:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(msg.perType.userData, buffer, len);
data/goban-1.1/src/net.c:771:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg.perType.butSpec.butData, buffer, len);
data/goban-1.1/src/net.h:64:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char  proto[100];
data/goban-1.1/src/net.h:65:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char  who[100];
data/goban-1.1/src/net.h:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  close[BUTNET_MAXCMD];
data/goban-1.1/src/net.h:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  userData[BUTNET_MAXCMD];
data/goban-1.1/src/net.h:79:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char  butData[BUTNET_MAXCMD - sizeof(StdInt32)];
data/goban-1.1/src/plasma.c:54:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cloud+(i<<STRETCH),cloud+i, PLASMA_SIZE*sizeof(*cloud));
data/goban-1.1/src/play.c:795: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  locStr[10];
data/goban-1.1/src/player.c:273:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char  desc[5] = {'?', 'X', 'O', '!', '-'};
data/goban-1.1/src/player.c:294:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if ((idleType != 's') || (atoi(str_chars(&p->idleTime)) >= 30))
data/goban-1.1/src/player.c:308: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  onePlayer[36];
data/goban-1.1/src/player.c:325: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  ob[40], play[40], name[40], idle[40], rank[40];
data/goban-1.1/src/player.c:357:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p->gameOb = atoi(ob);
data/goban-1.1/src/player.c:361:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    p->gameIn = atoi(play);
data/goban-1.1/src/player.c:383:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[50];
data/goban-1.1/src/player.c:406:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  name[50], rank[50];
data/goban-1.1/src/player.c:527:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  val = atoi(str_chars(rank));
data/goban-1.1/src/player.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  state[2];
data/goban-1.1/src/player.c:687:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    oppRank = atoi(str_chars(&p->rank));
data/goban-1.1/src/player.c:692:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    myRank = atoi(str_chars(&me->rank));
data/goban-1.1/src/screensaver.c:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000];
data/goban-1.1/src/screensaver.c:175: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 *namelist[8096];
data/goban-1.1/src/screensaver.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000];
data/goban-1.1/src/setup.c:68: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  port[10];
data/goban-1.1/src/setup.c:101:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(port, "%d", clp_getInt(cg->clp, "gmp.port"));
data/goban-1.1/src/setup.c:318:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  inFiles[s] = outFiles[s] = open(str_chars(&p->devName),
data/goban-1.1/src/sgf.c:280: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  dateStr[20];
data/goban-1.1/src/sgf.c:284:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(dateStr, "%04d-%02d-%02d",
data/goban-1.1/src/sgf.h:58: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  lVal[5];
data/goban-1.1/src/sgfIn.c:66:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen(fName, "r");
data/goban-1.1/src/sgfIn.c:187:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    komi = atoi(str_chars(&strOut));
data/goban-1.1/src/sgfIn.c:393:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char  result[5] = "abcd";
data/goban-1.1/src/sgfIn.c:489:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  tmp[11];
data/goban-1.1/src/sgfIn.c:516:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  tmp[20];
data/goban-1.1/src/sgfOut.c:42:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen(fname, "w");
data/goban-1.1/src/sgfPlay.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  moveStr[5];
data/goban-1.1/src/snd.c:62: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  snd_error[1000] = "Sound functioning properly.";
data/goban-1.1/src/snd.c:112:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      sound_dev = open(sound_dev_name, O_WRONLY|O_NDELAY);
data/goban-1.1/src/snd.c:119:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      sound_dev = open(sound_dev_name, O_WRONLY|O_NDELAY);
data/goban-1.1/src/snd.c:260:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  buf[1024*8];  /* 1 second...should be enough! */
data/goban-1.1/src/str.c:280: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  srcChars[SIZEOF_INT * 3 + 1];
data/goban-1.1/src/str.c:283:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(srcChars, "%d", src);
data/goban-1.1/src/str.c:290:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  tmp[40];
data/goban-1.1/src/str.c:320:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(tmp, "%d", (int)dval);
data/goban-1.1/src/str.c:322:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(tmp, "%.1f", dval);
data/goban-1.1/src/tbin.c:1430:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pb2, propbuf, blen);
data/goban-1.1/src/tbin.c:1777:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(newBuf, tb->buf, tb->loBreak);
data/goban-1.1/src/tbin.c:1778:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(newBuf + newHiBreak, tb->buf + tb->hiBreak, newLen - newHiBreak);
data/goban-1.1/src/tblock.c:295:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(words, tb->words, tb->nwords * sizeof(Word));
data/goban-1.1/src/term.c:110:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(temp, butTbin_get(term->tbin), len);
data/goban-1.1/src/textin.c:749:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cutdata, cutstr, cutlen);
data/goban-1.1/src/textin.c:820:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pb2, propbuf, proplen * pformat);
data/goban-1.1/src/textin.c:833:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pb2, propbuf, blen);
data/goban-1.1/src/wms.c:145:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char  out[20];
data/goban-1.1/src/wms.c:147:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(out, "System error %d", error);
data/goban-1.1/src/wms.c:274:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return(memcpy(dest, src, n));
data/goban-1.1/src/wms.h:95:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define  memcpy(d,s,n)  bcopy((s),(d),(n))
data/goban-1.1/src/wms.h:95:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define  memcpy(d,s,n)  bcopy((s),(d),(n))
data/goban-1.1/src/board.c:491:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(move, "\n");
data/goban-1.1/src/but.c:120:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  env->protocol = (char *)wms_malloc(strlen(protocol)+1);
data/goban-1.1/src/but.c:122: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(protocol) > BUTNET_MAXCMD)
data/goban-1.1/src/client_main.c:353:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	  args = sscanf(buf, "Use <match %20s", oppName);
data/goban-1.1/src/client_main.c:621:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  matches = sscanf(buf, "match %30s wants handicap %d, komi %f, %c",
data/goban-1.1/src/clp-x.c:28:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(wname, ci->name, sizeof(wname) - 1);
data/goban-1.1/src/clp.c:176:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ch_in = getc(ifile);
data/goban-1.1/src/clp.c:179:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch_in = getc(ifile);
data/goban-1.1/src/clp.c:182:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch_in = getc(ifile);
data/goban-1.1/src/clp.c:230:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  prevMask = umask(0177);
data/goban-1.1/src/clp.c:232:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(prevMask);
data/goban-1.1/src/clp.c:502: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).
  keyLen = strlen(key);
data/goban-1.1/src/clp.c:574:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	  strncat(name, clp->infos[i].name+j, 1);
data/goban-1.1/src/conn.c:153:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    amtRead = read(cc->fd, cc->inBuf + cc->inLen, readLen);
data/goban-1.1/src/conn.c:279:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    transmitData(conn, str, strlen(str));
data/goban-1.1/src/ctext.c:103:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ct->maxlen = strlen(text);
data/goban-1.1/src/ctext.c:120: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).
  newlen = strlen(text);
data/goban-1.1/src/editBoard.c:693: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(comm) == cmpLen + 1) &&
data/goban-1.1/src/engine.c:145:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  count = read(ge->inFile, charsIn, 4 - ge->recvSoFar);
data/goban-1.1/src/engine.c:655:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(cmdLine);
data/goban-1.1/src/fsel.c:13: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/goban-1.1/src/fsel.c:440:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pathLen = strlen(path);
data/goban-1.1/src/game.c:238:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    args = sscanf(buf, "%d(%c): %5s", &moveNum, &color, locStr);
data/goban-1.1/src/game.c:295:15:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    matches = sscanf(buf, "[%d] %40s [ %[^] ] ] vs. %40s [ %[^] ] ] "
data/goban-1.1/src/game.c:677:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      args = sscanf(buf, "{Game %*d: %*s vs %*s : %5s lost by %lf",
data/goban-1.1/src/goBoard.c:540: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).
  assert((strlen(l) == 2) || (strlen(l) == 4));
data/goban-1.1/src/goBoard.c:540: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).
  assert((strlen(l) == 2) || (strlen(l) == 4));
data/goban-1.1/src/i_win.c:335:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    annoyance = wms_malloc(strlen(win->name) + 1);
data/goban-1.1/src/look.c:75:15:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    matches = sscanf(buf, "%39s %9s %d %*d %*d %*s %g %d",
data/goban-1.1/src/look.c:86: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).
    assert(strlen(data) <= GOBOARD_MAXSIZE);
data/goban-1.1/src/look.c:88:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (lineNum == strlen(data) - 1)  {
data/goban-1.1/src/match.c:54:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  args = sscanf(command, "Use <match %20s %c %d %d %d>",
data/goban-1.1/src/net.c:196:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    msgOut.length = int_stdInt32(2*4+strlen(reason)+1);
data/goban-1.1/src/net.c:355:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readLen = read(fd, (char *)&net->rBuffer + net->rBufAmt, 4 - net->rBufAmt);
data/goban-1.1/src/net.c:378:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  readLen = read(fd, (char *)&net->rBuffer + net->rBufAmt,
data/goban-1.1/src/net.c:409: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).
      temp = wms_malloc(i = (strlen(net->rBuffer.perType.protoWho.proto) + 1));
data/goban-1.1/src/net.c:412: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).
      temp = wms_malloc(strlen(net->rBuffer.perType.protoWho.who) + 1);
data/goban-1.1/src/player.c:311:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(onePlayer, buf, 35);
data/goban-1.1/src/player.c:314:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(buf) > 50)  {
data/goban-1.1/src/player.c:315:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(onePlayer, buf+37, 35);
data/goban-1.1/src/player.c:420: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).
  for (i = strlen(rank);  i && (rank[i - 1] == ' ');  --i);
data/goban-1.1/src/sgf.c:146: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).
  assert((strlen(loc) == 4) || (strlen(loc) == 2));
data/goban-1.1/src/sgf.c:146: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).
  assert((strlen(loc) == 4) || (strlen(loc) == 2));
data/goban-1.1/src/sgf.c:154: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).
  assert((strlen(loc) == 4) || (strlen(loc) == 2));
data/goban-1.1/src/sgf.c:154: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).
  assert((strlen(loc) == 4) || (strlen(loc) == 2));
data/goban-1.1/src/sgfIn.c:82:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(f);
data/goban-1.1/src/sgfIn.c:87:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(f);
data/goban-1.1/src/sgfIn.c:567:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(f);
data/goban-1.1/src/snd.c:268:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_in = read(in, buf, 1024*8);
data/goban-1.1/src/str.c:41:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(ret->chars) == ret->len);
data/goban-1.1/src/str.c:51:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret->len = ret->maxLen = strlen(chars);
data/goban-1.1/src/str.c:54:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(ret->chars) == ret->len);
data/goban-1.1/src/str.c:68:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(ret->chars) == ret->len);
data/goban-1.1/src/str.c:94:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(s->chars) == s->len);
data/goban-1.1/src/str.c:100:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s->len = s->maxLen = strlen(src);
data/goban-1.1/src/str.c:103:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(s->chars) == s->len);
data/goban-1.1/src/str.c:108:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(src) >= len);
data/goban-1.1/src/str.c:112:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(s->chars, src, len);
data/goban-1.1/src/str.c:114:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(s->chars) == s->len);
data/goban-1.1/src/str.c:131:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(src->chars) == src->len);
data/goban-1.1/src/str.c:141:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:146:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int  srcLen = strlen(src);
data/goban-1.1/src/str.c:159:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:167:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(src) >= srcLen);
data/goban-1.1/src/str.c:175:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(dest->chars, src, srcLen);
data/goban-1.1/src/str.c:177:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:204:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:205:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(src->chars) == src->len);
data/goban-1.1/src/str.c:216:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:221:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int  srcLen = strlen(src);
data/goban-1.1/src/str.c:225:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:243:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:244:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(src) >= srcLen);
data/goban-1.1/src/str.c:253:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(dest->chars + dest->len, src, srcLen);
data/goban-1.1/src/str.c:263:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:271:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/str.c:275:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(dest->chars) == dest->len);
data/goban-1.1/src/tbin.c:991:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(src);
data/goban-1.1/src/tblock.c:142:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(text);
data/goban-1.1/src/tblock.c:151:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(text);
data/goban-1.1/src/tblock.c:158:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tb->nwords = strlen(tb->str);
data/goban-1.1/src/textin.c:142:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ti->len = ti->loc = ti->cutend = strlen(text);
data/goban-1.1/src/textin.c:1068:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(newStr) <= ti->maxlen);
data/goban-1.1/src/textin.c:1070:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ti->len = ti->loc = ti->cutend = strlen(newStr);

ANALYSIS SUMMARY:

Hits = 289
Lines analyzed = 44895 in approximately 1.33 seconds (33642 lines/second)
Physical Source Lines of Code (SLOC) = 36301
Hits@level = [0] 100 [1]  84 [2] 152 [3]   4 [4]  49 [5]   0
Hits@level+ = [0+] 389 [1+] 289 [2+] 205 [3+]  53 [4+]  49 [5+]   0
Hits/KSLOC@level+ = [0+] 10.716 [1+] 7.96121 [2+] 5.64723 [3+] 1.46001 [4+] 1.34983 [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.