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/libxfont-2.0.4/src/stubs/atom.c
Examining data/libxfont-2.0.4/src/stubs/libxfontstubs.c
Examining data/libxfont-2.0.4/src/fontfile/register.c
Examining data/libxfont-2.0.4/src/fontfile/catalogue.c
Examining data/libxfont-2.0.4/src/fontfile/gunzip.c
Examining data/libxfont-2.0.4/src/fontfile/renderers.c
Examining data/libxfont-2.0.4/src/fontfile/bunzip2.c
Examining data/libxfont-2.0.4/src/fontfile/defaults.c
Examining data/libxfont-2.0.4/src/fontfile/fontfile.c
Examining data/libxfont-2.0.4/src/fontfile/bufio.c
Examining data/libxfont-2.0.4/src/fontfile/bitsource.c
Examining data/libxfont-2.0.4/src/fontfile/fileio.c
Examining data/libxfont-2.0.4/src/fontfile/decompress.c
Examining data/libxfont-2.0.4/src/fontfile/fontscale.c
Examining data/libxfont-2.0.4/src/fontfile/dirfile.c
Examining data/libxfont-2.0.4/src/fontfile/fontencc.c
Examining data/libxfont-2.0.4/src/fontfile/filewr.c
Examining data/libxfont-2.0.4/src/fontfile/fontdir.c
Examining data/libxfont-2.0.4/src/fc/fslibos.h
Examining data/libxfont-2.0.4/src/fc/fsio.c
Examining data/libxfont-2.0.4/src/fc/fserve.h
Examining data/libxfont-2.0.4/src/fc/fstrans.c
Examining data/libxfont-2.0.4/src/fc/fservestr.h
Examining data/libxfont-2.0.4/src/fc/fsconvert.c
Examining data/libxfont-2.0.4/src/fc/fsio.h
Examining data/libxfont-2.0.4/src/fc/fserve.c
Examining data/libxfont-2.0.4/src/builtins/file.c
Examining data/libxfont-2.0.4/src/builtins/builtin.h
Examining data/libxfont-2.0.4/src/builtins/render.c
Examining data/libxfont-2.0.4/src/builtins/fpe.c
Examining data/libxfont-2.0.4/src/builtins/dir.c
Examining data/libxfont-2.0.4/src/builtins/fonts.c
Examining data/libxfont-2.0.4/src/FreeType/xttcap.c
Examining data/libxfont-2.0.4/src/FreeType/ftenc.c
Examining data/libxfont-2.0.4/src/FreeType/ftfuncs.c
Examining data/libxfont-2.0.4/src/FreeType/xttcap.h
Examining data/libxfont-2.0.4/src/FreeType/fttools.c
Examining data/libxfont-2.0.4/src/FreeType/ft.h
Examining data/libxfont-2.0.4/src/FreeType/ftfuncs.h
Examining data/libxfont-2.0.4/src/bitmap/bitmapfunc.c
Examining data/libxfont-2.0.4/src/bitmap/bitmaputil.c
Examining data/libxfont-2.0.4/src/bitmap/snfread.c
Examining data/libxfont-2.0.4/src/bitmap/bdfutils.c
Examining data/libxfont-2.0.4/src/bitmap/pcfwrite.c
Examining data/libxfont-2.0.4/src/bitmap/fontink.c
Examining data/libxfont-2.0.4/src/bitmap/bdfread.c
Examining data/libxfont-2.0.4/src/bitmap/bitscale.c
Examining data/libxfont-2.0.4/src/bitmap/snfstr.h
Examining data/libxfont-2.0.4/src/bitmap/pcfread.c
Examining data/libxfont-2.0.4/src/bitmap/bitmap.c
Examining data/libxfont-2.0.4/src/util/fontnames.c
Examining data/libxfont-2.0.4/src/util/replace.h
Examining data/libxfont-2.0.4/src/util/miscutil.c
Examining data/libxfont-2.0.4/src/util/strlcpy.c
Examining data/libxfont-2.0.4/src/util/format.c
Examining data/libxfont-2.0.4/src/util/reallocarray.c
Examining data/libxfont-2.0.4/src/util/fontutil.c
Examining data/libxfont-2.0.4/src/util/patcache.c
Examining data/libxfont-2.0.4/src/util/fontaccel.c
Examining data/libxfont-2.0.4/src/util/strlcat.c
Examining data/libxfont-2.0.4/src/util/private.c
Examining data/libxfont-2.0.4/src/util/utilbitmap.c
Examining data/libxfont-2.0.4/src/util/fontxlfd.c
Examining data/libxfont-2.0.4/test/utils/lsfontdir.c
Examining data/libxfont-2.0.4/test/utils/font-test-utils.c
Examining data/libxfont-2.0.4/test/utils/font-test-utils.h
Examining data/libxfont-2.0.4/include/libxfontint.h
Examining data/libxfont-2.0.4/include/X11/fonts/fntfilst.h
Examining data/libxfont-2.0.4/include/X11/fonts/fontencc.h
Examining data/libxfont-2.0.4/include/X11/fonts/libxfont2.h
Examining data/libxfont-2.0.4/include/X11/fonts/fontutil.h
Examining data/libxfont-2.0.4/include/X11/fonts/pcf.h
Examining data/libxfont-2.0.4/include/X11/fonts/bdfint.h
Examining data/libxfont-2.0.4/include/X11/fonts/bitmap.h
Examining data/libxfont-2.0.4/include/X11/fonts/fontshow.h
Examining data/libxfont-2.0.4/include/X11/fonts/fntfilio.h
Examining data/libxfont-2.0.4/include/X11/fonts/fontxlfd.h
Examining data/libxfont-2.0.4/include/X11/fonts/fontmisc.h
Examining data/libxfont-2.0.4/include/X11/fonts/bufio.h
Examining data/libxfont-2.0.4/include/X11/fonts/fntfil.h

