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/gnugo-3.8/engine/readconnect.c
Examining data/gnugo-3.8/engine/dragon.c
Examining data/gnugo-3.8/engine/reading.c
Examining data/gnugo-3.8/engine/sgffile.c
Examining data/gnugo-3.8/engine/printutils.c
Examining data/gnugo-3.8/engine/matchpat.c
Examining data/gnugo-3.8/engine/globals.c
Examining data/gnugo-3.8/engine/owl.c
Examining data/gnugo-3.8/engine/filllib.c
Examining data/gnugo-3.8/engine/hash.c
Examining data/gnugo-3.8/engine/sgfdecide.c
Examining data/gnugo-3.8/engine/interface.c
Examining data/gnugo-3.8/engine/endgame.c
Examining data/gnugo-3.8/engine/persistent.c
Examining data/gnugo-3.8/engine/genmove.c
Examining data/gnugo-3.8/engine/utils.c
Examining data/gnugo-3.8/engine/hash.h
Examining data/gnugo-3.8/engine/oracle.c
Examining data/gnugo-3.8/engine/surround.c
Examining data/gnugo-3.8/engine/clock.h
Examining data/gnugo-3.8/engine/montecarlo.c
Examining data/gnugo-3.8/engine/influence.c
Examining data/gnugo-3.8/engine/combination.c
Examining data/gnugo-3.8/engine/handicap.c
Examining data/gnugo-3.8/engine/worm.c
Examining data/gnugo-3.8/engine/readconnect.h
Examining data/gnugo-3.8/engine/movelist.c
Examining data/gnugo-3.8/engine/shapes.c
Examining data/gnugo-3.8/engine/value_moves.c
Examining data/gnugo-3.8/engine/showbord.c
Examining data/gnugo-3.8/engine/influence.h
Examining data/gnugo-3.8/engine/boardlib.c
Examining data/gnugo-3.8/engine/move_reasons.h
Examining data/gnugo-3.8/engine/board.c
Examining data/gnugo-3.8/engine/breakin.c
Examining data/gnugo-3.8/engine/optics.c
Examining data/gnugo-3.8/engine/cache.c
Examining data/gnugo-3.8/engine/clock.c
Examining data/gnugo-3.8/engine/board.h
Examining data/gnugo-3.8/engine/gnugo.h
Examining data/gnugo-3.8/engine/move_reasons.c
Examining data/gnugo-3.8/engine/semeai.c
Examining data/gnugo-3.8/engine/fuseki.c
Examining data/gnugo-3.8/engine/aftermath.c
Examining data/gnugo-3.8/engine/cache.h
Examining data/gnugo-3.8/engine/liberty.h
Examining data/gnugo-3.8/engine/unconditional.c
Examining data/gnugo-3.8/interface/gtp.h
Examining data/gnugo-3.8/interface/play_solo.c
Examining data/gnugo-3.8/interface/main.c
Examining data/gnugo-3.8/interface/interface.h
Examining data/gnugo-3.8/interface/gmp.c
Examining data/gnugo-3.8/interface/play_gmp.c
Examining data/gnugo-3.8/interface/play_gtp.c
Examining data/gnugo-3.8/interface/play_test.c
Examining data/gnugo-3.8/interface/gtp_examples/metamachine.c
Examining data/gnugo-3.8/interface/gtp_examples/vanilla.c
Examining data/gnugo-3.8/interface/gmp.h
Examining data/gnugo-3.8/interface/gtp.c
Examining data/gnugo-3.8/interface/play_ascii.c
Examining data/gnugo-3.8/patterns/connections.c
Examining data/gnugo-3.8/patterns/eyes.h
Examining data/gnugo-3.8/patterns/transform.c
Examining data/gnugo-3.8/patterns/extract_fuseki.c
Examining data/gnugo-3.8/patterns/dfa.c
Examining data/gnugo-3.8/patterns/joseki.c
Examining data/gnugo-3.8/patterns/patterns.h
Examining data/gnugo-3.8/patterns/mkmcpat.c
Examining data/gnugo-3.8/patterns/dfa-mkpat.h
Examining data/gnugo-3.8/patterns/uncompress_fuseki.c
Examining data/gnugo-3.8/patterns/compress_fuseki.c
Examining data/gnugo-3.8/patterns/mkpat.c
Examining data/gnugo-3.8/patterns/mkeyes.c
Examining data/gnugo-3.8/patterns/dfa.h
Examining data/gnugo-3.8/patterns/helpers.c
Examining data/gnugo-3.8/sgf/sgf_properties.h
Examining data/gnugo-3.8/sgf/sgftree.h
Examining data/gnugo-3.8/sgf/sgfnode.c
Examining data/gnugo-3.8/sgf/sgf_utils.c
Examining data/gnugo-3.8/sgf/sgftree.c
Examining data/gnugo-3.8/sgf/sgfgen.c
Examining data/gnugo-3.8/utils/gg_utils.h
Examining data/gnugo-3.8/utils/getopt1.c
Examining data/gnugo-3.8/utils/winsocket.c
Examining data/gnugo-3.8/utils/random.h
Examining data/gnugo-3.8/utils/gg_utils.c
Examining data/gnugo-3.8/utils/winsocket.h
Examining data/gnugo-3.8/utils/getopt.c
Examining data/gnugo-3.8/utils/gg-getopt.h
Examining data/gnugo-3.8/utils/random.c

FINAL RESULTS:

