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/t1utils-1.41/clp.c Examining data/t1utils-1.41/include/lcdf/clp.h Examining data/t1utils-1.41/include/lcdf/inttypes.h Examining data/t1utils-1.41/memmem.c Examining data/t1utils-1.41/strerror.c Examining data/t1utils-1.41/t1ascii.c Examining data/t1utils-1.41/t1asm.c Examining data/t1utils-1.41/t1asmhelp.h Examining data/t1utils-1.41/t1binary.c Examining data/t1utils-1.41/t1disasm.c Examining data/t1utils-1.41/t1lib.c Examining data/t1utils-1.41/t1lib.h Examining data/t1utils-1.41/t1mac.c Examining data/t1utils-1.41/t1unmac.c FINAL RESULTS: data/t1utils-1.41/t1ascii.c:91:3: [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, val); data/t1utils-1.41/t1ascii.c:103:3: [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, val); data/t1utils-1.41/t1asm.c:411:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(line, "%s ", cs_start); data/t1utils-1.41/t1asm.c:572:3: [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, val); data/t1utils-1.41/t1asm.c:584:3: [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, val); data/t1utils-1.41/t1binary.c:122:3: [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, val); data/t1utils-1.41/t1binary.c:134:3: [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, val); data/t1utils-1.41/t1disasm.c:605:3: [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, val); data/t1utils-1.41/t1disasm.c:617:3: [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, val); data/t1utils-1.41/t1mac.c:772:3: [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, val); data/t1utils-1.41/t1mac.c:784:3: [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, val); data/t1utils-1.41/t1unmac.c:250:3: [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, val); data/t1utils-1.41/t1unmac.c:262:3: [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, val); data/t1utils-1.41/t1unmac.c:867:3: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("/bin/rm -f /tmp/x.*"); data/t1utils-1.41/clp.c:537: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/t1utils-1.41/clp.c:199: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/t1utils-1.41/clp.c:223: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/t1utils-1.41/clp.c:1151: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/t1utils-1.41/clp.c:1490: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/t1utils-1.41/clp.c:1523: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/t1utils-1.41/clp.c:1545: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/t1utils-1.41/clp.c:2010:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/t1utils-1.41/clp.c:2036: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(bs->data, bs->buf, bs->pos - bs->buf); data/t1utils-1.41/clp.c:2059: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/t1utils-1.41/clp.c:2116: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/t1utils-1.41/clp.c:2128: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/t1utils-1.41/clp.c:2352: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, bs.data, bs.pos - bs.data); data/t1utils-1.41/clp.c:2355: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, bs.data, size - 1); data/t1utils-1.41/clp.c:2414: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/t1utils-1.41/clp.c:2471: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/t1utils-1.41/include/lcdf/clp.h:199: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/t1utils-1.41/include/lcdf/clp.h:200: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/t1utils-1.41/t1ascii.c:227:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ofp = fopen(clp->vstr, "w"); data/t1utils-1.41/t1ascii.c:260:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ifp = fopen(clp->vstr, "rb"); data/t1utils-1.41/t1asm.c:92: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 line[LINESIZE + 1]; data/t1utils-1.41/t1asm.c:409: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(line, "%d ", (int) (charstring_bp - charstring_buf)); data/t1utils-1.41/t1asm.c:491:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). charstring_int(atoi(line)); data/t1utils-1.41/t1asm.c:648:24: [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 (!(ofp = fopen(clp->vstr, "w"))) data/t1utils-1.41/t1asm.c:681:24: [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 (!(ifp = fopen(clp->vstr, "r"))) data/t1utils-1.41/t1asmhelp.h:48: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(p, q, r - q); data/t1utils-1.41/t1binary.c:206:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ofp = fopen(clp->vstr, "wb"); data/t1utils-1.41/t1binary.c:234:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ifp = fopen(clp->vstr, "r"); data/t1utils-1.41/t1disasm.c:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/t1utils-1.41/t1disasm.c:172: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(buf, "%d", val); data/t1utils-1.41/t1disasm.c:208:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", val); data/t1utils-1.41/t1disasm.c:253:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "escape_%d", b); data/t1utils-1.41/t1disasm.c:260:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "UNKNOWN_%d", b); data/t1utils-1.41/t1disasm.c:297: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_save, save, save_len); data/t1utils-1.41/t1disasm.c:301: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(save + save_len, line, len); data/t1utils-1.41/t1disasm.c:394:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int cs_len = atoi((const char *)(line + digits)); data/t1utils-1.41/t1disasm.c:579: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 crap[1] = ""; data/t1utils-1.41/t1disasm.c:678: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). ofp = fopen(clp->vstr, "w"); data/t1utils-1.41/t1disasm.c:706: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). ifp = fopen(clp->vstr, "rb"); data/t1utils-1.41/t1lib.c:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[LINESIZE]; data/t1utils-1.41/t1lib.c:253:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[LINESIZE]; data/t1utils-1.41/t1lib.c:377:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_buf, w->buf, w->len); data/t1utils-1.41/t1mac.c:296: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(r, rsrc, sizeof(Rsrc) * nrsrc); data/t1utils-1.41/t1mac.c:354: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(rbuf + rbufpos, s, n); data/t1utils-1.41/t1mac.c:380:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(font_name, s, t - s); data/t1utils-1.41/t1mac.c:486:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/t1utils-1.41/t1mac.c:500:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/t1utils-1.41/t1mac.c:506: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(buf+2, filename, len); /* filename */ data/t1utils-1.41/t1mac.c:699:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/t1utils-1.41/t1mac.c:704: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(buf+1, filename, len); /* filename */ data/t1utils-1.41/t1mac.c:884:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ofp = fopen(ofp_filename, "wb"); data/t1utils-1.41/t1mac.c:918:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ifp = fopen(clp->vstr, "r"); data/t1utils-1.41/t1mac.c:950:13: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). rfork_f = tmpfile(); data/t1utils-1.41/t1unmac.c:309:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[124]; data/t1utils-1.41/t1unmac.c:412: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. unsigned char value_table[256]; data/t1utils-1.41/t1unmac.c:498:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/t1utils-1.41/t1unmac.c:595:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ofp = fopen(clp->vstr, "w"); data/t1utils-1.41/t1unmac.c:635:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ifp = fopen(clp->vstr, "rb"); data/t1utils-1.41/t1unmac.c:679: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[2048]; data/t1utils-1.41/t1unmac.c:680:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmp = tmpfile(); data/t1utils-1.41/t1unmac.c:785:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmpf = tmpfile(); data/t1utils-1.41/t1unmac.c:872:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen("/tmp/x.systemarea", "wb"))) { data/t1utils-1.41/t1unmac.c:888:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/t1utils-1.41/t1unmac.c:894: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(buf, "/tmp/x.%c%c%c%c.%d", (t>>24)&255, (t>>16)&255, (t>>8)&255, t&255, i); data/t1utils-1.41/t1unmac.c:896: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). if ((f = fopen(buf, "wb"))) { data/t1utils-1.41/clp.c:444: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/t1utils-1.41/clp.c:447: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/t1utils-1.41/clp.c:1153: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/t1utils-1.41/clp.c:2057: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/t1utils-1.41/clp.c:2411: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/t1utils-1.41/t1ascii.c:297:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:293:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:312:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:450:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(ifp); data/t1utils-1.41/t1asm.c:452:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:456:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:467:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1asm.c:750:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). set_lenIV(line, strlen(line)); data/t1utils-1.41/t1asm.c:752: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). set_cs_start(line, strlen(line)); data/t1utils-1.41/t1binary.c:267:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1disasm.c:340: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). int cs_start_len = strlen(cs_start); data/t1utils-1.41/t1disasm.c:738:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1lib.c:112:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1lib.c:115:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1lib.c:126:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1lib.c:257:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1lib.c:258:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). blocktyp = getc(ifp); data/t1utils-1.41/t1lib.c:272:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). block_len = getc(ifp) & 0xFF; data/t1utils-1.41/t1lib.c:273:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). block_len |= (getc(ifp) & 0xFF) << 8; data/t1utils-1.41/t1lib.c:274:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). block_len |= (getc(ifp) & 0xFF) << 16; data/t1utils-1.41/t1lib.c:275:32: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). block_len |= (unsigned) (getc(ifp) & 0xFF) << 24; data/t1utils-1.41/t1lib.c:314:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1mac.c:499:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i, len = strlen(filename); data/t1utils-1.41/t1mac.c:564:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i, nentries, len = strlen(filename); data/t1utils-1.41/t1mac.c:698:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int crc, len = strlen(filename); data/t1utils-1.41/t1mac.c:958:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(ifp); data/t1utils-1.41/t1unmac.c:67:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fi); data/t1utils-1.41/t1unmac.c:75:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = getc(fi); data/t1utils-1.41/t1unmac.c:76:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:86:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = getc(fi); data/t1utils-1.41/t1unmac.c:87:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:88:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:98:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = getc(fi); data/t1utils-1.41/t1unmac.c:99:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:100:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:101:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). val = (val << 8) | getc(fi); data/t1utils-1.41/t1unmac.c:429:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/t1utils-1.41/t1unmac.c:435:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/t1utils-1.41/t1unmac.c:446:33: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (c = ' '; isspace(c); c = getc(f)) ; data/t1utils-1.41/t1unmac.c:454:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (c = getc(f); c >= 0; c = getc(f)) data/t1utils-1.41/t1unmac.c:454:33: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (c = getc(f); c >= 0; c = getc(f)) data/t1utils-1.41/t1unmac.c:874:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). putc(getc(ifp), f); ANALYSIS SUMMARY: Hits = 126 Lines analyzed = 7598 in approximately 0.25 seconds (30985 lines/second) Physical Source Lines of Code (SLOC) = 5148 Hits@level = [0] 76 [1] 47 [2] 64 [3] 1 [4] 14 [5] 0 Hits@level+ = [0+] 202 [1+] 126 [2+] 79 [3+] 15 [4+] 14 [5+] 0 Hits/KSLOC@level+ = [0+] 39.2385 [1+] 24.4755 [2+] 15.3458 [3+] 2.91375 [4+] 2.7195 [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.