FINAL RESULTS:

data/libxfont-2.0.4/src/fontfile/catalogue.c:164:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	len = readlink(link, dest, sizeof dest - 1);
data/libxfont-2.0.4/src/bitmap/bdfread.c:576:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        sscanf((char *) line, "STARTFONT " BDFLINESTR, namebuf) != 1 ||
data/libxfont-2.0.4/src/bitmap/bdfread.c:671:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	switch (sscanf((char *) line,
data/libxfont-2.0.4/src/bitmap/bdfutils.c:78:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, message, args);
data/libxfont-2.0.4/src/bitmap/bdfutils.c:91:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, message, args);
data/libxfont-2.0.4/src/bitmap/pcfread.c:59:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, message, args);
data/libxfont-2.0.4/src/bitmap/snfread.c:73:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, message, args);
data/libxfont-2.0.4/src/fontfile/dirfile.c:131:18:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	while ((count = fscanf(file, format, file_name, font_name)) != EOF) {
data/libxfont-2.0.4/test/utils/font-test-utils.c:314:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		fullpath = realpath(fpe->name, NULL);
data/libxfont-2.0.4/include/X11/fonts/bdfint.h:47: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        fontName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/FreeType/ftenc.c:74: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[20];
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:446:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)&instance->ttcap, (char*)tmp_ttcap,
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1107:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((char*)&tgp->metrics,
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1112:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((char*)&tgp->metrics,
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1573: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 *sp, *ep, val[MAXFONTNAMELEN], *vp;
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2211:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(*dynStrRealFileName, fileName, dirLen);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2822: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((char*)font->ranges, (char*)vals->ranges,
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:3595:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)&info->ink_maxbounds,
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:3597:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)&info->ink_minbounds,
data/libxfont-2.0.4/src/FreeType/fttools.c:133: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(name_return, name.string, len);
data/libxfont-2.0.4/src/FreeType/xttcap.c:503:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        is = fopen(strFileName, "r");
data/libxfont-2.0.4/src/FreeType/xttcap.c:626: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(value, p+1, len);
data/libxfont-2.0.4/src/FreeType/xttcap.c:649: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(duplicated, strCapHead, nextColon-strCapHead);
data/libxfont-2.0.4/src/bitmap/bdfread.c:104:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char        lineBuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:213:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char        lineBuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:276:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char        lineBuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:349:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        charName[100];
data/libxfont-2.0.4/src/bitmap/bdfread.c:571: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        namebuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:572:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char        lineBuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:622: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        namebuf[BDFLINELEN],
data/libxfont-2.0.4/src/bitmap/bdfread.c:626:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char        lineBuf[BDFLINELEN];
data/libxfont-2.0.4/src/bitmap/bdfread.c:692:27:  [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).
		props[nextProp].value = atoi(secondbuf);
data/libxfont-2.0.4/src/bitmap/bitscale.c:323: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	    zeroChars[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/bitmap/bitscale.c:342: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 (zeroChars, entry->name.name, entry->name.length);
data/libxfont-2.0.4/src/bitmap/bitscale.c:1559: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		fontName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/bitmap/fontink.c:42:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char ink_mask_msb[8] = {
data/libxfont-2.0.4/src/bitmap/fontink.c:46:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char ink_mask_lsb[8] = {
data/libxfont-2.0.4/src/builtins/dir.c:189:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				  (char *) builtin_dir[i].font_name,
data/libxfont-2.0.4/src/builtins/dir.c:190:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				  (char *) builtin_dir[i].file_name))
data/libxfont-2.0.4/src/builtins/dir.c:199: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 *) builtin_alias[i].alias_name,
data/libxfont-2.0.4/src/builtins/dir.c:200: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 *) builtin_alias[i].font_name))
data/libxfont-2.0.4/src/builtins/file.c:51: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 (f->buffer, io->file->bits + io->offset, len);
data/libxfont-2.0.4/src/fc/fsconvert.c:122:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&local_off, off_adr, SIZEOF(fsPropOffset));
data/libxfont-2.0.4/src/fc/fsconvert.c:705: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 (fsd->name, name, namelen);
data/libxfont-2.0.4/src/fc/fserve.c:1114:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fscilocal, fsci, SIZEOF(fsXCharInfo)); /* align it */
data/libxfont-2.0.4/src/fc/fserve.c:1643:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	    buf[1024];
data/libxfont-2.0.4/src/fc/fserve.c:1726: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(&buf[1], name, namelen);
data/libxfont-2.0.4/src/fc/fserve.c:1767:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, name, MIN(256, namelen));
data/libxfont-2.0.4/src/fc/fserve.c:2028:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&local_off, off_adr, SIZEOF(fsOffset32));	/* align it */
data/libxfont-2.0.4/src/fc/fserve.c:2044:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(bits, (char *)pbitmaps + local_off.position,
data/libxfont-2.0.4/src/fc/fserve.c:2141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char range_buffer[RANGE_BUFFER_SIZE * 4];
data/libxfont-2.0.4/src/fc/fserve.c:2455:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[256];
data/libxfont-2.0.4/src/fc/fserve.c:2457:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, pattern, MIN(256, patlen));
data/libxfont-2.0.4/src/fc/fserve.c:2558:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (binfo->name, buf, rep->nameLength);
data/libxfont-2.0.4/src/fc/fserve.c:2610:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (binfo->name, buf, rep->nameLength);
data/libxfont-2.0.4/src/fc/fserve.c:2683:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[256];
data/libxfont-2.0.4/src/fc/fserve.c:2685:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, pattern, MIN(256, len));
data/libxfont-2.0.4/src/fc/fserve.c:2809: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		    padding[4] = { 0, 0, 0, 0 };
data/libxfont-2.0.4/src/fc/fserve.c:3049:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (alt_save, alt_names + 2, alt_len);
data/libxfont-2.0.4/src/fc/fservestr.h:120: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	name[256];
data/libxfont-2.0.4/src/fc/fsio.c:397: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 (conn->outBuf.buf + conn->outBuf.insert, data, len);
data/libxfont-2.0.4/src/fontfile/catalogue.c:104:6:  [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).
	    atoi(pri1 + strlen(PriorityAttribute)) -
