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/golly-3.3/gollybase/ghashbase.cpp
Examining data/golly-3.3/gollybase/liferender.cpp
Examining data/golly-3.3/gollybase/writepattern.cpp
Examining data/golly-3.3/gollybase/liferules.cpp
Examining data/golly-3.3/gollybase/hlifealgo.h
Examining data/golly-3.3/gollybase/ruleloaderalgo.h
Examining data/golly-3.3/gollybase/ruletable_algo.h
Examining data/golly-3.3/gollybase/ltldraw.cpp
Examining data/golly-3.3/gollybase/liferender.h
Examining data/golly-3.3/gollybase/ltlalgo.h
Examining data/golly-3.3/gollybase/readpattern.cpp
Examining data/golly-3.3/gollybase/readpattern.h
Examining data/golly-3.3/gollybase/ruleloaderalgo.cpp
Examining data/golly-3.3/gollybase/jvnalgo.cpp
Examining data/golly-3.3/gollybase/ruletable_algo.cpp
Examining data/golly-3.3/gollybase/writepattern.h
Examining data/golly-3.3/gollybase/hlifedraw.cpp
Examining data/golly-3.3/gollybase/ghashdraw.cpp
Examining data/golly-3.3/gollybase/bigint.cpp
Examining data/golly-3.3/gollybase/lifepoll.h
Examining data/golly-3.3/gollybase/qlifealgo.h
Examining data/golly-3.3/gollybase/ruletreealgo.h
Examining data/golly-3.3/gollybase/qlifedraw.cpp
Examining data/golly-3.3/gollybase/qlifealgo.cpp
Examining data/golly-3.3/gollybase/ltlalgo.cpp
Examining data/golly-3.3/gollybase/util.h
Examining data/golly-3.3/gollybase/jvnalgo.h
Examining data/golly-3.3/gollybase/ghashbase.h
Examining data/golly-3.3/gollybase/hlifealgo.cpp
Examining data/golly-3.3/gollybase/bigint.h
Examining data/golly-3.3/gollybase/generationsalgo.cpp
Examining data/golly-3.3/gollybase/lifealgo.h
Examining data/golly-3.3/gollybase/generationsalgo.h
Examining data/golly-3.3/gollybase/platform.h
Examining data/golly-3.3/gollybase/lifepoll.cpp
Examining data/golly-3.3/gollybase/util.cpp
Examining data/golly-3.3/gollybase/liferules.h
Examining data/golly-3.3/gollybase/ruletreealgo.cpp
Examining data/golly-3.3/gollybase/viewport.h
Examining data/golly-3.3/gollybase/viewport.cpp
Examining data/golly-3.3/gollybase/lifealgo.cpp
Examining data/golly-3.3/gui-common/algos.h
Examining data/golly-3.3/gui-common/view.cpp
Examining data/golly-3.3/gui-common/prefs.h
Examining data/golly-3.3/gui-common/view.h
Examining data/golly-3.3/gui-common/status.cpp
Examining data/golly-3.3/gui-common/render.cpp
Examining data/golly-3.3/gui-common/algos.cpp
Examining data/golly-3.3/gui-common/select.h
Examining data/golly-3.3/gui-common/layer.cpp
Examining data/golly-3.3/gui-common/status.h
Examining data/golly-3.3/gui-common/layer.h
Examining data/golly-3.3/gui-common/file.cpp
Examining data/golly-3.3/gui-common/prefs.cpp
Examining data/golly-3.3/gui-common/select.cpp
Examining data/golly-3.3/gui-common/render.h
Examining data/golly-3.3/gui-common/undo.cpp
Examining data/golly-3.3/gui-common/utils.h
Examining data/golly-3.3/gui-common/undo.h
Examining data/golly-3.3/gui-common/control.h
Examining data/golly-3.3/gui-common/file.h
Examining data/golly-3.3/gui-common/utils.cpp
Examining data/golly-3.3/gui-common/control.cpp
Examining data/golly-3.3/gui-common/MiniZip/crypt.h
Examining data/golly-3.3/gui-common/MiniZip/zip.h
Examining data/golly-3.3/gui-common/MiniZip/unzip.c
Examining data/golly-3.3/gui-common/MiniZip/ioapi.h
Examining data/golly-3.3/gui-common/MiniZip/unzip.h
Examining data/golly-3.3/gui-common/MiniZip/zip.c
Examining data/golly-3.3/gui-common/MiniZip/ioapi.c
Examining data/golly-3.3/Rules/TableGenerators/make-ruletable.cpp
Examining data/golly-3.3/Rules/TreeGenerators/RuleTreeGen.cpp
Examining data/golly-3.3/Rules/TreeGenerators/LifeOnTheEdge.cpp
Examining data/golly-3.3/Rules/TreeGenerators/LifeOnTheSlope.cpp
Examining data/golly-3.3/gui-web/zlib/deflate.h
Examining data/golly-3.3/gui-web/zlib/infback.c
Examining data/golly-3.3/gui-web/zlib/zutil.c
Examining data/golly-3.3/gui-web/zlib/trees.c
Examining data/golly-3.3/gui-web/zlib/zlib.h
Examining data/golly-3.3/gui-web/zlib/gzlib.c
Examining data/golly-3.3/gui-web/zlib/zconf.h
Examining data/golly-3.3/gui-web/zlib/inffast.h
Examining data/golly-3.3/gui-web/zlib/adler32.c
Examining data/golly-3.3/gui-web/zlib/compress.c
Examining data/golly-3.3/gui-web/zlib/uncompr.c
Examining data/golly-3.3/gui-web/zlib/inftrees.h
Examining data/golly-3.3/gui-web/zlib/trees.h
Examining data/golly-3.3/gui-web/zlib/inflate.c
Examining data/golly-3.3/gui-web/zlib/inflate.h
Examining data/golly-3.3/gui-web/zlib/gzwrite.c
Examining data/golly-3.3/gui-web/zlib/gzclose.c
Examining data/golly-3.3/gui-web/zlib/crc32.h
Examining data/golly-3.3/gui-web/zlib/gzguts.h
Examining data/golly-3.3/gui-web/zlib/deflate.c
Examining data/golly-3.3/gui-web/zlib/inftrees.c
Examining data/golly-3.3/gui-web/zlib/zutil.h
Examining data/golly-3.3/gui-web/zlib/gzread.c
Examining data/golly-3.3/gui-web/zlib/crc32.c
Examining data/golly-3.3/gui-web/zlib/inffast.c
Examining data/golly-3.3/gui-web/zlib/inffixed.h
Examining data/golly-3.3/gui-web/webcalls.cpp
Examining data/golly-3.3/gui-web/webcalls.h
Examining data/golly-3.3/gui-web/main.cpp
Examining data/golly-3.3/cmdline/RuleTableToTree.cpp
Examining data/golly-3.3/cmdline/bgolly.cpp
Examining data/golly-3.3/gui-ios/Golly/PatternView.h
Examining data/golly-3.3/gui-ios/Golly/SaveViewController.h
Examining data/golly-3.3/gui-ios/Golly/InfoViewController.h
Examining data/golly-3.3/gui-ios/Golly/StatusView.h
Examining data/golly-3.3/gui-ios/Golly/PatternViewController.h
Examining data/golly-3.3/gui-ios/Golly/StateView.h
Examining data/golly-3.3/gui-ios/Golly/GollyAppDelegate.h
Examining data/golly-3.3/gui-ios/Golly/HelpViewController.h
Examining data/golly-3.3/gui-ios/Golly/RuleViewController.h
Examining data/golly-3.3/gui-ios/Golly/StatePickerController.h
Examining data/golly-3.3/gui-ios/Golly/OpenViewController.h
Examining data/golly-3.3/gui-ios/Golly/SettingsViewController.h
Examining data/golly-3.3/gui-ios/Golly/StatePickerView.h
Examining data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp
Examining data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.h
Examining data/golly-3.3/lua/ldo.c
Examining data/golly-3.3/lua/lparser.c
Examining data/golly-3.3/lua/lutf8lib.c
Examining data/golly-3.3/lua/lapi.c
Examining data/golly-3.3/lua/lgc.c
Examining data/golly-3.3/lua/lzio.h
Examining data/golly-3.3/lua/lmem.c
Examining data/golly-3.3/lua/ldblib.c
Examining data/golly-3.3/lua/ltable.h
Examining data/golly-3.3/lua/lopcodes.c
Examining data/golly-3.3/lua/lstrlib.c
Examining data/golly-3.3/lua/lctype.h
Examining data/golly-3.3/lua/lfunc.c
Examining data/golly-3.3/lua/lua.hpp
Examining data/golly-3.3/lua/lstate.c
Examining data/golly-3.3/lua/lvm.c
Examining data/golly-3.3/lua/lua.h
Examining data/golly-3.3/lua/llimits.h
Examining data/golly-3.3/lua/lstate.h
Examining data/golly-3.3/lua/lfunc.h
Examining data/golly-3.3/lua/ldebug.h
Examining data/golly-3.3/lua/lstring.h
Examining data/golly-3.3/lua/loadlib.c
Examining data/golly-3.3/lua/liolib.c
Examining data/golly-3.3/lua/lctype.c
Examining data/golly-3.3/lua/lcode.c
Examining data/golly-3.3/lua/lparser.h
Examining data/golly-3.3/lua/loslib.c
Examining data/golly-3.3/lua/lvm.h
Examining data/golly-3.3/lua/lobject.h
Examining data/golly-3.3/lua/ltm.c
Examining data/golly-3.3/lua/lcode.h
Examining data/golly-3.3/lua/llex.h
Examining data/golly-3.3/lua/lzio.c
Examining data/golly-3.3/lua/lbitlib.c
Examining data/golly-3.3/lua/lopcodes.h
Examining data/golly-3.3/lua/ltm.h
Examining data/golly-3.3/lua/lapi.h
Examining data/golly-3.3/lua/lobject.c
Examining data/golly-3.3/lua/ldebug.c
Examining data/golly-3.3/lua/ldo.h
Examining data/golly-3.3/lua/lmathlib.c
Examining data/golly-3.3/lua/lcorolib.c
Examining data/golly-3.3/lua/ltable.c
Examining data/golly-3.3/lua/lgc.h
Examining data/golly-3.3/lua/ldump.c
Examining data/golly-3.3/lua/lualib.h
Examining data/golly-3.3/lua/lbaselib.c
Examining data/golly-3.3/lua/ltablib.c
Examining data/golly-3.3/lua/lmem.h
Examining data/golly-3.3/lua/lundump.h
Examining data/golly-3.3/lua/llex.c
Examining data/golly-3.3/lua/luaconf.h
Examining data/golly-3.3/lua/lprefix.h
Examining data/golly-3.3/lua/lundump.c
Examining data/golly-3.3/lua/lauxlib.h
Examining data/golly-3.3/lua/lstring.c
Examining data/golly-3.3/lua/lauxlib.c
Examining data/golly-3.3/lua/linit.c
Examining data/golly-3.3/gui-wx/wxfile.cpp
Examining data/golly-3.3/gui-wx/wxinfo.h
Examining data/golly-3.3/gui-wx/wxperl.cpp
Examining data/golly-3.3/gui-wx/wxpython.cpp
Examining data/golly-3.3/gui-wx/wxselect.h
Examining data/golly-3.3/gui-wx/wxtimeline.cpp
Examining data/golly-3.3/gui-wx/wxoverlay.h
Examining data/golly-3.3/gui-wx/wxundo.cpp
Examining data/golly-3.3/gui-wx/wxperl.h
Examining data/golly-3.3/gui-wx/wxview.cpp
Examining data/golly-3.3/gui-wx/wxstatus.cpp
Examining data/golly-3.3/gui-wx/wxstatus.h
Examining data/golly-3.3/gui-wx/wxscript.h
Examining data/golly-3.3/gui-wx/wxhelp.h
Examining data/golly-3.3/gui-wx/wxlua.h
Examining data/golly-3.3/gui-wx/wxalgos.h
Examining data/golly-3.3/gui-wx/wxselect.cpp
Examining data/golly-3.3/gui-wx/wxgolly.cpp
Examining data/golly-3.3/gui-wx/wxcontrol.cpp
Examining data/golly-3.3/gui-wx/wxedit.cpp
Examining data/golly-3.3/gui-wx/wxmain.h
Examining data/golly-3.3/gui-wx/wxlayer.h
Examining data/golly-3.3/gui-wx/wxrule.cpp
Examining data/golly-3.3/gui-wx/wxrender.cpp
Examining data/golly-3.3/gui-wx/wxtimeline.h
Examining data/golly-3.3/gui-wx/wxutils.cpp
Examining data/golly-3.3/gui-wx/wxgolly.h
Examining data/golly-3.3/gui-wx/wxinfo.cpp
Examining data/golly-3.3/gui-wx/wxrule.h
Examining data/golly-3.3/gui-wx/wxalgos.cpp
Examining data/golly-3.3/gui-wx/wxundo.h
Examining data/golly-3.3/gui-wx/wxprefs.cpp
Examining data/golly-3.3/gui-wx/wxedit.h
Examining data/golly-3.3/gui-wx/wxoverlay.cpp
Examining data/golly-3.3/gui-wx/wxlua.cpp
Examining data/golly-3.3/gui-wx/wxpython.h
Examining data/golly-3.3/gui-wx/wxmain.cpp
Examining data/golly-3.3/gui-wx/wxrender.h
Examining data/golly-3.3/gui-wx/wxutils.h
Examining data/golly-3.3/gui-wx/wxlayer.cpp
Examining data/golly-3.3/gui-wx/wxview.h
Examining data/golly-3.3/gui-wx/wxhelp.cpp
Examining data/golly-3.3/gui-wx/wxprefs.h
Examining data/golly-3.3/gui-wx/wxscript.cpp

