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/tk-html3-3.0~fossil20110109/hv/hv3bridge.c
Examining data/tk-html3-3.0~fossil20110109/hv/hv3events.c
Examining data/tk-html3-3.0~fossil20110109/hv/hv3format.c
Examining data/tk-html3-3.0~fossil20110109/hv/hv3function.c
Examining data/tk-html3-3.0~fossil20110109/hv/hv3see.c
Examining data/tk-html3-3.0~fossil20110109/hv/hv3timeout.c
Examining data/tk-html3-3.0~fossil20110109/hv/hvinit.c
Examining data/tk-html3-3.0~fossil20110109/hv/ssinit.c
Examining data/tk-html3-3.0~fossil20110109/src/css.c
Examining data/tk-html3-3.0~fossil20110109/src/css.h
Examining data/tk-html3-3.0~fossil20110109/src/cssInt.h
Examining data/tk-html3-3.0~fossil20110109/src/cssdynamic.c
Examining data/tk-html3-3.0~fossil20110109/src/cssparser.c
Examining data/tk-html3-3.0~fossil20110109/src/csssearch.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlPs.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c
Examining data/tk-html3-3.0~fossil20110109/src/htmldecode.c
Examining data/tk-html3-3.0~fossil20110109/src/htmldraw.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlexts.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlfloat.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlform.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlhash.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlimage.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlindex.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlinline.c
Examining data/tk-html3-3.0~fossil20110109/src/htmllayout.c
Examining data/tk-html3-3.0~fossil20110109/src/htmllayout.h
Examining data/tk-html3-3.0~fossil20110109/src/htmlmacros.h
Examining data/tk-html3-3.0~fossil20110109/src/htmlparse.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlprop.h
Examining data/tk-html3-3.0~fossil20110109/src/htmlsizer.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlstyle.c
Examining data/tk-html3-3.0~fossil20110109/src/htmltagdb.c
Examining data/tk-html3-3.0~fossil20110109/src/htmltest.c
Examining data/tk-html3-3.0~fossil20110109/src/htmltext.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlutil.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlwish.c
Examining data/tk-html3-3.0~fossil20110109/src/main.c
Examining data/tk-html3-3.0~fossil20110109/src/restrack.c
Examining data/tk-html3-3.0~fossil20110109/src/restrack.h
Examining data/tk-html3-3.0~fossil20110109/src/swproc.c
Examining data/tk-html3-3.0~fossil20110109/src/swproc.h
Examining data/tk-html3-3.0~fossil20110109/src/htmltable.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlprop.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlcmd.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlurl.c
Examining data/tk-html3-3.0~fossil20110109/src/htmlwidget.c
Examining data/tk-html3-3.0~fossil20110109/src/html.h
Examining data/tk-html3-3.0~fossil20110109/src/htmltcl.c
Examining data/tk-html3-3.0~fossil20110109/src/htmltree.c
Examining data/tk-html3-3.0~fossil20110109/tools/getpage.c
Examining data/tk-html3-3.0~fossil20110109/tools/httpget.c
Examining data/tk-html3-3.0~fossil20110109/tools/lemon.c
Examining data/tk-html3-3.0~fossil20110109/tools/lempar.c
Examining data/tk-html3-3.0~fossil20110109/tools/makeheaders.c
Examining data/tk-html3-3.0~fossil20110109/tools/mktclapp.c
Examining data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c
Examining data/tk-html3-3.0~fossil20110109/tools/url.c

FINAL RESULTS:

