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/lcdf-typetools-2.108/libefont/pairop.cc Examining data/lcdf-typetools-2.108/libefont/otfpost.cc Examining data/lcdf-typetools-2.108/libefont/t1fontskel.cc Examining data/lcdf-typetools-2.108/libefont/cff.cc Examining data/lcdf-typetools-2.108/libefont/amfm.cc Examining data/lcdf-typetools-2.108/libefont/t1unparser.cc Examining data/lcdf-typetools-2.108/libefont/psres.cc Examining data/lcdf-typetools-2.108/libefont/afm.cc Examining data/lcdf-typetools-2.108/libefont/findmet.cc Examining data/lcdf-typetools-2.108/libefont/t1bounds.cc Examining data/lcdf-typetools-2.108/libefont/t1interp.cc Examining data/lcdf-typetools-2.108/libefont/otfgpos.cc Examining data/lcdf-typetools-2.108/libefont/otfgsub.cc Examining data/lcdf-typetools-2.108/libefont/t1rw.cc Examining data/lcdf-typetools-2.108/libefont/otfdescrip.cc Examining data/lcdf-typetools-2.108/libefont/otf.cc Examining data/lcdf-typetools-2.108/libefont/t1item.cc Examining data/lcdf-typetools-2.108/libefont/otfdata.cc Examining data/lcdf-typetools-2.108/libefont/ttfkern.cc Examining data/lcdf-typetools-2.108/libefont/encoding.cc Examining data/lcdf-typetools-2.108/libefont/ttfhead.cc Examining data/lcdf-typetools-2.108/libefont/otfos2.cc Examining data/lcdf-typetools-2.108/libefont/metrics.cc Examining data/lcdf-typetools-2.108/libefont/t1csgen.cc Examining data/lcdf-typetools-2.108/libefont/t1font.cc Examining data/lcdf-typetools-2.108/libefont/afmw.cc Examining data/lcdf-typetools-2.108/libefont/ttfcs.cc Examining data/lcdf-typetools-2.108/libefont/afmparse.cc Examining data/lcdf-typetools-2.108/libefont/t1cs.cc Examining data/lcdf-typetools-2.108/libefont/otfcmap.cc Examining data/lcdf-typetools-2.108/libefont/t1mm.cc Examining data/lcdf-typetools-2.108/libefont/otfname.cc Examining data/lcdf-typetools-2.108/liblcdf/slurper.cc Examining data/lcdf-typetools-2.108/liblcdf/globmatch.cc Examining data/lcdf-typetools-2.108/liblcdf/error.cc Examining data/lcdf-typetools-2.108/liblcdf/clp.c Examining data/lcdf-typetools-2.108/liblcdf/vectorv.cc Examining data/lcdf-typetools-2.108/liblcdf/fixlibc.c Examining data/lcdf-typetools-2.108/liblcdf/strtonum.c Examining data/lcdf-typetools-2.108/liblcdf/landmark.cc Examining data/lcdf-typetools-2.108/liblcdf/bezier.cc Examining data/lcdf-typetools-2.108/liblcdf/transform.cc Examining data/lcdf-typetools-2.108/liblcdf/permstr.cc Examining data/lcdf-typetools-2.108/liblcdf/straccum.cc Examining data/lcdf-typetools-2.108/liblcdf/filename.cc Examining data/lcdf-typetools-2.108/liblcdf/string.cc Examining data/lcdf-typetools-2.108/liblcdf/md5.c Examining data/lcdf-typetools-2.108/liblcdf/point.cc Examining data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc Examining data/lcdf-typetools-2.108/t1testpage/t1testpage.cc Examining data/lcdf-typetools-2.108/mmpfb/myfont.cc Examining data/lcdf-typetools-2.108/mmpfb/t1minimize.cc Examining data/lcdf-typetools-2.108/mmpfb/main.cc Examining data/lcdf-typetools-2.108/mmpfb/t1rewrit.cc Examining data/lcdf-typetools-2.108/t1reencode/util.cc Examining data/lcdf-typetools-2.108/t1reencode/t1reencode.cc Examining data/lcdf-typetools-2.108/t1rawafm/t1rawafm.cc Examining data/lcdf-typetools-2.108/cfftot1/maket1font.cc Examining data/lcdf-typetools-2.108/cfftot1/cfftot1.cc Examining data/lcdf-typetools-2.108/include/config.h Examining data/lcdf-typetools-2.108/include/lcdf/md5.h Examining data/lcdf-typetools-2.108/include/lcdf/hashmap.cc Examining data/lcdf-typetools-2.108/include/lcdf/vector.cc Examining data/lcdf-typetools-2.108/include/lcdf/clp.h Examining data/lcdf-typetools-2.108/include/lcdf/inttypes.h Examining data/lcdf-typetools-2.108/include/lcdf/strtonum.h Examining data/lcdf-typetools-2.108/otfinfo/otfinfo.cc Examining data/lcdf-typetools-2.108/mmafm/main.cc Examining data/lcdf-typetools-2.108/otftotfm/kpseinterface.c Examining data/lcdf-typetools-2.108/otftotfm/util.cc Examining data/lcdf-typetools-2.108/otftotfm/secondary.cc Examining data/lcdf-typetools-2.108/otftotfm/uniprop.cc Examining data/lcdf-typetools-2.108/otftotfm/dvipsencoding.cc Examining data/lcdf-typetools-2.108/otftotfm/automatic.cc Examining data/lcdf-typetools-2.108/otftotfm/metrics.cc Examining data/lcdf-typetools-2.108/otftotfm/glyphfilter.cc Examining data/lcdf-typetools-2.108/otftotfm/otftotfm.cc Examining data/lcdf-typetools-2.108/otftotfm/kpseinterface.h Examining data/lcdf-typetools-2.108/t1lint/cscheck.cc Examining data/lcdf-typetools-2.108/t1lint/t1lint.cc Examining data/lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc FINAL RESULTS: data/lcdf-typetools-2.108/libefont/findmet.cc:215:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "mmpfb -q --amcp-info '%s'", amfm->font_name().c_str()); data/lcdf-typetools-2.108/libefont/findmet.cc:217:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *f = popen(buf, "r"); data/lcdf-typetools-2.108/libefont/otf.cc:323:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. sa.snprintf(6, "\\%03o", c); data/lcdf-typetools-2.108/libefont/t1font.cc:429: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(accum.data(), format, value, &n); data/lcdf-typetools-2.108/libefont/t1font.cc:431: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(accum.data(), format, &n); data/lcdf-typetools-2.108/libefont/t1mm.cc:99:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, (s[0] == ' ' ? "%.200s%s" : "%.200s: %s"), data/lcdf-typetools-2.108/liblcdf/error.cc:702:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. int len = sprintf(new_numbuf, format, va_arg(val, double)); data/lcdf-typetools-2.108/liblcdf/permstr.cc:280:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(psc + pspos, buffer); data/lcdf-typetools-2.108/liblcdf/straccum.cc:262:14: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. StringAccum::snprintf(int n, const char *format, ...) data/lcdf-typetools-2.108/liblcdf/straccum.cc:268:19: [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. int len = vsnprintf(x, n + 1, format, val); data/lcdf-typetools-2.108/liblcdf/straccum.cc:270:19: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. int len = vsprintf(x, format, val); data/lcdf-typetools-2.108/mmafm/main.cc:353:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "mmpfb -q --amcp-info '%s'", amfm->font_name().c_str()); data/lcdf-typetools-2.108/mmafm/main.cc:355:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *f = popen(buf, "r"); data/lcdf-typetools-2.108/mmafm/main.cc:408:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Interpolated by mmafm-%s on %.*s.", VERSION, data/lcdf-typetools-2.108/mmafm/main.cc:412:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Interpolated by mmafm-%s.", VERSION); data/lcdf-typetools-2.108/mmpfb/main.cc:439:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%%%% Interpolated by mmpfb-%s on %.*s.", VERSION, data/lcdf-typetools-2.108/mmpfb/main.cc:443:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%%%% Interpolated by mmpfb-%s.", VERSION); data/lcdf-typetools-2.108/otftotfm/automatic.cc:42:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define mkdir(dir, access) mkdir(dir) data/lcdf-typetools-2.108/otftotfm/automatic.cc:114:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(texdir.c_str(), W_OK) >= 0) data/lcdf-typetools-2.108/otftotfm/automatic.cc:211:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. while (access(dir.c_str(), F_OK) < 0 && slash < dir.length()) { data/lcdf-typetools-2.108/otftotfm/automatic.cc:215:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(subdir.c_str(), F_OK) < 0 data/lcdf-typetools-2.108/otftotfm/automatic.cc:315:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(ls_r.c_str(), R_OK) >= 0) // make sure it already exists data/lcdf-typetools-2.108/otftotfm/automatic.cc:333:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int retval = system(command.c_str()); data/lcdf-typetools-2.108/otftotfm/automatic.cc:702:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. && access(updmap_file.c_str(), X_OK) >= 0) { data/lcdf-typetools-2.108/otftotfm/automatic.cc:714:21: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (execl(output_flags & G_UPDMAP_USER ? "./updmap-user" : "./updmap-sys", data/lcdf-typetools-2.108/otftotfm/automatic.cc:795:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(encfile.c_str(), R_OK) >= 0) data/lcdf-typetools-2.108/otftotfm/glyphfilter.cc:231:16: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. sa.snprintf(20, "[U+%02x-U+%02x]", p->u.unirange.low, p->u.unirange.high); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:980:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int ok_retval = (access(filename.c_str(), R_OK) >= 0 ? 0 : 1); data/lcdf-typetools-2.108/otftotfm/util.cc:161:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return system(command); data/lcdf-typetools-2.108/otftotfm/util.cc:170:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return popen("true", type); data/lcdf-typetools-2.108/otftotfm/util.cc:174:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return popen(command, type); data/lcdf-typetools-2.108/otftotfm/util.cc:275:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *p = popen(new_cmdline.c_str(), "r"); data/lcdf-typetools-2.108/libefont/t1interp.cc:25:10: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define random() rand() data/lcdf-typetools-2.108/libefont/t1interp.cc:310:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. d = random() / ((double)RAND_MAX); data/lcdf-typetools-2.108/liblcdf/clp.c:524:12: [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. char *s = getenv("LANG"); data/lcdf-typetools-2.108/liblcdf/error.cc:956:12: [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. char *s = getenv("LANG"); data/lcdf-typetools-2.108/mmafm/main.cc:259:25: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/mmpfb/main.cc:260:25: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/otftotfm/automatic.cc:177:19: [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. odir[o] = getenv(odir_info[o].envvar); data/lcdf-typetools-2.108/otftotfm/util.cc:183:12: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). return tmpnam(0); data/lcdf-typetools-2.108/otftotfm/util.cc:185:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *dir = getenv("TEMP"); data/lcdf-typetools-2.108/otftotfm/util.cc:198:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *tmpdir = getenv("TMPDIR"); data/lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc:272:27: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/t1lint/t1lint.cc:391:25: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/t1rawafm/t1rawafm.cc:295:27: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/t1reencode/t1reencode.cc:921:27: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:585:27: [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. psres->add_psres_path(getenv("PSRESOURCEPATH"), 0, false); data/lcdf-typetools-2.108/cfftot1/cfftot1.cc:116:22: [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). } else if (!(f = fopen(infn, "rb"))) data/lcdf-typetools-2.108/cfftot1/cfftot1.cc:167:22: [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). } else if (!(f = fopen(outfn, "wb"))) data/lcdf-typetools-2.108/include/lcdf/clp.h:186: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 cs[Clp_ValSize]; data/lcdf-typetools-2.108/include/lcdf/clp.h:187:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ucs[Clp_ValSize]; data/lcdf-typetools-2.108/include/lcdf/md5.h:35: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[64]; data/lcdf-typetools-2.108/include/lcdf/md5.h:42:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_final(unsigned char digest[MD5_DIGEST_SIZE], MD5_CONTEXT *ctx); data/lcdf-typetools-2.108/libefont/afmparse.cc:33:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char xvalue[256]; data/lcdf-typetools-2.108/libefont/amfm.cc:130: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[1024]; data/lcdf-typetools-2.108/libefont/amfm.cc:134:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "glyph count (%d vs. %d)", afm->nglyphs(), _sanity_afm->nglyphs()); data/lcdf-typetools-2.108/libefont/amfm.cc:136:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "fd count (%d vs. %d)", afm->nfd(), _sanity_afm->nfd()); data/lcdf-typetools-2.108/libefont/amfm.cc:138:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "kv count (%d vs. %d)", afm->nkv(), _sanity_afm->nkv()); data/lcdf-typetools-2.108/libefont/amfm.cc:140:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "pair op count (%d vs. %d)", pairp->op_count(), sanity_pairp->op_count()); data/lcdf-typetools-2.108/libefont/cff.cc:618: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(&_sids[0], data, sizeof(const int) * size); data/lcdf-typetools-2.108/libefont/cff.cc:896:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/lcdf-typetools-2.108/libefont/cff.cc:1371: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(&matrix[0], &t1d_matrix[0], sizeof(double) * 6); data/lcdf-typetools-2.108/libefont/otf.cc:789: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(_str.mutable_udata() + 4, &n, 4); data/lcdf-typetools-2.108/libefont/otf.cc:1190:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_v[i], o._v[i], sizeof(uint32_t) * VULEN); data/lcdf-typetools-2.108/libefont/otf.cc:1227: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(_v[i], o._v[i], sizeof(uint32_t) * VULEN); data/lcdf-typetools-2.108/libefont/otfgsub.cc:76: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(s.gids + 1, gids, ngids * sizeof(Glyph)); data/lcdf-typetools-2.108/libefont/otfgsub.cc:393: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(&gids[1], extract_glyphptr(ls, lt), nl * sizeof(Glyph)); data/lcdf-typetools-2.108/libefont/otfgsub.cc:394: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(&gids[1 + nl], extract_glyphptr(rs, rt), nr * sizeof(Glyph)); data/lcdf-typetools-2.108/libefont/t1cs.cc:248: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(d + pos, cs.data(), cs.length()); data/lcdf-typetools-2.108/libefont/t1cs.cc:251: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(d + pos, cs.data(), cs.length()); data/lcdf-typetools-2.108/libefont/t1font.cc:909: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(&matrix[0], &t1d_matrix[0], sizeof(double) * 6); data/lcdf-typetools-2.108/libefont/t1item.cc:474:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sa.reserve(8), "%03o", (unsigned char) (s[pos])); data/lcdf-typetools-2.108/libefont/t1item.cc:496:26: [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). sa << (i ? ' ' : open) << nv[i]; data/lcdf-typetools-2.108/libefont/t1item.cc:597: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(new_v, _v, sizeof(PermString) * 256); data/lcdf-typetools-2.108/libefont/t1item.cc:827:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *f = tmpfile(); data/lcdf-typetools-2.108/libefont/t1item.cc:850:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[2048]; data/lcdf-typetools-2.108/libefont/t1mm.cc:95:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/lcdf-typetools-2.108/libefont/t1rw.cc:72:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_data + len + 3, _data + _pos, _len - _pos); data/lcdf-typetools-2.108/libefont/t1rw.cc:86: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(_data + _pos - len, data, len); data/lcdf-typetools-2.108/libefont/t1rw.cc:480: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(_buf + _pos, s, copy); data/lcdf-typetools-2.108/libefont/t1rw.cc:491:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[128]; data/lcdf-typetools-2.108/libefont/t1rw.cc:492:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%d", x); data/lcdf-typetools-2.108/libefont/t1rw.cc:501:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/lcdf-typetools-2.108/libefont/t1rw.cc:502:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%g", x); data/lcdf-typetools-2.108/libefont/t1rw.cc:610: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(m, c, l); data/lcdf-typetools-2.108/libefont/t1unparser.cc:107:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(_sa.extend(2), "%02X", *data); data/lcdf-typetools-2.108/libefont/ttfcs.cc:146:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/lcdf-typetools-2.108/libefont/ttfcs.cc:147:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "uni%04X", _unicodes[gi]); data/lcdf-typetools-2.108/liblcdf/clp.c:186: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 option_chars[Clp_OptionCharsSize]; data/lcdf-typetools-2.108/liblcdf/clp.c:210: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 option_chars[Clp_OptionCharsSize]; data/lcdf-typetools-2.108/liblcdf/clp.c:1128: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 lcarg[6]; data/lcdf-typetools-2.108/liblcdf/clp.c:1459: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(state->option_chars, cli->option_chars, Clp_OptionCharsSize); data/lcdf-typetools-2.108/liblcdf/clp.c:1492: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(cli->option_chars, state->option_chars, Clp_OptionCharsSize); data/lcdf-typetools-2.108/liblcdf/clp.c:1514: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(cli->option_chars, text, n_option_chars); data/lcdf-typetools-2.108/liblcdf/clp.c:2034: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(bs->pos, s, l); data/lcdf-typetools-2.108/liblcdf/clp.c:2093:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(bs->pos, "\\%03o", c & 0xFF); data/lcdf-typetools-2.108/liblcdf/clp.c:2105:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(bs->pos, "%d", d); data/lcdf-typetools-2.108/liblcdf/clp.c:2295: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 + bufpos, what, l); data/lcdf-typetools-2.108/liblcdf/clp.c:2352:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[256]; data/lcdf-typetools-2.108/liblcdf/error.cc:203:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *names[8]; data/lcdf-typetools-2.108/liblcdf/error.cc:389: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 numbuf[NUMBUF_SIZE]; // for numerics data/lcdf-typetools-2.108/liblcdf/error.cc:549:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(numbuf, "\\n"); data/lcdf-typetools-2.108/liblcdf/error.cc:551:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(numbuf, "\\t"); data/lcdf-typetools-2.108/liblcdf/error.cc:553:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(numbuf, "\\r"); data/lcdf-typetools-2.108/liblcdf/error.cc:555:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(numbuf, "\\0"); data/lcdf-typetools-2.108/liblcdf/error.cc:557:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(numbuf, "(bad char)"); data/lcdf-typetools-2.108/liblcdf/error.cc:559:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(numbuf, "\\%03o", c); data/lcdf-typetools-2.108/liblcdf/error.cc:561:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(numbuf, "%c", c); data/lcdf-typetools-2.108/liblcdf/error.cc:648: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(const_cast<char*>(s1), sa.data(), s2 - s1); data/lcdf-typetools-2.108/liblcdf/error.cc:693: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 format[80], *f = format, new_numbuf[NUMBUF_SIZE]; data/lcdf-typetools-2.108/liblcdf/error.cc:698:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. f += sprintf(f, ".%d", precision); data/lcdf-typetools-2.108/liblcdf/error.cc:706: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 *)s1, new_numbuf, len); // note: no terminating \0 data/lcdf-typetools-2.108/liblcdf/error.cc:745: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, s1, slen); data/lcdf-typetools-2.108/liblcdf/error.cc:748: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 + field_width - slen, s1, slen); data/lcdf-typetools-2.108/liblcdf/filename.cc:110:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(_path.c_str(), binary ? "rb" : "r"); data/lcdf-typetools-2.108/liblcdf/filename.cc:129:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(_path.c_str(), binary ? "wb" : "w"); data/lcdf-typetools-2.108/liblcdf/fixlibc.c:25: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(t, s, l); data/lcdf-typetools-2.108/liblcdf/md5.c:115: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(correct_words, data, 64); data/lcdf-typetools-2.108/liblcdf/md5.c:334: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(digest, ctx->buf, 16); data/lcdf-typetools-2.108/liblcdf/permstr.cc:145: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(buck->data, s, length); data/lcdf-typetools-2.108/liblcdf/permstr.cc:162: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(psc + pspos, s, len); data/lcdf-typetools-2.108/liblcdf/permstr.cc:276: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[1000]; data/lcdf-typetools-2.108/liblcdf/permstr.cc:278:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%.10g%n", x, &len); data/lcdf-typetools-2.108/liblcdf/permstr.cc:314: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(s, a.c_str(), al); data/lcdf-typetools-2.108/liblcdf/permstr.cc:315: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(s + al, b.c_str(), bl); data/lcdf-typetools-2.108/liblcdf/slurper.cc:66:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_data, _data, _len); data/lcdf-typetools-2.108/liblcdf/straccum.cc:92: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(n, _s, _len); data/lcdf-typetools-2.108/liblcdf/straccum.cc:168: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(_s + _len, s, len); data/lcdf-typetools-2.108/liblcdf/straccum.cc:182:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_s, old_s, old_len); data/lcdf-typetools-2.108/liblcdf/straccum.cc:183:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_s + old_len, s, len); data/lcdf-typetools-2.108/liblcdf/straccum.cc:232:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf(x, "%ld", i); data/lcdf-typetools-2.108/liblcdf/straccum.cc:245:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf(x, "%lu", u); data/lcdf-typetools-2.108/liblcdf/straccum.cc:255:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf(x, "%.12g", d); data/lcdf-typetools-2.108/liblcdf/string.cc:205: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[128]; data/lcdf-typetools-2.108/liblcdf/string.cc:206:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", x); data/lcdf-typetools-2.108/liblcdf/string.cc:217: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[128]; data/lcdf-typetools-2.108/liblcdf/string.cc:218:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u", x); data/lcdf-typetools-2.108/liblcdf/string.cc:229: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[128]; data/lcdf-typetools-2.108/liblcdf/string.cc:230:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", x); data/lcdf-typetools-2.108/liblcdf/string.cc:241: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[128]; data/lcdf-typetools-2.108/liblcdf/string.cc:242:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%lu", x); data/lcdf-typetools-2.108/liblcdf/string.cc:249: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[128]; data/lcdf-typetools-2.108/liblcdf/string.cc:250:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf(buf, "%.12g", x); data/lcdf-typetools-2.108/liblcdf/string.cc:322: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(_r.memo->real_data, s, len); data/lcdf-typetools-2.108/liblcdf/string.cc:378: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(new_data, _r.data, _r.length); data/lcdf-typetools-2.108/liblcdf/string.cc:410: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(space, s, len); data/lcdf-typetools-2.108/liblcdf/string.cc:414: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(space, s, len); data/lcdf-typetools-2.108/liblcdf/string.cc:592:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "\\%03o", x[pos]); data/lcdf-typetools-2.108/liblcdf/string.cc:781: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 *)s._r.data + n - offset, _r.data, _r.length); data/lcdf-typetools-2.108/liblcdf/vectorv.cc:42:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_l, o._l, sizeof(void *) * _n); data/lcdf-typetools-2.108/liblcdf/vectorv.cc:69: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(new_l, _l, sizeof(void*) * _n); data/lcdf-typetools-2.108/mmafm/main.cc:312:16: [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). output_file = fopen(clp->vstr, "wb"); data/lcdf-typetools-2.108/mmpfb/main.cc:171:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/mmpfb/main.cc:350: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). outfile = fopen(clp->vstr, "wb"); data/lcdf-typetools-2.108/otfinfo/otfinfo.cc:152:6: [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). f = fopen(filename.c_str(), "rb"); data/lcdf-typetools-2.108/otfinfo/otfinfo.cc:526: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 name[10]; data/lcdf-typetools-2.108/otfinfo/otfinfo.cc:528:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "uni%04X", it->first); data/lcdf-typetools-2.108/otfinfo/otfinfo.cc:530:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "u%X", it->first); data/lcdf-typetools-2.108/otftotfm/automatic.cc:316:23: [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). if (FILE *f = fopen(ls_r.c_str(), "a")) { data/lcdf-typetools-2.108/otftotfm/automatic.cc:595:18: [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). int fd = open(map_file.c_str(), O_RDWR | O_CREAT, 0666); data/lcdf-typetools-2.108/otftotfm/automatic.cc:680: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). f = fopen(map_file.c_str(), "w"); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:566:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:567:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%.4f", value); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:593: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). FILE *f = fopen(filename.c_str(), "w"); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:988:14: [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). int fd = open(filename.c_str(), O_RDWR | O_CREAT, 0666); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:1051: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). f = fopen(filename.c_str(), "w"); data/lcdf-typetools-2.108/otftotfm/otftotfm.cc:1095: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 text_digest[MD5_TEXT_DIGEST_SIZE + 1]; data/lcdf-typetools-2.108/otftotfm/secondary.cc:374:19: [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 *f = fopen(filename.c_str(), "rb"); data/lcdf-typetools-2.108/otftotfm/util.cc:46:22: [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). } else if (!(f = fopen(filename.c_str(), "rb"))) { data/lcdf-typetools-2.108/otftotfm/util.cc:208:14: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int fd = mkstemp(filename.mutable_c_str()); data/lcdf-typetools-2.108/otftotfm/util.cc:217:20: [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). int fd = ::open(filename.c_str(), O_RDWR | O_CREAT | O_EXCL | O_TRUNC, 0600); data/lcdf-typetools-2.108/otftotfm/util.cc:219:20: [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). int fd = ::open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0600); data/lcdf-typetools-2.108/otftotfm/util.cc:267:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *f = tmpfile(); data/lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc:239:6: [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). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc:314:27: [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). else if (!(outputf = fopen(clp->vstr, "wb"))) data/lcdf-typetools-2.108/t1lint/t1lint.cc:307:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/t1rawafm/t1rawafm.cc:111: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). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/t1rawafm/t1rawafm.cc:358:16: [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). outf = fopen(output_file, "w"); data/lcdf-typetools-2.108/t1reencode/t1reencode.cc:733: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 text_digest[MD5_TEXT_DIGEST_SIZE + 1]; data/lcdf-typetools-2.108/t1reencode/t1reencode.cc:888:6: [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). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/t1reencode/t1reencode.cc:1093:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outf = fopen(output_file, "w"); data/lcdf-typetools-2.108/t1reencode/util.cc:40:22: [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). } else if (!(f = fopen(filename.c_str(), "rb"))) { data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:160:6: [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). f = fopen(filename, "rb"); data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:664:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outf = fopen(output_file, "w"); data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:673: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[7] = "Asmall"; data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc:173:22: [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). } else if (!(f = fopen(infn, "rb"))) data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc:225:22: [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). } else if (!(f = fopen(outfn, "wb"))) data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc:258:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char result[MD5_DIGEST_SIZE + 3]; data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc:328: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 result[MD5_DIGEST_SIZE]; data/lcdf-typetools-2.108/cfftot1/cfftot1.cc:119:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/libefont/afm.cc:36:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AfmReader::read(Slurper &slurp, ErrorHandler *errh) data/lcdf-typetools-2.108/libefont/afm.cc:47:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!reader.read()) { data/lcdf-typetools-2.108/libefont/afm.cc:55:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AfmReader::read(const Filename &fn, ErrorHandler *errh) data/lcdf-typetools-2.108/libefont/afm.cc:58:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(slurpy, errh); data/lcdf-typetools-2.108/libefont/afm.cc:135:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AfmReader::read() data/lcdf-typetools-2.108/libefont/afmparse.cc:168: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). len = strlen((char *)str); data/lcdf-typetools-2.108/libefont/amfm.cc:253:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AmfmReader::read(Slurper &slurper, MetricsFinder *finder, ErrorHandler *errh) data/lcdf-typetools-2.108/libefont/amfm.cc:259:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!reader.read()) { data/lcdf-typetools-2.108/libefont/amfm.cc:267:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AmfmReader::read(const Filename &fn, MetricsFinder *finder, ErrorHandler *errh) data/lcdf-typetools-2.108/libefont/amfm.cc:270:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(slurper, finder, errh); data/lcdf-typetools-2.108/libefont/amfm.cc:331:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AmfmReader::read() data/lcdf-typetools-2.108/libefont/findmet.cc:107:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Metrics *afm = AfmReader::read(fn, errh); data/lcdf-typetools-2.108/libefont/findmet.cc:119:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). AmfmMetrics *amfm = AmfmReader::read(fn, finder, errh); data/lcdf-typetools-2.108/libefont/psres.cc:24: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). # define DIR_NAMLEN(dirent) strlen((dirent)->d_name) data/lcdf-typetools-2.108/libefont/psres.cc:282: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 len = strlen(find_file_data.cFileName); data/lcdf-typetools-2.108/libefont/t1font.cc:57:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(reader); data/lcdf-typetools-2.108/libefont/t1font.cc:124:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Type1Font::read(Type1Reader &reader) data/lcdf-typetools-2.108/libefont/t1font.cc:442:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *x = new char[strlen(first_line) + 1]; data/lcdf-typetools-2.108/libefont/t1mm.cc:98: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). assert(strlen(s) < 800); data/lcdf-typetools-2.108/libefont/t1rw.cc:359:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(_f); data/lcdf-typetools-2.108/libefont/t1rw.cc:363:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(_f); data/lcdf-typetools-2.108/libefont/t1rw.cc:368:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _left = getc(_f); data/lcdf-typetools-2.108/libefont/t1rw.cc:369:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _left |= getc(_f) << 8; data/lcdf-typetools-2.108/libefont/t1rw.cc:370:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _left |= getc(_f) << 16; data/lcdf-typetools-2.108/libefont/t1rw.cc:371:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _left |= getc(_f) << 24; data/lcdf-typetools-2.108/libefont/t1rw.cc:493: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). print(str, strlen(str)); data/lcdf-typetools-2.108/libefont/t1rw.cc:503: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). print(str, strlen(str)); data/lcdf-typetools-2.108/liblcdf/clp.c:432:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && (!io1->iprefmatch || strncmp(name1, name2, strlen(name1)))) data/lcdf-typetools-2.108/liblcdf/clp.c:435:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && (!io1->iprefmatch || strncmp(name1, name2, strlen(name1)))) data/lcdf-typetools-2.108/liblcdf/clp.c:1130: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(arg) > 5 || strchr(arg, '=') != 0) data/lcdf-typetools-2.108/liblcdf/clp.c:2032: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). l = strlen(s); data/lcdf-typetools-2.108/liblcdf/clp.c:2292:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(what); data/lcdf-typetools-2.108/liblcdf/error.cc:495: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). len = strlen(s1); data/lcdf-typetools-2.108/liblcdf/error.cc:576: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). s2 = s1 + strlen(s1); data/lcdf-typetools-2.108/liblcdf/error.cc:582: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). s2 = s1 + strlen(s1); data/lcdf-typetools-2.108/liblcdf/fixlibc.c:21:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(s) + 1; data/lcdf-typetools-2.108/liblcdf/permstr.cc:117: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). length = (s ? strlen(s) : 0); data/lcdf-typetools-2.108/liblcdf/permstr.cc:184: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). append(s, strlen(s)); data/lcdf-typetools-2.108/liblcdf/permstr.cc:219: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). append(x, strlen(x)); data/lcdf-typetools-2.108/liblcdf/straccum.cc:193: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). hard_append(s, strlen(s)); data/lcdf-typetools-2.108/liblcdf/string.cc:266: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 = (s ? strlen(s) : 0); data/lcdf-typetools-2.108/liblcdf/string.cc:295: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(s); data/lcdf-typetools-2.108/liblcdf/string.cc:395: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(s); data/lcdf-typetools-2.108/liblcdf/string.cc:724: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(s); data/lcdf-typetools-2.108/liblcdf/string.cc:740: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(s); data/lcdf-typetools-2.108/liblcdf/string.cc:755: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(s); data/lcdf-typetools-2.108/mmafm/main.cc:200:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Metrics *afm = AfmReader::read(slurper, errh); data/lcdf-typetools-2.108/mmafm/main.cc:204:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). set_amfm(AmfmReader::read(slurper, finder, errh)); data/lcdf-typetools-2.108/mmafm/main.cc:406:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int time_len = strlen(time_str) - 1; data/lcdf-typetools-2.108/mmafm/main.cc:407:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buf = new char[strlen(VERSION) + time_len + 100]; data/lcdf-typetools-2.108/mmafm/main.cc:411:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buf = new char[strlen(VERSION) + 100]; data/lcdf-typetools-2.108/mmpfb/main.cc:194:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/mmpfb/main.cc:437:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int time_len = strlen(time_str) - 1; data/lcdf-typetools-2.108/mmpfb/main.cc:438:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buf = new char[strlen(VERSION) + time_len + 100]; data/lcdf-typetools-2.108/mmpfb/main.cc:442:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buf = new char[strlen(VERSION) + 100]; data/lcdf-typetools-2.108/otftotfm/secondary.cc:382:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc:251:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1lint/t1lint.cc:319:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1rawafm/t1rawafm.cc:123:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1reencode/t1reencode.cc:900:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:172:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); data/lcdf-typetools-2.108/t1testpage/t1testpage.cc:602:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char* s = clp->vstr, *end = s + strlen(s); data/lcdf-typetools-2.108/ttftotype42/ttftotype42.cc:176:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(f); ANALYSIS SUMMARY: Hits = 253 Lines analyzed = 38773 in approximately 4.91 seconds (7897 lines/second) Physical Source Lines of Code (SLOC) = 30049 Hits@level = [0] 197 [1] 64 [2] 142 [3] 15 [4] 32 [5] 0 Hits@level+ = [0+] 450 [1+] 253 [2+] 189 [3+] 47 [4+] 32 [5+] 0 Hits/KSLOC@level+ = [0+] 14.9755 [1+] 8.41958 [2+] 6.28973 [3+] 1.56411 [4+] 1.06493 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.