FINAL RESULTS:

data/golly-3.3/cmdline/bgolly.cpp:195: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(tmpfilename, outfilename) ;
data/golly-3.3/cmdline/bgolly.cpp:200: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(p, outfilename + numberoffset) ;
data/golly-3.3/cmdline/bgolly.cpp:284: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.
           if (sscanf(cmdargs, "%s", sbuf) != 1) {
data/golly-3.3/gollybase/ghashbase.cpp:1638:13:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	       n = sscanf(line+7, "%d %" PRIuPTR, &frameind, &nodeind) ;
data/golly-3.3/gollybase/hlifealgo.cpp:1759:13:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	       n = sscanf(line+7, "%d %" PRIuPTR, &frameind, &nodeind) ;
data/golly-3.3/gollybase/jvnalgo.cpp:62:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(canonrule, "%s", RULE_STRINGS[current_rule]);
data/golly-3.3/gollybase/readpattern.cpp:445:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(rule, "%s:T%d,%d", ltlrule, wd, ht);
data/golly-3.3/gollybase/readpattern.cpp:447:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(rule, "%s:P%d,%d", ltlrule, wd, ht);
data/golly-3.3/gollybase/readpattern.cpp:544:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                  sprintf(ltlrule, "%s", ruleptr);
data/golly-3.3/gollybase/readpattern.cpp:562:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s:T%d,%d", imp.getrule(), wd, ht);
data/golly-3.3/gollybase/readpattern.cpp:564:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s:P%d,%d", imp.getrule(), wd, ht);
data/golly-3.3/gollybase/readpattern.cpp:764:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(file_err_str, "Can't open pattern file:\n%s", filename);
data/golly-3.3/gollybase/ruletreealgo.cpp:68:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(path, "%s%s.tree", dir, rule) ;
data/golly-3.3/gollybase/ruletreealgo.cpp:130:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(strbuf, defaultRuleData[lineno]) ;
data/golly-3.3/gollybase/ruletreealgo.cpp:216: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(rule,rule_name.c_str()) ;
data/golly-3.3/gollybase/writepattern.cpp:127:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(outbuff, "x = %u, y = %u, rule = %s\n", wd, ht, imp.getrule());
data/golly-3.3/gui-common/select.cpp:1224:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textptr, "x = %u, y = %u, rule = %s", wd, ht, currlayer->algo->getrule());
data/golly-3.3/gui-common/view.cpp:1440:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s", pastelayer->algo->getrule());
data/golly-3.3/gui-common/view.cpp:1447:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s:%c%d,%d", rule, topology, newwd, newht);
data/golly-3.3/gui-web/main.cpp:1439:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(text, "Paste Here (%s)", GetPasteMode());
data/golly-3.3/gui-web/zlib/gzguts.h:78:18:  [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.
#    if !defined(vsnprintf) && !defined(NO_vsnprintf)
data/golly-3.3/gui-web/zlib/gzguts.h:80:18:  [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.
#         define vsnprintf _vsnprintf
data/golly-3.3/gui-web/zlib/gzguts.h:103:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf _snprintf
data/golly-3.3/gui-web/zlib/gzguts.h:103:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf _snprintf
data/golly-3.3/gui-web/zlib/gzlib.c:216:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(state->path, path);
data/golly-3.3/gui-web/zlib/gzlib.c:610: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(state->msg, state->path);
data/golly-3.3/gui-web/zlib/gzlib.c:612: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(state->msg, msg);
data/golly-3.3/gui-web/zlib/gzwrite.c:346:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)vsprintf((char *)(state->in), format, va);
data/golly-3.3/gui-web/zlib/gzwrite.c:350:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = vsprintf((char *)(state->in), format, va);
data/golly-3.3/gui-web/zlib/gzwrite.c:354:11:  [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.
    (void)vsnprintf((char *)(state->in), size, format, va);
data/golly-3.3/gui-web/zlib/gzwrite.c:357:11:  [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.
    len = vsnprintf((char *)(state->in), size, format, va);
data/golly-3.3/gui-web/zlib/gzwrite.c:431:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf((char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8,
data/golly-3.3/gui-web/zlib/gzwrite.c:436:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    len = sprintf((char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8,
data/golly-3.3/gui-web/zlib/gzwrite.c:441:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf((char *)(state->in), size, format, a1, a2, a3, a4, a5, a6, a7, a8,
data/golly-3.3/gui-web/zlib/gzwrite.c:445:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = snprintf((char *)(state->in), size, format, a1, a2, a3, a4, a5, a6,
data/golly-3.3/gui-web/zlib/zutil.h:224:39:  [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 Trace(x) {if (z_verbose>=0) fprintf x ;}
data/golly-3.3/gui-web/zlib/zutil.h:225:39:  [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 Tracev(x) {if (z_verbose>0) fprintf x ;}
data/golly-3.3/gui-web/zlib/zutil.h:226:40:  [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 Tracevv(x) {if (z_verbose>1) fprintf x ;}
data/golly-3.3/gui-web/zlib/zutil.h:227: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.
#  define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
data/golly-3.3/gui-web/zlib/zutil.h:228:49:  [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 Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
data/golly-3.3/gui-wx/wxlua.cpp:69:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "%s error: bad rgb value (%d,%d,%d)", cmd, r, g, b);   \
data/golly-3.3/gui-wx/wxoverlay.cpp:2654: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(buffer, args);
data/golly-3.3/gui-wx/wxoverlay.cpp:5356: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(copy, args);
data/golly-3.3/gui-wx/wxperl.cpp:446:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "Bad rgb value in %s (%d,%d,%d).", cmd, r, g, b);  \
data/golly-3.3/gui-wx/wxpython.cpp:324:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(msg, "Bad rgb value in %s: %d,%d,%d", cmd, r, g, b);   \
data/golly-3.3/gui-wx/wxselect.cpp:1311:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(textptr, "x = %u, y = %u, rule = %s", wd, ht, currlayer->algo->getrule());
data/golly-3.3/gui-wx/wxstatus.cpp:233:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p, "%s%9.7fe+%.0f", sign, d, exp); // 9.9999999e+99
data/golly-3.3/gui-wx/wxstatus.cpp:235:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p, "%s%8.6fe+%.0f", sign, d, exp); // 9.999999e+999
data/golly-3.3/gui-wx/wxstatus.cpp:237:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p, "%s%7.5fe+%.0f", sign, d, exp); // 9.99999e+9999
data/golly-3.3/gui-wx/wxstatus.cpp:239:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p, "%s%6.4fe+%.0f", sign, d, exp); // 9.9999e+99999
data/golly-3.3/gui-wx/wxstatus.cpp:244:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p, "%s%5.3fe+%.0f", sign, d, exp);
data/golly-3.3/gui-wx/wxview.cpp:1031:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s", pastelayer->algo->getrule());
data/golly-3.3/gui-wx/wxview.cpp:1038:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(rule, "%s:%c%d,%d", rule, topology, newwd, newht);
data/golly-3.3/lua/lauxlib.h:234:10:  [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, (s), (p)), fflush(stderr))
data/golly-3.3/lua/liolib.c:59:40:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define l_popen(L,c,m)		(fflush(NULL), popen(c,m))
data/golly-3.3/lua/liolib.c:627:19:  [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, LUA_INTEGER_FMT,
data/golly-3.3/lua/liolib.c:629:19:  [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, LUA_NUMBER_FMT,
data/golly-3.3/lua/lobject.c:286:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buff, s);  /* copy string to buffer */
data/golly-3.3/lua/loslib.c:122:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(b, LUA_TMPNAMTEMPLATE); \
data/golly-3.3/lua/loslib.c:143:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  int stat = system(cmd);
data/golly-3.3/lua/lstrlib.c:1010: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(form + l - 1, lenmod);
data/golly-3.3/lua/luaconf.h:606:29:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define l_sprintf(s,sz,f,i)	snprintf(s,sz,f,i)
data/golly-3.3/lua/luaconf.h:608:42:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define l_sprintf(s,sz,f,i)	((void)(sz), sprintf(s,f,i))
data/golly-3.3/gui-common/MiniZip/crypt.h:113:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand((unsigned)(time(NULL) ^ ZCR_SEED2));
data/golly-3.3/gui-wx/wxgolly.cpp:265:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(0));
data/golly-3.3/gui-wx/wxoverlay.cpp:1752:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(52315);
data/golly-3.3/gui-wx/wxoverlay.cpp:1773:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(0));
data/golly-3.3/lua/lmathlib.c:28:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define l_rand()	random()
data/golly-3.3/lua/lmathlib.c:29:20:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define l_srand(x)	srandom(x)
data/golly-3.3/lua/lmathlib.c:33:20:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define l_srand(x)	srand(x)
data/golly-3.3/lua/loadlib.c:294:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *path = getenv(nver);  /* use versioned name */
data/golly-3.3/lua/loadlib.c:296:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    path = getenv(envname);  /* try unversioned name */
data/golly-3.3/lua/loslib.c:131:33:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define lua_tmpnam(b,e)		{ e = (tmpnam(b) == NULL); }
data/golly-3.3/lua/loslib.c:178: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.
  lua_pushstring(L, getenv(luaL_checkstring(L, 1)));  /* if NULL push nil */
data/golly-3.3/Rules/TableGenerators/make-ruletable.cpp:306: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.
   const char VARS[52]={'a','b','c','d','e','f','g','h','i','j',
data/golly-3.3/Rules/TreeGenerators/LifeOnTheEdge.cpp:42: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[256*10] ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheEdge.cpp:43:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", at) ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheEdge.cpp:46:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheSlope.cpp:48: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[256*10] ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheSlope.cpp:49:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", at) ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheSlope.cpp:52:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/Rules/TreeGenerators/RuleTreeGen.cpp:38: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[256*10] ;
data/golly-3.3/Rules/TreeGenerators/RuleTreeGen.cpp:39:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%d", at) ;
data/golly-3.3/Rules/TreeGenerators/RuleTreeGen.cpp:42:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/cmdline/bgolly.cpp:48: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.
      static unsigned char dummy[256];
data/golly-3.3/cmdline/bgolly.cpp:193: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 tmpfilename[256] ;
data/golly-3.3/cmdline/bgolly.cpp:198: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(p, "%d", fc) ;
data/golly-3.3/cmdline/bgolly.cpp:258: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 sbuf[MAXCMDLENGTH+2] ;
data/golly-3.3/cmdline/bgolly.cpp:495:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      cmdfile = fopen(testscript, "r") ;
data/golly-3.3/cmdline/bgolly.cpp:498: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 cmdline[MAXCMDLENGTH + 10] ;
data/golly-3.3/cmdline/bgolly.cpp:539:40:  [2] (integer) atol:
  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 *)options[i].data = atol(argv[1]) ;
data/golly-3.3/cmdline/bgolly.cpp:556: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.
             *(char **)options[i].data = argv[1] ;
data/golly-3.3/gollybase/bigint.cpp:46:16:  [2] (integer) atol:
  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).
      long x = atol(s+2) ;
data/golly-3.3/gollybase/bigint.cpp:87: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(r, p, sizeof(int) * (p[0] + 1)) ;
data/golly-3.3/gollybase/generationsalgo.cpp:399: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 bits[ALL3X3] ;
data/golly-3.3/gollybase/generationsalgo.cpp:639: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 states[4] ;
data/golly-3.3/gollybase/generationsalgo.cpp:641:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(states, "%d", maxCellStates) ;
data/golly-3.3/gollybase/generationsalgo.cpp:728: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 tidystring[MAXRULESIZE] ;  // tidy version of rule string
data/golly-3.3/gollybase/generationsalgo.h:32: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 canonrule[MAXRULESIZE] ;      // canonical version of valid rule passed into setrule
data/golly-3.3/gollybase/generationsalgo.h:44: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.
   const char *rule_letters[4] ;      // valid rule letters per neighbor count
data/golly-3.3/gollybase/generationsalgo.h:46: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 rule3x3[ALL3X3] ;             // all 3x3 cell mappings 012345678->4'
data/golly-3.3/gollybase/ghashbase.cpp:92: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(statusline, "Resizing hash to %" PRIuPTR "...", nhashprime) ;
data/golly-3.3/gollybase/ghashbase.cpp:128:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/ghashbase.cpp:1298: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(statusline, "GC #%d(%d)", gccount, gcstep) ;
data/golly-3.3/gollybase/ghashbase.cpp:1300: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(statusline, "GC #%d", gccount) ;
data/golly-3.3/gollybase/ghashbase.cpp:1343: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(statusline+strlen(statusline), " freed %g percent (%" PRIuPTR ").",
data/golly-3.3/gollybase/ghashbase.cpp:1437:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline, "Changing increment...") ;
data/golly-3.3/gollybase/ghashbase.cpp:1465:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/ghashbase.cpp:1589:20:  [2] (integer) atol:
  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).
	       long cnt = atol(p) ;
data/golly-3.3/gollybase/ghashbase.cpp:1779: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 progressmsg[80] ;
data/golly-3.3/gollybase/ghashbase.cpp:1790:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(progressmsg, "File size: %.2f MB", double(siz) / 1048576.0) ;
data/golly-3.3/gollybase/ghashbase.cpp:1812:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(progressmsg, "File size: %.2f MB", double(siz) / 1048576.0) ;
data/golly-3.3/gollybase/ghashdraw.cpp:26: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 ipixbuf[ibufsize] ;     // shared buffer for pixels
data/golly-3.3/gollybase/ghashdraw.cpp:126:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&pixbuf[i], pixbuf, rowoff);
data/golly-3.3/gollybase/hlifealgo.cpp:50: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 shortpop[65536] ;
data/golly-3.3/gollybase/hlifealgo.cpp:152: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(statusline, "Resizing hash to %" PRIuPTR "...", nhashprime) ;
data/golly-3.3/gollybase/hlifealgo.cpp:188:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/hlifealgo.cpp:1421: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(statusline, "GC #%d(%d)", gccount, gcstep) ;
data/golly-3.3/gollybase/hlifealgo.cpp:1423: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(statusline, "GC #%d", gccount) ;
data/golly-3.3/gollybase/hlifealgo.cpp:1468: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(statusline+strlen(statusline), " freed %g percent (%" PRIuPTR ").",
data/golly-3.3/gollybase/hlifealgo.cpp:1524:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline, "Changing increment...") ;
data/golly-3.3/gollybase/hlifealgo.cpp:1552:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/hlifealgo.cpp:1710:20:  [2] (integer) atol:
  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).
	       long cnt = atol(p) ;
