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/tkblt-3.2.23/generic/tkbltChain.C
Examining data/tkblt-3.2.23/generic/tkbltChain.h
Examining data/tkblt-3.2.23/generic/tkbltConfig.C
Examining data/tkblt-3.2.23/generic/tkbltConfig.h
Examining data/tkblt-3.2.23/generic/tkbltDecls.h
Examining data/tkblt-3.2.23/generic/tkbltGrAxis.C
Examining data/tkblt-3.2.23/generic/tkbltGrAxis.h
Examining data/tkblt-3.2.23/generic/tkbltGrAxisOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrAxisOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrAxisOption.C
Examining data/tkblt-3.2.23/generic/tkbltGrAxisOption.h
Examining data/tkblt-3.2.23/generic/tkbltGrBind.C
Examining data/tkblt-3.2.23/generic/tkbltGrBind.h
Examining data/tkblt-3.2.23/generic/tkbltGrDef.h
Examining data/tkblt-3.2.23/generic/tkbltGrElem.C
Examining data/tkblt-3.2.23/generic/tkbltGrElem.h
Examining data/tkblt-3.2.23/generic/tkbltGrElemBar.C
Examining data/tkblt-3.2.23/generic/tkbltGrElemBar.h
Examining data/tkblt-3.2.23/generic/tkbltGrElemLine.C
Examining data/tkblt-3.2.23/generic/tkbltGrElemLine.h
Examining data/tkblt-3.2.23/generic/tkbltGrElemLineSpline.C
Examining data/tkblt-3.2.23/generic/tkbltGrElemOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrElemOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrElemOption.C
Examining data/tkblt-3.2.23/generic/tkbltGrElemOption.h
Examining data/tkblt-3.2.23/generic/tkbltGrHairs.C
Examining data/tkblt-3.2.23/generic/tkbltGrHairs.h
Examining data/tkblt-3.2.23/generic/tkbltGrHairsOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrHairsOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrLegd.C
Examining data/tkblt-3.2.23/generic/tkbltGrLegd.h
Examining data/tkblt-3.2.23/generic/tkbltGrLegdOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrLegdOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarker.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarker.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerLine.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerLine.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerOption.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerOption.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerPolygon.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerPolygon.h
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerText.C
Examining data/tkblt-3.2.23/generic/tkbltGrMarkerText.h
Examining data/tkblt-3.2.23/generic/tkbltGrMisc.C
Examining data/tkblt-3.2.23/generic/tkbltGrMisc.h
Examining data/tkblt-3.2.23/generic/tkbltGrPSOutput.C
Examining data/tkblt-3.2.23/generic/tkbltGrPSOutput.h
Examining data/tkblt-3.2.23/generic/tkbltGrPen.C
Examining data/tkblt-3.2.23/generic/tkbltGrPen.h
Examining data/tkblt-3.2.23/generic/tkbltGrPenBar.C
Examining data/tkblt-3.2.23/generic/tkbltGrPenBar.h
Examining data/tkblt-3.2.23/generic/tkbltGrPenLine.C
Examining data/tkblt-3.2.23/generic/tkbltGrPenLine.h
Examining data/tkblt-3.2.23/generic/tkbltGrPenOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrPenOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrPenOption.C
Examining data/tkblt-3.2.23/generic/tkbltGrPostscript.C
Examining data/tkblt-3.2.23/generic/tkbltGrPostscript.h
Examining data/tkblt-3.2.23/generic/tkbltGrPostscriptOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrPostscriptOp.h
Examining data/tkblt-3.2.23/generic/tkbltGrText.C
Examining data/tkblt-3.2.23/generic/tkbltGrText.h
Examining data/tkblt-3.2.23/generic/tkbltGrXAxisOp.C
Examining data/tkblt-3.2.23/generic/tkbltGrXAxisOp.h
Examining data/tkblt-3.2.23/generic/tkbltGraph.C
Examining data/tkblt-3.2.23/generic/tkbltGraph.h
Examining data/tkblt-3.2.23/generic/tkbltGraphBar.C
Examining data/tkblt-3.2.23/generic/tkbltGraphBar.h
Examining data/tkblt-3.2.23/generic/tkbltGraphLine.C
Examining data/tkblt-3.2.23/generic/tkbltGraphLine.h
Examining data/tkblt-3.2.23/generic/tkbltGraphOp.C
Examining data/tkblt-3.2.23/generic/tkbltGraphOp.h
Examining data/tkblt-3.2.23/generic/tkbltGraphSup.C
Examining data/tkblt-3.2.23/generic/tkbltInt.C
Examining data/tkblt-3.2.23/generic/tkbltInt.h
Examining data/tkblt-3.2.23/generic/tkbltNsUtil.C
Examining data/tkblt-3.2.23/generic/tkbltNsUtil.h
Examining data/tkblt-3.2.23/generic/tkbltOp.C
Examining data/tkblt-3.2.23/generic/tkbltOp.h
Examining data/tkblt-3.2.23/generic/tkbltParse.C
Examining data/tkblt-3.2.23/generic/tkbltParse.h
Examining data/tkblt-3.2.23/generic/tkbltStubInit.c
Examining data/tkblt-3.2.23/generic/tkbltStubLib.C
Examining data/tkblt-3.2.23/generic/tkbltSwitch.C
Examining data/tkblt-3.2.23/generic/tkbltSwitch.h
Examining data/tkblt-3.2.23/generic/tkbltVecCmd.C
Examining data/tkblt-3.2.23/generic/tkbltVecInt.h
Examining data/tkblt-3.2.23/generic/tkbltVecMath.C
Examining data/tkblt-3.2.23/generic/tkbltVecOp.C
Examining data/tkblt-3.2.23/generic/tkbltVector.C
Examining data/tkblt-3.2.23/generic/tkbltVector.h