data/libxfont-2.0.4/src/fontfile/catalogue.c:105:6:  [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).
	    atoi(pri2 + strlen(PriorityAttribute));
data/libxfont-2.0.4/src/fontfile/catalogue.c:136: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		link[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/catalogue.c:137: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		dest[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/catalogue.c:174: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(dest, path, pathlen);
data/libxfont-2.0.4/src/fontfile/catalogue.c:175: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(dest + pathlen, "/", 1);
data/libxfont-2.0.4/src/fontfile/catalogue.c:182:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(dest + len, attrib, strlen(attrib));
data/libxfont-2.0.4/src/fontfile/catalogue.c:203:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name, dest, len);
data/libxfont-2.0.4/src/fontfile/dirfile.c:61: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        file_name[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:62: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        font_name[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:63: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        dir_file[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:64: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	dir_path[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:72: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 format[24] = "";
data/libxfont-2.0.4/src/fontfile/dirfile.c:99:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file_fd = open(dir_file, O_RDONLY | O_NOFOLLOW);
data/libxfont-2.0.4/src/fontfile/dirfile.c:104:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(dir_file, "rt");
data/libxfont-2.0.4/src/fontfile/dirfile.c:174: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	dir_file[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:214: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	    copy[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:272: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		alias[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:273: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		font_name[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:274: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		alias_file[MAXFONTFILENAMELEN];
data/libxfont-2.0.4/src/fontfile/dirfile.c:296:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file_fd = open(alias_file, O_RDONLY | O_NOFOLLOW);
data/libxfont-2.0.4/src/fontfile/dirfile.c:301:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(alias_file, "rt");
data/libxfont-2.0.4/src/fontfile/fileio.c:54:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_BINARY|O_CLOEXEC|O_NOFOLLOW);
data/libxfont-2.0.4/src/fontfile/filewr.c:49:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_CLOEXEC, 0666);
data/libxfont-2.0.4/src/fontfile/fontdir.c:199: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 (entry->name.name, prototype->name.name, prototype->name.length);
data/libxfont-2.0.4/src/fontfile/fontfile.c:150: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		aliasname[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:152: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		lowerName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:265: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		lowerName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:266: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		fileName[MAXFONTFILENAMELEN*2 + 1];
data/libxfont-2.0.4/src/fontfile/fontfile.c:428: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 origName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:521: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		fileName[MAXFONTFILENAMELEN*2+1];
data/libxfont-2.0.4/src/fontfile/fontfile.c:558: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		fileName[MAXFONTFILENAMELEN*2+1];
data/libxfont-2.0.4/src/fontfile/fontfile.c:584:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nameChars[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:697: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		lowerChars[MAXFONTNAMELEN], zeroChars[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:851: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		lowerName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontfile.c:852: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		fileName[MAXFONTFILENAMELEN*2 + 1];
data/libxfont-2.0.4/src/fontfile/fontfile.c:999: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 origName[MAXFONTNAMELEN];
data/libxfont-2.0.4/src/fontfile/fontscale.c:89:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (nonScalable[b].name.name == (char *) scaled[i].bitmap)
data/libxfont-2.0.4/src/util/fontutil.c:137:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   defc[2];
data/libxfont-2.0.4/src/util/fontxlfd.c:81: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[80], *p1, *p2;
data/libxfont-2.0.4/src/util/fontxlfd.c:150:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    exponent = atoi(p1 + 2);
data/libxfont-2.0.4/src/util/fontxlfd.c:221:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char b[8];
data/libxfont-2.0.4/src/util/fontxlfd.c:269:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[40];
data/libxfont-2.0.4/src/util/fontxlfd.c:391: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        tmpBuf[1024];
data/libxfont-2.0.4/src/util/fontxlfd.c:541: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 buffer[XLFD_DOUBLE_TO_TEXT_BUF_SIZE];
data/libxfont-2.0.4/src/util/fontxlfd.c:566: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 buffer[XLFD_DOUBLE_TO_TEXT_BUF_SIZE];
data/libxfont-2.0.4/src/util/patcache.c:161: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 (newpat, pattern, patlen);
data/libxfont-2.0.4/src/util/private.c:97:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (new, pFont->devPrivates, (pFont->maxPrivate + 1) * sizeof (pointer));
data/libxfont-2.0.4/src/util/utilbitmap.c:39:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char _reverse_byte[0x100] = {
data/libxfont-2.0.4/include/X11/fonts/bdfint.h:32: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).
#define bdfIsPrefix(buf,str)	(!strncmp((char *)buf,str,strlen(str)))
data/libxfont-2.0.4/src/FreeType/ftenc.c:91:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(enc) + strlen(reg) > 18)
data/libxfont-2.0.4/src/FreeType/ftenc.c:91: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(strlen(enc) + strlen(reg) > 18)
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1641: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).
    info->props[i].value = MakeAtom(val, strlen(val), TRUE);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1655: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).
                MakeAtom(xlfd_props[j], strlen(xlfd_props[j]), TRUE);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1735: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(vp);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1751: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(vp);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1763:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j = strlen(vp);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1775: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(vp);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:1867: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).
    info->props[i].value = MakeAtom(vp, strlen(vp), TRUE);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2190: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(fileName);
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2275: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).
		1 + strlen(beginptr) + 1 + strlen(*dynStrRealFileName) + 1;
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2275: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).
		1 + strlen(beginptr) + 1 + strlen(*dynStrRealFileName) + 1;
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2344: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 ( strlen(beginptr) < 1 ) break;
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2395:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (1 != strlen(strSpace))
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2423: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 ( 0 < strlen(strDoubleStrike) ) {
data/libxfont-2.0.4/src/FreeType/ftfuncs.c:2510: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).
        if ( 1 == strlen(strEmbeddedBitmap) ) {
data/libxfont-2.0.4/src/FreeType/xttcap.c:307:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int c = fgetc(is);
data/libxfont-2.0.4/src/FreeType/xttcap.c:367:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                c = fgetc(is);
data/libxfont-2.0.4/src/FreeType/xttcap.c:475:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            valueHead = buf+strlen(buf);
data/libxfont-2.0.4/src/bitmap/bdfread.c:142: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).
	inLineLen = strlen((char *) pInBits);
data/libxfont-2.0.4/src/bitmap/bdfread.c:352:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf((char *) line, "STARTCHAR %99s", charName) != 1) {
data/libxfont-2.0.4/src/bitmap/bdfread.c:456: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).
	    for (p = line + strlen("ATTRIBUTES ");
data/libxfont-2.0.4/src/bitmap/bdfread.c:470:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(charName) == 1)) {
data/libxfont-2.0.4/src/bitmap/bdfread.c:686: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).
		    bdfGetPropertyValue((char *)line + strlen(namebuf) + 1);
data/libxfont-2.0.4/src/bitmap/bdfread.c:707: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).
		    bdfGetPropertyValue((char *)line + strlen(namebuf) + 1);
data/libxfont-2.0.4/src/bitmap/bdfutils.c:133: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).
    register int len = strlen(str);