data/golly-3.3/gollybase/hlifealgo.cpp:1950: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 progressmsg[80] ;
data/golly-3.3/gollybase/hlifealgo.cpp:1961:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(progressmsg, "File size: %.2f MB", double(siz) / 1048576.0) ;
data/golly-3.3/gollybase/hlifealgo.cpp:1996:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(progressmsg, "File size: %.2f MB", double(siz) / 1048576.0) ;
data/golly-3.3/gollybase/hlifedraw.cpp:23: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 pixbuf[bmsize*bmsize*4];
data/golly-3.3/gollybase/hlifedraw.cpp:60: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 compress4x4[256] ;
data/golly-3.3/gollybase/jvnalgo.cpp:61: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.
   static char canonrule[MAXRULESIZE];
data/golly-3.3/gollybase/lifealgo.cpp:258: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 char bounds[64];
data/golly-3.3/gollybase/lifealgo.cpp:260:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":P%u,%u", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:263:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":S%u", gridwd);
data/golly-3.3/gollybase/lifealgo.cpp:266:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":C%u,%u", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:271:13:  [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(bounds, ":K%u*+1,%u", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:273:13:  [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(bounds, ":K%u*,%u", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:279:13:  [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(bounds, ":K%u,%u*+1", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:281:13:  [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(bounds, ":K%u,%u*", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:285:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":T%u%d,%u", gridwd, hshift, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:288:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":T%u+%d,%u", gridwd, hshift, gridht);
data/golly-3.3/gollybase/lifealgo.cpp:291:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":T%u,%u%d", gridwd, gridht, vshift);
data/golly-3.3/gollybase/lifealgo.cpp:294:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":T%u,%u+%d", gridwd, gridht, vshift);
data/golly-3.3/gollybase/lifealgo.cpp:297:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(bounds, ":T%u,%u", gridwd, gridht);
data/golly-3.3/gollybase/lifealgo.h:201: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.
   unsigned char defr[256], defg[256], defb[256];
data/golly-3.3/gollybase/liferules.cpp:358: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 bits[ALL3X3] ;
data/golly-3.3/gollybase/liferules.cpp:516: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(canonrule, "W%d", wolfram) ;
data/golly-3.3/gollybase/liferules.cpp:762: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 tidystring[MAXRULESIZE] ;  // tidy version of rule string
data/golly-3.3/gollybase/liferules.h:34: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 rule0[ALL4X4] ;      // rule table for even gens if rule has B0 but not Smax,
data/golly-3.3/gollybase/liferules.h:36: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 rule1[ALL4X4] ;      // rule table for odd gens if rule has B0 but not Smax
data/golly-3.3/gollybase/liferules.h:53: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 canonrule[MAXRULESIZE] ;      // canonical version of valid rule passed into setrule
data/golly-3.3/gollybase/liferules.h:66: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.
   const char *rule_letters[4] ;      // valid rule letters per neighbor count
data/golly-3.3/gollybase/liferules.h:68: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 rule3x3[ALL3X3] ;             // all 3x3 cell mappings 012345678->4'
data/golly-3.3/gollybase/ltlalgo.cpp:211:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, src, xbytes);
data/golly-3.3/gollybase/ltlalgo.cpp:1827:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1837:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1850:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1860:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1873:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1883:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1896:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:1906:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, src, numcols);
data/golly-3.3/gollybase/ltlalgo.cpp:2397:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(canonrule, "R%d,C%d,M%d,S%d..%d,B%d..%d,N%c",
data/golly-3.3/gollybase/ltlalgo.cpp:2400:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(canonrule, "R%d,C%d,M%d,S%d..%d,B%d..%d,N%c:%c%d,%d",
data/golly-3.3/gollybase/ltlalgo.h:48: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 canonrule[MAXRULESIZE];        // canonical version of valid rule passed into setrule
data/golly-3.3/gollybase/ltldraw.cpp:20: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 ipixbuf[ibufsize];     // shared buffer for pixels
data/golly-3.3/gollybase/ltldraw.cpp:59:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&pixbuf[i], pixbuf, rowoff);
data/golly-3.3/gollybase/qlifealgo.cpp:22: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 ai[129] ;
data/golly-3.3/gollybase/qlifedraw.cpp:16: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 pixbuf[bmsize*bmsize*4];
data/golly-3.3/gollybase/readpattern.cpp:34: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 filebuff[BUFFSIZE];
data/golly-3.3/gollybase/readpattern.cpp:419: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 ltlrule[MAXRULESIZE];       // the Larger than Life rule (without any suffix)
data/golly-3.3/gollybase/readpattern.cpp:438: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.
                char rule[MAXRULESIZE];
data/golly-3.3/gollybase/readpattern.cpp:560:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char rule[MAXRULESIZE];
data/golly-3.3/gollybase/readpattern.cpp:599:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/golly-3.3/gollybase/readpattern.cpp:647: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 line[LINESIZE + 1] ;
data/golly-3.3/gollybase/readpattern.cpp:763: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.
   static char file_err_str[2048];
data/golly-3.3/gollybase/readpattern.cpp:775: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).
   pattfile = fopen(filename, "r") ;
data/golly-3.3/gollybase/readpattern.cpp:798: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).
   pattfile = fopen(filename, "r") ;
data/golly-3.3/gollybase/readpattern.cpp:846: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).
   pattfile = fopen(filename, "r") ;
data/golly-3.3/gollybase/readpattern.cpp:850: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 line[LINESIZE + 1] ;
data/golly-3.3/gollybase/ruleloaderalgo.cpp:30:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(path.c_str(), "rt");
data/golly-3.3/gollybase/ruleloaderalgo.cpp:79: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_buffer[MAX_LINE_LEN+1];
data/golly-3.3/gollybase/ruletable_algo.cpp:192:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   return fopen(path.c_str(), "rt");
data/golly-3.3/gollybase/ruletable_algo.cpp:217: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 line_buffer[MAX_LINE_LEN];
data/golly-3.3/gollybase/ruletreealgo.cpp:72:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   return fopen(path, "r") ;
data/golly-3.3/gollybase/ruletreealgo.cpp:82: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 strbuf[MAXFILELEN+1] ;
data/golly-3.3/gollybase/ruletreealgo.h:30: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 rule[MAXRULESIZE] ;
data/golly-3.3/gollybase/util.cpp:96:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen("trace.txt", "w") ;
data/golly-3.3/gollybase/util.cpp:201: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 perfstatusline[200] ;
data/golly-3.3/gollybase/util.cpp:216: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(perfstatusline, "RATE noderate %g depth %g half %g",
data/golly-3.3/gollybase/util.cpp:242: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(perfstatusline,
data/golly-3.3/gollybase/writepattern.cpp:23: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 outbuff[BUFFSIZE];
data/golly-3.3/gollybase/writepattern.cpp:51: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 numstr[32];
data/golly-3.3/gollybase/writepattern.cpp:54: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(numstr, "%u", run);
data/golly-3.3/gollybase/writepattern.cpp:188: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.
               char msg[128];
data/golly-3.3/gollybase/writepattern.cpp:191:16:  [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(msg, "File size: %.2f MB", os.tellp() / 1048576.0);
data/golly-3.3/gollybase/writepattern.cpp:237:43:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   gzbuf(const char *path) : file(NULL) { open(path); }
data/golly-3.3/gollybase/writepattern.cpp:240:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   gzbuf *open(const char *path)
data/golly-3.3/gollybase/writepattern.cpp:301:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/golly-3.3/gollybase/writepattern.cpp:330:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      streambuf = filebuf.open(filename, std::ios_base::out);
data/golly-3.3/gollybase/writepattern.cpp:335:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      streambuf = gzbuf.open(filename);
data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp:496: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 s[4];    // room for 0..100
data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp:497: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(s, "%d", randomfill);
data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp:1973: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.
    unsigned char rgbadata[32*4*32] = {0};      // all pixels are initially transparent
data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp:2054: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.
    unsigned char rgbadata[16*4*16] = {0};  // all pixels are initially transparent
data/golly-3.3/gui-common/MiniZip/crypt.h:101: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.
    unsigned char header[RAND_HEAD_LEN-2]; /* random header */
data/golly-3.3/gui-common/MiniZip/ioapi.c:82: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).
        file = fopen(filename, mode_fopen);
data/golly-3.3/gui-common/MiniZip/unzip.c:851:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char szCurrentFileName[UNZ_MAXFILENAMEINZIP+1];
data/golly-3.3/gui-common/MiniZip/unzip.c:1050: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 source[12];
data/golly-3.3/gui-common/MiniZip/zip.c:103: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 data[SIZEDATA_INDATABLOCK];
data/golly-3.3/gui-common/MiniZip/zip.c:270: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.
    unsigned char buf[4];
data/golly-3.3/gui-common/MiniZip/zip.c:874: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.
        unsigned char bufHead[RAND_HEAD_LEN];
data/golly-3.3/gui-common/algos.cpp:640:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(icon->pxldata, nexticon, iconbytes);
data/golly-3.3/gui-common/algos.cpp:657:25:  [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(icon->pxldata, nexticon, iconbytes);
data/golly-3.3/gui-common/algos.h:59: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.
    unsigned char algor[256];
data/golly-3.3/gui-common/algos.h:60: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.
    unsigned char algog[256];
data/golly-3.3/gui-common/algos.h:61: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.
    unsigned char algob[256];
data/golly-3.3/gui-common/control.cpp:421: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 s[128];
data/golly-3.3/gui-common/control.cpp:422: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(s, "%g gens in %g secs (%g gens/sec).", gens, secs, gens/secs);
data/golly-3.3/gui-common/control.cpp:1040:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(tablepath.c_str(), "r");
data/golly-3.3/gui-common/control.cpp:1043:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-common/control.cpp:1065:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(treepath.c_str(), "r");
data/golly-3.3/gui-common/control.cpp:1068:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-common/control.cpp:1106: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).
    FILE* outfile = fopen(rulepath.c_str(), "w");
data/golly-3.3/gui-common/file.cpp:448: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.
            char filename[256];
data/golly-3.3/gui-common/file.cpp:481:31:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    FILE* f = fopen(outfile.c_str(), "wb");
data/golly-3.3/gui-common/file.cpp:601: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).
        FILE* f = fopen(outfile.c_str(), "wb");
data/golly-3.3/gui-common/file.cpp:677: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.
            char entryname[256];
data/golly-3.3/gui-common/file.cpp:837:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(htmlfile.c_str(), "w");
data/golly-3.3/gui-common/file.cpp:1150:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(currlayer->tempstart.c_str(), "w");
data/golly-3.3/gui-common/layer.cpp:416:29:  [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(icon->pxldata, srcicons[i]->pxldata, iconbytes);
data/golly-3.3/gui-common/layer.cpp:1037:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(path.c_str(), "r");
data/golly-3.3/gui-common/layer.cpp:1043:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(path.c_str(), "r");
data/golly-3.3/gui-common/layer.cpp:1196: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.
                        char s[128];
data/golly-3.3/gui-common/layer.cpp:1197:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(s, "The XPM header string on line %d in ", *linenum);
data/golly-3.3/gui-common/layer.cpp:1232: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.
                        char s[128];
data/golly-3.3/gui-common/layer.cpp:1233:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(s, "The XPM data string on line %d in ", *linenum);
data/golly-3.3/gui-common/layer.cpp:1246: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.
                        char s[128];
data/golly-3.3/gui-common/layer.cpp:1247:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(s, "The XPM data string on line %d in ", *linenum);
data/golly-3.3/gui-common/layer.cpp:1263: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.
                            char s[128];
data/golly-3.3/gui-common/layer.cpp:1264:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(s, "The XPM data string on line %d in ", *linenum);
data/golly-3.3/gui-common/layer.cpp:1313: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.
                char s[128];
data/golly-3.3/gui-common/layer.cpp:1314: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.
                sprintf(s, "The triangular icons specified on line %d in ", *linenum);
data/golly-3.3/gui-common/layer.cpp:1334:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char s[128];
data/golly-3.3/gui-common/layer.cpp:1335:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s, "The XPM icon data starting on line %d in ", xpmstarted);
data/golly-3.3/gui-common/layer.cpp:1381: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 linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-common/layer.h:90: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.
    unsigned char cellr[256];     // red components for states 0..255
data/golly-3.3/gui-common/layer.h:91: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.
    unsigned char cellg[256];     // green components for states 0..255
data/golly-3.3/gui-common/layer.h:92: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.
    unsigned char cellb[256];     // blue components for states 0..255
data/golly-3.3/gui-common/prefs.cpp:50: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 initrule[256] = "B3/S23";      // initial rule
data/golly-3.3/gui-common/prefs.cpp:162:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefsfile.c_str(), "w");
data/golly-3.3/gui-common/prefs.cpp:355:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefsfile.c_str(), "r");
data/golly-3.3/gui-common/prefs.cpp:362: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[PREF_LINE_SIZE];
data/golly-3.3/gui-common/render.cpp: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.
unsigned char pxldata[maxbytes];
data/golly-3.3/gui-common/render.cpp:435:25:  [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(&pxldata[pos], &iconatlas[ipos], iconwd);
data/golly-3.3/gui-common/render.cpp:501:25:  [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(&pxldata[pos+i], &pxldata[pos], 4);
data/golly-3.3/gui-common/render.cpp:506:25:  [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(&pxldata[pos+i], &pxldata[pos], cellsize);
data/golly-3.3/gui-common/select.cpp:1155: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 numstr[32];
data/golly-3.3/gui-common/select.cpp:1158:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(numstr, "%u", run);
data/golly-3.3/gui-common/status.cpp:82: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 scalestr[32];
data/golly-3.3/gui-common/status.cpp:85:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(scalestr, "2^%d:1", -mag);
data/golly-3.3/gui-common/status.cpp:87:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(scalestr, "1:%d", 1 << mag);
data/golly-3.3/gui-common/status.cpp:90: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 stepstr[32];
data/golly-3.3/gui-common/status.cpp:93:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(stepstr, "Delay=%gs", (double)GetCurrentDelay() / 1000.0);
data/golly-3.3/gui-common/status.cpp:95:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(stepstr, "Step=%d^%d", currlayer->currbase, currlayer->currexpo);
data/golly-3.3/gui-common/status.cpp:193:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[32];
data/golly-3.3/gui-common/status.cpp:198:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(p, "%g", d);
data/golly-3.3/gui-common/status.cpp:205:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(p, "%.f", d);
data/golly-3.3/gui-common/undo.cpp:1473:9:  [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(cellarray, history->cellarray, numchanges * sizeof(cell_change));
data/golly-3.3/gui-common/undo.cpp:1502:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newchange->cellinfo, change->cellinfo, bytes);
data/golly-3.3/gui-common/undo.cpp:1553:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newchange->cellinfo, change->cellinfo, bytes);
data/golly-3.3/gui-common/utils.cpp:241: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 n[32];
data/golly-3.3/gui-common/utils.cpp:243: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(n, "%d", nextname++);
data/golly-3.3/gui-common/utils.cpp:253:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(filepath.c_str(), "r");
data/golly-3.3/gui-common/utils.cpp:288: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* infile = fopen(inpath.c_str(), "r");
data/golly-3.3/gui-common/utils.cpp:293:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-common/utils.cpp:304:25:  [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* outfile = fopen(outpath.c_str(), "w");
data/golly-3.3/gui-common/view.cpp:918: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).
    FILE* tmpfile = fopen(clipfile.c_str(), "w");
data/golly-3.3/gui-common/view.cpp:919:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (tmpfile) {
data/golly-3.3/gui-common/view.cpp:920:33:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (fputs(data.c_str(), tmpfile) == EOF) {
data/golly-3.3/gui-common/view.cpp:921:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            fclose(tmpfile);
data/golly-3.3/gui-common/view.cpp:929:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fclose(tmpfile);
data/golly-3.3/gui-common/view.cpp:992:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* rulefile = fopen(rulepath.c_str(), "w");
data/golly-3.3/gui-common/view.cpp:1439: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.
            char rule[MAXRULESIZE];
data/golly-3.3/gui-web/main.cpp:510:25:  [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* outfile = fopen(currlayer->tempstart.c_str(), "w");
data/golly-3.3/gui-web/main.cpp:849:25:  [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* outfile = fopen(commfile, "w");
data/golly-3.3/gui-web/main.cpp:944:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[128];
data/golly-3.3/gui-web/main.cpp:945:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Maximum hash memory must be an integer from %d to %d.", MIN_MEM_MB, MAX_MEM_MB);
data/golly-3.3/gui-web/main.cpp:1438:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char text[32];
data/golly-3.3/gui-web/main.cpp:1448:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char text[32];
data/golly-3.3/gui-web/main.cpp:1449:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(text, "Random Fill (%d%%)", randomfill);
data/golly-3.3/gui-web/webcalls.cpp:88:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char rgb[32];
data/golly-3.3/gui-web/webcalls.cpp:89:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(rgb, "rgb(%d,%d,%d)", r, g, b);
data/golly-3.3/gui-web/webcalls.cpp:222:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* textfile = fopen(filepath, "r");
data/golly-3.3/gui-web/webcalls.cpp:226:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-web/webcalls.cpp:355:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* helpfile = fopen(currpage.c_str(), "r");
data/golly-3.3/gui-web/webcalls.cpp:359:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-web/zlib/crc32.c:145: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).
        out = fopen("crc32.h", "w");
data/golly-3.3/gui-web/zlib/gzguts.h:39:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define open _open
data/golly-3.3/gui-web/zlib/gzlib.c:36:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024];
data/golly-3.3/gui-web/zlib/gzlib.c:65:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "unknown win32 error (%ld)", error);
data/golly-3.3/gui-web/zlib/gzlib.c:245:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open((const char *)path, oflag, 0666));
data/golly-3.3/gui-web/zlib/gzlib.c:296: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(path, "<fd:%d>", fd);   /* for debugging */
data/golly-3.3/gui-web/zlib/gzlib.c:611:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(state->msg, ": ");
data/golly-3.3/gui-web/zlib/gzread.c:158:9:  [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->x.next, strm->next_in, strm->avail_in);
data/golly-3.3/gui-web/zlib/gzread.c:332:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf, state->x.next, n);
data/golly-3.3/gui-web/zlib/gzread.c:391: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.
    unsigned char buf[1];
data/golly-3.3/gui-web/zlib/gzread.c:531:9:  [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(buf, state->x.next, n);
data/golly-3.3/gui-web/zlib/gzwrite.c:218:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(state->in + have, buf, copy);
data/golly-3.3/gui-web/zlib/gzwrite.c:250: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.
    unsigned char buf[1];
data/golly-3.3/gui-web/zlib/inflate.c:623: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.
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
data/golly-3.3/gui-web/zlib/inflate.c:1382: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.
    unsigned char buf[4];       /* to restore bit buffer to byte string */
data/golly-3.3/gui-web/zlib/trees.c:330: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 *header = fopen("trees.h", "w");
data/golly-3.3/gui-web/zlib/zutil.c:17: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.
z_const char * const z_errmsg[10] = {
data/golly-3.3/gui-web/zlib/zutil.h:47: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.
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
data/golly-3.3/gui-web/zlib/zutil.h:107:6:  [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).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/golly-3.3/gui-web/zlib/zutil.h:184: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).
#  define F_OPEN(name, mode) fopen((name), (mode))
data/golly-3.3/gui-web/zlib/zutil.h:208:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define zmemcpy memcpy
data/golly-3.3/gui-wx/wxalgos.h:47: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.
    unsigned char algor[256];
data/golly-3.3/gui-wx/wxalgos.h:48: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.
    unsigned char algog[256];
data/golly-3.3/gui-wx/wxalgos.h:49: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.
    unsigned char algob[256];
data/golly-3.3/gui-wx/wxcontrol.cpp:39:32:  [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).
    #define OPENFILE(filepath) fopen(filepath.fn_str(),"r")
data/golly-3.3/gui-wx/wxcontrol.cpp:41:32:  [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).
    #define OPENFILE(filepath) fopen(filepath.mb_str(wxConvLocal),"r")
data/golly-3.3/gui-wx/wxcontrol.cpp:1640:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxcontrol.cpp:1677: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.
                    char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxcontrol.cpp:1736:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxcontrol.cpp:1760:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxfile.cpp:446: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.
                char buf[BUFFER_SIZE];
data/golly-3.3/gui-wx/wxfile.cpp:466: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.
                    char msg[128];
data/golly-3.3/gui-wx/wxfile.cpp:467:21:  [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(msg, "File size: %.2f MB", double(incount) / 1048576.0);
data/golly-3.3/gui-wx/wxgolly.cpp:205:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char appdir[2048];
data/golly-3.3/gui-wx/wxhelp.cpp:582: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.
                char buf[BUFFER_SIZE];
data/golly-3.3/gui-wx/wxhelp.cpp:602: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.
                    char msg[128];
data/golly-3.3/gui-wx/wxhelp.cpp:603:21:  [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(msg, "File size: %.2f MB", double(incount) / 1048576.0);
data/golly-3.3/gui-wx/wxlayer.cpp:48:32:  [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).
    #define OPENFILE(filepath) fopen(filepath.fn_str(),"r")
data/golly-3.3/gui-wx/wxlayer.cpp:50:32:  [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).
    #define OPENFILE(filepath) fopen(filepath.mb_str(wxConvLocal),"r")
data/golly-3.3/gui-wx/wxlayer.cpp:2151: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 linebuf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxlayer.cpp:2228:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[MAXLINELEN + 1];
data/golly-3.3/gui-wx/wxlayer.cpp:3462: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.
    unsigned char cellr[256];
data/golly-3.3/gui-wx/wxlayer.cpp:3463: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.
    unsigned char cellg[256];
data/golly-3.3/gui-wx/wxlayer.cpp:3464: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.
    unsigned char cellb[256];
data/golly-3.3/gui-wx/wxlayer.h:83: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.
    unsigned char cellr[256];     // red components for states 0..255
data/golly-3.3/gui-wx/wxlayer.h:84: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.
    unsigned char cellg[256];     // green components for states 0..255
data/golly-3.3/gui-wx/wxlayer.h:85: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.
    unsigned char cellb[256];     // blue components for states 0..255
data/golly-3.3/gui-wx/wxlua.cpp:68:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[128];                                                      \
data/golly-3.3/gui-wx/wxlua.cpp:1852:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:1853:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "getalgo error: bad index (%d)", index);
data/golly-3.3/gui-wx/wxlua.cpp:2090: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.
            char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2091:13:  [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(msg, "getview error: bad index (%d)", index);
data/golly-3.3/gui-wx/wxlua.cpp:2242:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2243:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "movelayer error: bad fromindex (%d)", fromindex);
data/golly-3.3/gui-wx/wxlua.cpp:2247:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2248:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "movelayer error: bad toindex (%d)", toindex);
data/golly-3.3/gui-wx/wxlua.cpp:2271:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2272:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "setlayer error: bad index (%d)", index);
data/golly-3.3/gui-wx/wxlua.cpp:2330:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2331:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "setname error: bad index (%d)", index);
data/golly-3.3/gui-wx/wxlua.cpp:2354:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2355:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "getname error: bad index (%d)", index);
data/golly-3.3/gui-wx/wxlua.cpp:2410: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.
                    char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2411:21:  [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(msg, "setcolors error: bad state (%d)", s);
data/golly-3.3/gui-wx/wxlua.cpp:2459:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxlua.cpp:2460:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "getcolors error: bad state (%d)", state);
data/golly-3.3/gui-wx/wxmain.cpp:198:43:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    normtool[OPEN_TOOL] =      XPM_BITMAP(open);
data/golly-3.3/gui-wx/wxoverlay.cpp:646: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(values, from.values, size * sizeof(*values));
data/golly-3.3/gui-wx/wxoverlay.cpp:647: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(exists, from.exists, size * sizeof(*exists));
data/golly-3.3/gui-wx/wxoverlay.cpp:2345:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[32];
data/golly-3.3/gui-wx/wxoverlay.cpp:2346: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(result, "%d %d", oldw, oldh);
data/golly-3.3/gui-wx/wxoverlay.cpp:2718:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:2758:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2791:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2809:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2816:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2834:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2852:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2879:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2945:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:2960:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:3143: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(result, "%d", numchanged);
data/golly-3.3/gui-wx/wxoverlay.cpp:3243:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:3244: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(result, "%hhu %hhu %hhu %hhu", oldr, oldg, oldb, olda);
data/golly-3.3/gui-wx/wxoverlay.cpp:3546:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:3547: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(result, "%hhu %hhu %hhu %hhu", p[0], p[1], p[2], p[3]);
data/golly-3.3/gui-wx/wxoverlay.cpp:3648:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char result[32];
data/golly-3.3/gui-wx/wxoverlay.cpp:3649:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "%d %d", ox, oy);
data/golly-3.3/gui-wx/wxoverlay.cpp:3671:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[32];
data/golly-3.3/gui-wx/wxoverlay.cpp:3672: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(result, "%d", oldwidth);
data/golly-3.3/gui-wx/wxoverlay.cpp:4656:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, lp, wbytes);
data/golly-3.3/gui-wx/wxoverlay.cpp:4915:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, wbytes);
data/golly-3.3/gui-wx/wxoverlay.cpp:4927:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, pixmap, w * h * 4);
data/golly-3.3/gui-wx/wxoverlay.cpp:4935:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, wbytes);
data/golly-3.3/gui-wx/wxoverlay.cpp:4986:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[64];
data/golly-3.3/gui-wx/wxoverlay.cpp:4987: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(result, "%d %d %d %d", clipptr->xbb, clipptr->ybb, clipptr->wbb, clipptr->hbb);
data/golly-3.3/gui-wx/wxoverlay.cpp:5127:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(pixmap, clipptr->cdata, w * h * 4);
data/golly-3.3/gui-wx/wxoverlay.cpp:5215:37:  [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(lp, ldata, w << 2);
data/golly-3.3/gui-wx/wxoverlay.cpp:5276:29:  [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(lp, ldata, w << 2);
data/golly-3.3/gui-wx/wxoverlay.cpp:5441:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(pixmap, clipptr->cdata, w * h * 4);
data/golly-3.3/gui-wx/wxoverlay.cpp:5530:37:  [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(lp, ldata, w << 2);
data/golly-3.3/gui-wx/wxoverlay.cpp:5592:29:  [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(lp, ldata, w << 2);
data/golly-3.3/gui-wx/wxoverlay.cpp:5733:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lp, ldata, w << 2);
data/golly-3.3/gui-wx/wxoverlay.cpp:6118:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[32];
data/golly-3.3/gui-wx/wxoverlay.cpp:6119: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(result, "%d %d", imgwd, imght);
data/golly-3.3/gui-wx/wxoverlay.cpp:6340:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[2];
data/golly-3.3/gui-wx/wxoverlay.cpp:6341: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(result, "%d", oldblend);
data/golly-3.3/gui-wx/wxoverlay.cpp:6436: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 ibuff[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:6437: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(ibuff, "%d", oldfontsize);
data/golly-3.3/gui-wx/wxoverlay.cpp:6463:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[8];
data/golly-3.3/gui-wx/wxoverlay.cpp:6466:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "left");
data/golly-3.3/gui-wx/wxoverlay.cpp:6468:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "right");
data/golly-3.3/gui-wx/wxoverlay.cpp:6470:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result, "center");
data/golly-3.3/gui-wx/wxoverlay.cpp:6504:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:6505: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(result, "%hhu %hhu %hhu %hhu", oldr, oldg, oldb, olda);
data/golly-3.3/gui-wx/wxoverlay.cpp:6767:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[48];
data/golly-3.3/gui-wx/wxoverlay.cpp:6768: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(result, "%d %d %d", bitmapwd, bitmapht, descent);
data/golly-3.3/gui-wx/wxoverlay.cpp:7151:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[16];
data/golly-3.3/gui-wx/wxoverlay.cpp:7152: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(result, "%d %d %d %d", oldaxx, oldaxy, oldayx, oldayy);
data/golly-3.3/gui-wx/wxoverlay.cpp:7408: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 clipname[20];
data/golly-3.3/gui-wx/wxoverlay.cpp:7420: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.
                sprintf(clipname, "h%d", i);
data/golly-3.3/gui-wx/wxoverlay.cpp:7437: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.
                sprintf(clipname, "E%d", i + mindepth);
data/golly-3.3/gui-wx/wxoverlay.cpp:7440: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.
                sprintf(clipname, "O%d", i + mindepth);
data/golly-3.3/gui-wx/wxoverlay.cpp:7456: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.
                sprintf(clipname, "L%d", i + mindepth);
data/golly-3.3/gui-wx/wxoverlay.cpp:9079: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.
    unsigned char val[28];
data/golly-3.3/gui-wx/wxoverlay.h:798: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 survivals[27];             // survival flags
data/golly-3.3/gui-wx/wxoverlay.h:799: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 births[27];                // birth flags
data/golly-3.3/gui-wx/wxperl.cpp:445:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[128];                                                  \
data/golly-3.3/gui-wx/wxperl.cpp:2123:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2124:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_getalgo index (%d).", index);
data/golly-3.3/gui-wx/wxperl.cpp:2463:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2464:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_movelayer fromindex (%d).", fromindex);
data/golly-3.3/gui-wx/wxperl.cpp:2468:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2469:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_movelayer toindex (%d).", toindex);
data/golly-3.3/gui-wx/wxperl.cpp:2491:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2492:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_setlayer index (%d).", index);
data/golly-3.3/gui-wx/wxperl.cpp:2553:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2554:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_setname index (%d).", index);
data/golly-3.3/gui-wx/wxperl.cpp:2576:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2577:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_getname index (%d).", index);
data/golly-3.3/gui-wx/wxperl.cpp:2635: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.
                    char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2636:21:  [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(msg, "Bad state in g_setcolors (%d).", s);
data/golly-3.3/gui-wx/wxperl.cpp:2684:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxperl.cpp:2685:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad g_getcolors state (%d).", state);
data/golly-3.3/gui-wx/wxperl.cpp:2912: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 s[2];        // room for char + NULL
data/golly-3.3/gui-wx/wxprefs.cpp:102: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 initrule[256] = "B3/S23";   // initial rule
data/golly-3.3/gui-wx/wxprefs.cpp:1389:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefspath.fn_str(), "w");
data/golly-3.3/gui-wx/wxprefs.cpp:1391:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefspath.mb_str(wxConvLocal), "w");
data/golly-3.3/gui-wx/wxprefs.cpp:1877:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefspath.fn_str(), "r");
data/golly-3.3/gui-wx/wxprefs.cpp:1879:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(prefspath.mb_str(wxConvLocal), "r");
data/golly-3.3/gui-wx/wxprefs.cpp:1887: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[PREF_LINE_SIZE];
data/golly-3.3/gui-wx/wxprefs.cpp:4868: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.
    unsigned char algor[256];
