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/tablix2-0.3.5/intl/export.h Examining data/tablix2-0.3.5/intl/gmo.h Examining data/tablix2-0.3.5/intl/gettextP.h Examining data/tablix2-0.3.5/intl/hash-string.h Examining data/tablix2-0.3.5/intl/loadinfo.h Examining data/tablix2-0.3.5/intl/plural-exp.h Examining data/tablix2-0.3.5/intl/eval-plural.h Examining data/tablix2-0.3.5/intl/localcharset.h Examining data/tablix2-0.3.5/intl/lock.h Examining data/tablix2-0.3.5/intl/relocatable.h Examining data/tablix2-0.3.5/intl/xsize.h Examining data/tablix2-0.3.5/intl/printf-args.h Examining data/tablix2-0.3.5/intl/printf-args.c Examining data/tablix2-0.3.5/intl/printf-parse.h Examining data/tablix2-0.3.5/intl/wprintf-parse.h Examining data/tablix2-0.3.5/intl/printf-parse.c Examining data/tablix2-0.3.5/intl/vasnprintf.h Examining data/tablix2-0.3.5/intl/vasnwprintf.h Examining data/tablix2-0.3.5/intl/vasnprintf.c Examining data/tablix2-0.3.5/intl/os2compat.h Examining data/tablix2-0.3.5/intl/bindtextdom.c Examining data/tablix2-0.3.5/intl/dcgettext.c Examining data/tablix2-0.3.5/intl/dgettext.c Examining data/tablix2-0.3.5/intl/gettext.c Examining data/tablix2-0.3.5/intl/finddomain.c Examining data/tablix2-0.3.5/intl/hash-string.c Examining data/tablix2-0.3.5/intl/loadmsgcat.c Examining data/tablix2-0.3.5/intl/localealias.c Examining data/tablix2-0.3.5/intl/textdomain.c Examining data/tablix2-0.3.5/intl/l10nflist.c Examining data/tablix2-0.3.5/intl/explodename.c Examining data/tablix2-0.3.5/intl/dcigettext.c Examining data/tablix2-0.3.5/intl/dcngettext.c Examining data/tablix2-0.3.5/intl/dngettext.c Examining data/tablix2-0.3.5/intl/ngettext.c Examining data/tablix2-0.3.5/intl/plural-exp.c Examining data/tablix2-0.3.5/intl/localcharset.c Examining data/tablix2-0.3.5/intl/lock.c Examining data/tablix2-0.3.5/intl/relocatable.c Examining data/tablix2-0.3.5/intl/langprefs.c Examining data/tablix2-0.3.5/intl/localename.c Examining data/tablix2-0.3.5/intl/log.c Examining data/tablix2-0.3.5/intl/printf.c Examining data/tablix2-0.3.5/intl/version.c Examining data/tablix2-0.3.5/intl/osdep.c Examining data/tablix2-0.3.5/intl/os2compat.c Examining data/tablix2-0.3.5/intl/intl-exports.c Examining data/tablix2-0.3.5/intl/intl-compat.c Examining data/tablix2-0.3.5/intl/plural.c Examining data/tablix2-0.3.5/src/master.c Examining data/tablix2-0.3.5/src/main.h Examining data/tablix2-0.3.5/src/gettext.h Examining data/tablix2-0.3.5/src/counter.c Examining data/tablix2-0.3.5/src/counter.h Examining data/tablix2-0.3.5/src/transfer.c Examining data/tablix2-0.3.5/src/transfer.h Examining data/tablix2-0.3.5/src/params.c Examining data/tablix2-0.3.5/src/params.h Examining data/tablix2-0.3.5/src/error.h Examining data/tablix2-0.3.5/src/error.c Examining data/tablix2-0.3.5/src/error-local.c Examining data/tablix2-0.3.5/src/nodes.h Examining data/tablix2-0.3.5/src/nodes.c Examining data/tablix2-0.3.5/src/chromo.c Examining data/tablix2-0.3.5/src/chromo.h Examining data/tablix2-0.3.5/src/assert.h Examining data/tablix2-0.3.5/src/main.c Examining data/tablix2-0.3.5/src/xmlsup.c Examining data/tablix2-0.3.5/src/xmlsup.h Examining data/tablix2-0.3.5/src/error-pvm.c Examining data/tablix2-0.3.5/src/data.c Examining data/tablix2-0.3.5/src/data.h Examining data/tablix2-0.3.5/src/modsup.c Examining data/tablix2-0.3.5/src/modsup.h Examining data/tablix2-0.3.5/src/genetic.c Examining data/tablix2-0.3.5/src/genetic.h Examining data/tablix2-0.3.5/src/cache.c Examining data/tablix2-0.3.5/src/cache.h Examining data/tablix2-0.3.5/src/depend.c Examining data/tablix2-0.3.5/src/depend.h Examining data/tablix2-0.3.5/src/output.c Examining data/tablix2-0.3.5/src/output.h Examining data/tablix2-0.3.5/src/export.h Examining data/tablix2-0.3.5/src/module.h Examining data/tablix2-0.3.5/export/export_csv.c Examining data/tablix2-0.3.5/export/export_gnutu.c Examining data/tablix2-0.3.5/export/export_htmlcss.c Examining data/tablix2-0.3.5/export/export_htmlcss2.c Examining data/tablix2-0.3.5/export/stripe.c Examining data/tablix2-0.3.5/export/style2.c Examining data/tablix2-0.3.5/export/stripe.h Examining data/tablix2-0.3.5/export/style2.h Examining data/tablix2-0.3.5/export/export_vcal.c Examining data/tablix2-0.3.5/ttf/export_ttf.c Examining data/tablix2-0.3.5/ttf/scheme.c Examining data/tablix2-0.3.5/ttf/opdefines.h Examining data/tablix2-0.3.5/ttf/scheme.h Examining data/tablix2-0.3.5/ttf/scheme-private.h Examining data/tablix2-0.3.5/examples/modules/hello.c Examining data/tablix2-0.3.5/examples/modules/fixed.c Examining data/tablix2-0.3.5/examples/modules/row.c Examining data/tablix2-0.3.5/modules/available.c Examining data/tablix2-0.3.5/modules/consecutive.c Examining data/tablix2-0.3.5/modules/events_sameday.c Examining data/tablix2-0.3.5/modules/firstlastequal.c Examining data/tablix2-0.3.5/modules/firstorlast.c Examining data/tablix2-0.3.5/modules/fixed.c Examining data/tablix2-0.3.5/modules/fixedtime.c Examining data/tablix2-0.3.5/modules/freemorning.c Examining data/tablix2-0.3.5/modules/freeperiod.c Examining data/tablix2-0.3.5/modules/holes.c Examining data/tablix2-0.3.5/modules/maxconsecutive.c Examining data/tablix2-0.3.5/modules/maxperday.c Examining data/tablix2-0.3.5/modules/minrooms.c Examining data/tablix2-0.3.5/modules/perday.c Examining data/tablix2-0.3.5/modules/placecapability.c Examining data/tablix2-0.3.5/modules/preferredroom.c Examining data/tablix2-0.3.5/modules/preferredtime.c Examining data/tablix2-0.3.5/modules/recurrence.c Examining data/tablix2-0.3.5/modules/sameday.c Examining data/tablix2-0.3.5/modules/sametime.c Examining data/tablix2-0.3.5/modules/sametimeas.c Examining data/tablix2-0.3.5/modules/simplesametime.c Examining data/tablix2-0.3.5/modules/timeblocks.c Examining data/tablix2-0.3.5/modules/timeblocks_sameday.c Examining data/tablix2-0.3.5/modules/timeplace.c Examining data/tablix2-0.3.5/modules/walk.c FINAL RESULTS: data/tablix2-0.3.5/export/export_gnutu.c:43:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(d, a); data/tablix2-0.3.5/export/export_gnutu.c:45:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(d, b); data/tablix2-0.3.5/export/export_gnutu.c:46:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(d, c); data/tablix2-0.3.5/intl/dcigettext.c:800:9: [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 (new_localename, localename); data/tablix2-0.3.5/intl/langprefs.c:107:8: [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 (p, buf); data/tablix2-0.3.5/intl/localcharset.c:197:8: [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/tablix2-0.3.5/intl/localcharset.c:198:8: [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 (res_ptr + res_size - (l2 + 1), buf2); data/tablix2-0.3.5/intl/localename.c:910:4: [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 (name, legacy_table[i1].unixy); data/tablix2-0.3.5/intl/localename.c:934:4: [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 (name, langtag_table[i1].unixy); data/tablix2-0.3.5/intl/localename.c:954:4: [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 (name + 3, script_table[i1].unixy); data/tablix2-0.3.5/intl/log.c:86:7: [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 (last_logfilename, logfilename); data/tablix2-0.3.5/intl/os2compat.c:97: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 (libintl_nl_default_dirname, _nlos2_localedir); data/tablix2-0.3.5/intl/plural.c:527:21: [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. # define YYFPRINTF fprintf data/tablix2-0.3.5/intl/printf.c:98: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 (stream, format, args); data/tablix2-0.3.5/intl/printf.c:158:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/tablix2-0.3.5/intl/printf.c:198:28: [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. # define system_vsnprintf vsnprintf data/tablix2-0.3.5/intl/printf.c:304:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/tablix2-0.3.5/intl/printf.c:312:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfwprintf (stream, format, args); data/tablix2-0.3.5/intl/relocatable.c:459:8: [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 (result + curr_prefix_len, pathname_tail); data/tablix2-0.3.5/intl/vasnprintf.c:89:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/tablix2-0.3.5/intl/vasnprintf.c:100: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. # define SNPRINTF _snprintf data/tablix2-0.3.5/intl/vasnprintf.c:103: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. # define SNPRINTF snprintf data/tablix2-0.3.5/intl/vasnprintf.c:621:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/tablix2-0.3.5/intl/vasnprintf.c:624:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/tablix2-0.3.5/intl/vasnprintf.c:627:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/tablix2-0.3.5/intl/vasnprintf.h:37:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define __printf__ printf data/tablix2-0.3.5/modules/fixed.c:94:3: [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(name, NAMEPREFIX); data/tablix2-0.3.5/src/counter.c:115:2: [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. vsnprintf(content, LINEBUFFSIZE, fmt, ap); data/tablix2-0.3.5/src/counter.c:132:3: [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(msg_fifo_write->content, content); data/tablix2-0.3.5/src/error-local.c:47:2: [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. vsnprintf(msg, LINEBUFFSIZE, fmt, ap); data/tablix2-0.3.5/src/error-pvm.c:42:2: [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. vsnprintf(msg, LINEBUFFSIZE, fmt, ap); data/tablix2-0.3.5/src/main.c:92:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result, "%s%s", prefix, filename); data/tablix2-0.3.5/src/master.c:263:9: [4] (shell) execvp: 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. execvp("tablix2_kernel", argv); data/tablix2-0.3.5/src/modsup.c:701:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dest, mod_modulepath); data/tablix2-0.3.5/src/modsup.c:703:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dest, prefix); data/tablix2-0.3.5/src/modsup.c:704:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dest, myname); data/tablix2-0.3.5/src/modsup.c:705:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dest, LTDL_SHLIB_EXT); data/tablix2-0.3.5/src/xmlsup.c:803:2: [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. vsnprintf(pmsg, 256, msg, args); data/tablix2-0.3.5/ttf/export_ttf.c:259:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, get_shortcut, dat_restype[typeid].type); data/tablix2-0.3.5/ttf/export_ttf.c:261:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, check_shortcut, dat_restype[typeid].type); data/tablix2-0.3.5/ttf/scheme.c:903:11: [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(q, str); data/tablix2-0.3.5/ttf/scheme.c:1083:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "0%s", name+1); data/tablix2-0.3.5/ttf/scheme.c:1090:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "0x%s", name+1); data/tablix2-0.3.5/ttf/scheme.c:1745:43: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcpy(p,"#\\"); strcat(p,charnames[c]); break; data/tablix2-0.3.5/ttf/scheme.c:1759:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "#<%s PROCEDURE %ld>", procname(l),procnum(l)); data/tablix2-0.3.5/ttf/scheme.c:3972:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg,"%s: needs%s %d argument(s)", data/tablix2-0.3.5/ttf/scheme.c:3979:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg,"%s: needs%s %d argument(s)", data/tablix2-0.3.5/ttf/scheme.c:4011:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg,"%s: argument %d must be: %s", data/tablix2-0.3.5/ttf/scheme.c:4437:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(banner); data/tablix2-0.3.5/ttf/scheme.c:4453:6: [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(file_name,0)!=0) { data/tablix2-0.3.5/intl/dcigettext.c:156:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/tablix2-0.3.5/intl/dcigettext.c:157:28: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, max) getwd (buf) data/tablix2-0.3.5/intl/dcigettext.c:861:33: [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 *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); data/tablix2-0.3.5/intl/dcigettext.c:1525:14: [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. language = getenv ("LANGUAGE"); data/tablix2-0.3.5/intl/dcigettext.c:1565:24: [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 *value = getenv ("OUTPUT_CHARSET"); data/tablix2-0.3.5/intl/localcharset.c:122:13: [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. dir = getenv ("CHARSETALIASDIR"); data/tablix2-0.3.5/intl/localcharset.c:309:16: [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. locale = getenv ("LC_ALL"); data/tablix2-0.3.5/intl/localcharset.c:312:13: [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. locale = getenv ("LC_CTYPE"); data/tablix2-0.3.5/intl/localcharset.c:314:15: [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. locale = getenv ("LANG"); data/tablix2-0.3.5/intl/localcharset.c:360:16: [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. locale = getenv ("LC_ALL"); data/tablix2-0.3.5/intl/localcharset.c:363:13: [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. locale = getenv ("LC_CTYPE"); data/tablix2-0.3.5/intl/localcharset.c:365:15: [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. locale = getenv ("LANG"); data/tablix2-0.3.5/intl/localcharset.c:393: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. locale = getenv ("LC_ALL"); data/tablix2-0.3.5/intl/localcharset.c:396:16: [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. locale = getenv ("LC_CTYPE"); data/tablix2-0.3.5/intl/localcharset.c:398:11: [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. locale = getenv ("LANG"); data/tablix2-0.3.5/intl/localename.c:997: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. retval = getenv ("LC_ALL"); data/tablix2-0.3.5/intl/localename.c:1001: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. retval = getenv (categoryname); data/tablix2-0.3.5/intl/localename.c:1005: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. retval = getenv ("LANG"); data/tablix2-0.3.5/intl/lock.c:525:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:543:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:654:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:675:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:705:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:728:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:757:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:771:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:828:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:850:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/tablix2-0.3.5/intl/lock.c:891:4: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/tablix2-0.3.5/intl/lock.c:892:4: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/tablix2-0.3.5/intl/lock.c:911:8: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/tablix2-0.3.5/intl/os2compat.c:51:16: [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 *root = getenv ("UNIXROOT"); data/tablix2-0.3.5/intl/os2compat.c:52:24: [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 *gnulocaledir = getenv ("GNULOCALEDIR"); data/tablix2-0.3.5/intl/os2compat.h:43:9: [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. #define getenv _nl_getenv data/tablix2-0.3.5/src/main.c:227:9: [3] (random) srand: 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. srand(t.tv_usec); data/tablix2-0.3.5/src/main.c:439:19: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c=getopt(argc, argv, "o:rd:t:p:i:n:"))!=-1) { data/tablix2-0.3.5/src/main.c:508:19: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). xmlconfig=tmpnam(NULL); data/tablix2-0.3.5/src/main.c:658:34: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). xmlconfig=strdup(tmpnam(NULL)); data/tablix2-0.3.5/src/master.c:226:19: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c=getopt(argc, argv, "hn:vo:rl:d:t:p:i:"))!=-1) { data/tablix2-0.3.5/src/output.c:199:19: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c=getopt(argc, argv, "ho:vs:d:r:i:"))!=-1) { data/tablix2-0.3.5/ttf/scheme.c:4454:13: [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 *p=getenv("TINYSCHEMEINIT"); data/tablix2-0.3.5/export/export_csv.c:44:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out=fopen(file, "w"); data/tablix2-0.3.5/export/export_gnutu.c:54: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 name[11]; data/tablix2-0.3.5/export/export_gnutu.c:59: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). config=fopen(configfile, "r"); data/tablix2-0.3.5/export/export_gnutu.c:86: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. static char name[6]; data/tablix2-0.3.5/export/export_gnutu.c:109:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out=fopen(file, "w"); data/tablix2-0.3.5/export/export_htmlcss.c:41:1: [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 buff[BUFFSIZE]; data/tablix2-0.3.5/export/export_htmlcss.c:52:1: [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 buff2[BUFFSIZE]; data/tablix2-0.3.5/export/export_htmlcss.c:79: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(buff2, "%d", n+1); data/tablix2-0.3.5/export/export_htmlcss.c:92: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(buff, "%d", n+1); data/tablix2-0.3.5/export/export_htmlcss.c:444:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out=fopen(file, "w"); data/tablix2-0.3.5/export/export_htmlcss2.c:133:1: [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 buff[BUFFSIZE]; data/tablix2-0.3.5/export/export_htmlcss2.c:135:1: [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 buff2[BUFFSIZE]; data/tablix2-0.3.5/export/export_htmlcss2.c:162: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(buff2, "%d", n+1); data/tablix2-0.3.5/export/export_htmlcss2.c:175: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(buff, "%d", n+1); data/tablix2-0.3.5/export/export_htmlcss2.c:214: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 fullname[1024]; data/tablix2-0.3.5/export/export_htmlcss2.c:219:7: [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). dest=fopen(fullname, "w"); data/tablix2-0.3.5/export/export_htmlcss2.c:249: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 fullname[1024]; data/tablix2-0.3.5/export/export_htmlcss2.c:606: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 file[1024], title[1024]; data/tablix2-0.3.5/export/export_htmlcss2.c:634: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 file[1024], title[1024]; data/tablix2-0.3.5/export/export_vcal.c:57: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 d[256]; data/tablix2-0.3.5/export/export_vcal.c:184:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out=fopen(file, "w"); data/tablix2-0.3.5/export/stripe.c:29:7: [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). dest=fopen(filename, "w"); data/tablix2-0.3.5/export/style2.c:138:7: [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). dest=fopen(filename, "w"); data/tablix2-0.3.5/intl/bindtextdom.c:155: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 (result, dirname, len); data/tablix2-0.3.5/intl/bindtextdom.c:193: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 (result, codeset, len); data/tablix2-0.3.5/intl/bindtextdom.c:228: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_binding->domainname, domainname, len); data/tablix2-0.3.5/intl/bindtextdom.c:253: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 (result, dirname, len); data/tablix2-0.3.5/intl/bindtextdom.c:282:8: [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 (result, codeset, len); data/tablix2-0.3.5/intl/dcigettext.c:263: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 msgid[ZERO]; data/tablix2-0.3.5/intl/dcigettext.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 data[ZERO]; data/tablix2-0.3.5/intl/dcigettext.c:548: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 (search->msgid, msgid1, msgid_len); data/tablix2-0.3.5/intl/dcigettext.c:797: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_domainname, domainname, domainname_len + 1); data/tablix2-0.3.5/intl/dcigettext.c:1098: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 (charset, charsetstr, len); data/tablix2-0.3.5/intl/dcigettext.c:1132: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 (tmp, outcharset, len); data/tablix2-0.3.5/intl/dcigettext.c:1133: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 (tmp + len, "//TRANSLIT", 10 + 1); data/tablix2-0.3.5/intl/dcigettext.c:1573: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 (value_copy, value, len); data/tablix2-0.3.5/intl/dcigettext.c:1616:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (void *) ((char *) memcpy (dest, src, n) + n); data/tablix2-0.3.5/intl/finddomain.c:139: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 (locale, alias_value, len); data/tablix2-0.3.5/intl/gettextP.h:204: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 domainname[ZERO]; data/tablix2-0.3.5/intl/l10nflist.c:215: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 (cp, dirlist, dirlist_len); data/tablix2-0.3.5/intl/langprefs.c:62: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 buf[256]; data/tablix2-0.3.5/intl/loadmsgcat.c:468:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open(name, flags) open_not_cancel_2 (name, flags) data/tablix2-0.3.5/intl/loadmsgcat.c:828:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (domain_file->filename, O_RDONLY | O_BINARY); data/tablix2-0.3.5/intl/loadmsgcat.c:1179:10: [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 (mem, static_segments, segsize); data/tablix2-0.3.5/intl/loadmsgcat.c:1188: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 (mem, sysdep_segment_values[sysdepref], n); data/tablix2-0.3.5/intl/localcharset.c:134: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 (file_name, dir, dir_len); data/tablix2-0.3.5/intl/localcharset.c:137: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 (file_name + dir_len + add_slash, base, base_len + 1); data/tablix2-0.3.5/intl/localcharset.c:141:38: [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_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/tablix2-0.3.5/intl/localcharset.c:153:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[50+1]; data/tablix2-0.3.5/intl/localcharset.c:154:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[50+1]; data/tablix2-0.3.5/intl/localcharset.c:307: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. static char buf[2 + 10 + 1]; data/tablix2-0.3.5/intl/localcharset.c:333: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, dot, modifier - dot); data/tablix2-0.3.5/intl/localcharset.c:341: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, "CP%u", GetACP ()); data/tablix2-0.3.5/intl/localcharset.c:378:10: [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[2 + 10 + 1]; data/tablix2-0.3.5/intl/localcharset.c:381: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 (buf, "CP%u", GetACP ()); data/tablix2-0.3.5/intl/localcharset.c:387:10: [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[2 + 10 + 1]; data/tablix2-0.3.5/intl/localcharset.c:416:8: [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, dot, modifier - dot); data/tablix2-0.3.5/intl/localcharset.c:432:4: [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, "CP%u", cp[0]); data/tablix2-0.3.5/intl/localealias.c:230: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 (full_fname, fname, fname_len); data/tablix2-0.3.5/intl/localealias.c:231: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile); data/tablix2-0.3.5/intl/localealias.c:237: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). fp = fopen (relocate (full_fname), "rc"); data/tablix2-0.3.5/intl/localealias.c:239: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). fp = fopen (relocate (full_fname), "r"); data/tablix2-0.3.5/intl/localealias.c:260: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[400]; data/tablix2-0.3.5/intl/localealias.c:352:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. map[nmap].alias = memcpy (&string_space[string_space_act], data/tablix2-0.3.5/intl/localealias.c:356:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. map[nmap].value = memcpy (&string_space[string_space_act], data/tablix2-0.3.5/intl/localename.c:715:26: [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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/tablix2-0.3.5/intl/localename.c:715: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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/tablix2-0.3.5/intl/localename.c:853:26: [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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/tablix2-0.3.5/intl/localename.c:853: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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/tablix2-0.3.5/intl/localename.c:883:26: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/tablix2-0.3.5/intl/localename.c:883:50: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/tablix2-0.3.5/intl/localename.c:1046: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 namebuf[256]; data/tablix2-0.3.5/intl/log.c:87: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). last_logfile = fopen (logfilename, "a"); data/tablix2-0.3.5/intl/os2compat.c:42:1: [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 libintl_nl_default_dirname[MAXPATHLEN+1]; data/tablix2-0.3.5/intl/os2compat.c:61:11: [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 (_nlos2_libdir, root, sl); data/tablix2-0.3.5/intl/os2compat.c:62:11: [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 (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/tablix2-0.3.5/intl/os2compat.c:75:11: [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 (_nlos2_localealiaspath, root, sl); data/tablix2-0.3.5/intl/os2compat.c:76:11: [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 (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/tablix2-0.3.5/intl/os2compat.c:89:11: [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 (_nlos2_localedir, root, sl); data/tablix2-0.3.5/intl/os2compat.c:90:11: [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 (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/tablix2-0.3.5/intl/printf.c:217:8: [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 (resultbuf, result, pruned_length); data/tablix2-0.3.5/intl/printf.c:386:8: [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 (resultbuf, result, pruned_length * sizeof (wchar_t)); data/tablix2-0.3.5/intl/relocatable.c:122: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 (memory, orig_prefix_arg, orig_prefix_len + 1); data/tablix2-0.3.5/intl/relocatable.c:125: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 (memory, curr_prefix_arg, curr_prefix_len + 1); data/tablix2-0.3.5/intl/relocatable.c:206: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 (q, curr_pathname, p - curr_pathname); data/tablix2-0.3.5/intl/relocatable.c:269: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 (curr_prefix, curr_installdir, curr_prefix_len); data/tablix2-0.3.5/intl/relocatable.c:296: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. static char location[MAX_PATH]; data/tablix2-0.3.5/intl/relocatable.c:310: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. static char location_as_posix_path[2 * MAX_PATH]; data/tablix2-0.3.5/intl/relocatable.c:340: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). fp = fopen ("/proc/self/maps", "r"); data/tablix2-0.3.5/intl/relocatable.c:458:8: [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 (result, curr_prefix, curr_prefix_len); data/tablix2-0.3.5/intl/textdomain.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 (new_domain, domainname, len); data/tablix2-0.3.5/intl/vasnprintf.c:201: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 (memory, result, length * sizeof (CHAR_T)); \ data/tablix2-0.3.5/intl/vasnprintf.c:213: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 (result + length, cp, n * sizeof (CHAR_T)); data/tablix2-0.3.5/intl/vasnprintf.c:519: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 (p, dp->width_start, n * sizeof (CHAR_T)); data/tablix2-0.3.5/intl/vasnprintf.c:525: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 (p, dp->precision_start, n * sizeof (CHAR_T)); data/tablix2-0.3.5/intl/vasnprintf.c:836: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 (result + length, tmp, count * sizeof (CHAR_T)); data/tablix2-0.3.5/modules/firstlastequal.c:117: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 fitnessname[256]; data/tablix2-0.3.5/modules/firstorlast.c:160: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 fitnessname[256]; data/tablix2-0.3.5/modules/fixed.c:91: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 name[NAMELEN]; data/tablix2-0.3.5/modules/freemorning.c:113: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 fitnessname[256]; data/tablix2-0.3.5/modules/holes.c:106: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 fitnessname[256]; data/tablix2-0.3.5/modules/maxperday.c:163: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 fitnessname[256]; data/tablix2-0.3.5/modules/perday.c:132: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 fitnessname[256]; data/tablix2-0.3.5/modules/sameday.c:516: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 fitnessname[256]; data/tablix2-0.3.5/modules/walk.c:100: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 fitnessname[256]; data/tablix2-0.3.5/src/cache.c:156: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(dest->chr[n].gen, source->chr[n].gen, data/tablix2-0.3.5/src/cache.c:163: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->subtotals, source->subtotals, data/tablix2-0.3.5/src/cache.c:215: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(tab->subtotals, cache_array[n]->subtotals, data/tablix2-0.3.5/src/chromo.c:169: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 flag[6]; data/tablix2-0.3.5/src/chromo.c:178: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). handle=fopen(filename, "r"); data/tablix2-0.3.5/src/chromo.c:238: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). handle=fopen(filename, "w"); data/tablix2-0.3.5/src/counter.c:111: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 content[LINEBUFFSIZE]; data/tablix2-0.3.5/src/error-local.c:37: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 msg[LINEBUFFSIZE]; data/tablix2-0.3.5/src/error-pvm.c:38: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 msg[LINEBUFFSIZE]; data/tablix2-0.3.5/src/main.c:537: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). convfile=fopen(filename, "a"); data/tablix2-0.3.5/src/main.c:539: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). convfile=fopen(filename, "w"); data/tablix2-0.3.5/src/main.c:665: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). saved=fopen(xmlconfig, "w"); data/tablix2-0.3.5/src/master.c:54:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[256]; data/tablix2-0.3.5/src/master.c:186: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 fn[256]; data/tablix2-0.3.5/src/master.c:200:9: [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(prefix, "./"); data/tablix2-0.3.5/src/master.c:396:30: [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). convfiles[c]=fopen(fn, restore?"a":"w"); data/tablix2-0.3.5/src/output.c:172: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 xmlsrc[256]; data/tablix2-0.3.5/src/params.c:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/tablix2-0.3.5/src/params.c:137: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 value[256]; data/tablix2-0.3.5/src/transfer.c:55: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). handle=fopen(filename, "w"); data/tablix2-0.3.5/src/transfer.c:92: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). handle=fopen(filename, "r"); data/tablix2-0.3.5/src/transfer.c:108:9: [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(buff, "<!-- End of file -->\n"); data/tablix2-0.3.5/src/transfer.c:136: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). handle=fopen(filename, "r"); data/tablix2-0.3.5/src/transfer.c:152:9: [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(buff, "<!-- End of file -->\n"); data/tablix2-0.3.5/src/xmlsup.c:110: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 fmt2[LINEBUFFSIZE]; data/tablix2-0.3.5/src/xmlsup.c:796: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 pmsg[LINEBUFFSIZE]; data/tablix2-0.3.5/src/xmlsup.c:799: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. static char xmlerr[LINEBUFFSIZE]; data/tablix2-0.3.5/ttf/export_ttf.c:272: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 line[BUFSIZE]; data/tablix2-0.3.5/ttf/export_ttf.c:308:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). conffile=fopen(script,"r"); data/tablix2-0.3.5/ttf/scheme-private.h:63:1: [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 *alloc_seg[CELL_NSEGMENT]; data/tablix2-0.3.5/ttf/scheme-private.h:118:1: [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 linebuff[LINESIZE]; data/tablix2-0.3.5/ttf/scheme-private.h:119:1: [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 strbuff[256]; data/tablix2-0.3.5/ttf/scheme.c:264: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. static const char *charnames[32]={ data/tablix2-0.3.5/ttf/scheme.c:988: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 name[40]; data/tablix2-0.3.5/ttf/scheme.c:991: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(name,"gensym-%ld",sc->gensym_cnt); data/tablix2-0.3.5/ttf/scheme.c:1070:29: [2] (integer) atol: 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). return (mk_integer(sc, atol(q))); data/tablix2-0.3.5/ttf/scheme.c:1076: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 tmp[256]; data/tablix2-0.3.5/ttf/scheme.c:1241: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 msg[80]; data/tablix2-0.3.5/ttf/scheme.c:1242: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(msg,"done: %ld cells were recovered.\n", sc->fcells); data/tablix2-0.3.5/ttf/scheme.c:1262: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). FILE *fin=fopen(fname,"r"); data/tablix2-0.3.5/ttf/scheme.c:1302:5: [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(fn,rw); data/tablix2-0.3.5/ttf/scheme.c:1707:11: [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(p, "#<PORT>"); data/tablix2-0.3.5/ttf/scheme.c:1711:16: [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(p, "%ld", ivalue_unchecked(l)); data/tablix2-0.3.5/ttf/scheme.c:1713:16: [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(p, "%.10g", rvalue_unchecked(l)); data/tablix2-0.3.5/ttf/scheme.c:1733:21: [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(p,"#\\space"); break; data/tablix2-0.3.5/ttf/scheme.c:1735:21: [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(p,"#\\newline"); break; data/tablix2-0.3.5/ttf/scheme.c:1737:21: [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(p,"#\\return"); break; data/tablix2-0.3.5/ttf/scheme.c:1739:21: [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(p,"#\\tab"); break; data/tablix2-0.3.5/ttf/scheme.c:1743:26: [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(p,"#\\del"); break; data/tablix2-0.3.5/ttf/scheme.c:1745:26: [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(p,"#\\"); strcat(p,charnames[c]); break; data/tablix2-0.3.5/ttf/scheme.c:1749: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(p,"#\\x%x",c); break; data/tablix2-0.3.5/ttf/scheme.c:1752:21: [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(p,"#\\%c",c); break; data/tablix2-0.3.5/ttf/scheme.c:1768: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(p, "#<FOREIGN PROCEDURE %ld>", procnum(l)); data/tablix2-0.3.5/ttf/scheme.c:2555: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:2762: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3084:12: [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(pos, strvalue(car(x)), strlength(car(x))); data/tablix2-0.3.5/ttf/scheme.c:3114:11: [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(strvalue(x),str+index0,len); data/tablix2-0.3.5/ttf/scheme.c:3183: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3227: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. sprintf(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3307: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3329:11: [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(sc->code,sc->value,sizeof(struct cell)); data/tablix2-0.3.5/ttf/scheme.c:3482: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. sprintf(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3527: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3821: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3876: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(sc->strbuff, "%d: illegal operator", sc->op); data/tablix2-0.3.5/ttf/scheme.c:3965: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 msg[512]; data/tablix2-0.3.5/ttf/scheme.c:4469: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). fin=fopen(file_name,"r"); data/tablix2-0.3.5/ttf/scheme.c:4479:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin=fopen(file_name,"r"); data/tablix2-0.3.5/export/export_gnutu.c:41: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). d=malloc(sizeof(*c)*(strlen(a)+strlen(b)+strlen(c)+1+1)); data/tablix2-0.3.5/export/export_gnutu.c:41:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d=malloc(sizeof(*c)*(strlen(a)+strlen(b)+strlen(c)+1+1)); data/tablix2-0.3.5/export/export_gnutu.c:41:43: [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). d=malloc(sizeof(*c)*(strlen(a)+strlen(b)+strlen(c)+1+1)); data/tablix2-0.3.5/export/export_gnutu.c:44:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(d, "/"); data/tablix2-0.3.5/export/export_gnutu.c:72:5: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. r=fscanf(config, "%10s", name); data/tablix2-0.3.5/intl/bindtextdom.c:152: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). size_t len = strlen (dirname) + 1; data/tablix2-0.3.5/intl/bindtextdom.c:190: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). size_t len = strlen (codeset) + 1; data/tablix2-0.3.5/intl/bindtextdom.c:221: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 len = strlen (domainname) + 1; data/tablix2-0.3.5/intl/bindtextdom.c:249: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). size_t len = strlen (dirname) + 1; data/tablix2-0.3.5/intl/bindtextdom.c:278:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (codeset) + 1; data/tablix2-0.3.5/intl/dcigettext.c:542: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). msgid_len = strlen (msgid1) + 1; data/tablix2-0.3.5/intl/dcigettext.c:639: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). size_t dirname_len = strlen (dirname) + 1; data/tablix2-0.3.5/intl/dcigettext.c:681: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). domainname_len = strlen (domainname); data/tablix2-0.3.5/intl/dcigettext.c:682:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdomainname = (char *) alloca (strlen (categoryname) data/tablix2-0.3.5/intl/dcigettext.c:691:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). single_locale = (char *) alloca (strlen (categoryvalue) + 1); data/tablix2-0.3.5/intl/dcigettext.c:786:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen (localename) + 1; data/tablix2-0.3.5/intl/dcigettext.c:914: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). nls_uint32 len = strlen (msgid); data/tablix2-0.3.5/intl/dcigettext.c:1091:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). charsetstr += strlen ("charset="); data/tablix2-0.3.5/intl/dcigettext.c:1130:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (outcharset); data/tablix2-0.3.5/intl/dcigettext.c:1569:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (value) + 1; data/tablix2-0.3.5/intl/eval-plural.h:88:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. case equal: data/tablix2-0.3.5/intl/finddomain.c:94:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (dirname) + 1, 0, locale, NULL, NULL, data/tablix2-0.3.5/intl/finddomain.c:134: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 len = strlen (alias_value) + 1; data/tablix2-0.3.5/intl/finddomain.c:154:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (dirname) + 1, mask, language, territory, data/tablix2-0.3.5/intl/l10nflist.c:98: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). size_t part_len = strlen (argz); data/tablix2-0.3.5/intl/l10nflist.c:123: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). size_t part_len = strlen (argz); data/tablix2-0.3.5/intl/l10nflist.c:197: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). + strlen (language) data/tablix2-0.3.5/intl/l10nflist.c:199:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (territory) + 1 : 0) data/tablix2-0.3.5/intl/l10nflist.c:201:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (codeset) + 1 : 0) data/tablix2-0.3.5/intl/l10nflist.c:203:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (normalized_codeset) + 1 : 0) data/tablix2-0.3.5/intl/l10nflist.c:205:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (modifier) + 1 : 0) data/tablix2-0.3.5/intl/l10nflist.c:206: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). + 1 + strlen (filename) + 1); data/tablix2-0.3.5/intl/l10nflist.c:326:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, data/tablix2-0.3.5/intl/langprefs.c:76: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). size += strlen (buf) + 1; data/tablix2-0.3.5/intl/langprefs.c:108: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). p += strlen (buf); data/tablix2-0.3.5/intl/loadmsgcat.c:470:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read(fd, buf, n) read_not_cancel (fd, buf, n) data/tablix2-0.3.5/intl/loadmsgcat.c:874:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long int nb = (long int) read (fd, read_ptr, to_read); data/tablix2-0.3.5/intl/loadmsgcat.c:1052: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). need += strlen (sysdep_segment_values[sysdepref]); data/tablix2-0.3.5/intl/loadmsgcat.c:1187:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = strlen (sysdep_segment_values[sysdepref]); data/tablix2-0.3.5/intl/localcharset.c:87:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/tablix2-0.3.5/intl/localcharset.c:88:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/tablix2-0.3.5/intl/localcharset.c:128:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_len = strlen (dir); data/tablix2-0.3.5/intl/localcharset.c:129: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 base_len = strlen (base); data/tablix2-0.3.5/intl/localcharset.c:158:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/tablix2-0.3.5/intl/localcharset.c:167:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/tablix2-0.3.5/intl/localcharset.c:174:12: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/tablix2-0.3.5/intl/localcharset.c:176: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). l1 = strlen (buf1); data/tablix2-0.3.5/intl/localcharset.c:177: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). l2 = strlen (buf2); data/tablix2-0.3.5/intl/localcharset.c:446:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/tablix2-0.3.5/intl/localcharset.c:446:52: [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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/tablix2-0.3.5/intl/localcharset.c:450: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). codeset = aliases + strlen (aliases) + 1; data/tablix2-0.3.5/intl/localealias.c:324:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alias_len = strlen (alias) + 1; data/tablix2-0.3.5/intl/localealias.c:325:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_len = strlen (value) + 1; data/tablix2-0.3.5/intl/localename.c:916:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (name) == 7 && name[2] == '-') data/tablix2-0.3.5/intl/log.c:83:43: [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). last_logfilename = (char *) malloc (strlen (logfilename) + 1); data/tablix2-0.3.5/intl/os2compat.c:59: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). size_t sl = strlen (root); data/tablix2-0.3.5/intl/os2compat.c:60: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). _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); data/tablix2-0.3.5/intl/os2compat.c:62:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/tablix2-0.3.5/intl/os2compat.c:73: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). size_t sl = strlen (root); data/tablix2-0.3.5/intl/os2compat.c:74:58: [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). _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); data/tablix2-0.3.5/intl/os2compat.c:76:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/tablix2-0.3.5/intl/os2compat.c:87: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). size_t sl = strlen (root); data/tablix2-0.3.5/intl/os2compat.c:88:52: [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). _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); data/tablix2-0.3.5/intl/os2compat.c:90:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/tablix2-0.3.5/intl/os2compat.c:96:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (_nlos2_localedir) <= MAXPATHLEN) data/tablix2-0.3.5/intl/plural-exp.h:54:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal, /* Comparison for equality. */ data/tablix2-0.3.5/intl/plural.c:566:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/tablix2-0.3.5/intl/plural.c:1387:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. lval->op = equal; data/tablix2-0.3.5/intl/relocatable.c:115: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). orig_prefix_len = strlen (orig_prefix_arg); data/tablix2-0.3.5/intl/relocatable.c:116: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). curr_prefix_len = strlen (curr_prefix_arg); data/tablix2-0.3.5/intl/relocatable.c:182:53: [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 (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/tablix2-0.3.5/intl/relocatable.c:186:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rel_installdir = orig_installdir + strlen (orig_installprefix); data/tablix2-0.3.5/intl/relocatable.c:191: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). const char *p = curr_pathname + strlen (curr_pathname); data/tablix2-0.3.5/intl/relocatable.c:214:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *rp = rel_installdir + strlen (rel_installdir); data/tablix2-0.3.5/intl/relocatable.c:215:40: [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 *cp = curr_installdir + strlen (curr_installdir); data/tablix2-0.3.5/intl/relocatable.c:317:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (location_as_posix_path) >= MAX_PATH - 1) data/tablix2-0.3.5/intl/relocatable.c:354:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/tablix2-0.3.5/intl/relocatable.c:373:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/tablix2-0.3.5/intl/relocatable.c:452:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/tablix2-0.3.5/intl/textdomain.c:112: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 len = strlen (domainname) + 1; data/tablix2-0.3.5/intl/vasnprintf.c:55:24: [1] (buffer) wcslen: 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 local_wcslen wcslen data/tablix2-0.3.5/intl/vasnprintf.c:462:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_length = strlen (a.arg[dp->arg_index].a.a_string); data/tablix2-0.3.5/modules/consecutive.c:172:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cont)>0) { data/tablix2-0.3.5/modules/fixed.c:71: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). type=&restriction[strlen(NAMEPREFIX)]; data/tablix2-0.3.5/modules/fixed.c:95:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(name, dat_restype[n].type, data/tablix2-0.3.5/modules/fixed.c:96: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). NAMELEN-strlen(NAMEPREFIX)-1); data/tablix2-0.3.5/modules/sametimeas.c:91:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cont)<=0) { data/tablix2-0.3.5/modules/timeblocks.c:81:6: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. int equal; data/tablix2-0.3.5/modules/timeblocks.c:97:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal; data/tablix2-0.3.5/modules/timeblocks.c:119:5: [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(cont)<=0) { data/tablix2-0.3.5/modules/timeblocks_sameday.c:84:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. int equal; data/tablix2-0.3.5/modules/timeblocks_sameday.c:100:16: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal; data/tablix2-0.3.5/modules/timeblocks_sameday.c:122:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cont)<=0) { data/tablix2-0.3.5/src/chromo.c:207:3: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. fscanf(handle, "%5s", flag); data/tablix2-0.3.5/src/main.c:90:4: [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). c=strlen(prefix)+strlen(filename)+1; data/tablix2-0.3.5/src/main.c:90:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). c=strlen(prefix)+strlen(filename)+1; data/tablix2-0.3.5/src/master.c:232:35: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). case 'o': strncpy(prefix, optarg, 256); data/tablix2-0.3.5/src/modsup.c:675:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen=strlen(myname); data/tablix2-0.3.5/src/modsup.c:689:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). totallen= strlen(mod_modulepath)+ data/tablix2-0.3.5/src/modsup.c:691:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(prefix)+ data/tablix2-0.3.5/src/modsup.c:692:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(myname)+ data/tablix2-0.3.5/src/modsup.c:693:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(LTDL_SHLIB_EXT); data/tablix2-0.3.5/src/modsup.c:702:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dest, "/"); data/tablix2-0.3.5/src/modsup.c:707: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). assert(strlen(dest)==totallen); data/tablix2-0.3.5/src/output.c:115:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(optstr)>0); data/tablix2-0.3.5/src/output.c:227:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(xmlsrc, argv[optind+1], 256); data/tablix2-0.3.5/ttf/scheme.c:913:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return mk_counted_string(sc,str,strlen(str)); data/tablix2-0.3.5/ttf/scheme.c:1401:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc(pt->rep.stdio.file); data/tablix2-0.3.5/ttf/scheme.c:1775:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *plen=strlen(p); data/tablix2-0.3.5/ttf/scheme.c:4365:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sc->load_stack[0].rep.string.past_the_end=(char*)cmd+strlen(cmd); ANALYSIS SUMMARY: Hits = 374 Lines analyzed = 37033 in approximately 0.99 seconds (37413 lines/second) Physical Source Lines of Code (SLOC) = 24728 Hits@level = [0] 466 [1] 110 [2] 173 [3] 41 [4] 50 [5] 0 Hits@level+ = [0+] 840 [1+] 374 [2+] 264 [3+] 91 [4+] 50 [5+] 0 Hits/KSLOC@level+ = [0+] 33.9696 [1+] 15.1246 [2+] 10.6762 [3+] 3.68004 [4+] 2.022 [5+] 0 Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.