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/xfonts-utils-7.7+6/bdftopcf/atom.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bdfint.h
Examining data/xfonts-utils-7.7+6/bdftopcf/bdfread.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bdftopcf.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bdfutils.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bitmap.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bitmap.h
Examining data/xfonts-utils-7.7+6/bdftopcf/bitmaputil.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bufio.c
Examining data/xfonts-utils-7.7+6/bdftopcf/bufio.h
Examining data/xfonts-utils-7.7+6/bdftopcf/config.h
Examining data/xfonts-utils-7.7+6/bdftopcf/defaults.c
Examining data/xfonts-utils-7.7+6/bdftopcf/fileio.c
Examining data/xfonts-utils-7.7+6/bdftopcf/filewr.c
Examining data/xfonts-utils-7.7+6/bdftopcf/fntfil.h
Examining data/xfonts-utils-7.7+6/bdftopcf/fntfilio.h
Examining data/xfonts-utils-7.7+6/bdftopcf/fntfilst.h
Examining data/xfonts-utils-7.7+6/bdftopcf/font.h
Examining data/xfonts-utils-7.7+6/bdftopcf/fontaccel.c
Examining data/xfonts-utils-7.7+6/bdftopcf/fontink.c
Examining data/xfonts-utils-7.7+6/bdftopcf/fontmisc.h
Examining data/xfonts-utils-7.7+6/bdftopcf/fontutil.h
Examining data/xfonts-utils-7.7+6/bdftopcf/fontxlfd.h
Examining data/xfonts-utils-7.7+6/bdftopcf/pcf.h
Examining data/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c
Examining data/xfonts-utils-7.7+6/bdftopcf/private.c
Examining data/xfonts-utils-7.7+6/bdftopcf/stubs.h
Examining data/xfonts-utils-7.7+6/bdftopcf/utilbitmap.c
Examining data/xfonts-utils-7.7+6/font-util/bdftruncate.c
Examining data/xfonts-utils-7.7+6/font-util/ucs2any.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/env.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/fonttosfnt.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/fonttosfnt.h
Examining data/xfonts-utils-7.7+6/fonttosfnt/read.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/struct.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/util.c
Examining data/xfonts-utils-7.7+6/fonttosfnt/write.c
Examining data/xfonts-utils-7.7+6/mkfontscale/data.h
Examining data/xfonts-utils-7.7+6/mkfontscale/hash.c
Examining data/xfonts-utils-7.7+6/mkfontscale/hash.h
Examining data/xfonts-utils-7.7+6/mkfontscale/ident.c
Examining data/xfonts-utils-7.7+6/mkfontscale/ident.h
Examining data/xfonts-utils-7.7+6/mkfontscale/list.c
Examining data/xfonts-utils-7.7+6/mkfontscale/list.h
Examining data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c

FINAL RESULTS:

data/xfonts-utils-7.7+6/bdftopcf/bdfread.c:574: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:669: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/xfonts-utils-7.7+6/bdftopcf/bdfutils.c:77: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/xfonts-utils-7.7+6/bdftopcf/bdfutils.c:90: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:56: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/xfonts-utils-7.7+6/font-util/ucs2any.c:150:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(*dest + dest_size - 1, source);
data/xfonts-utils-7.7+6/fonttosfnt/util.c:111:13:  [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.
        n = vsnprintf(string, size, f, args_copy);
data/xfonts-utils-7.7+6/fonttosfnt/util.c:113:13:  [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.
        n = vsnprintf(string, size, f, args);
data/xfonts-utils-7.7+6/mkfontscale/list.c:75: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.
	    n = vsnprintf(string, size, f, args);
data/xfonts-utils-7.7+6/mkfontscale/list.c:103: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.
	    n = vsnprintf(string, size, f, args);
data/xfonts-utils-7.7+6/mkfontscale/list.c:130: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.
	    n = vsnprintf(string, size, f, args);
data/xfonts-utils-7.7+6/fonttosfnt/util.c:180:10:  [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.
    tz = getenv("TZ");
data/xfonts-utils-7.7+6/bdftopcf/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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:102: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:211: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:274: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:347: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:569: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:570: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:620: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:624: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:690: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/xfonts-utils-7.7+6/bdftopcf/fileio.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_BINARY|O_CLOEXEC);
data/xfonts-utils-7.7+6/bdftopcf/filewr.c:48: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/xfonts-utils-7.7+6/bdftopcf/fontink.c:41: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/xfonts-utils-7.7+6/bdftopcf/fontink.c:45: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/xfonts-utils-7.7+6/bdftopcf/private.c:95: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/xfonts-utils-7.7+6/bdftopcf/utilbitmap.c:38: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/xfonts-utils-7.7+6/font-util/ucs2any.c:548:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fsource_fp = fopen(fsource, "r");
data/xfonts-utils-7.7+6/font-util/ucs2any.c:569: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).
			default_char = atoi(nextc);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:575:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				properties = atoi(nextc);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:662:11:  [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).
			code = atoi(nextc);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:712:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fmap_fp = fopen(fmap, "r");
data/xfonts-utils-7.7+6/font-util/ucs2any.c:892:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fout_fp = fopen(fout, "w");
data/xfonts-utils-7.7+6/fonttosfnt/env.c:117: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(p, environ, cnt * sizeof(char *));
data/xfonts-utils-7.7+6/fonttosfnt/fonttosfnt.c:84:26:  [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).
            glyph_flag = atoi(argv[i + 1]);
data/xfonts-utils-7.7+6/fonttosfnt/fonttosfnt.c:91:28:  [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).
            metrics_flag = atoi(argv[i + 1]);
data/xfonts-utils-7.7+6/fonttosfnt/write.c:224:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    out = fopen(filename, "wb+");
data/xfonts-utils-7.7+6/fonttosfnt/write.c:1033: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[16] = "X11 font        ";
data/xfonts-utils-7.7+6/fonttosfnt/write.c:1034: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[6] = "X11R00";
data/xfonts-utils-7.7+6/fonttosfnt/write.c:1035: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 charComplement[8] = 
data/xfonts-utils-7.7+6/mkfontscale/ident.c:136: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[BUFSIZ];
data/xfonts-utils-7.7+6/mkfontscale/ident.c:189: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 c[4];
data/xfonts-utils-7.7+6/mkfontscale/ident.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 c[4];
data/xfonts-utils-7.7+6/mkfontscale/ident.c:341: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 keyword[NKEY + 1];
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:144: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 prefix[NPREFIX];
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:352: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(string, name.string, name.string_len);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:416: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[500];
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:706: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[MAXFONTFILENAMELEN+1], font[MAXFONTNAMELEN+1];
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:715: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).
    in = fopen(filename, "r");
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:838:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fontscale = fopen(fontscale_name, "wb");
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:933: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(s, xlfd_name, n - 11);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:966: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[MAXFONTNAMELEN];
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:1017: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).
	encfile = fopen(encdir, "w");
