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/libmoe-1.5.8/altmalloc.c Examining data/libmoe-1.5.8/altmalloc.h Examining data/libmoe-1.5.8/btri.c Examining data/libmoe-1.5.8/btri.h Examining data/libmoe-1.5.8/domestic-ascii.h Examining data/libmoe-1.5.8/eaw_a2n_ucswidth.mk_btri.h Examining data/libmoe-1.5.8/eaw_a2w_ucswidth.mk_btri.h Examining data/libmoe-1.5.8/full-to-half.mk_btri.h Examining data/libmoe-1.5.8/half-to-full.mk_btri.h Examining data/libmoe-1.5.8/iso-to-ucs.mk_btri.h Examining data/libmoe-1.5.8/jis0208-extra.c Examining data/libmoe-1.5.8/jis0208-to-ucs-extra.mk_btri.h Examining data/libmoe-1.5.8/jis1flag.mk_btri.h Examining data/libmoe-1.5.8/mbces.c Examining data/libmoe-1.5.8/mbces.h Examining data/libmoe-1.5.8/mbcesconf.h Examining data/libmoe-1.5.8/mbcesdefs.h Examining data/libmoe-1.5.8/mbcestab.mk_btri.h Examining data/libmoe-1.5.8/mbconv.c Examining data/libmoe-1.5.8/mbconvtab.mk_btri.h Examining data/libmoe-1.5.8/mbdetectortab.mk_btri.h Examining data/libmoe-1.5.8/mbfind.c Examining data/libmoe-1.5.8/mbflagtab.mk_btri.h Examining data/libmoe-1.5.8/mbinit.c Examining data/libmoe-1.5.8/mbio.c Examining data/libmoe-1.5.8/mblangconf.h Examining data/libmoe-1.5.8/mbtermtab.mk_btri.h Examining data/libmoe-1.5.8/mbwcweight.mk_btri.h Examining data/libmoe-1.5.8/notascii.mk_btri.h Examining data/libmoe-1.5.8/prop.mk_btri.h Examining data/libmoe-1.5.8/ucs-to-iso-pool.h Examining data/libmoe-1.5.8/ucs-to-iso.mk_btri.h Examining data/libmoe-1.5.8/ucs-to-jis0208-extra.mk_btri.h Examining data/libmoe-1.5.8/uirx.c Examining data/libmoe-1.5.8/uirx.h Examining data/libmoe-1.5.8/wcrx.c Examining data/libmoe-1.5.8/wcrx.h Examining data/libmoe-1.5.8/xterm_ucswidth.mk_btri.h Examining data/libmoe-1.5.8/iso2mb.c Examining data/libmoe-1.5.8/mb2iso.c Examining data/libmoe-1.5.8/mb.h FINAL RESULTS: data/libmoe-1.5.8/btri.c:1837:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, f, *(char *)p); data/libmoe-1.5.8/btri.c:1840:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, f, *(unsigned int *)p); data/libmoe-1.5.8/btri.c:1921:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, f, *(ptrdiff_t *)p); data/libmoe-1.5.8/btri.c:1924:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, f, *(char **)p ? *(char **)p : ""); data/libmoe-1.5.8/btri.c:2095:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(context->fp, f, (int)*BTRI_O2P(ptrdiff_t *, node, desc->off_pos)); data/libmoe-1.5.8/btri.c:2098:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(context->fp, f, tname[i]); data/libmoe-1.5.8/btri.c:2107:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(context->fp, f, val[i]); data/libmoe-1.5.8/mb2iso.c:1257:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, int)); data/libmoe-1.5.8/mb2iso.c:1273:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, long)); data/libmoe-1.5.8/mb2iso.c:1281:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, int)); data/libmoe-1.5.8/mb2iso.c:1295:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, long double)); data/libmoe-1.5.8/mb2iso.c:1303:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, double)); data/libmoe-1.5.8/mb2iso.c:1320:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, long double)); data/libmoe-1.5.8/mb2iso.c:1328:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, double)); data/libmoe-1.5.8/mb2iso.c:1365:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. tn = sprintf(buf, tf, va_arg(ap, void *)); data/libmoe-1.5.8/mbconv.c:86: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, frmt, ap); data/libmoe-1.5.8/mbconv.c:124: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, f, ap); data/libmoe-1.5.8/mbconv.c:869:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, INDENT "%.*s\n", k, &usage[j]); data/libmoe-1.5.8/mbio.c:555:12: [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. return vfprintf(fp, format, ap); data/libmoe-1.5.8/mbfind.c:123:21: [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. if (!term) term = getenv("TERM"); data/libmoe-1.5.8/btri.c:261:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char msb_tab[1 << CHAR_BIT]; data/libmoe-1.5.8/btri.c:262:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char msbpos_tab[1 << CHAR_BIT]; data/libmoe-1.5.8/btri.c:661:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (!(((unsigned char *)key)[node->pos / CHAR_BIT] & (1U << (CHAR_BIT - 1 - node->pos % CHAR_BIT)))) { data/libmoe-1.5.8/btri.c:669:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (((unsigned char *)key)[node->pos / CHAR_BIT] & (1U << (CHAR_BIT - 1 - node->pos % CHAR_BIT))) data/libmoe-1.5.8/btri.c:738:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (!(tolower(((unsigned char *)key)[node->pos / CHAR_BIT]) & (1U << (CHAR_BIT - 1 - node->pos % CHAR_BIT)))) { data/libmoe-1.5.8/btri.c:746:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (tolower(((unsigned char *)key)[node->pos / CHAR_BIT]) & (1U << (CHAR_BIT - 1 - node->pos % CHAR_BIT))) data/libmoe-1.5.8/btri.c:1342: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(&v[1 + b], &v1[1], sizeof(unsigned int) * v1[0]); data/libmoe-1.5.8/btri.c:1369: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 *key_n[2]; data/libmoe-1.5.8/btri.c:1492: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(&dest[gen], subv[i], sizeof(unsigned int) * (1 + *(unsigned int *)subv[i])); data/libmoe-1.5.8/btri.c:1765: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 unknown_error[sizeof("unknown error ( == )") + sizeof(int) * CHAR_BIT / 3 + sizeof(int) * CHAR_BIT / 4] data/libmoe-1.5.8/btri.c:1771: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(&unknown_error[sizeof("unknown error ") - sizeof("")], "(%d == 0x%X)", err, err); data/libmoe-1.5.8/btri.c:2015: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 *tobefreed[2] = {NULL, NULL}, *val[2], *tname[2]; data/libmoe-1.5.8/btri.c:2032: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 index[(sizeof(int) * CHAR_BIT) / 3 + sizeof("[]")]; data/libmoe-1.5.8/btri.c:2033:10: [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 n = sprintf(index, "[%d]", count); data/libmoe-1.5.8/btri.c:2038:4: [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(val[i], "&", sizeof("&") - 1); data/libmoe-1.5.8/btri.c:2039:4: [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(val[i] + sizeof("&") - 1, nodename, nn_len); data/libmoe-1.5.8/btri.c:2040:4: [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(val[i] + sizeof("&") - 1 + nn_len, index, n + 1); data/libmoe-1.5.8/btri.c:2090: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(f + 1, s + 1, e - s - 1); data/libmoe-1.5.8/btri.h:64: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 key_n[2]; data/libmoe-1.5.8/iso2mb.c:549: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 temp[1]; data/libmoe-1.5.8/iso2mb.c:578: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(d, &info->auxbuf[i], n - i); data/libmoe-1.5.8/iso2mb.c:638:4: [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[i], info->auxbuf, info->aux_n); data/libmoe-1.5.8/iso2mb.c:918:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, &p->copy.buf[p->copy.b], n); data/libmoe-1.5.8/mb.h:224: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 set[mb_Gn]; data/libmoe-1.5.8/mb.h:225: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 fc[mb_Gn]; data/libmoe-1.5.8/mb.h: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 auxbuf[MB_MBC_LEN_MAX]; data/libmoe-1.5.8/mb.h:337: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 d[4]; data/libmoe-1.5.8/mb2iso.c:540: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[MB_MBC_LEN_MAX]; data/libmoe-1.5.8/mb2iso.c:1162: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 tf[sizeof("%-+ #0.ld") + sizeof(int) * CHAR_BIT / 3 + 1] = "%"; data/libmoe-1.5.8/mb2iso.c:1164: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[3 + sizeof(double) * CHAR_BIT * 2 / 3 + 2 + sizeof(long) * CHAR_BIT / 3 + sizeof(void *) * CHAR_BIT / 3]; data/libmoe-1.5.8/mb2iso.c:1247:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. fe += sprintf(&tf[fe], "%d", precision); data/libmoe-1.5.8/mb2iso.c:1604: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[MB_ESC_LEN_MAX + MB_MBC_LEN_MAX]; data/libmoe-1.5.8/mb2iso.c:1658: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(pre, "=?", sizeof("=?") - 1); data/libmoe-1.5.8/mb2iso.c:1659: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(&pre[sizeof("=?") - 1], title, cslen); data/libmoe-1.5.8/mb2iso.c:1660: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(&pre[sizeof("=?") - 1 + cslen], "?b?", sizeof("?b?")); data/libmoe-1.5.8/mbconv.c:354: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 (!(ostream = fopen(arg1st, "w"))) data/libmoe-1.5.8/mbconv.c:365: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 (!(ostream = fopen(arg1st, "a"))) data/libmoe-1.5.8/mbconv.c:421: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 op[2] = "|"; data/libmoe-1.5.8/mbconv.c:459: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). if (!(istream = fopen(fn, "r"))) data/libmoe-1.5.8/mbconv.c:481:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->stat, opt->cs_stat, sizeof(mb_cs_detector_stat_t) * opt->n_cs_stats); data/libmoe-1.5.8/mbio.c:9: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[BUFSIZ]; data/libmoe-1.5.8/mbio.c:230: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 f_mode[sizeof(MB_IO_MODE)]; data/libmoe-1.5.8/mbio.c:233:20: [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 mb_vfbind(fopen(fn, f_mode), mode, ap); data/libmoe-1.5.8/mbio.c:251: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 f_mode[sizeof(MB_IO_MODE)]; data/libmoe-1.5.8/mbio.c:271: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 f_mode[sizeof(MB_IO_MODE)]; data/libmoe-1.5.8/uirx.c:190: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(u, x, nfa->n_bytes); data/libmoe-1.5.8/uirx.c:201:48: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define uirx_posmap_set_bang(x, i) (((unsigned char *)x)[(i) / CHAR_BIT] |= 1U << ((i) % CHAR_BIT)) data/libmoe-1.5.8/uirx.c:202:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define uirx_posmap_test(x, i) ((x) ? (((unsigned char *)x)[(i) / CHAR_BIT] & (1U << ((i) % CHAR_BIT))) : 0) data/libmoe-1.5.8/uirx.c:662: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(nfa->stack[0].v, nfa->first.v, sizeof(ptrdiff_t) * nfa->first.n); data/libmoe-1.5.8/btri.c:1202:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cursor.n = strlen(key) * CHAR_BIT; data/libmoe-1.5.8/btri.c:1822: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). e = s + strlen(s); data/libmoe-1.5.8/btri.c:2021:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nn_len = strlen(nodename); data/libmoe-1.5.8/btri.h:88:71: [1] (buffer) strlen: Does not handle 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 btri_fast_search_str(k, no, p_val) (btri_fast_search_mem((k), strlen((k)), (no), (p_val))) data/libmoe-1.5.8/btri.h:90:77: [1] (buffer) strlen: Does not handle 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 btri_fast_ci_search_str(k, no, p_val) (btri_fast_ci_search_mem((k), strlen((k)), (no), (p_val))) data/libmoe-1.5.8/iso2mb.c:739:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return mb_vmem2mb(s, strlen(s) + 1, p_end, setup, op, ap); data/libmoe-1.5.8/mb2iso.c:1048:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return mb_putmem(s, strlen(s), info); data/libmoe-1.5.8/mb2iso.c:1133:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(s) + 1; data/libmoe-1.5.8/mb2iso.c:1652:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cslen = strlen(title); data/libmoe-1.5.8/mb2iso.c:1694:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(s) + 1; data/libmoe-1.5.8/mbconv.c:792:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((p = mb_nc_bsearch(argv[i], strlen(argv[i]), opt_tab, data/libmoe-1.5.8/mbconv.c:840:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mb_mem2mb_setup(®ex_mb_info, opt.regex, strlen(opt.regex), ®ex_mb_setup, ""); data/libmoe-1.5.8/mbio.c:432: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). mb_fwrite(s, strlen(s), fp); data/libmoe-1.5.8/mbio.c:446:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc(fp); data/libmoe-1.5.8/mbio.c:459:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = fgetc(fp); data/libmoe-1.5.8/mbio.c:478:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((c = fgetc(fp)) == EOF) ANALYSIS SUMMARY: Hits = 85 Lines analyzed = 480239 in approximately 6.78 seconds (70832 lines/second) Physical Source Lines of Code (SLOC) = 478513 Hits@level = [0] 23 [1] 16 [2] 49 [3] 1 [4] 19 [5] 0 Hits@level+ = [0+] 108 [1+] 85 [2+] 69 [3+] 20 [4+] 19 [5+] 0 Hits/KSLOC@level+ = [0+] 0.225699 [1+] 0.177634 [2+] 0.144197 [3+] 0.0417961 [4+] 0.0397063 [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.