data/golly-3.3/gui-wx/wxprefs.cpp:4869: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.
    unsigned char algog[256];
data/golly-3.3/gui-wx/wxprefs.cpp:4870: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.
    unsigned char algob[256];
data/golly-3.3/gui-wx/wxpython.cpp:323:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[128];                                                 \
data/golly-3.3/gui-wx/wxpython.cpp:2064:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2065:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad getalgo index: %d", index);
data/golly-3.3/gui-wx/wxpython.cpp:2487:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2488:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad movelayer fromindex: %d", fromindex);
data/golly-3.3/gui-wx/wxpython.cpp:2492:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2493:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad movelayer toindex: %d", toindex);
data/golly-3.3/gui-wx/wxpython.cpp:2518:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2519:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad setlayer index: %d", index);
data/golly-3.3/gui-wx/wxpython.cpp:2581:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2582:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad setname index: %d", index);
data/golly-3.3/gui-wx/wxpython.cpp:2606:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2607:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad getname index: %d", index);
data/golly-3.3/gui-wx/wxpython.cpp:2662: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.
                    char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2663:21:  [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(msg, "Bad state in setcolors: %d", s);
data/golly-3.3/gui-wx/wxpython.cpp:2709:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg[64];
data/golly-3.3/gui-wx/wxpython.cpp:2710:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(msg, "Bad getcolors state: %d", state);
data/golly-3.3/gui-wx/wxpython.cpp:2948: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 s[2];        // room for char + NULL
data/golly-3.3/gui-wx/wxrender.cpp:107:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char prevr[256];               // previous red component of each state
data/golly-3.3/gui-wx/wxrender.cpp: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.
unsigned char prevg[256];               // previous green component of each state
data/golly-3.3/gui-wx/wxrender.cpp: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.
unsigned char prevb[256];               // previous blue component of each state
data/golly-3.3/gui-wx/wxrender.cpp:367:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dstptr, srcptr, *w * 4);
data/golly-3.3/gui-wx/wxrender.cpp:480:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dstptr, srcptr, tilew * 4);
data/golly-3.3/gui-wx/wxrender.cpp:543:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, source, itemwidth);
data/golly-3.3/gui-wx/wxrender.cpp:716:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&cellatlas[i * rowbytes], cellatlas, rowbytes);
data/golly-3.3/gui-wx/wxscript.cpp:1406:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char comments[maxcomments];
data/golly-3.3/gui-wx/wxselect.cpp:1242: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 numstr[32];
data/golly-3.3/gui-wx/wxselect.cpp:1245:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(numstr, "%u", run);
data/golly-3.3/gui-wx/wxstatus.cpp:195:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[32];
data/golly-3.3/gui-wx/wxstatus.cpp:205:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(p, "%.f", d);
data/golly-3.3/gui-wx/wxundo.cpp:1705:9:  [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(cellarray, history->cellarray, numchanges * sizeof(cell_change));
data/golly-3.3/gui-wx/wxundo.cpp:1734:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newchange->cellinfo, change->cellinfo, bytes);
data/golly-3.3/gui-wx/wxundo.cpp:1785:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newchange->cellinfo, change->cellinfo, bytes);
data/golly-3.3/gui-wx/wxutils.cpp:553:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, src, 3);
data/golly-3.3/gui-wx/wxutils.cpp:567:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(alpha, oldimg.GetAlpha(), alphaSize);
data/golly-3.3/gui-wx/wxview.cpp:723:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    wxFile tmpfile(mainptr->clipfile, wxFile::write);
data/golly-3.3/gui-wx/wxview.cpp:724:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ( !tmpfile.IsOpened() ) {
data/golly-3.3/gui-wx/wxview.cpp:728:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ( !tmpfile.Write(data.GetText()) ) {
data/golly-3.3/gui-wx/wxview.cpp:730:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        tmpfile.Close();
data/golly-3.3/gui-wx/wxview.cpp:733:5:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    tmpfile.Close();
data/golly-3.3/gui-wx/wxview.cpp:1030: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.
            char rule[MAXRULESIZE];
data/golly-3.3/lua/lapi.c:1295:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (upisopen(*up1)) (*up1)->u.open.touched = 1;
data/golly-3.3/lua/lauxlib.c:519: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(newbuff, B->b, B->n * sizeof(char));  /* copy original content */
data/golly-3.3/lua/lauxlib.c:531: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(b, s, l * sizeof(char));
data/golly-3.3/lua/lauxlib.c:638: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 buff[BUFSIZ];  /* area for reading file */
data/golly-3.3/lua/lauxlib.c:715:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    lf.f = fopen(filename, "r");
data/golly-3.3/lua/lauxlib.h: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 initb[LUAL_BUFFERSIZE];  /* initial buffer */
data/golly-3.3/lua/ldblib.c:382:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[5];
data/golly-3.3/lua/ldblib.c:404: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[250];
data/golly-3.3/lua/ldebug.c:630:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[LUA_IDSIZE];
data/golly-3.3/lua/ldo.c:162:50:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  for (up = L->openupval; up != NULL; up = up->u.open.next)
data/golly-3.3/lua/lfunc.c:66:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pp = &p->u.open.next;
data/golly-3.3/lua/lfunc.c:71:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  uv->u.open.next = *pp;  /* link it to list of open upvalues */
data/golly-3.3/lua/lfunc.c:72:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  uv->u.open.touched = 1;
data/golly-3.3/lua/lfunc.c:87:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    L->openupval = uv->u.open.next;  /* remove from 'open' list */
data/golly-3.3/lua/lfunc.h:42:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    } open;
data/golly-3.3/lua/lgc.c:323:59:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      for (uv = thread->openupval; uv != NULL; uv = uv->u.open.next) {
data/golly-3.3/lua/lgc.c:324:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (uv->u.open.touched) {
data/golly-3.3/lua/lgc.c:326:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          uv->u.open.touched = 0;
data/golly-3.3/lua/lgc.c:521:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        uv->u.open.touched = 1;  /* can be marked in 'remarkupvals' */
data/golly-3.3/lua/liolib.c:250:10:  [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).
  p->f = fopen(fname, mode);
data/golly-3.3/lua/liolib.c:262:10:  [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).
  p->f = fopen(filename, mode);
data/golly-3.3/lua/liolib.c:288:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  p->f = tmpfile();
data/golly-3.3/lua/liolib.c:394: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 buff[L_MAXLENNUM + 1];  /* +1 for ending '\0' */
data/golly-3.3/lua/liolib.c:444: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 decp[2];
data/golly-3.3/lua/llex.c:346: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 buff[UTF8BUFFSZ];
data/golly-3.3/lua/loadlib.c:169:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[MAX_PATH + 1];
data/golly-3.3/lua/loadlib.c:187: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[128];
data/golly-3.3/lua/loadlib.c:417:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(filename, "r");  /* try to open file */
data/golly-3.3/lua/lobject.c:282:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[L_MAXLENNUM + 1];
data/golly-3.3/lua/lobject.c:372: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 buff[MAXNUMBER2STR];
data/golly-3.3/lua/lobject.c:437:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[4*sizeof(void *) + 8]; /* should be enough space for a '%p' */
data/golly-3.3/lua/lobject.c:444:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[UTF8BUFFSZ];
data/golly-3.3/lua/lobject.c:485:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define addstr(a,b,l)	( memcpy(a,b,(l) * sizeof(char)), a += (l) )
data/golly-3.3/lua/lobject.c:491: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(out, source + 1, l * sizeof(char));
data/golly-3.3/lua/lobject.c:499: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(out, source + 1, l * sizeof(char));
data/golly-3.3/lua/lobject.c:503: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(out, source + 1 + l - bufflen, bufflen * sizeof(char));
data/golly-3.3/lua/lobject.c:519: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(out, POS, (LL(POS) + 1) * sizeof(char));
data/golly-3.3/lua/lopcodes.c:20: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.
LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
data/golly-3.3/lua/lopcodes.h:290: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.
LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
data/golly-3.3/lua/loslib.c:123:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        e = mkstemp(b); \
data/golly-3.3/lua/loslib.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 buff[LUA_TMPNAMBUFSIZE];
data/golly-3.3/lua/loslib.c:268: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(buff, conv, oplen);  /* copy valid option to buffer */
data/golly-3.3/lua/loslib.c:303: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 cc[4];  /* buffer for individual conversion specifiers */
data/golly-3.3/lua/lstate.c:79: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(b + p, &t, sizeof(t)); p += sizeof(t); }
data/golly-3.3/lua/lstate.c:82: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 buff[4 * sizeof(size_t)];
data/golly-3.3/lua/lstate.c:276: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(lua_getextraspace(L1), lua_getextraspace(g->mainthread),
data/golly-3.3/lua/lstring.c:187: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(getstr(ts), str, l * sizeof(char));
data/golly-3.3/lua/lstring.c:207: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(getstr(ts), str, l * sizeof(char));
data/golly-3.3/lua/lstrlib.c:135: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(p, s, l * sizeof(char)); p += l;
data/golly-3.3/lua/lstrlib.c:137:9:  [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, sep, lsep * sizeof(char));
data/golly-3.3/lua/lstrlib.c:141: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(p, s, l * sizeof(char));  /* last copy (not followed by separator) */
data/golly-3.3/lua/lstrlib.c:916: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 buff[10];
data/golly-3.3/lua/lstrlib.c:996: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(form, strfrmt, ((p - strfrmt) + 1) * sizeof(char));
data/golly-3.3/lua/lstrlib.c:1030: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 form[MAX_FORMAT];  /* to store the format ('%...') */
data/golly-3.3/lua/lstrlib.c:1146: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 buff[5 * sizeof(lua_Number)];  /* enough for any float type */
data/golly-3.3/lua/ltablib.c:263: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(buff, &c, sof(c) * sizeof(unsigned int));
data/golly-3.3/lua/ltablib.c:264: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(buff + sof(c), &t, sof(t) * sizeof(unsigned int));
data/golly-3.3/lua/ltm.c:29: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.
LUAI_DDEF const char *const luaT_typenames_[LUA_TOTALTAGS] = {
data/golly-3.3/lua/ltm.h:55: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.
LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS];
data/golly-3.3/lua/lua.h:454: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 short_src[LUA_IDSIZE]; /* (S) */
data/golly-3.3/lua/lundump.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[LUAI_MAXSHORTLEN];
data/golly-3.3/lua/lundump.c:220:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */
data/golly-3.3/lua/lvm.c:464: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(buff + tl, svalue(top - n), l * sizeof(char));
data/golly-3.3/lua/lvm.c:498:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[LUAI_MAXSHORTLEN];
data/golly-3.3/lua/lzio.c:60: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(b, z->p, m);
data/golly-3.3/Rules/TreeGenerators/LifeOnTheEdge.cpp:46: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).
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/Rules/TreeGenerators/LifeOnTheSlope.cpp:52: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).
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/Rules/TreeGenerators/RuleTreeGen.cpp:42: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).
         sprintf(buf+strlen(buf), " %d", recur(at-1)) ;