data/tk-html3-3.0~fossil20110109/hv/hv3see.c:849:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zBuf, "%s.class", Tcl_GetString(p->apWord[0]));
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:2625:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zBuf, "%s.class", Tcl_GetString(objv[1]));
data/tk-html3-3.0~fossil20110109/src/css.c:955:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pRet->v.zVal, z);
data/tk-html3-3.0~fossil20110109/src/csssearch.c:243:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(z, "%s {width:0}", zOrig);
data/tk-html3-3.0~fossil20110109/src/html.h:106:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf _vsnprintf
data/tk-html3-3.0~fossil20110109/src/html.h:107:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/tk-html3-3.0~fossil20110109/src/html.h:107:19:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:940:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(string, nxtpage, mpg, mpg);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1398:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "] %d %g %g %s %s DrawText\n",
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:786: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(htmlPtr->zHandler[type], argv[4]);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:482:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(zRet, zTwo);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:487:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&zRet[1], zTwo);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:501:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&zRet[nOne], zTwo);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:564:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zRes, "%s%s%s%s%s%s%s%s%s",
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:741:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(buf, "%s %s", Tk_NameOfColor(cfg), Tk_NameOfColor(cbg));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:756:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buf, str);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:767: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(buf, str);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:800:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "%s %s", Tk_NameOfColor(cfg), Tk_NameOfColor(cbg));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:803:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buf, Clr2Name(c1));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:806:9:  [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(buf, Clr2Name(c2));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:890: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(tok, TagAliases[j + 1]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2304:17:  [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(nv[i], val);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2327: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(nv[i], name);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2333: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(nv[i + 1], value);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2340: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(p->markup.argv[j + 1], value);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2972: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(pat, argv[3]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3233:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cp, "<%s %s>", argv[4], argv[5]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3236:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cp, "<%s>", argv[4]);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:768:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(zBuf, "<tr><td>%s<td>%d<td>%s<td>%d", 
data/tk-html3-3.0~fossil20110109/src/htmlform.c:41:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zBuf, "%s.x%d", Tk_PathName(htmlPtr->clipwin), pElem->input.cnt);
data/tk-html3-3.0~fossil20110109/src/htmlhash.c:146:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(hPtr->key.string, string);
data/tk-html3-3.0~fossil20110109/src/htmlhash.c:307:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((char *)pStoredKey->zFontFamily, pKey->zFontFamily);
data/tk-html3-3.0~fossil20110109/src/htmlinline.c:225:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    nBuf = vsnprintf(zBuf, 1023, zFormat, ap);
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1304:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(zBuf, "%c%s", iList + 96, isList?".":"");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1307:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(zBuf, "%c%s", iList + 64, isList?".":"");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1319:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(zBuf, "%d%s", iList, isList?".":"");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1322:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(zBuf, "%.2d%s", iList, isList?".":"");
data/tk-html3-3.0~fossil20110109/src/htmlparse.c:605:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zEnd, "</%s", HtmlMarkupName(eTag));
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:381:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(zRet, "%s(%s)", 
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:411:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(zRet, "%.2f%s", pProp->v.rVal, zSym);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:416:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(zRet, "%s(%s)", zFunc, pProp->v.zVal);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:627:13:  [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(zOut, zSep);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:691: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(&zOut[nOut], z);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1285:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(zBuf, "#%s", zColor);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1296: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(cVal->zColor, zColor);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2184: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(zCopy, zArglist);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2404:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(zTkFontName, "{%s} %d%.8s%.8s", 
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2435: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(pFont->zFont, zTkFontName);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:295:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zCmd, "%s {%s}", htmlPtr->zIsVisited, zURL);
data/tk-html3-3.0~fossil20110109/src/htmlstyle.c:707: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(pCounter->zName, zName);
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:176:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        nBuf = vsnprintf(zBuf, 200, zFormat, ap);
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:180:20:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            nBuf = vsnprintf(zBuf, nBuf + 1, zFormat, ap);
data/tk-html3-3.0~fossil20110109/src/htmltree.c:2443:17:  [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(zCopy, zAttrName);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:189:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(z, "%s:", p->zScheme);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:193:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(&z[n], "//%s", p->zAuthority);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:197:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(&z[n], "%s", p->zPath);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:201:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(&z[n], "?%s", p->zQuery);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:205:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(&z[n], "#%s", p->zFragment);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:247: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(zNew, z);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:358:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(zBuf, "%s", base->zPath);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:362:21:  [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(zBuf, term->zPath);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:366:29:  [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(&zBuf[i + 1], &zBuf[i + 3]);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:381:33:  [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(&zBuf[j + 1], &zBuf[i + 4]);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:394: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(zBuf,zBuf+3);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:437: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(zSrc, htmlPtr->interp->result);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1565:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(name, familyStr, htmlPtr->FontFamily, size);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1654:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(zAltColor, "#%s", zColor);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1657: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(zAltColor, zColor);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2242:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zClipwin, "%s.x", arg1);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2263: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(htmlPtr->zCmdName, arg1);
data/tk-html3-3.0~fossil20110109/tools/getpage.c:43: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(p->zUrl, zUrl);
data/tk-html3-3.0~fossil20110109/tools/getpage.c:64:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(html, zText);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1332:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(errmsg,format,ap);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1383: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(*paz, z);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2666:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(name,lemp->filename);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2669:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(name,suffix);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2887:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  extern int access();
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2898:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    if( path ) sprintf(path,"%s/%s",argv0,name);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2911:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path,"%s/%s",pathlist,name);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2915:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if( access(path,modemask)==0 ) break;
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2993:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"%s.lt",lemp->filename);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2995:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if( access(buf,004)==0 ){
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2997:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  }else if( access(templatename,004)==0 ){
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3158: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(&z[used], zInt);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3367: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(types[hash],stddt);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3718:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(line,"\"%s\",",lemp->symbols[i]->name);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3865:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:4090: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(z,y);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:23:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define debug0(F,M)       if( (F)&debugMask ){ fprintf(stderr,M); }
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:24:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define debug1(F,M,A)     if( (F)&debugMask ){ fprintf(stderr,M,A); }
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:25:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define debug2(F,M,A,B)   if( (F)&debugMask ){ fprintf(stderr,M,A,B); }
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:26:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define debug3(F,M,A,B,C) if( (F)&debugMask ){ fprintf(stderr,M,A,B,C); }
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1860:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(pIf->zCondition,"%s(%.*s)",zPrefix,nText,zText);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1968:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(pInclude->zLabel,"%.*s:%s",nArg,zArg,zIf);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2950:11:  [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( zNew[j], zBuf );
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:204:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(z,"(%s) || (",zExtra);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:221:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(&z[i],"%s!%s",zSep,p->zArg);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:223:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(&z[i],"%s%s",zSep,p->zArg);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:251:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(z,"%s",zArg);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:253:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(z,"(%s)",zArg);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:257:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(z,"defined(%s)",zArg);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:379: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(zProc, zFunc);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:920:11:  [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( zNew[j], zBuf );
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:1013:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if( access(argv[i],R_OK) ){
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:188: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(pNew->zName,zName);
data/tk-html3-3.0~fossil20110109/tools/url.c:141:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(z, "%s:", p->zScheme);
data/tk-html3-3.0~fossil20110109/tools/url.c:145:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&z[n], "//%s", p->zAuthority);
data/tk-html3-3.0~fossil20110109/tools/url.c:149:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&z[n], "%s", p->zPath);
data/tk-html3-3.0~fossil20110109/tools/url.c:153:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&z[n], "?%s", p->zQuery);
data/tk-html3-3.0~fossil20110109/tools/url.c:157:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(&z[n], "#%s", p->zFragment);
data/tk-html3-3.0~fossil20110109/tools/url.c:185: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(zNew, z);
data/tk-html3-3.0~fossil20110109/tools/url.c:231:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(zBuf,"%s", base->zPath);
data/tk-html3-3.0~fossil20110109/tools/url.c:233:9:  [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(zBuf, term->zPath);
data/tk-html3-3.0~fossil20110109/tools/url.c:236: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(&zBuf[i+1], &zBuf[i+3]);
data/tk-html3-3.0~fossil20110109/tools/url.c:248:15:  [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(&zBuf[j+1], &zBuf[i+4]);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2901:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    extern char *getenv();
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2902:16:  [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.
    pathlist = getenv("PATH");
data/tk-html3-3.0~fossil20110109/hv/hv3events.c:453:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(aNew, apObj, nCopy);
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:388:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pSeeTclObject->apWord, apWord, n * sizeof(Tcl_Obj *));
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:538:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[64];
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:539:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "No such object: %d", iKey);
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:835: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 zBuf[256];
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:1705: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.
        const char *azString[6] = {
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:2035: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 zCmd[64];
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:2063: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(zCmd, "::see::interp_%d", iSeeInterp++);
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:2513:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *azString[6] = {
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:2600: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 zBuf[256];
data/tk-html3-3.0~fossil20110109/src/css.c:202:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char hexvalue[128] = {
data/tk-html3-3.0~fossil20110109/src/css.c:301: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(zRet, pToken->z, pToken->n);
data/tk-html3-3.0~fossil20110109/src/css.c:333: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 zBuf[100];
data/tk-html3-3.0~fossil20110109/src/css.c:480:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    n = sprintf(zOut, "#%.2x%.2x%.2x", aN[0], aN[1], aN[2]);
data/tk-html3-3.0~fossil20110109/src/css.c:511: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(zCopy, zArg, nArg);
data/tk-html3-3.0~fossil20110109/src/css.c:686:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pProp->v.zVal, z, n);
data/tk-html3-3.0~fossil20110109/src/css.c:952: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(pRet, pProp, sizeof(CssProperty));
data/tk-html3-3.0~fossil20110109/src/css.c:2501: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 zBuf[128];
data/tk-html3-3.0~fossil20110109/src/css.c:2527: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(zBuf, pProp->z, pProp->n);
data/tk-html3-3.0~fossil20110109/src/css.c:3544:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zTerm[MAX_CLASS_NAME];
data/tk-html3-3.0~fossil20110109/src/css.c:4246:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[256];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:525: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[STRING_LENGTH + 1], *p;
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:806:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(string, "%d %d %d %d",
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:816:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(string, "%d %d %d %d",
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:826:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string, "%%%%Pages: 1\n %%%%DocumentData: Clean7Bit\n",
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:859:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string, "/CL %d def\n", psInfo.colorLevel);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:878:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string, "%.1f %.1f translate\n", psInfo.pageX, psInfo.pageY);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:883:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string, "%.4g %.4g scale\n", psInfo.scale, psInfo.scale);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:885:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string, "%d %d translate\n", deltaX - psInfo.x, deltaY);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:887:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(string,
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:924:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char msg[64 + TCL_INTEGER_SPACE];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:926:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(msg, "\n    (generating Postscript for item)");
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1087: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 pointString[TCL_INTEGER_SPACE];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1133: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(pointString, "%d", points);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1161: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[100];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1196:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(string, "%02x", value);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1208:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(string, "%02x", value);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1229: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[200];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1271: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(string, "%.3f %.3f %.3f setrgbcolor AdjustColor\n",
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1288:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[TCL_INTEGER_SPACE * 2];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1308: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(string, "%d %d ", width, height);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1342: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[500];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1369: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(buffer, "%.15g %.15g [\n", (double) pB->left,
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXUSE + 10];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1449:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf + used, "\\%03o", c);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1531: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[256];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1628:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer,
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1643:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 1 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1647:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 8 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1651:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 8 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1672:33:  [2] (buffer) sprintf:
  Does 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, "%02X", data);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1685:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X", data);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1700:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X", (int) floor(0.5 + 255.0 *
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1721:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X%02X%02X",
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1738:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} image\n");
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1741:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} image\n");
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1744:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} false 3 colorimage\n");
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1748:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "0 %d translate\n", rows);
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1814:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[100 + TCL_DOUBLE_SPACE * 2 + TCL_INTEGER_SPACE * 4];
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:1815:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%.15g %.15g translate\n", (double) x,
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:29: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[256];
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:126:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer,
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:141:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 1 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:145:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 8 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:149:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, "%d %d 8 matrix {\n<", width, rows);
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:170:33:  [2] (buffer) sprintf:
  Does 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, "%02X", data);
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:183:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X", data);
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:198:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X", (int) floor(0.5 + 255.0 *
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:219:29:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                            sprintf(buffer, "%02X%02X%02X",
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:236:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} image\n");
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:239:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} image\n");
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:242:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(buffer, ">\n} false 3 colorimage\n");
data/tk-html3-3.0~fossil20110109/src/htmlPsImg.c:246:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "0 %d translate\n", rows);
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:58:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               (char *) htmlPtr, Tcl_GetString(objv[2]), 0);
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:114:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                (char *) htmlPtr, Tcl_GetString(objv[2]), 0);
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:654:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    CONST char *argv[3];
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:814:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(interp->result, "%d.%d", HtmlTokenNumber(p), i);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:228: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 hex[16] = { 
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:410:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, zInput, nScheme);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:424:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, zInput, nAuthority);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:435:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, zInput, nPath);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:449:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, zInput, nQuery);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:463:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, zInput, nFragment);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:500:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zRet, zOne, nOne);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:805: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 zBuf[64];
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:813: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(zBuf, "::tkhtml::uri%d", iUriCounter++);
data/tk-html3-3.0~fossil20110109/src/htmldraw.c:1001: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(pTo, pFrom, sizeof(HtmlCanvas));
data/tk-html3-3.0~fossil20110109/src/htmldraw.c:1314:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((char *)pItem->x.t.zText, zText, nText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:207: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 z[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:227: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 z[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:252: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 z[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:259: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(z, "%d", n);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:332:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char zBuf[BUFSIZ];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:388: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 *z, buf[BUFSIZ];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:401:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "<img src=%d.img>", icnt++);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:463:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char wh[40];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:465:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(wh, "%d %d", htmlPtr->maxX, htmlPtr->maxY);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:513: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 *argv[3];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:673:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char nbuf[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:686:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(nbuf, "%d ", HtmlTokenNumber(pElem));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:714:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char nbuf[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:718:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(nbuf, "%d ", HtmlTokenNumber(pElem));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:736:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[BUFSIZ];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:754:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:792:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[BUFSIZ];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:824:40:  [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).
        return HtmlFormColors(htmlPtr, atoi(argv[2]), atoi(argv[3]));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:824:55:  [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).
        return HtmlFormColors(htmlPtr, atoi(argv[2]), atoi(argv[3]));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:980:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[DOMMAXTOK + 1];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1058:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[DOMMAXTOK], *z;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1076:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            idx = atoi(buf);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1134: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(tok, "%d", idx);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1159: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 tok[DOMMAXTOK], *a, *z;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1176:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(tok, "%d", HtmlRadioCount(htmlPtr, p));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1284:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok, "%d %d", p ? HtmlTokenNumber(p) : -1,
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1288:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok, "%d", p ? HtmlTokenNumber(p) : -1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1388:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1389:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%d",
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1492:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1522: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).
            nostr = atoi(argv[n + 1]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1649: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 *cp, nbuf[50], *ep;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1683: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 str[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1701:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(str, "%d", p->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1722: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 *cp, nbuf[50], *ep;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1782: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 **vargv, *z, str[50], *cp;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1794:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(str, "%d", p->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1816: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 *z, str[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1834:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str, "%d", n);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1890: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 *z, str[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1891:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n = atoi(argv[5]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1892:47:  [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).
    form = HtmlGetIndexth(htmlPtr, Html_FORM, atoi(argv[3]));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1900:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(str, "%d", p->input.id);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1922: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 *vars[201], *cp;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1997:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int i = HtmlDomFormEl(htmlPtr, atoi(argv[3]), argv[4]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1998: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 str[50];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1999:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str, "%d", i);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2080: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 zLine[100];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2094:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "%d", p->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2105:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "%d Space %d %d", p->base.id,
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2108:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "Space %d %d",
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2176:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "%d", p->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2255: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 fake[99], **nv;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2403: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 zLine[100];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2608: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 zLine[256];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2618:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n1 = atoi(argv[4]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2619:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    n2 = atoi(argv[5]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2727:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zLine, "%d.%d %d.%d", n, i2, m, i1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2729:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zLine, "%d.%d %d.%d", n, i1, m, i2);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2752: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 zLine[256];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2840:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zLine, "%d.%d %d.%d", n, i1, m, i2);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2861: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 zLine[100];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2885:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "%d", n);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2906:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zLine, "%d", n);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2971: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.
    pat = (char *) HtmlAlloc(strlen(argv[3]) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3230:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    HtmlInsertToken(htmlPtr, pStart, (char *) argv[4], attr, -1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3311:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[20];
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3312:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf, "%d", HtmlTokenNumber(p));
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3533: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 zLine[100];
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:115:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[100];
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:116:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "(y=%d, ", pEntry->y);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:119:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, "left=%d, ", pEntry->left);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:121:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, "left=-, ");
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:125:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, "right=%d) ", pEntry->right);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:127:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, "right=-) ");
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:248:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pNew, pEntry, nBytes);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:748: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 zBuf[1024];
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:756: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(zBuf, "<p>Origin point is (%d, %d).</p>", x, y);
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:760:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zLeft[20];
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:761:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zRight[20];
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:762:9:  [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(zLeft, "N/A");
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:763:9:  [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(zRight, "N/A");
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:765:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        if (pCsr->leftValid)  { sprintf(zLeft, "%d", pCsr->left - x); }
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:766:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        if (pCsr->rightValid) { sprintf(zRight, "%d", pCsr->right - x); }
data/tk-html3-3.0~fossil20110109/src/htmlfloat.c:772: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(zBuf, "<tr><td>N/A<td>%d<td>N/A</table>", pList->yend - y);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:37: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(zBuf, ".bogus");
data/tk-html3-3.0~fossil20110109/src/htmlform.c:152:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char zBuf[60];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:155:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, " %d flush {}", p->input.pForm->form.id);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:625:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:683:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char zToken[50];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:692:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(zToken, " %d input ", pElem->input.pForm->form.id);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:727:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char zToken[50];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:736:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(zToken, " %d select ", pElem->input.pForm->form.id);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:770:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char zToken[50];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:779:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(zToken, " %d textarea ", pElem->input.pForm->form.id);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:833:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[30];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:837:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(buf, "%d", pElem->pNext->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:916:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char zBuf[5];
data/tk-html3-3.0~fossil20110109/src/htmlform.c:917:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(zBuf, "%%%02X", 0xff & *z);
data/tk-html3-3.0~fossil20110109/src/htmlhash.c:466: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(pStoredKey, pKey, sizeof(HtmlComputedValues));
data/tk-html3-3.0~fossil20110109/src/htmlindex.c:281: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 nbuf[50];
data/tk-html3-3.0~fossil20110109/src/htmlindex.c:294:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            cnt = atoi(nbuf);
data/tk-html3-3.0~fossil20110109/src/htmlindex.c:400:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200], *zBase = buf, *suffix, *ep;
data/tk-html3-3.0~fossil20110109/src/htmlinline.c:222: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 zBuf[1024];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:752:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char zTmp[256];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:775:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char zTmp[256];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1252:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "%d", index);
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1294:14:  [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(zBuf, "\xe2\x96\xa1");      /* Unicode 0x25A1 */ 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1297:14:  [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(zBuf, "\xe2\x97\x8b");      /* Unicode 0x25CB */ 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1300:14:  [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(zBuf ,"\xe2\x80\xa2");      /* Unicode 0x25CF */ 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1379:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[128];         /* Buffer for string to use as list marker */
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:2136:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pBox, pContent, sizeof(BoxContext));
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:2188:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zDim[128];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:2194:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zDim, 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:2200:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zDim, 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3118: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 zBuf[1024];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3119: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(zBuf, "min=%d max=%d isValid=%d nonegative=%d", 
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3784:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zMin[24];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3785:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zMax[24];
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3788:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        if (pMax) sprintf(zMax, "%d", *pMax);
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3789:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        else      sprintf(zMax, "N/A");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3790:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        if (pMin) sprintf(zMin, "%d", *pMin);
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:3791:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        else      sprintf(zMin, "N/A");
data/tk-html3-3.0~fossil20110109/src/htmlparse.c:599: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 zEnd[64];
data/tk-html3-3.0~fossil20110109/src/htmlparse.c:717: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 *argv[mxARG];           /* Pointers to each markup argument. */
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:491: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 zBuf[64];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:493: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(zBuf, "%f%c", rVal, type);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:665:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zCounter[512];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:828: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 zBuf[64];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:831:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "%.3fpts", (float)iFontSize / HTML_IFONTSIZE_SCALE);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:833:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "%dpx", -1 * iFontSize / HTML_IFONTSIZE_SCALE);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:871: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 zBuf[64];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:875:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "normal");
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:877:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "%.2f", (float)iVal * -0.01);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:879:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "%dpx", iVal);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:887: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 zBuf[64];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:892: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(zBuf, "%dpx", p->iVerticalAlign);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1265: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 zBuf[8];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1284:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char zBuf[14];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1368:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zOut, ap[ii]->v.zVal, n);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2032:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, pPrototype, sizeof(HtmlComputedValuesCreator));
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2044:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&values[iCopyBytes], &pvalues[iCopyBytes], nBytes);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2045:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&p->fontKey, pValues->fFont->pKey, sizeof(HtmlFontKey));
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2384: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 zTkFontName[256];      /* Tk font name */
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2450:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[24];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2452:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, "%.3fp", fontsize);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:647:55:  [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).
                        size = FontSize(style.font) - atoi(&z[1]) + 1;
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:650:55:  [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).
                        size = FontSize(style.font) + atoi(&z[1]);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:653:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        size = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:677:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char zToken[50];
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:705:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(zToken, " %d form {} ", p->form.id);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:798:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            int n = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:868:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int n = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1202: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 *z, buf[30];
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1213: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(buf, " %d", p->base.id);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1329:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->cell.rowspan = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1331:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                p->cell.colspan = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1371:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int w = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1376:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    int h = atoi(z);
data/tk-html3-3.0~fossil20110109/src/htmltable.c:339:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zPercent[32];
data/tk-html3-3.0~fossil20110109/src/htmltable.c:370:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zPercent, "%.2f%%", aReqWidth[ii].x.fVal);
data/tk-html3-3.0~fossil20110109/src/htmltable.c:372:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zPercent, "N/A");
data/tk-html3-3.0~fossil20110109/src/htmltable.c:1047:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        nSpan = zSpan?atoi(zSpan):1;
data/tk-html3-3.0~fossil20110109/src/htmltable.c:1054:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        nRSpan = zSpan?atoi(zSpan):1;
data/tk-html3-3.0~fossil20110109/src/htmltable.c:1837: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(aReqWidth, aSingleReqWidth, nCol*sizeof(CellReqWidth));
data/tk-html3-3.0~fossil20110109/src/htmltagdb.c:240:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tk-html3-3.0~fossil20110109/src/htmltagdb.c:312:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(zBuf, argv[idx], arglen[idx]);
data/tk-html3-3.0~fossil20110109/src/htmltagdb.c:321:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(zBuf, argv[idx+1], arglen[idx+1]);
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:103: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 zRes[128];
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:116: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(zRes, "%d %d", nObj, nRef);
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:171:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zStack[200];
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:1438:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(pTree->aFontSizeTable, aFontSize, sizeof(aFontSize));
data/tk-html3-3.0~fossil20110109/src/htmltest.c:73:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "a");
data/tk-html3-3.0~fossil20110109/src/htmltext.c:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char value[8];            /* The value for this sequence. ex: "&" */
data/tk-html3-3.0~fossil20110109/src/htmltext.c:647:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char value[8];
data/tk-html3-3.0~fossil20110109/src/htmltext.c:1979:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&pText->zText[nText], zStart, nThisText);
data/tk-html3-3.0~fossil20110109/src/htmltext.c:1986:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&pText->zText[nText], zStart, nThisText);
data/tk-html3-3.0~fossil20110109/src/htmltext.c:2031: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(z2, z, n);
data/tk-html3-3.0~fossil20110109/src/htmltext.c:2206: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(&sIter, pTextIter, sizeof(HtmlTextIter));
data/tk-html3-3.0~fossil20110109/src/htmltree.c:819: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 const *azPtr[MAX_NUM_ATTRIBUTES * 2];
data/tk-html3-3.0~fossil20110109/src/htmltree.c:2923:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zBuf[100];
data/tk-html3-3.0~fossil20110109/src/htmltree.c:2925:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(zBuf, "::tkhtml::node%d", nodeNumber++);
data/tk-html3-3.0~fossil20110109/src/htmltree.c:2963:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char zTmp[256];
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:89:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(zResult, z, n);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:422: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 *azSeq[2];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:214:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:217:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(buf, "%d", *sp);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:252:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:253:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                sprintf(buf, "%d", *sp);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:257:35:  [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).
                            *sp = atoi(arg);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:302:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:305:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(buf, "%d", *sp);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:339:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[50];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:340:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                sprintf(buf, "%d", *sp);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:344:35:  [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).
                            *sp = atoi(argv[i]);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:475: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(buf, "%g %g", frac1, frac2);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:511: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(buf, "%g %g", frac1, frac2);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:709:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[200];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:730:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[200];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1446:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[200];                /* Name of the font */
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1460:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char zBuf[100];            /* Temporary buffer */
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1464:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(zBuf, " %d {", FontSize(iFont) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1493:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(name, "%.100s", htmlPtr->interp->result);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1633: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 zAltColor[16];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2000: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 *z, zLine[100];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2006: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(zLine, "%d %d %d %d", coords[0], coords[1], coords[2], coords[3]);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2159: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.
        CONST char *sargv[20];
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:2381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[300];
data/tk-html3-3.0~fossil20110109/src/restrack.c:665:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pRet, p, MIN(current_sz, n));
data/tk-html3-3.0~fossil20110109/tools/getpage.c:27: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 baseUrl[1000];/* The base URL */
data/tk-html3-3.0~fossil20110109/tools/getpage.c:45: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(p->zLocal,"image%d", ++nImage);
data/tk-html3-3.0~fossil20110109/tools/getpage.c:86:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const char *azUrl[2];
data/tk-html3-3.0~fossil20110109/tools/getpage.c:112: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(baseUrl,"%.*s", sizeof(baseUrl), argv[i+1]);
data/tk-html3-3.0~fossil20110109/tools/getpage.c:150:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(zTemp,"r");
data/tk-html3-3.0~fossil20110109/tools/getpage.c:156:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  html = fopen("index.html","w");
data/tk-html3-3.0~fossil20110109/tools/httpget.c:34: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 zIpAddr[400];        /* The IP address of the server to print */
data/tk-html3-3.0~fossil20110109/tools/httpget.c:35: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 zMsg[1000];          /* Space to hold error messages */
data/tk-html3-3.0~fossil20110109/tools/httpget.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 zLine[1000];         /* A single line of the header */
data/tk-html3-3.0~fossil20110109/tools/httpget.c:38:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  out = fopen(zLocalFile, "w");
data/tk-html3-3.0~fossil20110109/tools/httpget.c:40: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(zMsg, "can't open output fule \"%.100s\"", zLocalFile);
data/tk-html3-3.0~fossil20110109/tools/httpget.c:75: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(&addr.sin_addr,pHost->h_addr_list[0],pHost->h_length);
data/tk-html3-3.0~fossil20110109/tools/httpget.c:86: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(zMsg,"can't open socket to %.100s", zIpAddr);
data/tk-html3-3.0~fossil20110109/tools/httpget.c:92: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(zMsg,"can't connect to host %.100s", zIpAddr);
data/tk-html3-3.0~fossil20110109/tools/httpget.c:162: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 zLocation[300];
data/tk-html3-3.0~fossil20110109/tools/httpget.c:169:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const char *az[2];
data/tk-html3-3.0~fossil20110109/tools/httpget.c:182: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(zActual, "%.*s", nActual, zUrl);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1313: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 errmsg[ERRMSGSIZE];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1314: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 prefix[PREFIXLIMIT+10];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1324: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(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1326: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(prefix,"%.*s: ",PREFIXLIMIT-10,filename);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1627: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 *set[LISTSIZE];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1970: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 *alias[MAXRHS];       /* Aliases for each RHS symbol (or NULL) */
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2451:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(ps.filename,"rb");
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2685:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(lemp->outname,mode);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2850:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[20];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2852:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"(%d)",cfp->rp->index);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2958:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[LINESIZE];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2984:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1000];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2991: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(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3008:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(tpltname,"rb");
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3135: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 zInt[40];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3156: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(zInt, "%d", p1);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3179: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 used[MAXRHS];   /* True for each RHS element which is used */
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[LINESIZE];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3494:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if( atoi(lemp->stacksize)<=0 ){
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3856:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[LINESIZE];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3857:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pattern[LINESIZE];
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:557: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(pDecl->zName,"%.*s",nName,zName);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:590: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(pId->zName,"%.*s",nId,zId);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:671:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  pIn = fopen(zFilename,"r");
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:688:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  pOut = fopen(zFilename,"w");
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1862: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(pIf->zCondition,"%.*s",nText,zText);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1938: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(pDecl->zDecl,"%.*s\n",pToken->nText,pToken->zText);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1967: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(pInclude->zFile,"%.*s",nArg,zArg);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1974: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(pInclude->zFile,"%.*s",nArg,zArg);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2737: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 zLabel[50];
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2906: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 zBuf[1000];        /* A single argument is accumulated here */
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2910:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(zFile,"r");
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:337:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(fileName,"rb");
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:543:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(p->zName,"%.*s",j-(i+11),&z[i+11]);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:554:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(p->zName,"%.*s",j-(i+14),&z[i+14]);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:863: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 zBuf[1000];        /* A single argument is accumulated here */
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:867:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  in = fopen(zFile,"r");
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:66: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 *argv[100];
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:67: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 zBuf[10000];
data/tk-html3-3.0~fossil20110109/tools/url.c:66: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(zResult, z, n);
data/tk-html3-3.0~fossil20110109/hv/hv3format.c:128: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).
                strlen(aKeyword[i]) == pBlob->nPrevWord &&
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:1920: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).
            if (strlen(Tcl_GetString(objv[2])) > 0) {
data/tk-html3-3.0~fossil20110109/hv/hv3see.c:1954: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).
            if (strlen(Tcl_GetString(pLog))>0) {
data/tk-html3-3.0~fossil20110109/src/css.c:218:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/css.c:339:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(zBuf, pToken->z, pToken->n);
data/tk-html3-3.0~fossil20110109/src/css.c:632: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).
                        nArg = strlen(zArg);