data/xfonts-utils-7.7+6/bdftopcf/atom.c:200: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/xfonts-utils-7.7+6/bdftopcf/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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:140: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:350: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:454: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:468: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:684: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/xfonts-utils-7.7+6/bdftopcf/bdfread.c:705: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/xfonts-utils-7.7+6/bdftopcf/bdfutils.c:132: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/xfonts-utils-7.7+6/bdftopcf/bdfutils.c:175: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/xfonts-utils-7.7+6/bdftopcf/bdfutils.c:178: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/xfonts-utils-7.7+6/bdftopcf/bufio.c:72: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/xfonts-utils-7.7+6/bdftopcf/bufio.c:103: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:260: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:263: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:341: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:393: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:396: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:465: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/xfonts-utils-7.7+6/bdftopcf/pcfwrite.c:470: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/xfonts-utils-7.7+6/font-util/bdftruncate.c:169: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).
		while (strlen(line) == line_len - 1 && !feof(stdin)) {
data/xfonts-utils-7.7+6/font-util/ucs2any.c:133:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(*dest, start, end-start);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:147:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		dest_size = strlen(*dest) + 1;
data/xfonts-utils-7.7+6/font-util/ucs2any.c:148: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).
	source_size = strlen(source);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:297:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((c = getc(fp)) == EOF)
data/xfonts-utils-7.7+6/font-util/ucs2any.c:307:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getc(fp);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:463: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).
	size_t l = strlen(pattern);
data/xfonts-utils-7.7+6/font-util/ucs2any.c:465: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(string) <= l) return NULL;
data/xfonts-utils-7.7+6/fonttosfnt/env.c:91: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).
    l_value = strlen(value);
data/xfonts-utils-7.7+6/fonttosfnt/env.c:95: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(c) >= l_value) {		/* old larger; copy over */
data/xfonts-utils-7.7+6/fonttosfnt/read.c:146: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).
            font->names[i].size = 2 * strlen(prop.u.atom);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:152: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).
        font->names[i].size = 2 * strlen(face->family_name);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:157: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).
        font->names[i].size = 2 * strlen(face->style_name);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:162: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).
        font->names[i].size = 2 * strlen(unique_name);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:167: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).
        font->names[i].size = 2 * strlen(full_name);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:172: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).
        font->names[i].size = 2 * strlen("Version 0.0");
data/xfonts-utils-7.7+6/fonttosfnt/read.c:179: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).
            font->names[i].size = 2 * strlen(prop.u.atom);
data/xfonts-utils-7.7+6/fonttosfnt/read.c:185: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).
        font->names[i].size = 2 * strlen(XVENDORNAMESHORT
data/xfonts-utils-7.7+6/fonttosfnt/read.c:192: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).
        font->names[i].size = 2 * strlen(__VENDORWEBSUPPORT__);
data/xfonts-utils-7.7+6/fonttosfnt/util.c:133: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 n = strlen(string);
data/xfonts-utils-7.7+6/mkfontscale/ident.c:84: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 n = strlen(filename);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:154: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).
    if(prefix[strlen(prefix) - 1] != '/')
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:155: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(prefix, "/");
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:196: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(strlen(argv[argn + 1]) > NPREFIX - 1) {
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:418: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 n = strlen(name);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:702: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 n = strlen(dirname);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:746: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 n = strlen(filename);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:792: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).
        xl = strlen (exclusionSuffix);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:794: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(dirname_given);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:855: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).
	    int dl = strlen (entry->d_name);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:927: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(xlfd_name);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:1267: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(vendor_string);
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:1294:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(dirname) > 1 && dirname[strlen(dirname) - 1] == '/')
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:1294: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).
    if(strlen(dirname) > 1 && dirname[strlen(dirname) - 1] == '/')
data/xfonts-utils-7.7+6/mkfontscale/mkfontscale.c:1295: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).
        dirname[strlen(dirname) - 1] = '\0';

ANALYSIS SUMMARY:

Hits = 109
Lines analyzed = 11454 in approximately 0.34 seconds (33388 lines/second)
Physical Source Lines of Code (SLOC) = 8840
Hits@level = [0] 117 [1]  55 [2]  42 [3]   1 [4]  11 [5]   0
Hits@level+ = [0+] 226 [1+] 109 [2+]  54 [3+]  12 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 25.5656 [1+] 12.3303 [2+] 6.1086 [3+] 1.35747 [4+] 1.24434 [5+]   0
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.