data/libxfont-2.0.4/src/bitmap/bdfutils.c:176: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).
    pp = p = malloc((unsigned) strlen(s) + 1);
data/libxfont-2.0.4/src/bitmap/bdfutils.c:179:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 (int) strlen(s) + 1);
data/libxfont-2.0.4/src/bitmap/bitscale.c:181: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).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/libxfont-2.0.4/src/bitmap/bitscale.c:185: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).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/libxfont-2.0.4/src/bitmap/bitscale.c:189: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).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/libxfont-2.0.4/src/bitmap/bitscale.c:346: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).
    zeroName.length = strlen (zeroChars);
data/libxfont-2.0.4/src/bitmap/bitscale.c:349: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).
    xlfdName.length = strlen(xlfdName.name);
data/libxfont-2.0.4/src/bitmap/bitscale.c:373: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).
		    xlfdName.length = strlen(xlfdName.name);
data/libxfont-2.0.4/src/bitmap/bitscale.c:648: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).
	    fp->value = MakeAtom(name, strlen(name), TRUE);
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:248: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).
	prop_string_size += strlen(pcfNameForAtom(pFont->info.props[i].name)) + 1;
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:251: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).
	    prop_string_size += strlen(pcfNameForAtom(pFont->info.props[i].value)) + 1;
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:329: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).
		glyph_string_size += strlen(pcfNameForAtom(bitmapFont->bitmapExtra->glyphNames[i])) + 1;
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:381:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:384: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).
		    pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:453: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).
		offset += strlen(pcfNameForAtom(bitmapFont->bitmapExtra->glyphNames[i])) + 1;