data/tk-html3-3.0~fossil20110109/src/css.c:651:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(pProp->v.zVal, zArg, nArg);
data/tk-html3-3.0~fossil20110109/src/css.c:725: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).
    token.n = (n < 0) ? strlen(z): n;
data/tk-html3-3.0~fossil20110109/src/css.c:754: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).
        n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/css.c:950: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).
    if (z) n += (strlen(z) + 1);
data/tk-html3-3.0~fossil20110109/src/css.c:2185: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).
        n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/css.c:3040:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int nString = strlen(zString);
data/tk-html3-3.0~fossil20110109/src/css.c:3041:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            while ((pAttr=HtmlCssGetNextListItem(pAttr, strlen(pAttr), &nAttr))) {
data/tk-html3-3.0~fossil20110109/src/css.c:3548:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (zClass = HtmlCssGetNextListItem(zClass, strlen(zClass), &nClass))
data/tk-html3-3.0~fossil20110109/src/css.c:3550:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(zTerm, zClass, MIN(MAX_CLASS_NAME, nClass));
data/tk-html3-3.0~fossil20110109/src/css.c:3654:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    HtmlTextNode *pTextNode = HtmlTextNew(strlen(zContent), zContent, 0, 0);
data/tk-html3-3.0~fossil20110109/src/css.c:3846:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    doUrlCmd(pParse, zUrl, strlen(zUrl));
data/tk-html3-3.0~fossil20110109/src/cssparser.c:608:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        nToken == strlen(aPseudo[ii].z) && 
data/tk-html3-3.0~fossil20110109/src/cssparser.c:1180:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (nList < 0) nList = strlen(zList);
data/tk-html3-3.0~fossil20110109/src/csssearch.c:240: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).
        assert(n == strlen(zOrig));