data/golly-3.3/cmdline/bgolly.cpp:167:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int off = (int)(strlen(s) - strlen(suff)) ;
data/golly-3.3/cmdline/bgolly.cpp:167:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int off = (int)(strlen(s) - strlen(suff)) ;
data/golly-3.3/cmdline/bgolly.cpp:199: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).
      p += strlen(p) ;
data/golly-3.3/cmdline/bgolly.cpp:300:42:  [1] (buffer) strlen:
  Does not handle 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 (strncmp(cmdline, cmd->verb, strlen(cmd->verb)) == 0 &&
data/golly-3.3/cmdline/bgolly.cpp:301: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).
             cmdline[strlen(cmd->verb)] <= ' ') {
data/golly-3.3/cmdline/bgolly.cpp:302:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (cmd->parseargs(cmdline+strlen(cmd->verb))) {
data/golly-3.3/cmdline/bgolly.cpp:586: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(outfilename) > 200)
data/golly-3.3/gollybase/generationsalgo.cpp:109: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).
   max_letters[1] = (int) strlen(rule_letters[0]) ;
data/golly-3.3/gollybase/generationsalgo.cpp:110: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).
   max_letters[2] = (int) strlen(rule_letters[1]) ;
data/golly-3.3/gollybase/generationsalgo.cpp:111: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).
   max_letters[3] = (int) strlen(rule_letters[2]) ;