data/libxfont-2.0.4/src/bitmap/pcfwrite.c:458:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/libxfont-2.0.4/src/bitmap/snfread.c:166: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).
			     (unsigned) strlen(&strings[psnfp->name]), 1);
data/libxfont-2.0.4/src/bitmap/snfread.c:170: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).
			       (unsigned) strlen(&strings[psnfp->value]), 1);
data/libxfont-2.0.4/src/builtins/dir.c:67: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).
        memmove (a_cur->font_name, a_saved->font_name, strlen (a_saved->font_name)) ;
data/libxfont-2.0.4/src/builtins/dir.c:126: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).
        memmove (a_cur->alias_name, a_save->alias_name, strlen (a_save->alias_name)) ;
data/libxfont-2.0.4/src/builtins/dir.c:128:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove (a_cur->font_name, a_save->font_name, strlen (a_save->font_name)) ;
data/libxfont-2.0.4/src/fc/fserve.c:1680: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).
	    namelen = strlen(name);
data/libxfont-2.0.4/src/fc/fserve.c:3147: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).
	    end = cat + strlen (cat);
data/libxfont-2.0.4/src/fc/fserve.c:3165: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).
	    end = cat + strlen (cat);
data/libxfont-2.0.4/src/fc/fserve.c:3374:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t	snlen = strlen (servername) + 1;
data/libxfont-2.0.4/src/fontfile/bufio.c:73:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    left = read (FileDes(f), (char *)f->buffer, BUFFILESIZE);
data/libxfont-2.0.4/src/fontfile/bufio.c:104:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fileoff = read (FileDes(f), (char *)f->buffer, curoff);
data/libxfont-2.0.4/src/fontfile/catalogue.c:104: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).
	    atoi(pri1 + strlen(PriorityAttribute)) -