data/tk-html3-3.0~fossil20110109/src/htmlPs.c:672: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).
        length = strlen(psInfo.colorMode);
data/tk-html3-3.0~fossil20110109/src/htmlcmd.c:784:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        htmlPtr->zHandler[type] = HtmlAlloc(strlen(argv[4]) + 1);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:480:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int nSpace = strlen(zTwo) + 1;
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:484:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int nSpace = strlen(zTwo) + 2;
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:498: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).
        nSpace = strlen(zTwo) + nOne + 1;
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:511:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nPath = strlen(zPath);
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:556: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).
        (zScheme ? strlen(zScheme) + 1 : 0) +
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:557: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).
        (zAuthority ? strlen(zAuthority) + 2 : 0) +
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:558: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).
        (zPath ? strlen(zPath) + 2 : 0) +
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:559: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).
        (zQuery ? strlen(zQuery) + 1 : 0) +
data/tk-html3-3.0~fossil20110109/src/htmldecode.c:560: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).
        (zFragment ? strlen(zFragment) + 1 : 0) + 
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:760:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int l = strlen(str), n = strspn(str, "abcdefABCDEF0123456789");
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:763:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf + 1, str, 16);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:805:9:  [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(buf, " ");
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:1791: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).
                if (strlen(cp) >= 3 && cp[0] == 'o' && cp[1] == 'n') {
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2282:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(value);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2287: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).
    if (j >= c || (ol = strlen(p->markup.argv[j])) < l) {
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2301:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                nv[i] = (char *) HtmlAlloc(strlen(val) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2319:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nv[j + 1] = (char *) HtmlAlloc(strlen(value) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2324:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nv[i] = (char *) HtmlAlloc(strlen(name) + 1);;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2330:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            nv[i + 1] = (char *) HtmlAlloc(strlen(value) + 1);;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2517: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).
                j = strlen(p->text.zText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2630: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).
            j = strlen(p->text.zText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2648: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).
                    j = strlen(p->text.zText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2680: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).
        j = strlen(p->text.zText) - iStart.i;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2691: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).
                j = strlen(p->text.zText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2750:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int h, i1, i2, i = 0, j, k, l = strlen(pat), n, m = 0, fnd = 0, sfnd = 0;
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2763: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).
                j = strlen(p->text.zText);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2971: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).
    pat = (char *) HtmlAlloc(strlen(argv[3]) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2986: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).
    int l = strlen(str);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2988:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        clen = strlen(cp);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:2991:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cp + n, str, l);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3014:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = 0, l = strlen(str);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3042: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(cp);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3173:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!ib && ((ie - 1) >= strlen(pStart->text.zText)))
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3188:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                && ((ie - 1) >= strlen(pEnd->text.zText)))
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3217:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int idx = 0, i, tlen = strlen(argv[4]);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3222: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).
        tlen += strlen(attr);