data/golly-3.3/gollybase/generationsalgo.cpp:112: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).
   max_letters[4] = (int) strlen(rule_letters[3]) ;
data/golly-3.3/gollybase/generationsalgo.cpp:730:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *end = r + strlen(r) ;     // end of rule string
data/golly-3.3/gollybase/generationsalgo.cpp:747: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(rulestring) > (size_t) MAXRULESIZE) {
data/golly-3.3/gollybase/generationsalgo.cpp:773:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int maplen = (int) strlen(r) ;
data/golly-3.3/gollybase/generationsalgo.cpp:1023:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         size_t len = strlen(t) ;
data/golly-3.3/gollybase/generationsalgo.cpp:1072:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               spos = bpos + strlen(bpos) ;
data/golly-3.3/gollybase/generationsalgo.cpp:1078:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               bpos = spos + strlen(spos) ;
data/golly-3.3/gollybase/ghashbase.cpp:128: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).
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/ghashbase.cpp:1343: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).
     sprintf(statusline+strlen(statusline), " freed %g percent (%" PRIuPTR ").",
data/golly-3.3/gollybase/ghashbase.cpp:1465: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).
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/hlifealgo.cpp:188: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).
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/hlifealgo.cpp:1468: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).
     sprintf(statusline+strlen(statusline), " freed %g percent (%" PRIuPTR ").",
data/golly-3.3/gollybase/hlifealgo.cpp:1552: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).
     strcpy(statusline+strlen(statusline), " done.") ;