data/libxfont-2.0.4/src/fontfile/catalogue.c:105: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).
	    atoi(pri2 + strlen(PriorityAttribute));
data/libxfont-2.0.4/src/fontfile/catalogue.c:147: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).
    path = fpe->name + strlen(CataloguePrefix);
data/libxfont-2.0.4/src/fontfile/catalogue.c:172: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).
	   pathlen = strlen(path);
data/libxfont-2.0.4/src/fontfile/catalogue.c:180:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (attrib && len + strlen(attrib) < sizeof dest)
data/libxfont-2.0.4/src/fontfile/catalogue.c:182: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).
	    memcpy(dest + len, attrib, strlen(attrib));
data/libxfont-2.0.4/src/fontfile/catalogue.c:183:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len += strlen(attrib);
data/libxfont-2.0.4/src/fontfile/dirfile.c:79:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(directory) + 1 + sizeof(FontDirFile) > sizeof(dir_file))
data/libxfont-2.0.4/src/fontfile/dirfile.c:89:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dir_path, directory, ptr - directory);
data/libxfont-2.0.4/src/fontfile/dirfile.c:95: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 (dir_file[strlen(dir_file) - 1] != '/')
data/libxfont-2.0.4/src/fontfile/dirfile.c:134:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    for (i=0; i<strlen(font_name); i++) {
data/libxfont-2.0.4/src/fontfile/dirfile.c:177:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dir->directory) + sizeof(FontDirFile) > sizeof(dir_file))
data/libxfont-2.0.4/src/fontfile/dirfile.c:191: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).
    if ((strlen(dir->directory) + sizeof(FontAliasFile)) > sizeof(dir_file))