data/tk-html3-3.0~fossil20110109/src/htmlexts.c:3594:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int i, l = strlen(line);
data/tk-html3-3.0~fossil20110109/src/htmlform.c:39:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(Tk_PathName(htmlPtr->clipwin));
data/tk-html3-3.0~fossil20110109/src/htmlhash.c:141: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).
    size = sizeof(Tcl_HashEntry) + strlen(string) + 1 - sizeof(hPtr->key);
data/tk-html3-3.0~fossil20110109/src/htmlhash.c:296:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(pKey->zFontFamily) + 1 +
data/tk-html3-3.0~fossil20110109/src/htmlindex.c:401:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, Baseind, sizeof(buf));
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1312:26:  [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 (isList) strcat(zBuf, ".");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1316:26:  [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 (isList) strcat(zBuf, ".");
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1418: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).
        pBox->width = Tk_TextWidth(font, zBuf, strlen(zBuf));
data/tk-html3-3.0~fossil20110109/src/htmllayout.c:1421:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pCanvas, zBuf, strlen(zBuf), 0, voffset, pBox->width, mmt, pNode, -1
data/tk-html3-3.0~fossil20110109/src/htmlparse.c:602:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nLen = (strlen(&z[*pN]) + *pN);
data/tk-html3-3.0~fossil20110109/src/htmlparse.c:606: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).
    nEnd = strlen(zEnd);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:379:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int nBytes = strlen(pProp->v.zVal) + 7;
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:414: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).
                    strlen(zFunc) + strlen(pProp->v.zVal) + 3
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:414:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(zFunc) + strlen(pProp->v.zVal) + 3
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:628: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).
            zOut = &zOut[strlen(zOut)];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:631: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).
        zOut = &zOut[strlen(zOut)];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:689:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1260:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (zColor[0] == '#' && strlen(zColor) == 4) {
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1276: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).
        if (!color && strlen(zColor) <= 12) {
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1291: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).
                "HtmlColor", sizeof(HtmlColor)+strlen(zColor)+1
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1344: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).
            nByte += (strlen(ap[ii]->v.zVal) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:1367: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).
        n = (strlen(ap[ii]->v.zVal) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2183: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).
    zCopy = (char *)HtmlAlloc("tmp", strlen(zArglist) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2186: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).
    zEnd = &zCopy[strlen(zCopy)];