data/golly-3.3/gollybase/jvnalgo.cpp:65:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = (int)strlen(canonrule);
data/golly-3.3/gollybase/liferules.cpp:48: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).
   max_letters[1] = (int) strlen(rule_letters[0]) ;
data/golly-3.3/gollybase/liferules.cpp:49: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).
   max_letters[2] = (int) strlen(rule_letters[1]) ;
data/golly-3.3/gollybase/liferules.cpp:50: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).
   max_letters[3] = (int) strlen(rule_letters[2]) ;
data/golly-3.3/gollybase/liferules.cpp:51: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).
   max_letters[4] = (int) strlen(rule_letters[3]) ;
data/golly-3.3/gollybase/liferules.cpp:764:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *end = r + strlen(r) ;     // end of rule string
data/golly-3.3/gollybase/liferules.cpp:782: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(rulestring) > (size_t) MAXRULESIZE) {
data/golly-3.3/gollybase/liferules.cpp:808:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int maplen = (int) strlen(r) ;
data/golly-3.3/gollybase/liferules.cpp:1032:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen(t) ;
data/golly-3.3/gollybase/liferules.cpp:1083:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  spos = bpos + strlen(bpos) ;
data/golly-3.3/gollybase/liferules.cpp:1089:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  bpos = spos + strlen(spos) ;
data/golly-3.3/gollybase/readpattern.cpp:873:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:875:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/readpattern.cpp:890:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:892:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/readpattern.cpp:902: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).
         int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:904:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/readpattern.cpp:919:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:921:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
               strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/readpattern.cpp:932: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).
         int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:934:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/readpattern.cpp:946:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int linelen = (int)strlen(line);