data/libxfont-2.0.4/src/fontfile/dirfile.c:230:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (fileName) - renderer->fileSuffixLen;
data/libxfont-2.0.4/src/fontfile/dirfile.c:283:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(directory) >= sizeof(alias_file))
data/libxfont-2.0.4/src/fontfile/dirfile.c:288:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(directory) + 1 + sizeof(FontAliasFile) > sizeof(alias_file))
data/libxfont-2.0.4/src/fontfile/dirfile.c:290:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (directory[strlen(directory) - 1] != '/')
data/libxfont-2.0.4/src/fontfile/dirfile.c:335: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).
	    if (strlen(lexToken) >= sizeof(alias)) {
data/libxfont-2.0.4/src/fontfile/dirfile.c:355:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(lexToken) >= sizeof(font_name)) {
data/libxfont-2.0.4/src/fontfile/dirfile.c:359: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).
		CopyISOLatin1Lowered(alias, alias, strlen(alias));
data/libxfont-2.0.4/src/fontfile/dirfile.c:360: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).
		CopyISOLatin1Lowered(font_name, lexToken, strlen(lexToken));
data/libxfont-2.0.4/src/fontfile/dirfile.c:488:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(file);
data/libxfont-2.0.4/src/fontfile/dirfile.c:494:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/libxfont-2.0.4/src/fontfile/fileio.c:63: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 (name);
data/libxfont-2.0.4/src/fontfile/fontdir.c:123: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).
	attriblen = strlen(attrib);
data/libxfont-2.0.4/src/fontfile/fontdir.c:125: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).
	dirlen = strlen(dirName);
data/libxfont-2.0.4/src/fontfile/fontdir.c:155:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dir->directory, dirName, dirlen);
data/libxfont-2.0.4/src/fontfile/fontdir.c:570: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).
				       strlen(fname->u.alias.resolved));
data/libxfont-2.0.4/src/fontfile/fontdir.c:633: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).
    entry.name.length = strlen (fontName);
data/libxfont-2.0.4/src/fontfile/fontdir.c:667: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 uslength = strlen(UNSCALED_ATTRIB);
data/libxfont-2.0.4/src/fontfile/fontdir.c:674: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).
		length = dir->attributes + strlen(dir->attributes) - ptr1;
data/libxfont-2.0.4/src/fontfile/fontdir.c:712: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).
	    entry.name.length = strlen (entry.name.name);
data/libxfont-2.0.4/src/fontfile/fontdir.c:817: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).
    entry.name.length = strlen (aliasName);
data/libxfont-2.0.4/src/fontfile/fontfile.c:155:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(*aliasName)) <= MAXFONTNAMELEN &&
data/libxfont-2.0.4/src/fontfile/fontfile.c:295: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).
        tmpName.length = strlen(lowerName);
data/libxfont-2.0.4/src/fontfile/fontfile.c:347: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).
	!(tmpName.length = strlen (lowerName),
data/libxfont-2.0.4/src/fontfile/fontfile.c:442:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if (strlen(dir->directory) + strlen(scalable->fileName) >=
data/libxfont-2.0.4/src/fontfile/fontfile.c:442: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 (strlen(dir->directory) + strlen(scalable->fileName) >=
data/libxfont-2.0.4/src/fontfile/fontfile.c:529:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dir->directory) + strlen(bitmap->fileName) >= sizeof(fileName))
data/libxfont-2.0.4/src/fontfile/fontfile.c:529: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).
    if (strlen(dir->directory) + strlen(bitmap->fileName) >= sizeof(fileName))