data/tk-html3-3.0~fossil20110109/src/htmlprop.c:2430:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        "HtmlFont", sizeof(HtmlFont) + strlen(zTkFontName)+1
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:291: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).
    zCmd = HtmlAlloc(strlen(htmlPtr->zIsVisited) + strlen(zURL) + 10);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:291: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).
    zCmd = HtmlAlloc(strlen(htmlPtr->zIsVisited) + strlen(zURL) + 10);
data/tk-html3-3.0~fossil20110109/src/htmlsizer.c:1358: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).
                                         strlen(p->image.zAlt));
data/tk-html3-3.0~fossil20110109/src/htmlstyle.c:704: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).
    n = sizeof(StyleCounter) + strlen(zName) + 1;
data/tk-html3-3.0~fossil20110109/src/htmltagdb.c:249:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, zType, 255);
data/tk-html3-3.0~fossil20110109/src/htmltcl.c:503:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep( 2000 );
data/tk-html3-3.0~fossil20110109/src/htmltext.c:2036: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).
    populateTextNode(strlen(z2), z2, 0, &nToken, &nText);
data/tk-html3-3.0~fossil20110109/src/htmltext.c:2050: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).
    populateTextNode(strlen(z2), z2, pText, 0, 0);
data/tk-html3-3.0~fossil20110109/src/htmltree.c:850: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).
        aLen[i] = strlen(azPtr[i]);
