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/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/StdAfx.cpp
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/StdAfx.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowClient.c
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataUtils.c
Examining data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/powdata.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/include/cfitsio.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/include/ftools.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/include/ftoolstruct.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/include/pctype.h
Examining data/ftools-fv-5.5.2+dfsg/ftools/include/pfile.h
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowEventHandlers.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_Init.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_colors.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_generic.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_lut.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_shared_colors.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/pow.h
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/powRegion.h
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/tclShared.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/tkAppInit.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/tkpict.h
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c
Examining data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c

FINAL RESULTS:

data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:50:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(cmd, "open %s/ngc1316r.fit %s/rate.fit", fitsDir, fitsDir);
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:79:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(cmd,interp->result);
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:113:4:  [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 (cmd, argv[i]);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowClient.c:41:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(temp,"lappend auto_path {%s}; powXPA::init",charptr);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c:105:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWData Object %s to destroy",data_name);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:122:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(dPtr,PTRFORMAT,&data) != 1) {
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:247:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ptrString,PTRFORMAT,data_instance);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:269:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(dPtr,PTRFORMAT,&data) != 1) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:440:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "graphType", powCurvePtr->graphObjectPtr->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:446:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "zoomed", powCurvePtr->graphObjectPtr->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:455: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(curve_ptr->WCS.graphName, graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:66: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(toplevel,argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:82: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(options,argv[4]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:287: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(window,argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:535:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(scrtch,"cmapLUT_%s,powDef",argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:541:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(scrtch,"Unable to locate LUT for %s\n",argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:493:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  case 'X':  sprintf(longStr,"%s", image_ptr->xunits);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:496:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  case 'Y':  sprintf(longStr,"%s", image_ptr->yunits);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:499:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  case 'Z':  sprintf(longStr,"%s", image_ptr->zunits);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:642: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(imageName,argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:643: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(graphName,argv[2]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:671: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(dispImageName,imageName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:673: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(dispImageName,graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:701: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(dispImageName,imageName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:703: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(dispImageName,graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:878:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cmdLine, "%s coords %sbox", canvas, graphName );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:939:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[2],PTRFORMAT,&databuff) != 1) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:991:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[1],PTRFORMAT,&powdatabuff) != 1) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1242:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ptrString,PTRFORMAT,data_instance);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1264:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ptrString,PTRFORMAT,data_instance);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1391: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(whichPowCanvas,argv[14]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1598:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ptrStr, PTRFORMAT, data_ptr->data_array);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1917:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(dPtr,PTRFORMAT,&data) != 1) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2042:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(ptrString,PTRFORMAT,data_instance);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2064:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(dPtr,PTRFORMAT,&data) != 1) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2152:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "graphType", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2158:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "zoomed", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2278:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "graphType", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2284:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "zoomed", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2368:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(scopeName, "%sscope", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2407:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(curveName, "c1_%s", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2480: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(graph->WCS.graphName, graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2484: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(scopegraph->WCS.graphName, graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2871: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(cPar,descr);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:191: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(xname,histo_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:202: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(yname,histo_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:284:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWCurve Object %s to destroy",curve_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:309:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(curveName, "c1_%s", graphName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:251:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWData Object %s to destroy",data_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:69: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(str_ptr,graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:165:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "graphType", graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:171:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "zoomed", graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:195:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg, "\nError translating WCS information. error:<%s>.", WCSvalue);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:275:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(pPtr, "%s %d %d ",aspect, xmargin, ymargin);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:320:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWGraph Object %s to destroy",graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:267:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWImage Object %s to destroy",image_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:102:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errormsg,"Can't find POWVector Object %s to destroy",vector_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:46:7:  [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.
      system("POWplot &");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:136: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( cache+cachePos, cmd );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:118:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(cmdLine, "%s coords %sbox", canvas, gn );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:128:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "graphType", gn);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:134:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "zoomed", gn);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:345:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	       sprintf(cmd,
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:348:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	       sprintf(cmd+strlen(cmd),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:367:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(cmdLine,"%.16g %.16g %.16g %c %s ",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:370:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(cmdLine+strlen(cmdLine),"%.16g %.16g %.16g %c %s ",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:376:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(result,cmdLine);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:895:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "graphType", graph->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:901:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(idxStr, "%s,%s", "zoomed", graph->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:139:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(temp,"lappend auto_path {%s}; powInitGlobals",charptr);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:354:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "graphType", graph->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:360:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(idxStr, "%s,%s", "zoomed", graph->graph_name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:557: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(gn,graph);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:565:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(idxStr,"%s%s,%s",option,obj,gn);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:568:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	 sprintf(idxStr,"%s,powDef",option);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:574:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(idxStr,"%s%s,%s",option,obj,gn);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:577:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	 sprintf(idxStr,"%s,powDef",option);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:583:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(idxStr,"%s%s,%s",option,obj,gn);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:586:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	 sprintf(idxStr,"%s,powDef",option);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:658:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (errormsg, "Couldn't construct WCS information: %s", WCSpih_Message[status]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:706:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (errormsg, "Couldn't translate WCS coords to pixels: %s", WCStrans_Message[status]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:792:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (errormsg, "Couldn't construct WCS information: %s", WCSpih_Message[status]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:844:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (errormsg, "Couldn't translate pixels to WCS coords: %s", WCStrans_Message[status]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:884: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(tmp_shape,shape);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:67:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(errormsg, "Can't construct WCS information: %s", WCSpih_Message[status]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:227: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(WCS->type,type);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:287: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 (image_ptr->WCS.graphName, imageName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:367: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 (curve_ptr->WCS.curveName, curveName);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:430: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(graph->WCS.graphName, p);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:432: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(graph->WCS.graphName, images);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:449:13:  [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(graph->WCS.curveName, curves);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:258: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(copyPtr->name, formatPtr->name);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:737:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
           sprintf(scrtch,"cmapLUT_%s,powDef",argv[2]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:743:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(scrtch,"Unable to locate LUT for %s\n",argv[2]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1039:4:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1041:4:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3681:7:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3683:7:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3702:7:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3704:7:  [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(string,string1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:72:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer,"%f %s",MJD,"in");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:75:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer,"%f %s",MJD,"out");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:102:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer,"%f %s",T2,"in");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:104:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer,"%f %s",T2,"out");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:34: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(filename,argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:56:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(longStr,PTRFORMAT " %i %i", imagebuff, array_type, width*height);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:149:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp_result,"\nstatus = %d: %s\n", status, status_str);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:155:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(tmp_result,"\nError message stack:\n  %s\n", errmsg);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:37:20:  [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.
      powAddress = getenv( "POW_DISPLAY" );
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:35: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 *buf,*fitsDir,cmd[255];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c: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 *names[NXPA];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:37: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 *messages[NXPA];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:59: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(cmd, "select rate.fit");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:65: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(cmd, "display header 1");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:75: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(cmd, "display curve 1 time rate");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:81: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(cmd, "pow bounds 770 -30 1070 300");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:87: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(cmd, "pow curve pDisp No lDisp Yes lColor Blue");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:98: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(cmd, "select ngc1316r.fit");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:104: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(cmd, "display image 0");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/scripts/XPAProgram.c:110: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(cmd, "pow colormap scale histo");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MAX_PATH+1];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[512];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:82:2:  [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(p,"tcl");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:98:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(cmd," fvInit ");
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowClient.c:22:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[1000];
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c:98: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 errormsg[1024];
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:22:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:76: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( data+len-bytesRead, buffer, bytesRead );
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowDataCommands.c:186: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 ptrString[40];
data/ftools-fv-5.5.2+dfsg/ftools/include/ftoolstruct.h:23: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.
typedef struct { char taskname[41]; } TASK_DEF;  /* define struct/CB */
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:315: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 xstring[30]="";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:316: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 ystring[30]="";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:447:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:450:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  xCount = atoi(Tcl_GetVar2(interp,"xCount",powCurvePtr->graphObjectPtr->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:451:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  yCount = atoi(Tcl_GetVar2(interp,"yCount",powCurvePtr->graphObjectPtr->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:457:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:701: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(xstring," %lf ",x);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:702: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(ystring," %lf ",y);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2236: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[200];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2285:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer, "%.15g %.15g translate %.15g %.15g",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2307:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer, "%.15g %.15g translate %.15g %.15g",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2357:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char buffer[200];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2371:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "%.15g %.15g lineto\n", coordPtr[0],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2374:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "%.15g %.15g moveto\n", coordPtr[0],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2399:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "%.15g %.15g 0.5 0.0 360.0 arc fill\n",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2423:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "%.15g %.15g lineto\n", coordPtr[0],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2426:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "%.15g %.15g moveto\n", coordPtr[0],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2459: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 currstr[90];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:329:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(Tcl_GetStringResult(interp),"%i",ncolors);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:532:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char scrtch[200];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:196: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 PlotCommand[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:328:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(PlotCommand," %d %d %d %d ",p2,q3,p1,q3);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:330: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(PlotCommand," %d %d %d %d ",p3,q2,p3,q1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:335: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(PlotCommand," %.0f %.0f %.0f %.0f ",oldx,oldy,x,y);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:385: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(PlotCommand," %d %d %d %d ",p2,q3,p1,q3);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:387: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(PlotCommand," %d %d %d %d ",p3,q2,p3,q1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:427: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 longStr[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:438:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 'X':  sprintf(longStr,"%le", image_ptr->xorigin);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:441:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 'Y':  sprintf(longStr,"%le", image_ptr->yorigin);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c: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 longStr[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:465:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 'X':  sprintf(longStr,"%le", image_ptr->xotherend);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:468:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 'Y':  sprintf(longStr,"%le", image_ptr->yotherend);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:482: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 longStr[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:523: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 longStr[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:551:12:  [2] (buffer) sprintf:
  Does 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(longStr, "%I64d", datumL);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:553:12:  [2] (buffer) sprintf:
  Does 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(longStr, "%lld", datumL);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:620: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 imageName[1024] = "",graphName[1024] = "",dispImageName[1024] = "";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:672: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(dispImageName,"disp");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:702: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(dispImageName,"disp");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:864: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 cmdLine[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1187:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(z_vector,"NULL");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1189:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(z_error,"NULL");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1216: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 ptrString[40];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1254: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 ptrString[40];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1390: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.
    whichPowCanvas=(char *) ckalloc((strlen(argv[14])+1)*sizeof(char));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1394:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(whichPowCanvas,".pow.pow");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1558: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 length_str[22];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1571:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(length_str,"%d",data_ptr->length);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1586: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 ptrStr[16];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1616: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 length_str[22];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1631:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(length_str,"%d",vector_ptr->length);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1647:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp_str[22];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1662:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%d",image_ptr->width);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1665:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%d",image_ptr->height);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1668:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->xorigin+0.5*image_ptr->xinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1671:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->yorigin+0.5*image_ptr->yinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1674:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->xinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1677:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->yinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1689:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->xotherend+0.5*image_ptr->xinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1692:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp_str,"%lg",image_ptr->yotherend+0.5*image_ptr->yinc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1705: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 outstring[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1717:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(outstring,"%g",min);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1721:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(outstring,"%g",max);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1733: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[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1789: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( data+len-bytesRead, buffer, bytesRead );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1862:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy( data, Tcl_GetByteArrayFromObj(argv[1], NULL) , bytesRead );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1981: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 ptrString[40];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2159:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2162:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   xCount = atoi(Tcl_GetVar2(interp,"xCount",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2163:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   yCount = atoi(Tcl_GetVar2(interp,"yCount",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2285:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2288:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   xCount = atoi(Tcl_GetVar2(interp,"xCount",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2289:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   yCount = atoi(Tcl_GetVar2(interp,"yCount",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2356: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 powWCS[7]="powWCS";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2357: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 curveName[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2358: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 scopeName[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2420:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2838: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 results[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2948:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(results,"%d %g %g %g %g %g %g %g %g",good,cent[0],cent[1],cstd[0],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:16: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 powWCS[7]="powWCS";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:192:3:  [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(xname,"_histo_x");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:203:3:  [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(yname,"_histo_y");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:277: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 errormsg[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:307: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 curveName[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:218: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.
         pixel_array = (char *) ckalloc(pixelSizes[array_instance->data_type] + 1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:244: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 errormsg[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:8: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 whichPowCanvas[9]=".pow.pow";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:36: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 bbox[128];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:37: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 extraparams[256], *pPtr;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:48: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 errormsg[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:172:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:175:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  xCount = atoi(Tcl_GetVar2(interp,"xCount",graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:176:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  yCount = atoi(Tcl_GetVar2(interp,"yCount",graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:249:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(bbox," %#.17g %#.17g %#.17g %#.17g", graph_instance->xleft, 
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:258:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(extraparams," %#.17g %#.17g ", xdim, ydim );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:264: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(pPtr, "%d ", *xdimdisp);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:266: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(pPtr, "NULL ");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:270: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(pPtr, "%d ", *ydimdisp);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:272: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(pPtr, "NULL ");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:313: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 errormsg[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:22:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char smin[30];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:23: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 smax[30];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:27: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 powWCS[7]="powWCS";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:166:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(smin,"%.17lg",min);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:167:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(smax,"%.17lg",max);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:260:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errormsg[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:95: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 errormsg[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:72: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 *bufs[NXPA];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:73: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 *names[NXPA];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:74: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 *messages[NXPA];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:97: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 *names[NXPA];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:98: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 *messages[NXPA];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowEventHandlers.c:76: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 input[BUFFER_SIZE+1];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:44:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int   GetTicks( int nGrid, GridPt Grid[], int useWCS, char *tickScal[2],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:65: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 *tickScal[2];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:74: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 *TickAxis, *result, cmdLine[1024], ignore;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:135:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:138:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   xCount = atoi(Tcl_GetVar2(interp,"xCount",gn,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:139:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   yCount = atoi(Tcl_GetVar2(interp,"yCount",gn,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:339: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(line+loc,"%25.16g %25.16g ",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:559:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int GetTicks(int nGrid, GridPt Grid[], int useWCS, char *tickScal[2],
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:659: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(list+loc, "%.16g ", ticks[i] );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:902:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:905:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   xCount = atoi(Tcl_GetVar2(interp,"xCount",graph->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:906:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   yCount = atoi(Tcl_GetVar2(interp,"yCount",graph->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1226: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 str1[256], str2[256];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1243:7:  [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(str1+sLen,"_Xdata");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1244:7:  [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(str2+sLen,"_Xvec");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1249:7:  [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(str1+sLen,"_Ydata");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1250:7:  [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(str2+sLen,"_Yvec");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1255:7:  [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(str1+sLen,"_Xvec");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:99:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[1000];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:116:4:  [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(temp,"source -rsrc html_library\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:117:4:  [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(temp,"source -rsrc notebook\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:118:4:  [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(temp,"source -rsrc pow\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:119:4:  [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(temp,"source -rsrc powEdit\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:120:4:  [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(temp,"source -rsrc powRgn\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:121:4:  [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(temp,"source -rsrc powMovie\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:122:4:  [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(temp,"source -rsrc powScript\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:123:4:  [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(temp,"powInitGlobals\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:210:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(temp,"Pow_Allocated");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:228:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[1000];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:244:4:  [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(temp,"source -rsrc html_library\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:245:4:  [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(temp,"source -rsrc notebook\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:246:4:  [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(temp,"source -rsrc pow\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:247:4:  [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(temp,"source -rsrc powEdit\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:248:4:  [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(temp,"source -rsrc powRgn\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:249:4:  [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(temp,"source -rsrc powMovie\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:250:4:  [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(temp,"source -rsrc powScript\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:251:4:  [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(temp,"powInitGlobals\n");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowInit.c:276:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(temp,"Pow_Allocated");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:361:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  zoomed = atoi(Tcl_GetVar2(interp,"powPlotParam",idxStr,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:364:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  xCount = atoi(Tcl_GetVar2(interp,"xCount",graph->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:365:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  yCount = atoi(Tcl_GetVar2(interp,"yCount",graph->graph_name,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:547: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 *idxStr, gn[255];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:598: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 powFitsHeader[14]="powFitsHeader";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:599: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 powFitsHeaderCnt[17]="powFitsHeaderCnt";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:625:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      useWCSInfo = atoi(str);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:635: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 errormsg[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:644:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:647:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:684:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:686:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:734: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 powFitsHeader[14]="powFitsHeader";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:735: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 powFitsHeaderCnt[17]="powFitsHeaderCnt";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:760:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      useWCSInfo = atoi(str);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:769: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 errormsg[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:777:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:780:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:818:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:820:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:875: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 tmp_shape[10];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:1253: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 currentStr[81];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:9: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 wcsProjections[NUM_WCS_TYPES][5] =
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:39: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 powFitsHeader[14]="powFitsHeader";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:40: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 powFitsHeaderCnt[17]="powFitsHeaderCnt";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:51:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:54:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      HDRcnt = atoi(Tcl_GetVar2(interp,powFitsHeaderCnt,WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:66: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 errormsg[512];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:89:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->graphName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:91:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         coordSel = atoi(Tcl_GetVar2(interp,"powWCSName",WCS->curveName,TCL_GLOBAL_ONLY));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_Init.c:31: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 defaultLibraryDir[200] = VISU_LIBRARY;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:392: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[10000];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:445: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 *) masterPtr, argv[2], 0);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:459: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.
				  configSpecs, (char *) masterPtr, argv[2], 0);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:482: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(string,"%d",instancePtr->colormap_level);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:734: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.
           char scrtch[200];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:932: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(string, "%d", pix_int);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:937: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(string, "%d", pix_int);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:942: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(string, "%d", pix_int);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:947: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(string, "%.5g", pix_float);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:952: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(string, "%.5g", pix_double);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:997:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(string,"%.5g",masterPtr->dispmin);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1002:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(string,"%.5g",masterPtr->dispmax);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1018:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string1[256];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1036: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(string1,"%g ",((double)i/(double)(MAX_COLORS-1.0)*
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1040: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(string1,"%d ",hist[i]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1121: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(string,"%g",masterPtr->pixel_x);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1133: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(string,"%g",masterPtr->pixel_y);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1217: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(string,"%d",(int)((double)jt*scale + masterPtr->dispmin));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1219: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(string,"%g",(double)jt*scale + masterPtr->dispmin);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1755: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 c[sizeof(int)];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2213: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((VOID *) (newData + offset),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2227: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((VOID *) destPtr, (VOID *) srcPtr,
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2514: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*)(photoblock.pixelPtr),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2641:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy((char*)(tmp_block->pixelPtr),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3662: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 string1[10000];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3680: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(string1,"%d ",i++); 
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3682: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(string1,"%g ",((double)pix_int/(double)(MAX_COLORS-1.0)*(max-min))+min);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3701: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(string1,"%d ",i++); 
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:3703: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(string1,"%g ",((double)pix_int/(double)(MAX_COLORS-1.0)*(max-min))+min);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:4610: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((void*)result,(void*)(srcMasterPtr->bytedata),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:4694: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((void*)result,(void*)(srcMasterPtr->bytedata),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:5115: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((void*)temp_img,(void*)(srcMasterPtr->bytedata),npts);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:54: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[40];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:530: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[40];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:542:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%f",ReturnVals[0]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:544:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%f",ReturnVals[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:546:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%f",ReturnVals[2]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:548:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%f",ReturnVals[3]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:561: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[80];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/orbit.c:587:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%f %f",NewRA, NewDec);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/pow.h:62: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 graphName[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/pow.h:63: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 curveName[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/pow.h:64: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 type[6];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/powRegion.h:13: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   type[6];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:17:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[160] = "gis2img.fits";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:18: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 array_name[32];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:32: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 longStr[1024];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:63:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int readimage(char *filename,void **imagebuff,float *datamin,float *datamax,
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:75: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 comm[80];
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:138: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 tmp_result[1000] = " ";
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:143: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 status_str[FLEN_STATUS], errmsg[FLEN_ERRMSG];
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:80:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(cmd);
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:111:4:  [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(cmd, " ");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:112:23:  [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.
		 if (hasquote == 0) strcat (cmd,"\"");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:114:23:  [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.
		 if (hasquote == 0) strcat (cmd,"\"");
data/ftools-fv-5.5.2+dfsg/ftools/guis/fv/win/fv.cpp:153: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).
	    (unsigned) (size * sizeof(char *) + strlen(cmdLine) + 1));
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c:38: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).
  str_ptr = ckalloc(strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c:39:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,data_name,strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/ftools/guis/powclient/PowCreateData.c:39: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).
  strncpy(str_ptr,data_name,strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/ftools/include/pctype.h:135: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).
        (B.dsc$w_length=strlen(A),B.dsc$a_pointer=A,       \
data/ftools-fv-5.5.2+dfsg/ftools/include/pctype.h:139: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).
        (B.dsc$w_length=strlen(A),B.dsc$a_pointer=A,       \
data/ftools-fv-5.5.2+dfsg/ftools/include/pctype.h:145: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).
        (B=strlen(A),B >= silA?0:(memset((A)+B,' ',silA-B-1)),A[B = silA - 1]='\0');
data/ftools-fv-5.5.2+dfsg/ftools/include/pctype.h:147: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).
           (B=strlen(A),B > C?0:(memset((A)+B,' ',(C - 1)-B-1)),A[B = C - 1]='\0');
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:438: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).
  len    = strlen(powCurvePtr->graphObjectPtr->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:444: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).
  len    = strlen(powCurvePtr->graphObjectPtr->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2467: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).
      if ( strlen(p) <= 0 ) break;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCanvCurve.c:2468:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(currstr, p, 80);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c: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).
  toplevel = ckalloc(strlen(argv[1])+5);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:81: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).
    options = ckalloc(strlen(argv[4])+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowColormap.c:286: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).
  window = ckalloc(strlen(argv[1])+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:883:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(cmdLine,Tcl_GetStringResult(interp),256);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:1390: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).
    whichPowCanvas=(char *) ckalloc((strlen(argv[14])+1)*sizeof(char));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2150: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).
   len    = strlen(graphName)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2156: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).
   len    = strlen(graphName)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2276: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).
   len    = strlen(graphName)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2282: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).
   len    = strlen(graphName)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2481:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
   strcpy(graph->WCS.curveName, "\0");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCommands.c:2867:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  plen = strlen(descr);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:36: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).
  str_ptr = ckalloc(strlen(curve_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:37:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,curve_name,strlen(curve_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:37: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).
  strncpy(str_ptr,curve_name,strlen(curve_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:189: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).
  xname = ckalloc(strlen(x_vector) + 9);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateCurve.c:200: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).
  yname =  ckalloc(strlen(x_vector) + 9);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:33: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).
  str_ptr = ckalloc(strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:34:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,data_name,strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateData.c:34: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).
  strncpy(str_ptr,data_name,strlen(data_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:68: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).
    str_ptr = ckalloc(strlen(graph_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:163: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).
  len    = strlen(graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:169: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).
  len    = strlen(graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:235: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).
  str_ptr = ckalloc(strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:236:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,xunits,strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:236: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).
  strncpy(str_ptr,xunits,strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:238: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).
  str_ptr = ckalloc(strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:239:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,yunits,strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:239: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).
  strncpy(str_ptr,yunits,strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:241: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).
  str_ptr = ckalloc(strlen(xlabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:242:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,xlabel,strlen(xlabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:242: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).
  strncpy(str_ptr,xlabel,strlen(xlabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:244: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).
  str_ptr = ckalloc(strlen(ylabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:245:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,ylabel,strlen(ylabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:245: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).
  strncpy(str_ptr,ylabel,strlen(ylabel)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:262: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).
  pPtr = extraparams + strlen(extraparams);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:267: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).
  pPtr += strlen( pPtr );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateGraph.c:273: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).
  pPtr += strlen( pPtr );
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:69: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).
  str_ptr = ckalloc(strlen(image_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:70:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,image_name,strlen(image_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:70: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).
  strncpy(str_ptr,image_name,strlen(image_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:82: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).
  str_ptr = ckalloc(strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:83:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,xunits,strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:83: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).
  strncpy(str_ptr,xunits,strlen(xunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:85: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).
  str_ptr = ckalloc(strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:86:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,yunits,strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:86: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).
  strncpy(str_ptr,yunits,strlen(yunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:88: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).
  str_ptr = ckalloc(strlen(zunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:89:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,zunits,strlen(zunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateImage.c:89: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).
  strncpy(str_ptr,zunits,strlen(zunits)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:41: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).
  str_ptr = ckalloc(strlen(vector_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:42:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,vector_name,strlen(vector_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:42: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).
  strncpy(str_ptr,vector_name,strlen(vector_name)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:52: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).
  str_ptr = ckalloc(strlen(units)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:53:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str_ptr,units,strlen(units)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowCreateVector.c:53: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).
  strncpy(str_ptr,units,strlen(units)+1);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:38: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).
      if( !powAddress || strlen(powAddress)==0 ) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowDrvr.c:126: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).
      len = strlen(cmd);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowEventHandlers.c:81:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = read(fileno(stdin), input, BUFFER_SIZE);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:123:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(cmdLine,Tcl_GetStringResult(interp),256);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:126: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).
   len    = strlen(gn)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:132: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).
   len    = strlen(gn)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:341: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).
		  loc += strlen(line+loc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:344: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).
	       cmd = ckalloc(sizeof(char)*( loc+200+2*strlen(gn) ));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:348: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).
	       sprintf(cmd+strlen(cmd),
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:370: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(cmdLine+strlen(cmdLine),"%.16g %.16g %.16g %c %s ",
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:373:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    k = strlen(cmdLine);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:374: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).
	    if( resultLen <= (int)(k+strlen(result)))
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:660: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).
      loc += strlen(list+loc);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:893: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).
   len    = strlen(graph->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:899: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).
   len    = strlen(graph->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1238: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).
      sLen = strlen(contour);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1240:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(str1,contour,sLen); str1[sLen]='\0';
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowGrid.c:1241:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(str2,contour,sLen); str2[sLen]='\0';
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:352: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).
  len    = strlen(graph->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:358: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).
  len    = strlen(graph->graph_name)+15;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:551:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(graph);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:554:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(gn,graph,len-5);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:560: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).
   len    = strlen(gn)+strlen(obj)+strlen(option)+10;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:560: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).
   len    = strlen(gn)+strlen(obj)+strlen(option)+10;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:560: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).
   len    = strlen(gn)+strlen(obj)+strlen(option)+10;
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:1260:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (i= 0; i< strlen(header); i+=80 ) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowUtils.c:1262:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(currentStr, ptr, 80);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:372: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).
      str_len = strlen(curve_ptr->WCS.curveName) - strlen(p);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:372:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      str_len = strlen(curve_ptr->WCS.curveName) - strlen(p);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:373:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(curve_ptr->WCS.graphName, curve_ptr->WCS.curveName, str_len);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:429: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).
         p += strlen("imgobj_");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:434:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(graph->WCS.curveName, "\0");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/PowWCS.c:448:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(graph->WCS.graphName, "\0");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:253:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    copyPtr->name = (char *) ckalloc((unsigned) (strlen(formatPtr->name) + 1));
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:414: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).
    length = strlen(argv[1]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:535: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).
	    length =strlen(argv[2]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:796:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(argv[3]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:803:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(argv[4]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:985:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(string,"");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1034:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(string,"");
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:1354:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(option);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2805:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(formatPtr->name)) != 0)) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:2891: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).
		formatPtr->name, strlen(formatPtr->name)) != 0)) {
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:4171: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(argv[3]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/Visu_tkImgPict.c:4286: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(argv[3]);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:42: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(i == NULL) i = filename + strlen(filename);
data/ftools-fv-5.5.2+dfsg/tcltk/pow/readpha.c:48:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(array_name,j,i-j);

ANALYSIS SUMMARY:

Hits = 481
Lines analyzed = 25893 in approximately 0.76 seconds (34153 lines/second)
Physical Source Lines of Code (SLOC) = 18034
Hits@level = [0] 197 [1] 118 [2] 254 [3]   1 [4] 108 [5]   0
Hits@level+ = [0+] 678 [1+] 481 [2+] 363 [3+] 109 [4+] 108 [5+]   0
Hits/KSLOC@level+ = [0+] 37.5957 [1+] 26.6718 [2+] 20.1286 [3+] 6.04414 [4+] 5.98869 [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.