data/libxfont-2.0.4/src/fontfile/fontfile.c:566:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dir->directory) + strlen(bitmap->fileName) >= sizeof(fileName))
data/libxfont-2.0.4/src/fontfile/fontfile.c:566: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).
    if (strlen(dir->directory) + strlen(bitmap->fileName) >= sizeof(fileName))
data/libxfont-2.0.4/src/fontfile/fontfile.c:635: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).
					 strlen (nameChars));
data/libxfont-2.0.4/src/fontfile/fontfile.c:656: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).
					     strlen(zeroChars),
data/libxfont-2.0.4/src/fontfile/fontfile.c:661: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).
					     strlen (nameChars));
data/libxfont-2.0.4/src/fontfile/fontfile.c:665: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).
					     strlen (aliasName));
data/libxfont-2.0.4/src/fontfile/fontfile.c:682:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 strlen (aliasName));
data/libxfont-2.0.4/src/fontfile/fontfile.c:731: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).
	zeroName.length = strlen (zeroChars);
data/libxfont-2.0.4/src/fontfile/fontfile.c:884: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).
        tmpName.length = strlen(lowerName);
data/libxfont-2.0.4/src/fontfile/fontfile.c:908: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).
	    *namelenp = strlen (*namep);
data/libxfont-2.0.4/src/fontfile/fontfile.c:933: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).
	!(tmpName.length = strlen (lowerName),
data/libxfont-2.0.4/src/fontfile/fontfile.c:1008:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if (strlen(dir->directory) + strlen(scalable->fileName) >=
data/libxfont-2.0.4/src/fontfile/fontfile.c:1008: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 (strlen(dir->directory) + strlen(scalable->fileName) >=
data/libxfont-2.0.4/src/fontfile/renderers.c:103: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).
    fileLen = strlen (fileName);
data/libxfont-2.0.4/src/stubs/atom.c:187:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(a->name, string, len);
data/libxfont-2.0.4/src/util/fontnames.c:119:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nelt, name, length);
data/libxfont-2.0.4/src/util/fontxlfd.c:148:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (p1 = buffer + strlen(buffer);
data/libxfont-2.0.4/src/util/fontxlfd.c:362: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).
        for (i = 0; i < nranges && strlen(fname) < 1010; i++)
data/libxfont-2.0.4/src/util/fontxlfd.c:366: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).
	    curlen = strlen(fname);
data/libxfont-2.0.4/src/util/fontxlfd.c:464: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).
	if ((ptr - fname) + spacingLen + strlen(ptr5) + 10 >= (unsigned)1024)
data/libxfont-2.0.4/src/util/fontxlfd.c:525: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).
	tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/fontxlfd.c:530: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).
	tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/fontxlfd.c:535: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).
	tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/fontxlfd.c:559: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).
	    tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/fontxlfd.c:584: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).
	    tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/fontxlfd.c:588: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).
	tlen = strlen(tmpBuf);
data/libxfont-2.0.4/src/util/strlcat.c:47: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).
        return (dlen + strlen(s));
data/libxfont-2.0.4/test/utils/font-test-utils.c:302: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).
	fpe->name_length = strlen(fpe->name);
data/libxfont-2.0.4/test/utils/font-test-utils.c:318: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).
		fpe->name_length = strlen(fpe->name);
data/libxfont-2.0.4/test/utils/lsfontdir.c:60: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).
	    (NULL, fpe, pattern, strlen(pattern), max_names_count, names);

ANALYSIS SUMMARY:

Hits = 234
Lines analyzed = 27953 in approximately 0.82 seconds (34158 lines/second)
Physical Source Lines of Code (SLOC) = 21277
Hits@level = [0] 123 [1] 124 [2] 101 [3]   1 [4]   7 [5]   1
Hits@level+ = [0+] 357 [1+] 234 [2+] 110 [3+]   9 [4+]   8 [5+]   1
Hits/KSLOC@level+ = [0+] 16.7787 [1+] 10.9978 [2+] 5.1699 [3+] 0.422992 [4+] 0.375993 [5+] 0.0469991
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.