data/tk-html3-3.0~fossil20110109/src/htmltree.c:2442: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).
                zCopy = HtmlAlloc("tmp", strlen(zAttrName)+1);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:85: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).
        n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:175: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).
        n += strlen(p->zScheme) + 1;
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:177: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).
        n += strlen(p->zAuthority) + 2;
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:179: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).
        n += strlen(p->zPath) + 1;
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:181: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).
        n += strlen(p->zQuery) + 1;
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:183: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).
        n += strlen(p->zFragment) + 1;
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:190: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).
        n = strlen(z);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:194: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).
        n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:198: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).
        n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:202: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).
        n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:243:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen(z);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:356:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                zBuf = HtmlAlloc(strlen(base->zPath) + strlen(term->zPath) + 2);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:356:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                zBuf = HtmlAlloc(strlen(base->zPath) + strlen(term->zPath) + 2);
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:359: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).
                    for (i = strlen(zBuf) - 1; i >= 0 && zBuf[i] != '/'; i--) {
data/tk-html3-3.0~fossil20110109/src/htmlurl.c:435: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).
        zSrc = HtmlAlloc(strlen(htmlPtr->interp->result) + 1);
data/tk-html3-3.0~fossil20110109/src/htmlwidget.c:1640:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(zColor);
data/tk-html3-3.0~fossil20110109/tools/getpage.c:41:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p = malloc( sizeof(*p) + strlen(zUrl) + 100 );
data/tk-html3-3.0~fossil20110109/tools/getpage.c:44: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).
  p->zLocal = &p->zUrl[strlen(zUrl)+1];