data/golly-3.3/gollybase/readpattern.cpp:948:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cptr + commlen, line, linelen);
data/golly-3.3/gollybase/ruletreealgo.cpp:64: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(dir) + strlen(rule) + 15 > (unsigned int)MAXFILELEN) {
data/golly-3.3/gollybase/ruletreealgo.cpp:64:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(dir) + strlen(rule) + 15 > (unsigned int)MAXFILELEN) {
data/golly-3.3/gollybase/ruletreealgo.cpp:70: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).
   for (char *p=path + strlen(dir); *p; p++)
data/golly-3.3/gollybase/ruletreealgo.cpp:96: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(rule_name.c_str()) >= (unsigned int)MAXRULESIZE) {
data/golly-3.3/gollybase/ruletreealgo.cpp:219:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = (int)strlen(rule) ;
data/golly-3.3/gollybase/util.cpp:136:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c = getc(fp) ;
data/golly-3.3/gollybase/writepattern.cpp:55: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).
      numlen = (int)strlen(numstr);
data/golly-3.3/gollybase/writepattern.cpp:128: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).
      outpos = strlen(outbuff);
data/golly-3.3/gui-android/Golly/app/src/main/jni/jnicalls.cpp:246:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000);    // 1 millisec
data/golly-3.3/gui-common/MiniZip/unzip.c:834: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(szFileName)>=UNZ_MAXFILENAMEINZIP)
data/golly-3.3/gui-common/MiniZip/zip.c:739:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_comment = (uInt)strlen(comment);
data/golly-3.3/gui-common/MiniZip/zip.c:741: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).
    size_filename = (uInt)strlen(filename);
data/golly-3.3/gui-common/MiniZip/zip.c:1144:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_global_comment = (uInt)strlen(global_comment);
data/golly-3.3/gui-common/algos.cpp:587:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(xpmdata[i+1]) == (size_t)(skip+9)) {
data/golly-3.3/gui-common/control.cpp:332:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (unsigned int i = 0; i < strlen(genstring); i++)
data/golly-3.3/gui-common/file.cpp:1031:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        urlprefix.erase(0, strlen(HTML_PREFIX));
data/golly-3.3/gui-common/layer.cpp:1214:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int len = (int)strlen(linebuf);
data/golly-3.3/gui-common/layer.cpp:1277:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(str, linebuf+1, len);
data/golly-3.3/gui-common/prefs.cpp:486:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(initrule, value, sizeof(initrule));
data/golly-3.3/gui-common/select.cpp:1159:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        numlen = (unsigned int)strlen(numstr);
data/golly-3.3/gui-common/select.cpp:1226:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    chptr += strlen(textptr);
data/golly-3.3/gui-common/status.cpp:206: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).
        int len = (int)strlen(p);
data/golly-3.3/gui-common/utils.cpp:458:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (strlen >= sufflen) && (str.rfind(suffix) == strlen - sufflen);
data/golly-3.3/gui-web/zlib/gzguts.h:40:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read _read
data/golly-3.3/gui-web/zlib/gzlib.c:199: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).
        len = strlen((const char *)path);
data/golly-3.3/gui-web/zlib/gzlib.c:601:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) ==
data/golly-3.3/gui-web/zlib/gzlib.c:601:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((state->msg = (char *)malloc(strlen(state->path) + strlen(msg) + 3)) ==
data/golly-3.3/gui-web/zlib/gzlib.c:607:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
data/golly-3.3/gui-web/zlib/gzlib.c:607:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
data/golly-3.3/gui-web/zlib/gzread.c:30:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(state->fd, buf + *have, len - *have);
data/golly-3.3/gui-web/zlib/gzwrite.c:301: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).
    len = (unsigned)strlen(str);
data/golly-3.3/gui-web/zlib/gzwrite.c:355:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen((char *)(state->in));
data/golly-3.3/gui-web/zlib/gzwrite.c:443:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen((char *)(state->in));
data/golly-3.3/gui-wx/wxcontrol.cpp:277:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (unsigned int i = 0; i < strlen(genstring); i++)
data/golly-3.3/gui-wx/wxgolly.cpp:199: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).
    unsigned int pos = strlen(argv0);
data/golly-3.3/gui-wx/wxgolly.cpp:207:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(appdir, argv0, pos);
data/golly-3.3/gui-wx/wxinfo.cpp:139: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).
        textctrl->SetStyle(0, strlen(comments), textattr);
data/golly-3.3/gui-wx/wxlayer.cpp:1988: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).
                int len = strlen(linebuf);
data/golly-3.3/gui-wx/wxlayer.cpp:2048:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(str, linebuf+1, len);
data/golly-3.3/gui-wx/wxoverlay.cpp:2653:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *buffer = (char*)malloc(strlen(args) + 1);
data/golly-3.3/gui-wx/wxoverlay.cpp:5347: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 arglen = strlen(args);
data/golly-3.3/gui-wx/wxprefs.cpp:671:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int len = (int)strlen(start);
data/golly-3.3/gui-wx/wxprefs.cpp:2100:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(initrule, value, sizeof(initrule));
data/golly-3.3/gui-wx/wxscript.cpp:376: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 xlen = (int)strlen(x);
data/golly-3.3/gui-wx/wxscript.cpp:381: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 ylen = (int)strlen(y);
data/golly-3.3/gui-wx/wxscript.cpp:1419:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(comments, commptr, maxcomments);
data/golly-3.3/gui-wx/wxselect.cpp:1246:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        numlen = (unsigned int)strlen(numstr);
data/golly-3.3/gui-wx/wxselect.cpp:1313:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    chptr += strlen(textptr);
data/golly-3.3/gui-wx/wxstatus.cpp:206: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).
        int len = (int)strlen(p);
data/golly-3.3/lua/lauxlib.c:401: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).
      *len = (def ? strlen(def) : 0);
data/golly-3.3/lua/lauxlib.c:538: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).
  luaL_addlstring(B, s, strlen(s));
data/golly-3.3/lua/lauxlib.c:674:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(lf->f);
data/golly-3.3/lua/lauxlib.c:679:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return getc(lf->f);  /* return next character */
data/golly-3.3/lua/lauxlib.c:694:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(lf->f);
data/golly-3.3/lua/lauxlib.c:696:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *cp = getc(lf->f);  /* skip end-of-line, if present */
data/golly-3.3/lua/lauxlib.c:765:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return luaL_loadbuffer(L, s, strlen(s), s);
data/golly-3.3/lua/lauxlib.c:861:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (e == NULL) e = fname + strlen(fname);
data/golly-3.3/lua/lauxlib.c:994:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(p);
data/golly-3.3/lua/ldblib.c:409:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") ||
data/golly-3.3/lua/liolib.c:43:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         (strspn(mode, L_MODEEXT) == strlen(mode)));  /* check extensions */
data/golly-3.3/lua/liolib.c:90:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define l_getc(f)		getc(f)
data/golly-3.3/lua/liolib.c:475:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getc(f);
data/golly-3.3/lua/loadlib.c:429: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).
  if (l == NULL) l = path + strlen(path);
data/golly-3.3/lua/lobject.c:284: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(s) > L_MAXLENNUM || pdot == NULL)
data/golly-3.3/lua/lobject.c:410:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pushstr(L, s, strlen(s));
data/golly-3.3/lua/lobject.c:462: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).
  pushstr(L, fmt, strlen(fmt));
data/golly-3.3/lua/lobject.c:488:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(source);
data/golly-3.3/lua/lstring.c:231: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).
  p[0] = luaS_newlstr(L, str, strlen(str));
data/golly-3.3/lua/lstrlib.c:585:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    upto += strlen(p + upto) + 1;  /* may have more after \0 */
data/golly-3.3/lua/lstrlib.c:1007:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(form);
data/golly-3.3/lua/lstrlib.c:1008: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).
  size_t lm = strlen(lenmod);
data/golly-3.3/lua/lstrlib.c:1070:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            luaL_argcheck(L, l == strlen(s), arg, "string contains zeros");
data/golly-3.3/lua/lstrlib.c:1400:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        luaL_argcheck(L, strlen(s) == len, arg, "string contains zeros");
data/golly-3.3/lua/lstrlib.c:1524: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).
        size_t len = (int)strlen(data + pos);
data/golly-3.3/lua/lundump.c:221: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).
  size_t len = strlen(s);
data/golly-3.3/lua/lvm.c:258:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen(l);  /* index of first '\0' in both strings */

ANALYSIS SUMMARY:

Hits = 680
Lines analyzed = 140606 in approximately 6.76 seconds (20805 lines/second)
Physical Source Lines of Code (SLOC) = 99281
Hits@level = [0] 335 [1] 125 [2] 481 [3]  11 [4]  63 [5]   0
Hits@level+ = [0+] 1015 [1+] 680 [2+] 555 [3+]  74 [4+]  63 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2235 [1+] 6.84925 [2+] 5.59019 [3+] 0.745359 [4+] 0.634563 [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.