data/gnugo-3.8/engine/cache.c:317:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "%s %c%d: ", func, J(str) + 'A' + (J(str) >= 8),
data/gnugo-3.8/engine/cache.c:323:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s %c%d", result_to_string(result), 
data/gnugo-3.8/engine/cache.c:327:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s PASS", result_to_string(result));
data/gnugo-3.8/engine/cache.c:329:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s [%d]", result_to_string(result), move);
data/gnugo-3.8/engine/cache.c:332:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/cache.c:347:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "%s %c%d %c%d: ", func,
data/gnugo-3.8/engine/cache.c:352:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s %c%d", result,
data/gnugo-3.8/engine/cache.c:356:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s PASS", result);
data/gnugo-3.8/engine/cache.c:358:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s [%d]", result, move);
data/gnugo-3.8/engine/cache.c:361:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/cache.c:376:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "%s %c%d %c%d: ", func,
data/gnugo-3.8/engine/cache.c:381:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s %s %c%d",
data/gnugo-3.8/engine/cache.c:385:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s %s PASS",
data/gnugo-3.8/engine/cache.c:388:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), "%s %s [%d]",
data/gnugo-3.8/engine/cache.c:393:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/hash.c:217:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    n += sprintf(buffer + n, HASHVALUE_PRINT_FORMAT,
data/gnugo-3.8/engine/influence.c:2034:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, format_stone, ch);
data/gnugo-3.8/engine/influence.c:2045:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, format_stone, 'O');
data/gnugo-3.8/engine/influence.c:2047:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, format_stone, 'X');
data/gnugo-3.8/engine/influence.c:2053:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, format, values[ii]);
data/gnugo-3.8/engine/influence.c:2064:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, format_stone, ch);
data/gnugo-3.8/engine/oracle.c:59:48:  [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.
              if (debug & DEBUG_ORACLE_STREAM) fprintf(stderr, x, ##args);  \
data/gnugo-3.8/engine/oracle.c:60:21:  [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.
                if (fprintf(to_gnugo_stream, x, ##args) < 0) \
data/gnugo-3.8/engine/oracle.c:72:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                            fprintf(stderr, gnugo_line); \
data/gnugo-3.8/engine/oracle.c:126:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execlp("gnugo", "gnugo", "--mode", "gtp", "--quiet", NULL);
data/gnugo-3.8/engine/oracle.c:226:36:  [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.
  if (debug & DEBUG_ORACLE_STREAM) fprintf(stderr, fmt, ap);
data/gnugo-3.8/engine/oracle.c:227:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  if (fprintf(to_gnugo_stream, fmt, ap) < 0)
data/gnugo-3.8/engine/oracle.c:251:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, line);
data/gnugo-3.8/engine/owl.c:2379:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(winstr, "%s)\n  (%d variations", wintxt,
data/gnugo-3.8/engine/readconnect.c:1882:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "Move order for %s: %n", funcname, &chars);
data/gnugo-3.8/engine/readconnect.c:2583:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "Move order for %sconnect: %n",
data/gnugo-3.8/engine/reading.c:5063:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "Move order for %s: %n", funcname, &chars);
data/gnugo-3.8/interface/gmp.c:669:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(errOut, "Rule sets do not agree; I want %s, he wants %s.",
data/gnugo-3.8/interface/gmp.c:691:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(errOut, "Colors do not agree; we both want to be %s.",
data/gnugo-3.8/interface/gtp.c:133:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(p, " %s %n", command, &n) < 1)
data/gnugo-3.8/interface/gtp.c:250:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(gtp_output_file, format, ap);
data/gnugo-3.8/interface/gtp.c:291:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(gtp_output_file, format, ap);
data/gnugo-3.8/interface/gtp.c:304:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(gtp_output_file, format, ap);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:97:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execlp("gnugo", "gnugo", "--mode", "gtp", "--quiet", NULL);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:129:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(p, " %s %n", command, &n) < 1)
data/gnugo-3.8/interface/gtp_examples/metamachine.c:306:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(line);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:72:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execlp("gnugo", "gnugo", "--mode", "gtp", "--quiet", NULL);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:104:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(gnugo_line);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:113:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(gnugo_line);
data/gnugo-3.8/interface/main.c:408: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(outfilename, gg_optarg);
data/gnugo-3.8/interface/main.c:436:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, ("Options `--gtp-input', `--gtp-connect' and `--gtp-listen' "
data/gnugo-3.8/interface/main.c:662: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(mc_pattern_name, gg_optarg);
data/gnugo-3.8/interface/main.c:675: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(mc_pattern_filename, gg_optarg);
data/gnugo-3.8/interface/main.c:700: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:710: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:727: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:736: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:746: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:764: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:784: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:797: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(decide_this, gg_optarg);
data/gnugo-3.8/interface/main.c:897: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(debuginfluence_move, gg_optarg);
data/gnugo-3.8/interface/main.c:1700:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(USAGE, DEFAULT_LEVEL);
data/gnugo-3.8/interface/main.c:1701:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(USAGE1, MIN_BOARD, MAX_BOARD, MAX_HANDICAP);
data/gnugo-3.8/interface/main.c:1702:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(USAGE2, DEFAULT_MEMORY <= 0 ? reading_cache_default_size() :
data/gnugo-3.8/interface/main.c:1711:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(USAGE_DEBUG USAGE_DEBUG2, 
data/gnugo-3.8/interface/main.c:1721:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(DEBUG_FLAGS);
data/gnugo-3.8/interface/main.c:1727:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(COPYRIGHT);
data/gnugo-3.8/interface/play_ascii.c:95:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(letterbar, spaces);
data/gnugo-3.8/interface/play_ascii.c:97:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(letterbar, letter);
data/gnugo-3.8/interface/play_ascii.c:696:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  printf(DEBUG_COMMANDS);
data/gnugo-3.8/interface/play_gtp.c:839:11:  [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.
  nread = sscanf(s, "%s %s", filename, untilstring);
data/gnugo-3.8/interface/play_gtp.c:3216:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(s, "%s %n", status_string, &n) != 1)
data/gnugo-3.8/interface/play_gtp.c:4202:11:  [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.
  nread = sscanf(s, "%s", filename);
data/gnugo-3.8/interface/play_gtp.c:4230:11:  [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.
  nread = sscanf(s, "%s", filename);
data/gnugo-3.8/interface/play_gtp.c:4336:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(s, "%s", command) == 1) {
data/gnugo-3.8/patterns/compress_fuseki.c:66:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, USAGE);
data/gnugo-3.8/patterns/compress_fuseki.c:79:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "Pattern %s", name) == 1) {
data/gnugo-3.8/patterns/dfa.c:291:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(f, line);
data/gnugo-3.8/patterns/dfa.c:298:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(f, line);
data/gnugo-3.8/patterns/dfa.c:303:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(f, line);
data/gnugo-3.8/patterns/dfa.c:321:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(f, line);
data/gnugo-3.8/patterns/dfa.c:352: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(pdfa->name, name);
data/gnugo-3.8/patterns/dfa.c:1048: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(rotated_string, string);
data/gnugo-3.8/patterns/extract_fuseki.c:1581:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, USAGE);
data/gnugo-3.8/patterns/joseki.c:391:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, USAGE);
data/gnugo-3.8/patterns/joseki.c:434:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(PREAMBLE);
data/gnugo-3.8/patterns/mkmcpat.c:49: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(name, filename);
data/gnugo-3.8/patterns/mkmcpat.c:67: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(name2, start);
data/gnugo-3.8/patterns/mkpat.c:524:9:  [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.
    n = fscanf(file, "%s %d", hint->name, &hint->transformation_hint);
data/gnugo-3.8/patterns/mkpat.c:1379:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(constraint, line);
data/gnugo-3.8/patterns/mkpat.c:1392:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(action, line);
data/gnugo-3.8/patterns/mkpat.c:1422:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code);
data/gnugo-3.8/patterns/mkpat.c:1425:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1429:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1433:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1437:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1460:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1464:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	code_pos += sprintf(code_pos, ", %s", varnames[i]);
data/gnugo-3.8/patterns/mkpat.c:1473:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pattern_id, "(%s + %d)", prefix, patno);
data/gnugo-3.8/patterns/mkpat.c:1477:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1481:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1485:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1489:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
data/gnugo-3.8/patterns/mkpat.c:1666:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  code_pos += sprintf(code_pos, 
data/gnugo-3.8/patterns/mkpat.c:1835:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(outfile, used_nodes % 4 ? "\t" : "\n  ");
data/gnugo-3.8/patterns/mkpat.c:2545:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(output_FILE, PREAMBLE);
data/gnugo-3.8/patterns/mkpat.c:2611:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(line, "Pattern %s", command_data) == 1)
data/gnugo-3.8/patterns/mkpat.c:2613:16:  [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.
      else if (sscanf(line, "goal_elements %s", command_data) == 1)
data/gnugo-3.8/patterns/mkpat.c:2615:16:  [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.
      else if (sscanf(line, "callback_data %s", command_data) == 1)
data/gnugo-3.8/patterns/mkpat.c:2617:16:  [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.
      else if (sscanf(line, "attribute_map %s", command_data) == 1)
data/gnugo-3.8/patterns/mkpat.c:2699:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(pattern_names[patno], command_data);
data/gnugo-3.8/patterns/mkpat.c:2949: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(dfa.name, prefix);
data/gnugo-3.8/patterns/uncompress_fuseki.c:204:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, USAGE);
data/gnugo-3.8/patterns/uncompress_fuseki.c:221:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, USAGE);
data/gnugo-3.8/patterns/uncompress_fuseki.c:227:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(output_strings[PREAMBLE]);
data/gnugo-3.8/patterns/uncompress_fuseki.c:228:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(output_strings[HEADER], boardsize);
data/gnugo-3.8/patterns/uncompress_fuseki.c:229:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(output_strings[FOOTER]);
data/gnugo-3.8/patterns/uncompress_fuseki.c:254:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(output_strings[PREAMBLE]);
data/gnugo-3.8/patterns/uncompress_fuseki.c:255:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(output_strings[HEADER], boardsize);
data/gnugo-3.8/patterns/uncompress_fuseki.c:279:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "%s %d %s", name, &value, stones) != 3)
data/gnugo-3.8/patterns/uncompress_fuseki.c:311:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(output_strings[FOOTER]);
data/gnugo-3.8/sgf/sgfnode.c:267: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(prop->value, text);
data/gnugo-3.8/sgf/sgfnode.c:374: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(prop->value, value);
data/gnugo-3.8/sgf/sgfnode.c:571:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%c%c:%s", j+'a', i+'a', text);
data/gnugo-3.8/sgf/sgfnode.c:914:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, msg, arg);
data/gnugo-3.8/sgf/sgfnode.c:1545:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, sgferr, sgferrarg);
data/gnugo-3.8/utils/gg_utils.c:224:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(dest, len, fmt, args);
data/gnugo-3.8/utils/gg_utils.c:231:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(dest, fmt, args);
data/gnugo-3.8/utils/winsocket.c:218:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf(file, format_string, arguments);
data/gnugo-3.8/utils/winsocket.h:68:9:  [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 fprintf		winsocket_fprintf
data/gnugo-3.8/utils/winsocket.h:69:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfprintf	winsocket_vfprintf
data/gnugo-3.8/utils/getopt.c:201:9:  [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.
#ifndef getenv
data/gnugo-3.8/utils/getopt.c:202:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/gnugo-3.8/utils/getopt.c:394:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/gnugo-3.8/engine/aftermath.c:458: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.
      signed char mx[BOARDMAX];
data/gnugo-3.8/engine/board.c:352: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(state->board, board, sizeof(board));
data/gnugo-3.8/engine/board.c:353: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(state->initial_board, initial_board, sizeof(initial_board));
data/gnugo-3.8/engine/board.c:514: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[100];
data/gnugo-3.8/engine/board.c:572: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[100];
data/gnugo-3.8/engine/board.c:631: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(&board_hash_stack[stackp], &board_hash, sizeof(board_hash));
data/gnugo-3.8/engine/board.c:727: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[100];
data/gnugo-3.8/engine/board.c:816: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(initial_board, board, sizeof(board));
data/gnugo-3.8/engine/board.c:956: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(saved_board, board, sizeof(board));
data/gnugo-3.8/engine/board.c:960: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(initial_board, board, sizeof(board));
data/gnugo-3.8/engine/board.c:3190:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mark_string(int str, signed char mx[BOARDMAX], signed char mark)
data/gnugo-3.8/engine/board.h:206:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char  shadow[BOARDMAX];      /* reading tree shadow */
data/gnugo-3.8/engine/board.h:330:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void mark_string(int str, signed char mx[BOARDMAX], signed char mark);
data/gnugo-3.8/engine/board.h:434:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void mark_goal_in_sgf(signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/boardlib.c:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
signed char shadow[BOARDMAX];
data/gnugo-3.8/engine/breakin.c:69:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
enlarge_goal(signed char goal[BOARDMAX])
data/gnugo-3.8/engine/breakin.c:94:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char goal[BOARDMAX],
data/gnugo-3.8/engine/breakin.c:95:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		     signed char smaller_goal[BOARDMAX])
data/gnugo-3.8/engine/breakin.c:166: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.
    signed char marked[BOARDMAX];
data/gnugo-3.8/engine/breakin.c:222:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
break_in_goal_from_str(int str, signed char goal[BOARDMAX],
data/gnugo-3.8/engine/breakin.c:228: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.
  signed char smaller_goal[BOARDMAX];
data/gnugo-3.8/engine/breakin.c:327:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
break_in_goal(int color_to_move, int owner, signed char goal[BOARDMAX],
data/gnugo-3.8/engine/breakin.c:333: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.
  signed char used[BOARDMAX];
data/gnugo-3.8/engine/breakin.c:423: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.
    signed char goal[BOARDMAX];
data/gnugo-3.8/engine/cache.c:315: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[100];
data/gnugo-3.8/engine/cache.c:345: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[100];
data/gnugo-3.8/engine/cache.c:374: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[100];
data/gnugo-3.8/engine/combination.c:51: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.
  signed char defense_points[BOARDMAX];
data/gnugo-3.8/engine/combination.c:216:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/combination.c:220:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  signed char all_potential_defenses[BOARDMAX],
data/gnugo-3.8/engine/combination.c:222:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/combination.c:228:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					  signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/combination.c:231:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/combination.c:238:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int update_aa_goal(signed char goal[BOARDMAX],
data/gnugo-3.8/engine/combination.c:239:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  signed char new_goal[BOARDMAX],
data/gnugo-3.8/engine/combination.c:251:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
atari_atari(int color, int *attack_move, signed char defense_moves[BOARDMAX],
data/gnugo-3.8/engine/combination.c:258: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.
  signed char saved_defense_moves[BOARDMAX];
data/gnugo-3.8/engine/combination.c:293: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(saved_defense_moves, defense_moves, BOARDMAX);
data/gnugo-3.8/engine/combination.c:311: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(defense_moves, saved_defense_moves, BOARDMAX);
data/gnugo-3.8/engine/combination.c:361:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			   const signed char saved_dragons[BOARDMAX],
data/gnugo-3.8/engine/combination.c:362:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			   const signed char saved_worms[BOARDMAX])
data/gnugo-3.8/engine/combination.c:364: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/combination.c:365: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.
  signed char defense_moves[BOARDMAX];
data/gnugo-3.8/engine/combination.c:393: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.
			 signed char defense_moves[BOARDMAX],
data/gnugo-3.8/engine/combination.c:394:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			 const signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/combination.c:400: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.
  signed char defense_points[BOARDMAX];
data/gnugo-3.8/engine/combination.c:476: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(defense_moves, defense_points, sizeof(defense_points));
data/gnugo-3.8/engine/combination.c:527:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
compute_aa_status(int color, const signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/combination.c:680: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.
	       signed char all_potential_defenses[BOARDMAX], int last_friendly,
data/gnugo-3.8/engine/combination.c:681:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	       int save_verbose, int minsize, signed char goal[BOARDMAX])
data/gnugo-3.8/engine/combination.c:801: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.
	signed char new_goal[BOARDMAX];
data/gnugo-3.8/engine/combination.c:940: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.
			      signed char goal[BOARDMAX])
data/gnugo-3.8/engine/combination.c:977:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    signed char goal[BOARDMAX])
data/gnugo-3.8/engine/combination.c:979: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.
  signed char revised_goal[BOARDMAX];
data/gnugo-3.8/engine/combination.c:1306:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
update_aa_goal(signed char goal[BOARDMAX], signed char new_goal[BOARDMAX],
data/gnugo-3.8/engine/combination.c:1306:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
update_aa_goal(signed char goal[BOARDMAX], signed char new_goal[BOARDMAX],
data/gnugo-3.8/engine/combination.c:1319: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(new_goal, goal, BOARDMAX);
data/gnugo-3.8/engine/dragon.c:1074:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
get_alive_stones(int color, signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/dragon.c:1148:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
set_dragon_strengths(const signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/dragon.c:1168:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mark_inessential_stones(int color, signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/dragon.c:1187:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
set_strength_data(int color, signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/dragon.c:1201: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:1397: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.
  signed char mx[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:1398: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.
  signed char me[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:1621: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(saved_cutting_points, cutting_points, sizeof(cutting_points));
data/gnugo-3.8/engine/dragon.c:1635: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(dragon_origins, new_dragon_origins, sizeof(new_dragon_origins));
data/gnugo-3.8/engine/dragon.c:1837:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
dragon_escape(signed char goal[BOARDMAX], int color,
data/gnugo-3.8/engine/dragon.c:1838:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char escape_value[BOARDMAX])
data/gnugo-3.8/engine/dragon.c:1992: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:1993: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.
  signed char escape_value[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:1994: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/dragon.c:2327:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mark_dragon(int pos, signed char mx[BOARDMAX], signed char mark)
data/gnugo-3.8/engine/genmove.c:722: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/genmove.c:791: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/globals.c:37: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.
signed char thrashing_stone[BOARDMAX]; /* All thrashing stones. */
data/gnugo-3.8/engine/globals.c:96:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char outfilename[128] = ""; /* output file (-o option) */
data/gnugo-3.8/engine/gnugo.h:130:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char outfilename[128];	/* output file (-o option) */
data/gnugo-3.8/engine/hash.c:211: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 buffer[BUFFER_SIZE];
data/gnugo-3.8/engine/influence.c:379:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char safe_stones[BOARDMAX], 
data/gnugo-3.8/engine/influence.c:447: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(q->safe, safe_stones, BOARDMAX * sizeof(*safe_stones));
data/gnugo-3.8/engine/influence.c:1070:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char inhibited_sources[BOARDMAX])
data/gnugo-3.8/engine/influence.c:1108:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
do_compute_influence(const signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/influence.c:1109:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		     const signed char inhibited_sources[BOARDMAX],
data/gnugo-3.8/engine/influence.c:1160:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
compute_influence(int color, const signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/influence.c:1440: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 signed char marked[BOARDMAX];
data/gnugo-3.8/engine/influence.c:1535: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/engine/influence.c:1540: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(q, base, sizeof(*q));
data/gnugo-3.8/engine/influence.c:1597:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
compute_escape_influence(int color, const signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/influence.c:1598:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			 const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/influence.c:1600: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.
    			 signed char escape_value[BOARDMAX])
data/gnugo-3.8/engine/influence.c:1611: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 signed char escape_values[BOARDMAX][2];
data/gnugo-3.8/engine/influence.c:2023: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 format_stone[20];
data/gnugo-3.8/engine/influence.h:81: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.
  signed char safe[BOARDMAX];
data/gnugo-3.8/engine/interface.c:296: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).
      until = atoi(untilstr);
data/gnugo-3.8/engine/liberty.h:188:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:191:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char goal[BOARDMAX], int anchor_in_goal);
data/gnugo-3.8/engine/liberty.h:240:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				       signed char connection_shadow[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:250: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.
				    signed char breakin_shadow[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:258:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				int tactical_nodes, signed char goal[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:271:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				   signed char goala[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:272:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				   signed char goalb[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:281:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int break_in(int str, const signed char goal[BOARDMAX], int *move);
data/gnugo-3.8/engine/liberty.h:282:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int block_off(int str1, const signed char goal[BOARDMAX], int *move);
data/gnugo-3.8/engine/liberty.h:290:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		   signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:296:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		   signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:308:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int dragon_escape(signed char goal[BOARDMAX], int color,
data/gnugo-3.8/engine/liberty.h:309: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.
		  signed char escape_value[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:320:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void mark_dragon(int pos, signed char mx[BOARDMAX], signed char mark);
data/gnugo-3.8/engine/liberty.h:325:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void set_strength_data(int color, signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:327:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void mark_inessential_stones(int color, signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:332:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void get_lively_stones(int color, signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:421:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void get_saved_worms(int pos, signed char saved[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:422:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void get_saved_dragons(int pos, signed char saved[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:424:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char saved_dragons[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:425:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char saved_worms[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:426: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.
		      signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:480: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.
		signed char defense_moves[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:483:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char saved_dragons[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:484:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char saved_worms[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:487: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.
			     signed char defense_moves[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:488:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:558: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.
		 signed char safe_stones[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:627:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void compute_influence(int color, const signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:635:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:636:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char goal[BOARDMAX],
data/gnugo-3.8/engine/liberty.h:638:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                              signed char escape_value[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:695:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void goaldump(const signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/liberty.h:760:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char thrashing_stone[BOARDMAX];       /* All thrashing stones. */
data/gnugo-3.8/engine/liberty.h:869: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.
  signed char surround_map[BOARDMAX]; /* surround map                     */
data/gnugo-3.8/engine/matchpat.c:143:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			void *callback_data, signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/matchpat.c:147:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  signed char goal[BOARDMAX], int anchor_in_goal);
data/gnugo-3.8/engine/matchpat.c:304:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    signed char goal[BOARDMAX]) 
data/gnugo-3.8/engine/matchpat.c:502:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char goal[BOARDMAX], int anchor_in_goal) 
data/gnugo-3.8/engine/matchpat.c:541:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    void *callback_data, signed char goal[BOARDMAX],
data/gnugo-3.8/engine/matchpat.c:547: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.
				signed char goal[BOARDMAX],
data/gnugo-3.8/engine/matchpat.c:552: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.
			      signed char goal[BOARDMAX], int anchor_in_goal);
data/gnugo-3.8/engine/matchpat.c:675:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		void *callback_data, signed char goal[BOARDMAX],
data/gnugo-3.8/engine/matchpat.c:726: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.
		    signed char goal[BOARDMAX], int anchor_in_goal)
data/gnugo-3.8/engine/matchpat.c:807: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.
		  signed char goal[BOARDMAX], int anchor_in_goal) 
data/gnugo-3.8/engine/matchpat.c:828: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.
			      signed char goal[BOARDMAX], int anchor_in_goal);
data/gnugo-3.8/engine/matchpat.c:845: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.
	 signed char goal[BOARDMAX]) 
data/gnugo-3.8/engine/matchpat.c:854:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		     signed char goal[BOARDMAX], int anchor_in_goal) 
data/gnugo-3.8/engine/montecarlo.c:1256: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[80];
data/gnugo-3.8/engine/montecarlo.c:1271:18:  [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).
  pattern_file = fopen(filename, "r");
data/gnugo-3.8/engine/montecarlo.c:1523: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 settled[BOARDMAX];
data/gnugo-3.8/engine/montecarlo.c:2081: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[100];
data/gnugo-3.8/engine/move_reasons.c:90: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 trace_message[MAX_TRACE_LENGTH];
data/gnugo-3.8/engine/move_reasons.c:1417:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
get_saved_worms(int pos, signed char saved[BOARDMAX])
data/gnugo-3.8/engine/move_reasons.c:1461:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    		    int move_reason_type, signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/move_reasons.c:1565:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mark_changed_string(int affected, signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/move_reasons.c:1590:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
get_saved_dragons(int pos, signed char saved[BOARDMAX])
data/gnugo-3.8/engine/move_reasons.c:1622: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.
		 const signed char saved_dragons[BOARDMAX],
data/gnugo-3.8/engine/move_reasons.c:1623:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    		 const signed char saved_worms[BOARDMAX],
data/gnugo-3.8/engine/move_reasons.c:1624: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.
		 signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/move_reasons.h:206: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.
			 signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/move_reasons.h:208:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void mark_changed_string(int affected, signed char changed_stones[BOARDMAX],
data/gnugo-3.8/engine/optics.c:93:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char used_index[MAXEYE];
data/gnugo-3.8/engine/optics.c:293: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.
  signed char threshold[BOARDMAX];
data/gnugo-3.8/engine/optics.c:294: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.
  signed char influence[BOARDMAX];
data/gnugo-3.8/engine/optics.c:784: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.
  signed char chainlinks[BOARDMAX];
data/gnugo-3.8/engine/optics.c:1215: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.
  signed char marginal[MAXEYE], edge[MAXEYE], neighbors[MAXEYE];
data/gnugo-3.8/engine/optics.c:2352: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[30];
data/gnugo-3.8/engine/optics.c:3450:8:  [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(mx, old_mx, sizeof(old_mx));
data/gnugo-3.8/engine/optics.c:3490: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 mg[BOARDMAX];
data/gnugo-3.8/engine/oracle.c:52: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 gnugo_line[128];
data/gnugo-3.8/engine/oracle.c:241: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[128];
data/gnugo-3.8/engine/oracle.c:381: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[100];
data/gnugo-3.8/engine/oracle.c:434:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "value %.2f", color == WHITE ? score[k] : -score[k]);
data/gnugo-3.8/engine/owl.c:71: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/engine/owl.c:72: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.
  signed char boundary[BOARDMAX];
data/gnugo-3.8/engine/owl.c:74: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.
  signed char cumulative_goal[BOARDMAX];
data/gnugo-3.8/engine/owl.c:81: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.
  signed char neighbors[BOARDMAX];
data/gnugo-3.8/engine/owl.c:83: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.
  signed char escape_values[BOARDMAX];
data/gnugo-3.8/engine/owl.c:95: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.
  signed char inessential[BOARDMAX];
data/gnugo-3.8/engine/owl.c:99: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.
  signed char safe_move_cache[BOARDMAX];
data/gnugo-3.8/engine/owl.c:238:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void owl_test_cuts(signed char goal[BOARDMAX], int color,
data/gnugo-3.8/engine/owl.c:240:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void componentdump(const signed char component[BOARDMAX]);
data/gnugo-3.8/engine/owl.c:280: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.
				    signed char mw[BOARDMAX],
data/gnugo-3.8/engine/owl.c:294:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char found_matches[BOARDMAX];
data/gnugo-3.8/engine/owl.c:395: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.
  signed char ms[BOARDMAX];
data/gnugo-3.8/engine/owl.c:651: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.
  signed char mw[BOARDMAX];  
data/gnugo-3.8/engine/owl.c:1493: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[100];
data/gnugo-3.8/engine/owl.c:1574: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.
			signed char mw[BOARDMAX],
data/gnugo-3.8/engine/owl.c:2033: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.
  signed char mw[BOARDMAX];
data/gnugo-3.8/engine/owl.c:2374:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char winstr[192];
data/gnugo-3.8/engine/owl.c:2473: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 winstr[128];
data/gnugo-3.8/engine/owl.c:2474: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(winstr, "attack failed)\n  (%d variations",
data/gnugo-3.8/engine/owl.c:2497: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.
  signed char saved_boundary[BOARDMAX];
data/gnugo-3.8/engine/owl.c:2564:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(owl->boundary, saved_boundary, sizeof(saved_boundary));
data/gnugo-3.8/engine/owl.c:2681: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.
  signed char mw[BOARDMAX];
data/gnugo-3.8/engine/owl.c:2942:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char winstr[192];
data/gnugo-3.8/engine/owl.c:2943:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(winstr, "defense effective)\n  (%d variations",   
data/gnugo-3.8/engine/owl.c:2990: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 winstr[196];
data/gnugo-3.8/engine/owl.c:2992: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(winstr, "defense failed - genus %d)\n  (%d variations",
data/gnugo-3.8/engine/owl.c:3015: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.
  signed char saved_goal[BOARDMAX];
data/gnugo-3.8/engine/owl.c:3061:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(owl->goal, saved_goal, sizeof(saved_goal));
data/gnugo-3.8/engine/owl.c:4325: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.
  signed char mark[BOARDMAX];
data/gnugo-3.8/engine/owl.c:4779: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(owl->cumulative_goal, owl->goal, sizeof(owl->goal));
data/gnugo-3.8/engine/owl.c:5027:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
connected_components(signed char graph[MAX_CUTS][MAX_CUTS], int graph_size,
data/gnugo-3.8/engine/owl.c:5028:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		     signed char component[MAX_CUTS])
data/gnugo-3.8/engine/owl.c:5065:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
owl_test_cuts(signed char goal[BOARDMAX], int color, int cuts[MAX_CUTS])
data/gnugo-3.8/engine/owl.c:5068: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.
  signed char connected[MAX_CUTS][MAX_CUTS];
data/gnugo-3.8/engine/owl.c:5116: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.
    signed char component[MAX_CUTS];
data/gnugo-3.8/engine/owl.c:5117: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.
    signed char component2[BOARDMAX];
data/gnugo-3.8/engine/owl.c:5145: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.
      signed char this_goal[BOARDMAX];
data/gnugo-3.8/engine/owl.c:5242:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
goaldump(const signed char goal[BOARDMAX])
data/gnugo-3.8/engine/owl.c:5252:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
componentdump(const signed char component[BOARDMAX])
data/gnugo-3.8/engine/owl.c:5900: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.
  signed char already_checked[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6378: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(owl->cumulative_goal, owl->goal, BOARDMAX);
data/gnugo-3.8/engine/owl.c:6599: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.
      signed char new_goal[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6680: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6683: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.
  signed char mx[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6710:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char escape_values[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6711:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      signed char dragon_stones[BOARDMAX];
data/gnugo-3.8/engine/owl.c:6925: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.
  signed char modified_escape[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:115:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char goal[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:130:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char goal[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:133:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char goal[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:136:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					const signed char
data/gnugo-3.8/engine/persistent.c:140:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char
data/gnugo-3.8/engine/persistent.c:144:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char
data/gnugo-3.8/engine/persistent.c:473:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		       int cost, const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:628:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    const signed char goal[BOARDMAX], int dummy)
data/gnugo-3.8/engine/persistent.c:630: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.
  signed char active[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:829: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.
				  signed char connection_shadow[BOARDMAX])
data/gnugo-3.8/engine/persistent.c:843:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char connection_shadow[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:848: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.
  signed char active[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:978:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			       signed char breakin_shadow[BOARDMAX])
data/gnugo-3.8/engine/persistent.c:992:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    const signed char breakin_shadow[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:997: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.
  signed char active[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:1120: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.
			   signed char goal[BOARDMAX], int goal_color)
data/gnugo-3.8/engine/persistent.c:1135:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
compute_active_owl_type_area(const signed char goal[BOARDMAX], int goal_color,
data/gnugo-3.8/engine/persistent.c:1136: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.
			     signed char active[BOARDMAX])
data/gnugo-3.8/engine/persistent.c:1221: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.
			const signed char goal[BOARDMAX], int goal_color)
data/gnugo-3.8/engine/persistent.c:1224: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.
  signed char active[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:1277: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.
			      signed char goala[BOARDMAX],
data/gnugo-3.8/engine/persistent.c:1278: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.
			      signed char goalb[BOARDMAX])
data/gnugo-3.8/engine/persistent.c:1280: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:1297:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			   const signed char goal[BOARDMAX], int dummy)
data/gnugo-3.8/engine/persistent.c:1300: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.
  signed char active_b[BOARDMAX];
data/gnugo-3.8/engine/persistent.c:1301: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.
  signed char active_w[BOARDMAX];
data/gnugo-3.8/engine/printutils.c:97: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 movename[4];
data/gnugo-3.8/engine/printutils.c:111:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(movename+1, "%d", board_size - m);
data/gnugo-3.8/engine/printutils.c:113:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(movename+1, "%-2d", board_size - m);
data/gnugo-3.8/engine/printutils.c:125: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 movename[4];
data/gnugo-3.8/engine/printutils.c:140:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(movename + 1, "%d", board_size - m);
data/gnugo-3.8/engine/printutils.c:142:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(movename + 1, "%-2d", board_size - m);
data/gnugo-3.8/engine/printutils.c:317: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 buf[BOARDSIZE][5];
data/gnugo-3.8/engine/printutils.c:338: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(buf, "Pass");
data/gnugo-3.8/engine/printutils.c:381:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  m = boardsize - atoi(str + 1);
data/gnugo-3.8/engine/printutils.c:518:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mark_goal_in_sgf(signed char goal[BOARDMAX])
data/gnugo-3.8/engine/readconnect.c:52:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int recursive_break(int str, const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/readconnect.c:54:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int recursive_block(int str, const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/readconnect.c:93:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char connection_shadow[BOARDMAX];
data/gnugo-3.8/engine/readconnect.c:95:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 signed char breakin_shadow[BOARDMAX]; 
data/gnugo-3.8/engine/readconnect.c:1879: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[500];
data/gnugo-3.8/engine/readconnect.c:1885: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(pos, "%c%d (%d) %n", J(moves[i]) + 'A' + (J(moves[i]) >= 8),
data/gnugo-3.8/engine/readconnect.c:2580: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[500];
data/gnugo-3.8/engine/readconnect.c:2587: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(pos, "%c%d (%4.2f) %n", J(moves[i]) + 'A' + (J(moves[i]) >= 8),
data/gnugo-3.8/engine/readconnect.c:2593: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(pos, "(cutoff %f)%n", FIXED_TO_FLOAT(cutoff), &chars);
data/gnugo-3.8/engine/readconnect.c:2710:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
init_connection_data(int color, const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/readconnect.c:2715: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.
  signed char mark[BOARDMAX];
data/gnugo-3.8/engine/readconnect.c:2742:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
find_break_moves(int str, const signed char goal[BOARDMAX], int color_to_move,
data/gnugo-3.8/engine/readconnect.c:2841:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
recursive_break(int str, const signed char goal[BOARDMAX], int *move,
data/gnugo-3.8/engine/readconnect.c:2954:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
recursive_block(int str, const signed char goal[BOARDMAX], int *move,
data/gnugo-3.8/engine/readconnect.c:3076:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
break_in(int str, const signed char goal[BOARDMAX], int *move)
data/gnugo-3.8/engine/readconnect.c:3139:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
block_off(int str, const signed char goal[BOARDMAX], int *move)
data/gnugo-3.8/engine/readconnect.c:3992: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(conn->queue, full_queue, conn->queue_end * sizeof(int));
data/gnugo-3.8/engine/readconnect.h:77:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void init_connection_data(int color, const signed char goal[BOARDMAX],
data/gnugo-3.8/engine/reading.c:218: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 *message[MAX_MOVES];
data/gnugo-3.8/engine/reading.c:2810:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[100];
data/gnugo-3.8/engine/reading.c:2811:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "got 4 liberties (stackp:%d>%d)", 
data/gnugo-3.8/engine/reading.c:4454: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.
  signed char move_added[BOARDMAX];
data/gnugo-3.8/engine/reading.c:5060: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[500];
data/gnugo-3.8/engine/reading.c:5066: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(pos, "%c%d (%d) %n",
data/gnugo-3.8/engine/semeai.c:56:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  signed char semeai_certain[MAX_DRAGONS][MAX_DRAGONS];
data/gnugo-3.8/engine/sgfdecide.c:586: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.
  signed char defense_moves[BOARDMAX];
data/gnugo-3.8/engine/sgffile.c:53: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 comment[24];
data/gnugo-3.8/engine/sgffile.c:78: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(comment, "Value of move: %.2f", value);
data/gnugo-3.8/engine/sgffile.c:160: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 pos[3];
data/gnugo-3.8/engine/sgffile.c:161:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[128];
data/gnugo-3.8/engine/showbord.c:53: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 dragon_num[BOARDMAX];
data/gnugo-3.8/engine/surround.c:34:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int goal_dist(int pos, signed char goal[BOARDMAX]);
data/gnugo-3.8/engine/surround.c:36:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void show_surround_map(signed char mf[BOARDMAX],
data/gnugo-3.8/engine/surround.c:37: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.
			      signed char mn[BOARDMAX]);
data/gnugo-3.8/engine/surround.c:108: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.
  signed char mf[BOARDMAX]; /* friendly dragon  */
data/gnugo-3.8/engine/surround.c:109: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.
  signed char mn[BOARDMAX]; /* neighbor dragons */
data/gnugo-3.8/engine/surround.c:501: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(surroundings[surround_pointer].surround_map, mn, sizeof(mn));
data/gnugo-3.8/engine/surround.c:523:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
goal_dist(int pos, signed char goal[BOARDMAX])
data/gnugo-3.8/engine/surround.c:600:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
show_surround_map(signed char mf[BOARDMAX], signed char mn[BOARDMAX])
data/gnugo-3.8/engine/surround.c:600:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
show_surround_map(signed char mf[BOARDMAX], signed char mn[BOARDMAX])
data/gnugo-3.8/engine/utils.c:948: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.
			      signed char safe_stones[BOARDMAX], int liberties,
data/gnugo-3.8/engine/utils.c:952: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.
				    signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/utils.c:961: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.
	       signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/utils.c:986: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.
	     signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/utils.c:994: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.
  signed char defense_moves[BOARDMAX];
data/gnugo-3.8/engine/utils.c:1058:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		   signed char safe_stones[BOARDMAX], int liberties,
data/gnugo-3.8/engine/utils.c:1164: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.
			signed char safe_stones[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1356: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.
	     signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/utils.c:1515: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.
		       signed char mx[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1516: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.
		       signed char ml[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1517: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.
		       signed char ma[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1651: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.
  signed char mx[BOARDMAX]; /* stones */
data/gnugo-3.8/engine/utils.c:1652: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.
  signed char ml[BOARDMAX]; /* liberties */
data/gnugo-3.8/engine/utils.c:1653: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.
  signed char ma[BOARDMAX]; /* adjacent strings */
data/gnugo-3.8/engine/utils.c:1830: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.
		       signed char mx[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1831: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.
		       signed char ml[BOARDMAX],
data/gnugo-3.8/engine/utils.c:1832: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.
		       signed char ma[BOARDMAX],
data/gnugo-3.8/engine/value_moves.c:111: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.
  signed char saved_dragons[BOARDMAX];
data/gnugo-3.8/engine/value_moves.c:112: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.
  signed char saved_worms[BOARDMAX];
data/gnugo-3.8/engine/value_moves.c:113: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/value_moves.c:947: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.
	  signed char neighbor_dragons[BOARDMAX];
data/gnugo-3.8/engine/value_moves.c:1795: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/engine/value_moves.c:3680: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.
  signed char blunder_tested[BOARDMAX];
data/gnugo-3.8/engine/worm.c:1711:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
get_lively_stones(int color, signed char safe_stones[BOARDMAX])
data/gnugo-3.8/engine/worm.c:1729: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.
  signed char safe_stones[BOARDMAX];
data/gnugo-3.8/interface/gmp.c:107: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/gnugo-3.8/interface/gmp.c:108: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/gnugo-3.8/interface/gmp.c:140: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/gnugo-3.8/interface/gmp.c:140: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/gnugo-3.8/interface/gmp.c:258: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/gnugo-3.8/interface/gmp.c:260: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  errOut[200];
data/gnugo-3.8/interface/gmp.c:264: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(errOut, "System error.");
data/gnugo-3.8/interface/gmp.c:307: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/gnugo-3.8/interface/gmp.c:307: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/gnugo-3.8/interface/gmp.c:610: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 errOut[200];
data/gnugo-3.8/interface/gmp.c:618: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(errOut, "Neither player knows what the handicap should be.");
data/gnugo-3.8/interface/gmp.c:628: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(errOut, "Handicaps do not agree; I want %d, he wants %d.",
data/gnugo-3.8/interface/gmp.c:638: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(errOut, "Neither player knows what the board size should be.");
data/gnugo-3.8/interface/gmp.c:648: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(errOut, "Board sizes do not agree; I want %d, he wants %d.",
data/gnugo-3.8/interface/gmp.c:658: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(errOut, "Neither player knows what rule set to use.");
data/gnugo-3.8/interface/gmp.c:680: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(errOut, "Neither player knows who is which color.");
data/gnugo-3.8/interface/gtp.c:84: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[GTP_BUFSIZE];
data/gnugo-3.8/interface/gtp.c:85: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 command[GTP_BUFSIZE];
data/gnugo-3.8/interface/gtp.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 color_string[7];
data/gnugo-3.8/interface/gtp.c:401: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[6];
data/gnugo-3.8/interface/gtp_examples/metamachine.c:58: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 gnugo_line[128], client_line[128];
data/gnugo-3.8/interface/gtp_examples/metamachine.c:78: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 command[GTP_BUFSIZE];
data/gnugo-3.8/interface/gtp_examples/metamachine.c:141:19:  [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).
      boardsize = atoi(token);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:296: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[GTP_BUFSIZE];
data/gnugo-3.8/interface/gtp_examples/metamachine.c:377: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 movename[4];
data/gnugo-3.8/interface/gtp_examples/metamachine.c:391:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(movename+1, "%d", boardsize-m);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:393:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(movename+1, "%-2d", boardsize-m);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:429:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *m = boardsize - atoi(str + 1);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:53: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 gnugo_line[128], client_line[128];
data/gnugo-3.8/interface/main.c:345: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 decide_this[8];
data/gnugo-3.8/interface/main.c:347: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 debuginfluence_move[4] = "\0";
data/gnugo-3.8/interface/main.c:353: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 mc_pattern_name[40] = "";
data/gnugo-3.8/interface/main.c:354: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 mc_pattern_filename[320] = "";
data/gnugo-3.8/interface/main.c:384: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).
      case 'b': benchmark = atoi(gg_optarg); playmode = MODE_SOLO; break;
data/gnugo-3.8/interface/main.c:385:24:  [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).
      case 'r': seed = atoi(gg_optarg); seed_specified = 1; break;
data/gnugo-3.8/interface/main.c:391:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'D': mandated_depth = atoi(gg_optarg); break;
data/gnugo-3.8/interface/main.c:394:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'B': mandated_backfill_depth = atoi(gg_optarg); break;
data/gnugo-3.8/interface/main.c:395:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'F': mandated_fourlib_depth = atoi(gg_optarg); break;
data/gnugo-3.8/interface/main.c:396:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'K': mandated_ko_depth = atoi(gg_optarg); break;
data/gnugo-3.8/interface/main.c:455:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	orientation = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:464:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	gtp_version = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:518: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).
	  int requested_handicap = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:530:24:  [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).
	requested_boardsize = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:566:31:  [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).
	mandated_semeai_node_limit = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:654:23:  [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).
	mc_games_per_level = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:806:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mandated_branch_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:810: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).
	mandated_backfill2_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:814:31:  [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).
	mandated_break_chain_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:818:31:  [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).
	mandated_superstring_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:822:22:  [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).
	mandated_aa_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:826:32:  [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).
	mandated_owl_distrust_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:830:30:  [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).
	mandated_owl_branch_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:834:31:  [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).
	mandated_owl_reading_depth = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:838:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mandated_owl_node_limit = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:854:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	set_level(atoi(gg_optarg));
data/gnugo-3.8/interface/main.c:858:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	set_min_level(atoi(gg_optarg));
data/gnugo-3.8/interface/main.c:862:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	set_max_level(atoi(gg_optarg));
data/gnugo-3.8/interface/main.c:877: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).
	clock_settings(atoi(gg_optarg), -1, -1);
data/gnugo-3.8/interface/main.c:881:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	clock_settings(-1, atoi(gg_optarg), -1);
data/gnugo-3.8/interface/main.c:885:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	clock_settings(-1, -1, atoi(gg_optarg));
data/gnugo-3.8/interface/main.c:953:31:  [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).
        mirror_stones_limit = atoi(gg_optarg);
data/gnugo-3.8/interface/main.c:1075:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    output_check = fopen(outfile, "w");
data/gnugo-3.8/interface/main.c:1387:19:  [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).
	gtp_input_FILE = fopen(gtpfile, "r");
data/gnugo-3.8/interface/main.c:1423:27:  [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).
	gtp_dump_commands_FILE = fopen(gtp_dump_commands_file, "w");
data/gnugo-3.8/interface/main.c:1799: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(&address.sin_addr, *address_pointer, sizeof address.sin_addr);
data/gnugo-3.8/interface/main.c:1849: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(&address.sin_addr, host_data->h_addr_list[0],
data/gnugo-3.8/interface/play_ascii.c:84: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 spaces[64];
data/gnugo-3.8/interface/play_ascii.c:85: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[64];
data/gnugo-3.8/interface/play_ascii.c:89:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(letterbar, "   ");
data/gnugo-3.8/interface/play_ascii.c:96: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(letter, "%c", i+letteroffset);
data/gnugo-3.8/interface/play_ascii.c:108: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 hspots[MAX_BOARD][MAX_BOARD];
data/gnugo-3.8/interface/play_ascii.c:195:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char letterbar[64];
data/gnugo-3.8/interface/play_ascii.c:628: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[80];
data/gnugo-3.8/interface/play_ascii.c:1032: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[80];
data/gnugo-3.8/interface/play_ascii.c:1118: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[12];
data/gnugo-3.8/interface/play_ascii.c:1247: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[80];
data/gnugo-3.8/interface/play_gtp.c:832: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 filename[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_gtp.c:833: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 untilstring[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_gtp.c:2104: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/interface/play_gtp.c:2151: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.
  signed char goal[BOARDMAX];
data/gnugo-3.8/interface/play_gtp.c:2421: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.
  signed char defense_points[BOARDMAX];
data/gnugo-3.8/interface/play_gtp.c:2464: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.
  signed char saved_dragons[BOARDMAX];
data/gnugo-3.8/interface/play_gtp.c:2465: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.
  signed char saved_worms[BOARDMAX];
data/gnugo-3.8/interface/play_gtp.c:2996: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 *status_names[6] = {"alive", "dead", "seki",
data/gnugo-3.8/interface/play_gtp.c:3212: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 status_string[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_gtp.c:3527: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 analyzed_eyegraph[1024];
data/gnugo-3.8/interface/play_gtp.c:4199: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 filename[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_gtp.c:4221: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 filename[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_gtp.c:4334: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 command[GTP_BUFSIZE];
data/gnugo-3.8/interface/play_solo.c:193: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[250];
data/gnugo-3.8/interface/play_solo.c:264: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(text, "Black wins by %1.1f points\n", -score);
data/gnugo-3.8/interface/play_solo.c:268: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(text, "White wins by %1.1f points\n", score);
data/gnugo-3.8/interface/play_solo.c:272: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(text, "Jigo\n");
data/gnugo-3.8/interface/play_test.c:124: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[BUFSIZE];
data/gnugo-3.8/patterns/compress_fuseki.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 line[BUFSIZE];
data/gnugo-3.8/patterns/compress_fuseki.c:51: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[BUFSIZE];
data/gnugo-3.8/patterns/compress_fuseki.c:72:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  input_FILE = fopen(filename, "r");
data/gnugo-3.8/patterns/dfa-mkpat.h: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 name[80];
data/gnugo-3.8/patterns/dfa-mkpat.h:199: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		   *variation[8];
data/gnugo-3.8/patterns/dfa.c:68: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 att2val[8] = {
data/gnugo-3.8/patterns/dfa.c:354: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(pdfa->name, "noname ");
data/gnugo-3.8/patterns/dfa.c:394: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(p_to->states, p_from->states,
data/gnugo-3.8/patterns/dfa.c:396: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(p_to->indexes, p_from->indexes,
data/gnugo-3.8/patterns/dfa.c:1060: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 work_space[DFA_MAX_BOARD * 4][DFA_MAX_BOARD * 4];
data/gnugo-3.8/patterns/dfa.c:1526: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 mask[4];
data/gnugo-3.8/patterns/dfa.h:76: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 name[80];
data/gnugo-3.8/patterns/extract_fuseki.c:255: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 pattern[MAX_BOARD][MAX_BOARD];
data/gnugo-3.8/patterns/extract_fuseki.c:322:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *namefile = fopen(name, "a");
data/gnugo-3.8/patterns/extract_fuseki.c:348: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[BUFSIZE];
data/gnugo-3.8/patterns/extract_fuseki.c:349:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *namefile = fopen(name, "r");
data/gnugo-3.8/patterns/extract_fuseki.c:909:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    kyu = atoi(strength);
data/gnugo-3.8/patterns/extract_fuseki.c:1586:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  board_size = atoi(argv[2]);
data/gnugo-3.8/patterns/extract_fuseki.c:1595:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  moves_per_game = atoi(argv[3]);
data/gnugo-3.8/patterns/extract_fuseki.c:1600:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  handicap_value = atoi(argv[4]);
data/gnugo-3.8/patterns/extract_fuseki.c:1605:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  player_strength = atoi(argv[5]);
data/gnugo-3.8/patterns/extract_fuseki.c:1610:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  half_board_patterns = atoi(argv[6]);
data/gnugo-3.8/patterns/extract_fuseki.c:1617:23:  [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).
  min_position_freq = atoi(argv[7]);
data/gnugo-3.8/patterns/extract_fuseki.c:1630:19:  [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).
  min_move_freq = atoi(argv[9]);
data/gnugo-3.8/patterns/eyes.h:46: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.
  signed char n[4];		  /* position in array of vertex neighbors */
data/gnugo-3.8/patterns/joseki.c:140: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.
	      char labels[MAX_BOARD][MAX_BOARD])
data/gnugo-3.8/patterns/joseki.c:221:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
board_is_symmetric(int n, char labels[MAX_BOARD][MAX_BOARD])
data/gnugo-3.8/patterns/joseki.c:241: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 labels[MAX_BOARD][MAX_BOARD], char *text,
data/gnugo-3.8/patterns/joseki.c:306: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 labels[MAX_BOARD][MAX_BOARD];
data/gnugo-3.8/patterns/mkeyes.c:46: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[MAXLINE];
data/gnugo-3.8/patterns/mkeyes.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 vertex[MAXDIMEN][MAXDIMEN];
data/gnugo-3.8/patterns/mkeyes.c:50: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.
  signed char marginal[MAXDIMEN][MAXDIMEN];
data/gnugo-3.8/patterns/mkeyes.c:51: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.
  signed char edge[MAXDIMEN][MAXDIMEN];
data/gnugo-3.8/patterns/mkeyes.c:52: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 flags[MAXDIMEN][MAXDIMEN];
data/gnugo-3.8/patterns/mkpat.c:162: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 constraint[MAXCONSTRAINT]; /* Store constraint lines. */
data/gnugo-3.8/patterns/mkpat.c:163: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 action[MAXCONSTRAINT];     /* Store action lines. */
data/gnugo-3.8/patterns/mkpat.c:164: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 diagram[MAX_BOARD+2][MAX_BOARD+3];
data/gnugo-3.8/patterns/mkpat.c:166: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 constraint_diagram[MAX_BOARD+2][MAX_BOARD+3];
data/gnugo-3.8/patterns/mkpat.c:172: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 pattern_names[MAXPATNO][MAXNAME]; /* with optional names here, */
data/gnugo-3.8/patterns/mkpat.c:175: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 helper_fn_names[MAXPATNO][MAXNAME]; /* helper fn names here */
data/gnugo-3.8/patterns/mkpat.c:176: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 autohelper_code[MAXPATNO*300]; /* code for automatically generated */
data/gnugo-3.8/patterns/mkpat.c:204: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 *attribute_name[NUM_ATTRIBUTES + 1] = {
data/gnugo-3.8/patterns/mkpat.c:507: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[MAXNAME];
data/gnugo-3.8/patterns/mkpat.c:620:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(helper_fn_names[patno], "NULL");
data/gnugo-3.8/patterns/mkpat.c:685:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[DFA_MAX_ORDER + 1];
data/gnugo-3.8/patterns/mkpat.c:686: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 strrot[DFA_MAX_ORDER + 1];
data/gnugo-3.8/patterns/mkpat.c:1168: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 class[80];
data/gnugo-3.8/patterns/mkpat.c:1169: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 entry[80];
data/gnugo-3.8/patterns/mkpat.c:1402: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 varnames[MAXPARAMS][8];
data/gnugo-3.8/patterns/mkpat.c:1403: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 pattern_id[MAXLINE];
data/gnugo-3.8/patterns/mkpat.c:1407: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(varnames[i], "move");
data/gnugo-3.8/patterns/mkpat.c:1412: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(varnames[i], "NO_MOVE");
data/gnugo-3.8/patterns/mkpat.c:1414: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(varnames[i], "%c", labels[i]);
data/gnugo-3.8/patterns/mkpat.c:1675:19:  [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.
      code_pos += sprintf(code_pos, " %c,", c);
data/gnugo-3.8/patterns/mkpat.c:1683:17:  [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.
    code_pos += sprintf(code_pos, "UNUSED(trans);");
data/gnugo-3.8/patterns/mkpat.c:1687:15:  [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.
  code_pos += sprintf(code_pos, "\n  UNUSED(color);\n");
data/gnugo-3.8/patterns/mkpat.c:1689:17:  [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.
    code_pos += sprintf(code_pos, "  UNUSED(action);\n");
data/gnugo-3.8/patterns/mkpat.c:1702:19:  [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.
      code_pos += sprintf(code_pos,
data/gnugo-3.8/patterns/mkpat.c:1711:17:  [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.
    code_pos += sprintf(code_pos, "\n  UNUSED(move);");
data/gnugo-3.8/patterns/mkpat.c:1713:15:  [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.
  code_pos += sprintf(code_pos, "\n\n");
data/gnugo-3.8/patterns/mkpat.c:1715:17:  [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.
    code_pos += sprintf(code_pos, "  if (!action)\n  ");
data/gnugo-3.8/patterns/mkpat.c:1717:17:  [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.
    code_pos += sprintf(code_pos, "  return ");
data/gnugo-3.8/patterns/mkpat.c:1720:17:  [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.
    code_pos += sprintf(code_pos, ";\n");
data/gnugo-3.8/patterns/mkpat.c:1723:17:  [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.
    code_pos += sprintf(code_pos, "  ");
data/gnugo-3.8/patterns/mkpat.c:1725:17:  [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.
    code_pos += sprintf(code_pos, ";\n");
data/gnugo-3.8/patterns/mkpat.c:1726:17:  [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.
    code_pos += sprintf(code_pos, "\n  return 0;\n");
data/gnugo-3.8/patterns/mkpat.c:1728:15:  [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.
  code_pos += sprintf(code_pos, "}\n\n");
data/gnugo-3.8/patterns/mkpat.c:2404: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 *input_file_names[MAX_INPUT_FILE_NAMES];
data/gnugo-3.8/patterns/mkpat.c:2498:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      output_FILE = fopen(output_file_name, "wb");
data/gnugo-3.8/patterns/mkpat.c:2506:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      transformations_FILE = fopen(transformations_file_name, "r");
data/gnugo-3.8/patterns/mkpat.c:2577:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAXLINE];  /* current line from file */
data/gnugo-3.8/patterns/mkpat.c:2580:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      input_FILE = fopen(input_file_names[ifc], "r");
data/gnugo-3.8/patterns/mkpat.c:2592: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 command_data[MAXLINE];
data/gnugo-3.8/patterns/mkpat.c:2985:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    transformations_FILE = fopen(transformations_file_name, "wb");
data/gnugo-3.8/patterns/transform.c:113: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 mark[2 * DFA_MAX_BOARD + 1][2 * DFA_MAX_BOARD + 1];
data/gnugo-3.8/patterns/uncompress_fuseki.c:104: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 *const db_output_strings[3] =
data/gnugo-3.8/patterns/uncompress_fuseki.c:106: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 *const c_output_strings[3] =
data/gnugo-3.8/patterns/uncompress_fuseki.c:118: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.
set_boards(char board[MAX_BOARD + 2][MAX_BOARD + 2],
data/gnugo-3.8/patterns/uncompress_fuseki.c:138:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
write_pattern(char *name, char board[MAX_BOARD + 2][MAX_BOARD + 2],
data/gnugo-3.8/patterns/uncompress_fuseki.c:138:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
write_pattern(char *name, char board[MAX_BOARD + 2][MAX_BOARD + 2],
data/gnugo-3.8/patterns/uncompress_fuseki.c:154:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
write_pattern_c_code(char *name, Intersection board1d[BOARDSIZE],
data/gnugo-3.8/patterns/uncompress_fuseki.c:191: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[BUFSIZE];
data/gnugo-3.8/patterns/uncompress_fuseki.c:192: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[BUFSIZE];
data/gnugo-3.8/patterns/uncompress_fuseki.c:193: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 stones[BUFSIZE];
data/gnugo-3.8/patterns/uncompress_fuseki.c:195:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char board[MAX_BOARD + 2][MAX_BOARD + 2];
data/gnugo-3.8/patterns/uncompress_fuseki.c:208: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).
  boardsize = atoi(argv[1]);
data/gnugo-3.8/patterns/uncompress_fuseki.c:234:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  input_FILE = fopen(filename, "r");
data/gnugo-3.8/sgf/sgfgen.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 instring[MAX_LINE];
data/gnugo-3.8/sgf/sgfgen.c:51: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 sgf_tag[MAX_LINE];
data/gnugo-3.8/sgf/sgfgen.c:52: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 comment[MAX_LINE];
data/gnugo-3.8/sgf/sgfnode.c:153:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[10];
data/gnugo-3.8/sgf/sgfnode.c:167:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[10];
data/gnugo-3.8/sgf/sgfnode.c:186:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      *value = atoi(prop->value);
data/gnugo-3.8/sgf/sgfnode.c:473: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[3];
data/gnugo-3.8/sgf/sgfnode.c:475: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(move, "%c%c", movey + 'a', movex + 'a');
data/gnugo-3.8/sgf/sgfnode.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 move[3];
data/gnugo-3.8/sgf/sgfnode.c:496: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(move, "%c%c", movey + 'a', movex + 'a');
data/gnugo-3.8/sgf/sgfnode.c:520: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[3];
data/gnugo-3.8/sgf/sgfnode.c:527: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(move, "%c%c", movey + 'a', movex + 'a');
data/gnugo-3.8/sgf/sgfnode.c:586: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[2] = "";
data/gnugo-3.8/sgf/sgfnode.c:602: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[10];
data/gnugo-3.8/sgf/sgfnode.c:618: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[3];
data/gnugo-3.8/sgf/sgfnode.c:635: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[16];
data/gnugo-3.8/sgf/sgfnode.c:651: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[16];
data/gnugo-3.8/sgf/sgfnode.c:667: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[3];
data/gnugo-3.8/sgf/sgfnode.c:694: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[3];
data/gnugo-3.8/sgf/sgfnode.c:777: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[8];
data/gnugo-3.8/sgf/sgfnode.c:819:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[128];
data/gnugo-3.8/sgf/sgfnode.c:836:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[128];
data/gnugo-3.8/sgf/sgfnode.c:1005: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[3];
data/gnugo-3.8/sgf/sgfnode.c:1006:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4000];
data/gnugo-3.8/sgf/sgfnode.c:1147:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sgffile = fopen(filename, "r");
data/gnugo-3.8/sgf/sgfnode.c:1203:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    sgffile = fopen(filename, "r");
data/gnugo-3.8/sgf/sgfnode.c:1508:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen(filename, "w");
data/gnugo-3.8/sgf/sgfnode.c:1535: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 buffer[25000];
data/gnugo-3.8/sgf/sgfnode.c:1536: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 output[25000];
data/gnugo-3.8/utils/winsocket.c:220: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 buffer[0x1000];
data/gnugo-3.8/engine/cache.c:321:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(buf + strlen(buf), "0");
data/gnugo-3.8/engine/cache.c:321:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "0");
data/gnugo-3.8/engine/cache.c:323:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s %c%d", result_to_string(result), 
data/gnugo-3.8/engine/cache.c:327:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s PASS", result_to_string(result));
data/gnugo-3.8/engine/cache.c:329:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s [%d]", result_to_string(result), move);
data/gnugo-3.8/engine/cache.c:332:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/cache.c:352:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s %c%d", result,
data/gnugo-3.8/engine/cache.c:356:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s PASS", result);
data/gnugo-3.8/engine/cache.c:358:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s [%d]", result, move);
data/gnugo-3.8/engine/cache.c:361:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/cache.c:381:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s %s %c%d",
data/gnugo-3.8/engine/cache.c:385:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s %s PASS",
data/gnugo-3.8/engine/cache.c:388:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), "%s %s [%d]",
data/gnugo-3.8/engine/cache.c:393:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), " (%s)", message);
data/gnugo-3.8/engine/optics.c:3531: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).
  for (k = 0; k < (int) strlen(coded_eyegraph); k++) {
data/gnugo-3.8/engine/optics.c:3571: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).
  for (k = 0; k < (int) strlen(coded_eyegraph); k++) {
data/gnugo-3.8/engine/oracle.c:70:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          gnugo_line_length = strlen(gnugo_line); \
data/gnugo-3.8/engine/oracle.c:246:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line_length = strlen(line);
data/gnugo-3.8/engine/oracle.c:249:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(gnugo_line, line, 128);
data/gnugo-3.8/interface/gmp.c:262: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/gnugo-3.8/interface/gtp.c:331:7:  [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.
  if (sscanf(s, "%6s%n", color_string, &n) != 1)
data/gnugo-3.8/interface/gtp.c:334: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).
  for (i = 0; i < (int) strlen(color_string); i++)
data/gnugo-3.8/interface/gtp.c:402:9:  [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.
    if (sscanf(s + n1, "%5s%n", buf, &n2) != 1)
data/gnugo-3.8/interface/gtp.c:404:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (k = 0; k < (int) strlen(buf); k++)
data/gnugo-3.8/interface/gtp_examples/metamachine.c:301:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line_length = strlen(line);
data/gnugo-3.8/interface/gtp_examples/metamachine.c:304:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(gnugo_line, line, 128);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:103: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).
	length = strlen(gnugo_line);
data/gnugo-3.8/interface/gtp_examples/vanilla.c:112: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).
	length = strlen(gnugo_line);
data/gnugo-3.8/interface/main.c:403:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) >= sizeof(outfilename)) {
data/gnugo-3.8/interface/main.c:658:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) >= sizeof(mc_pattern_name)) {
data/gnugo-3.8/interface/main.c:671:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) >= sizeof(mc_pattern_filename)) {
data/gnugo-3.8/interface/main.c:696:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:705:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 7) {
data/gnugo-3.8/interface/main.c:723:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:732:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:741:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 7) {
data/gnugo-3.8/interface/main.c:759:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 7) {
data/gnugo-3.8/interface/main.c:780:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:793:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:893:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(gg_optarg) > 3) {
data/gnugo-3.8/interface/main.c:1024: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(mc_pattern_filename) > 0) {
data/gnugo-3.8/interface/main.c:1028: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).
  else if (strlen(mc_pattern_name) > 0) {
data/gnugo-3.8/interface/play_ascii.c:88:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(spaces, " ");
data/gnugo-3.8/interface/play_ascii.c:955: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).
	    tmpstring[strlen(tmpstring) - 1] = 0;
data/gnugo-3.8/interface/play_ascii.c:974: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).
	    tmpstring[strlen(tmpstring) - 1] = 0;
data/gnugo-3.8/interface/play_ascii.c:1078: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).
	tmpstring[strlen(tmpstring) - 1] = 0;
data/gnugo-3.8/interface/play_gtp.c:3588: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).
  return strncmp(s, prefix, strlen(prefix)) == 0;
data/gnugo-3.8/patterns/dfa.c:1030:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(string);
data/gnugo-3.8/patterns/dfa.c:1641: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).
  int l = strlen(string);
data/gnugo-3.8/patterns/dfa.c:1770: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).
  min_length = strlen(pattern->variation[0]);
data/gnugo-3.8/patterns/dfa.c:1772:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(pattern->variation[k]);
data/gnugo-3.8/patterns/extract_fuseki.c:358:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (buf[strlen(buf) - 2] == '\r') {
data/gnugo-3.8/patterns/extract_fuseki.c:359:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf[strlen(buf) - 2] = '\0'; 
data/gnugo-3.8/patterns/extract_fuseki.c:363:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf[strlen(buf) - 1] = '\0'; 
data/gnugo-3.8/patterns/extract_fuseki.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(strength);
data/gnugo-3.8/patterns/mkeyes.c:109:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int last = strlen(line) - 1;
data/gnugo-3.8/patterns/mkmcpat.c:43:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int name_length = strlen(filename);
data/gnugo-3.8/patterns/mkpat.c:958:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(diagram[maxi], pcopy, maxj + jwo + jeo);
data/gnugo-3.8/patterns/mkpat.c:1026:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(constraint_diagram[current_c_i], pcopy, maxj+jwo+jeo+1);
data/gnugo-3.8/patterns/mkpat.c:1243:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(helper_fn_names[patno], entry, 79);
data/gnugo-3.8/patterns/mkpat.c:1376: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(constraint) + strlen(line) < MAXCONSTRAINT);
data/gnugo-3.8/patterns/mkpat.c:1376: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(constraint) + strlen(line) < MAXCONSTRAINT);
data/gnugo-3.8/patterns/mkpat.c:1389: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(action) + strlen(line) < MAXACTION);
data/gnugo-3.8/patterns/mkpat.c:1389:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(action) + strlen(line) < MAXACTION);
data/gnugo-3.8/patterns/mkpat.c:1523: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).
		      strlen(autohelper_functions[n].name)) == 0) {
data/gnugo-3.8/patterns/mkpat.c:1525: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).
	    p += strlen(autohelper_functions[n].name)-1;
data/gnugo-3.8/patterns/mkpat.c:2595: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).
      if (line[strlen(line)-1] != '\n') {
data/gnugo-3.8/patterns/mkpat.c:2604:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i = strlen(line) - 2;  /* Start removing backwards just before newline */
data/gnugo-3.8/patterns/mkpat.c:2682:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(command_data) > MAXNAME - 1) {
data/gnugo-3.8/patterns/mkpat.c:2868:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i = strlen(line);
data/gnugo-3.8/patterns/uncompress_fuseki.c:287:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (k = 2; k < (int) strlen(stones); k += 2) {
data/gnugo-3.8/sgf/sgf_utils.c:40: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(property->value) < 2)
data/gnugo-3.8/sgf/sgf_utils.c:58: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(property->value) < 2)
data/gnugo-3.8/sgf/sgfgen.c:56:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen(instring) - 1;
data/gnugo-3.8/sgf/sgfgen.c:69:5:  [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.
    sscanf(instring, "%4s %75s", sgf_tag, comment);
data/gnugo-3.8/sgf/sgfgen.c:70:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sgf_tag, instring, 4);
data/gnugo-3.8/sgf/sgfgen.c:71: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(instring) > 4) 
data/gnugo-3.8/sgf/sgfgen.c:72:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(comment, instring+4, MAX_LINE-4);
data/gnugo-3.8/sgf/sgfgen.c:74:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(comment, "");
data/gnugo-3.8/sgf/sgfgen.c:91:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(comment))
data/gnugo-3.8/sgf/sgfnode.c:266:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      prop->value = xrealloc(prop->value, strlen(text)+1);
data/gnugo-3.8/sgf/sgfnode.c:373: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).
  prop->value = xalloc(strlen(value) + 1);
data/gnugo-3.8/sgf/sgfnode.c:410: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(name) == 1)
data/gnugo-3.8/sgf/sgfnode.c:421: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).
      && strlen(value) == 5
data/gnugo-3.8/sgf/sgfnode.c:569: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).
  void *str = xalloc(strlen(text) + 3);
data/gnugo-3.8/sgf/sgfnode.c:894:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define sgf_getch() (getc(sgffile))
data/gnugo-3.8/utils/getopt.c:224:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/gnugo-3.8/utils/getopt.c:227: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).
extern int strlen (const char *);
data/gnugo-3.8/utils/getopt.c:425:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/gnugo-3.8/utils/getopt.c:646:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/gnugo-3.8/utils/getopt.c:670: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).
	  nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:702: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).
		  nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:718: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).
		  nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:723: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).
	  nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:834:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/gnugo-3.8/utils/getopt.c:857: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).
	    nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:877:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:891:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/gnugo-3.8/utils/getopt.c:895: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).
	    nextchar += strlen (nextchar);
data/gnugo-3.8/utils/winsocket.c:192:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(string);

ANALYSIS SUMMARY:

Hits = 757
Lines analyzed = 87585 in approximately 3.12 seconds (28042 lines/second)
Physical Source Lines of Code (SLOC) = 56065
Hits@level = [0] 1014 [1] 100 [2] 527 [3]   3 [4] 127 [5]   0
Hits@level+ = [0+] 1771 [1+] 757 [2+] 657 [3+] 130 [4+] 127 [5+]   0
Hits/KSLOC@level+ = [0+] 31.5883 [1+] 13.5022 [2+] 11.7185 [3+] 2.31874 [4+] 2.26523 [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.