data/tk-html3-3.0~fossil20110109/tools/httpget.c:111:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while( (c=getc(sock))!=EOF && (c!='\n' || !last_was_nl) ){
data/tk-html3-3.0~fossil20110109/tools/httpget.c:137:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while( (c=getc(sock))!=EOF ){
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1328:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  prefixsize = strlen(prefix);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1334:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  errmsgsize = strlen(errmsg);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1378: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).
  *paz = malloc( strlen(z)+1 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1663: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).
  spcnt = strlen(argv[0]) + 1;
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1666: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).
    spcnt += strlen(argv[i])+1;
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1711:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strncmp(&argv[i][1],op[j].label,strlen(op[j].label))==0 ) break;
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1888: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(op[i].label) + 1;
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1917:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          (int)(max-strlen(op[i].label)-9),"",op[i].message);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1922:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          (int)(max-strlen(op[i].label)-6),"",op[i].message);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:1927:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          (int)(max-strlen(op[i].label)-8),"",op[i].message);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2408: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).
          if( strncmp(azDefine[k],&z[j],n)==0 && strlen(azDefine[k])==n ){
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2661: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).
  name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2661:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2706: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(sp->name);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2897:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    path = (char *)malloc( strlen(argv0) + strlen(name) + 2 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2897:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    path = (char *)malloc( strlen(argv0) + strlen(name) + 2 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2904:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2904:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:2908:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if( cp==0 ) cp = &pathlist[strlen(pathlist)];
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3146:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(zText);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3159: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).
      used += strlen(&z[used]);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3308: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).
    maxdtlength = strlen(lemp->vartype);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3314: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(sp->datatype);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3362: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).
      types[hash] = (char*)malloc( strlen(stddt)+1 );
data/tk-html3-3.0~fossil20110109/tools/lemon.c:3511:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen(lemp->arg);
data/tk-html3-3.0~fossil20110109/tools/lemon.c:4089: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( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:398: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).
    nByte = strlen(zSrc);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:401:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(zDest,zSrc,nByte);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:425: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).
    nByte = strlen(zText);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:436:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(&pStr->zText[pStr->nUsed],zText,nByte);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:449:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:468: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(zName);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:579: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).
    nId = strlen(zId);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:612: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).
    nId = strlen(zId);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:692: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).
  fwrite(zOutput,1,strlen(zOutput),pOut);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1852:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nByte += strlen(zPrefix) + 2;
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:1964:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pInclude = SafeMalloc( sizeof(Include) + nArg*2 + strlen(zIf) + 10 );
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2034:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      PushIfMacro("!",pIf->zCondition,strlen(pIf->zCondition),pIf->nLine,0);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2594: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).
       pFile->zHdr, strlen(pFile->zHdr), "");
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2650:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int n = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2753: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).
       pDecl->zIf ? strlen(pDecl->zIf)+1 : 0,
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2754:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       zDecl ? strlen(zDecl) : 0,
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2921:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(in); 
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2924:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/makeheaders.c:2932:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:172: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(zExtra) + 10;
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:178: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(p->zArg) + 6;
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:199:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(z,"0");
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:205:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:225:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i += strlen(&z[i]);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:235:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(&z[i],")");
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:248: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).
    z = SafeMalloc( strlen(zArg) + 3 );
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:256: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).
    z = SafeMalloc( strlen(zArg) + 10 );
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:378: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).
  zProc = SafeMalloc( strlen(zFunc) + 1 );
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:612: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).
  int len = strlen(zFile);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:615:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len2 = strlen(azCSuffix[i]);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:783:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:812:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      d = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:878:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(in); 
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:881:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:888:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:893:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:895:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if( c!=EOF ) c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:901:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/mktclapp.c:1017: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).
        int len = strlen(argv[i]);
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:69:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:75:37:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while( i<sizeof(zBuf)-2 && (c=getc(in))!=EOF && isspace(c) ){
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:87:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while( (c=getc(in))!=EOF && (cQuote || c!='>') ){
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:95:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if( c=='>' ) c = getc(in);
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:151:37:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while( i<sizeof(zBuf)-2 && (c=getc(in))!=EOF && c!='<' && !isspace(c) ){
data/tk-html3-3.0~fossil20110109/tools/sgmlparse.c:185:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  Handler *pNew = malloc( sizeof(Handler) + strlen(zName) + 1 );
data/tk-html3-3.0~fossil20110109/tools/url.c:62:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/url.c:132:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( p->zScheme )    n += strlen(p->zScheme)+1;
data/tk-html3-3.0~fossil20110109/tools/url.c:133:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( p->zAuthority ) n += strlen(p->zAuthority)+2;
data/tk-html3-3.0~fossil20110109/tools/url.c:134:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( p->zPath )      n += strlen(p->zPath)+1;
data/tk-html3-3.0~fossil20110109/tools/url.c:135:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( p->zQuery )     n += strlen(p->zQuery)+1;
data/tk-html3-3.0~fossil20110109/tools/url.c:136:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( p->zFragment )  n += strlen(p->zFragment)+1;
data/tk-html3-3.0~fossil20110109/tools/url.c:142:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/url.c:146: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).
    n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/tools/url.c:150: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).
    n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/tools/url.c:154: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).
    n += strlen(&z[n]);
data/tk-html3-3.0~fossil20110109/tools/url.c:182:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen(z);
data/tk-html3-3.0~fossil20110109/tools/url.c:229: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).
      zBuf = malloc( strlen(base->zPath) + strlen(term->zPath) + 2 );
data/tk-html3-3.0~fossil20110109/tools/url.c:229:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      zBuf = malloc( strlen(base->zPath) + strlen(term->zPath) + 2 );
data/tk-html3-3.0~fossil20110109/tools/url.c:232: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).
        for(i=strlen(zBuf)-1; i>=0 && zBuf[i]!='/'; i--){ zBuf[i] = 0; }

ANALYSIS SUMMARY:

Hits = 669
Lines analyzed = 71277 in approximately 2.00 seconds (35668 lines/second)
Physical Source Lines of Code (SLOC) = 48713
Hits@level = [0] 444 [1] 198 [2] 354 [3]   2 [4] 115 [5]   0
Hits@level+ = [0+] 1113 [1+] 669 [2+] 471 [3+] 117 [4+] 115 [5+]   0
Hits/KSLOC@level+ = [0+] 22.8481 [1+] 13.7335 [2+] 9.66888 [3+] 2.40182 [4+] 2.36077 [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.