FINAL RESULTS:

data/tkblt-3.2.23/generic/tkbltGrAxis.C:670: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(minString, 200, fmt, axisRange_.min);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:673: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(maxString, 200, fmt, axisRange_.max);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1063: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(string, TICK_LABEL_SIZE, ops->tickFormat, value);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1809: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(minString, 200, fmt, axisRange_.min);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1812: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(maxString, 200, fmt, axisRange_.max);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:221: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((char*)ops->label,(char*)name);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1225:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x); 
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1227:7:  [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(string, TCL_DOUBLE_SPACE, fmt, y); 
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1229:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1231:7:  [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(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1290:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x); 
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1292:7:  [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(string, TCL_DOUBLE_SPACE, fmt, y); 
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1294:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1296:7:  [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(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:259: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((char*)ops->label,(char*)name);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2321:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x); 
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2323:7:  [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(string, TCL_DOUBLE_SPACE, fmt, y); 
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2325:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2327:7:  [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(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2464:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x); 
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2466:7:  [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(string, TCL_DOUBLE_SPACE, fmt, y); 
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2468:7:  [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(string, TCL_DOUBLE_SPACE, fmt, x);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2470:7:  [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(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrMisc.C:50: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,str);
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:205:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(scratchArr_, POSTSCRIPT_BUFSIZ, fmt, argList);
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:465: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(date, ctime(&ticks));
data/tkblt-3.2.23/generic/tkbltInt.h:51:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tkblt-3.2.23/generic/tkbltInt.h:51:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/tkblt-3.2.23/generic/tkbltParse.C:354:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(dest, value);
data/tkblt-3.2.23/generic/tkbltSwitch.C:53: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(ptr, string);
data/tkblt-3.2.23/generic/tkbltVecCmd.C:816:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buffer, fmt, vPtr->valueArr[i]);
data/tkblt-3.2.23/generic/tkbltVector.C:134: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(ptr, string);
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:495:23:  [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* who = getenv("LOGNAME");
data/tkblt-3.2.23/generic/tkbltVecCmd.C:1253:25:  [3] (random) drand48:
  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.
    vPtr->valueArr[i] = drand48();
data/tkblt-3.2.23/generic/tkbltVecInt.h:200:8:  [3] (random) drand48:
  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.
double drand48(void);
data/tkblt-3.2.23/generic/tkbltVecMath.C:1509:50:  [3] (random) drand48:
  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.
    {"random",	(void*)ComponentFunc, (ClientData)drand48},
data/tkblt-3.2.23/generic/tkbltVecMath.C:1603:8:  [3] (random) drand48:
  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.
double drand48(void)
data/tkblt-3.2.23/generic/tkbltVecMath.C:1610:3:  [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(seed);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:665: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 minString[200];
data/tkblt-3.2.23/generic/tkbltGrAxis.C:666: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 maxString[200];
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1056: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 string[TICK_LABEL_SIZE + 1];
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1804: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 minString[200];
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1805: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 maxString[200];
data/tkblt-3.2.23/generic/tkbltGrElem.C:151: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(array, Blt_VecData(vector), ss*sizeof(double));
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1218: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 string[TCL_DOUBLE_SPACE * 2 + 2];
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1288: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 string[TCL_DOUBLE_SPACE * 2 + 2];
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2306: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 string[TCL_DOUBLE_SPACE * 2 + 2];
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2462: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 string[TCL_DOUBLE_SPACE * 2 + 2];
data/tkblt-3.2.23/generic/tkbltGrElemLineSpline.C:1070: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(origPts + 1, points, sizeof(Point2d) * nPoints);
data/tkblt-3.2.23/generic/tkbltGrMisc.h:103: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 values[12];
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:464: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 date[200];
data/tkblt-3.2.23/generic/tkbltGrPSOutput.h:45: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 scratchArr_[POSTSCRIPT_BUFSIZ+1];
data/tkblt-3.2.23/generic/tkbltParse.C:297: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((VOID *) buffer, (VOID *) parsePtr->buffer,
data/tkblt-3.2.23/generic/tkbltVecCmd.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((char *)(destPtr->valueArr + oldSize),
data/tkblt-3.2.23/generic/tkbltVecCmd.C:815: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 buffer[200];
data/tkblt-3.2.23/generic/tkbltVecCmd.C:1491: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((char *)copy, (char *)vPtr->valueArr, nBytes);
data/tkblt-3.2.23/generic/tkbltVecCmd.C:1527: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((char *)copy, (char *)v2Ptr->valueArr, nBytes);
data/tkblt-3.2.23/generic/tkbltVecCmd.C:1702: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 message[MAX_ERR_MSG + 1];
data/tkblt-3.2.23/generic/tkbltVecMath.C:116: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 staticSpace[STATIC_STRING_SPACE];
data/tkblt-3.2.23/generic/tkbltVector.C:121: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 stringRep[200];
data/tkblt-3.2.23/generic/tkbltVector.C:635:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newArr, vPtr->valueArr, used * sizeof(double));
data/tkblt-3.2.23/generic/tkbltVector.C:727: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((char *)newArr, (char *)valueArr, 
data/tkblt-3.2.23/generic/tkbltVector.C:845: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 string[200];
data/tkblt-3.2.23/generic/tkbltVector.C:949: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(destPtr->valueArr, srcPtr->valueArr + srcPtr->first, nBytes);
data/tkblt-3.2.23/generic/tkbltGrAxis.C:1085:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(string, Tcl_GetStringResult(interp), TICK_LABEL_SIZE);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:219: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).
  ops->label = Tcl_Alloc(strlen(name)+1);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1230:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(string, ",");
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1231: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).
      snprintf(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1295:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(string, ",");
data/tkblt-3.2.23/generic/tkbltGrElemBar.C:1296: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).
      snprintf(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:257: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).
  ops->label = Tcl_Alloc(strlen(name)+1);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2326:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(string, ",");
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2327: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).
      snprintf(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2469:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(string, ",");
data/tkblt-3.2.23/generic/tkbltGrElemLine.C:2470: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).
      snprintf(string + strlen(string), TCL_DOUBLE_SPACE, fmt, y);
data/tkblt-3.2.23/generic/tkbltGrLegd.C:1048:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buffer, Tcl_DStringValue(&dString) + offset, maxBytes);
data/tkblt-3.2.23/generic/tkbltGrMisc.C:49: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).
    copy=new char[strlen(str)+1];
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:191: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).
  *lengthPtr = strlen(Tcl_DStringValue(&dString_));
data/tkblt-3.2.23/generic/tkbltGrPSOutput.C:466: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).
  char* newline = date + strlen(date) - 1;
data/tkblt-3.2.23/generic/tkbltGraph.C:1457: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).
	     (int)strlen((char*)dashesPtr->values));
data/tkblt-3.2.23/generic/tkbltGraphSup.C:481: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).
    textLen = strlen(text);
data/tkblt-3.2.23/generic/tkbltNsUtil.C:56: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).
  char* last = (char *)(path + strlen(path));
data/tkblt-3.2.23/generic/tkbltParse.C:203: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).
    const char *lastChar = string + strlen(string);
data/tkblt-3.2.23/generic/tkbltParse.C:313: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).
    const char *lastChar = string + strlen(string);
data/tkblt-3.2.23/generic/tkbltParse.C:348: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).
	    length = strlen(value);
data/tkblt-3.2.23/generic/tkbltSwitch.C:50:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t size = strlen(string) + 1;
data/tkblt-3.2.23/generic/tkbltVecCmd.C:1818:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(message, Tcl_GetStringResult(interp), MAX_ERR_MSG);
data/tkblt-3.2.23/generic/tkbltVector.C:131:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t size = strlen(string) + 1;

ANALYSIS SUMMARY:

Hits = 88
Lines analyzed = 30222 in approximately 0.73 seconds (41233 lines/second)
Physical Source Lines of Code (SLOC) = 22012
Hits@level = [0]   4 [1]  24 [2]  26 [3]   6 [4]  32 [5]   0
Hits@level+ = [0+]  92 [1+]  88 [2+]  64 [3+]  38 [4+]  32 [5+]   0
Hits/KSLOC@level+ = [0+] 4.17954 [1+] 3.99782 [2+] 2.9075 [3+] 1.72633 [4+] 1.45375 [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.