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/mdk-doc-1.2.11/intl/eval-plural.h Examining data/mdk-doc-1.2.11/intl/textdomain.c Examining data/mdk-doc-1.2.11/intl/printf-args.c Examining data/mdk-doc-1.2.11/intl/relocatable.h Examining data/mdk-doc-1.2.11/intl/relocatable.c Examining data/mdk-doc-1.2.11/intl/printf-parse.c Examining data/mdk-doc-1.2.11/intl/localcharset.c Examining data/mdk-doc-1.2.11/intl/log.c Examining data/mdk-doc-1.2.11/intl/finddomain.c Examining data/mdk-doc-1.2.11/intl/plural-exp.h Examining data/mdk-doc-1.2.11/intl/dngettext.c Examining data/mdk-doc-1.2.11/intl/osdep.c Examining data/mdk-doc-1.2.11/intl/dcngettext.c Examining data/mdk-doc-1.2.11/intl/os2compat.c Examining data/mdk-doc-1.2.11/intl/gettextP.h Examining data/mdk-doc-1.2.11/intl/wprintf-parse.h Examining data/mdk-doc-1.2.11/intl/dcigettext.c Examining data/mdk-doc-1.2.11/intl/localcharset.h Examining data/mdk-doc-1.2.11/intl/os2compat.h Examining data/mdk-doc-1.2.11/intl/printf.c Examining data/mdk-doc-1.2.11/intl/vasnwprintf.h Examining data/mdk-doc-1.2.11/intl/gmo.h Examining data/mdk-doc-1.2.11/intl/printf-parse.h Examining data/mdk-doc-1.2.11/intl/printf-args.h Examining data/mdk-doc-1.2.11/intl/vasnprintf.h Examining data/mdk-doc-1.2.11/intl/plural.c Examining data/mdk-doc-1.2.11/intl/localealias.c Examining data/mdk-doc-1.2.11/intl/dgettext.c Examining data/mdk-doc-1.2.11/intl/loadmsgcat.c Examining data/mdk-doc-1.2.11/intl/vasnprintf.c Examining data/mdk-doc-1.2.11/intl/ngettext.c Examining data/mdk-doc-1.2.11/intl/loadinfo.h Examining data/mdk-doc-1.2.11/intl/dcgettext.c Examining data/mdk-doc-1.2.11/intl/gettext.c Examining data/mdk-doc-1.2.11/intl/localename.c Examining data/mdk-doc-1.2.11/intl/xsize.h Examining data/mdk-doc-1.2.11/intl/explodename.c Examining data/mdk-doc-1.2.11/intl/hash-string.h Examining data/mdk-doc-1.2.11/intl/l10nflist.c Examining data/mdk-doc-1.2.11/intl/intl-compat.c Examining data/mdk-doc-1.2.11/intl/bindtextdom.c Examining data/mdk-doc-1.2.11/intl/plural-exp.c Examining data/mdk-doc-1.2.11/mixguile/mixguile_main.c Examining data/mdk-doc-1.2.11/mixguile/mixguile_cmd_dispatcher.h Examining data/mdk-doc-1.2.11/mixguile/xmixguile_cmd_dispatcher.h Examining data/mdk-doc-1.2.11/mixguile/mixguile_cmd_dispatcher.c Examining data/mdk-doc-1.2.11/mixguile/mixguile.c Examining data/mdk-doc-1.2.11/mixguile/mixguile.h Examining data/mdk-doc-1.2.11/mixguile/xmixguile_cmd_dispatcher.c Examining data/mdk-doc-1.2.11/lib/getopt_long.c Examining data/mdk-doc-1.2.11/lib/getopt.h Examining data/mdk-doc-1.2.11/lib/darwin.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_external.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_mixvm.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_mixvm.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_gen_handlers.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_wm.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_input.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_widgets.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_mixal.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_external.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_mixal.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_fontsel.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_device.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_widgets.c Examining data/mdk-doc-1.2.11/mixgtk/gmixvm.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_config.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_config.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_device.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_wm.h Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_fontsel.c Examining data/mdk-doc-1.2.11/mixgtk/mixgtk_gen_handlers.h Examining data/mdk-doc-1.2.11/mixutils/mixvm.c Examining data/mdk-doc-1.2.11/mixutils/mixasm_comp.c Examining data/mdk-doc-1.2.11/mixutils/mixvm_command.h Examining data/mdk-doc-1.2.11/mixutils/mixasm_comp.h Examining data/mdk-doc-1.2.11/mixutils/mixasm.c Examining data/mdk-doc-1.2.11/mixutils/mixvm_command.c Examining data/mdk-doc-1.2.11/mixutils/mixvm_loop.h Examining data/mdk-doc-1.2.11/mixutils/mixvm_loop.c Examining data/mdk-doc-1.2.11/mixlib/mix_vm_clock.h Examining data/mdk-doc-1.2.11/mixlib/mix_config.c Examining data/mdk-doc-1.2.11/mixlib/mix_src_file.c Examining data/mdk-doc-1.2.11/mixlib/mix_code_file.c Examining data/mdk-doc-1.2.11/mixlib/mix_config.h Examining data/mdk-doc-1.2.11/mixlib/xmix_device.h Examining data/mdk-doc-1.2.11/mixlib/mix_ins.h Examining data/mdk-doc-1.2.11/mixlib/gettext.h Examining data/mdk-doc-1.2.11/mixlib/xmix_io.h Examining data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.h Examining data/mdk-doc-1.2.11/mixlib/mix_device.h Examining data/mdk-doc-1.2.11/mixlib/mix_predicate.h Examining data/mdk-doc-1.2.11/mixlib/xmix_vm_command.c Examining data/mdk-doc-1.2.11/mixlib/mix_file.c Examining data/mdk-doc-1.2.11/mixlib/mix_vm_dump.c Examining data/mdk-doc-1.2.11/mixlib/mix_predicate_list.c Examining data/mdk-doc-1.2.11/mixlib/mix_io.h Examining data/mdk-doc-1.2.11/mixlib/xmix_parser.h Examining data/mdk-doc-1.2.11/mixlib/xmix_io.c Examining data/mdk-doc-1.2.11/mixlib/xmix_device.c Examining data/mdk-doc-1.2.11/mixlib/mix_vm.h Examining data/mdk-doc-1.2.11/mixlib/mix_io.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_ins_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_types_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_parser_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_vm_ins_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_device_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/mix_eval_t.c Examining data/mdk-doc-1.2.11/mixlib/testsuite/test.h Examining data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c Examining data/mdk-doc-1.2.11/mixlib/completion.c Examining data/mdk-doc-1.2.11/mixlib/mix_vm_command.h Examining data/mdk-doc-1.2.11/mixlib/mix_parser.c Examining data/mdk-doc-1.2.11/mixlib/mix_src_file.h Examining data/mdk-doc-1.2.11/mixlib/mix_predicate.c Examining data/mdk-doc-1.2.11/mixlib/mix.h Examining data/mdk-doc-1.2.11/mixlib/mix_vm_dump.h Examining data/mdk-doc-1.2.11/mixlib/mix_parser.h Examining data/mdk-doc-1.2.11/mixlib/mix_file.h Examining data/mdk-doc-1.2.11/mixlib/xmix_eval.h Examining data/mdk-doc-1.2.11/mixlib/mix_vm_command.c Examining data/mdk-doc-1.2.11/mixlib/mix_code_file.h Examining data/mdk-doc-1.2.11/mixlib/mix_predicate_list.h Examining data/mdk-doc-1.2.11/mixlib/mix_scanner.c Examining data/mdk-doc-1.2.11/mixlib/mix_vm_clock.c Examining data/mdk-doc-1.2.11/mixlib/completion.h Examining data/mdk-doc-1.2.11/mixlib/xmix_vm_command.h Examining data/mdk-doc-1.2.11/mixlib/mix_ins.c Examining data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c Examining data/mdk-doc-1.2.11/mixlib/mix_types.c Examining data/mdk-doc-1.2.11/mixlib/mix.c Examining data/mdk-doc-1.2.11/mixlib/mix_device.c Examining data/mdk-doc-1.2.11/mixlib/mix_eval.c Examining data/mdk-doc-1.2.11/mixlib/mix_eval.h Examining data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c Examining data/mdk-doc-1.2.11/mixlib/mix_symbol_table.h Examining data/mdk-doc-1.2.11/mixlib/mix_types.h Examining data/mdk-doc-1.2.11/mixlib/mix_vm.c Examining data/mdk-doc-1.2.11/mixlib/xmix_vm.c Examining data/mdk-doc-1.2.11/mixlib/xmix_vm.h FINAL RESULTS: data/mdk-doc-1.2.11/intl/localcharset.c:189: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/mdk-doc-1.2.11/intl/localcharset.c:190: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/mdk-doc-1.2.11/intl/log.c:78: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/plural.c:525: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/mdk-doc-1.2.11/intl/printf.c:83: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/mdk-doc-1.2.11/intl/printf.c:137:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/mdk-doc-1.2.11/intl/printf.c:172: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/mdk-doc-1.2.11/intl/printf.c:268:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/mdk-doc-1.2.11/intl/printf.c:276: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/mdk-doc-1.2.11/intl/relocatable.c:440: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/mdk-doc-1.2.11/intl/vasnprintf.c:91:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/mdk-doc-1.2.11/intl/vasnprintf.c:102: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/mdk-doc-1.2.11/intl/vasnprintf.c:105: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/mdk-doc-1.2.11/intl/vasnprintf.c:622:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/mdk-doc-1.2.11/intl/vasnprintf.c:625:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/mdk-doc-1.2.11/intl/vasnprintf.c:628:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/mdk-doc-1.2.11/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/mdk-doc-1.2.11/mixgtk/gmixvm.c:70:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, usage_, prog); data/mdk-doc-1.2.11/mixgtk/mixgtk_widgets.c:107:11: [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 (glade_file, R_OK)) { data/mdk-doc-1.2.11/mixgtk/mixgtk_widgets.c:108: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 (LOCAL_GLADE_FILE, R_OK)) return FALSE; data/mdk-doc-1.2.11/mixguile/mixguile.c:70:7: [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 (scmfile, R_OK) && access ((scmfile = LOCAL_SCM_FILE), R_OK)) data/mdk-doc-1.2.11/mixguile/mixguile.c:70:33: [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 (scmfile, R_OK) && access ((scmfile = LOCAL_SCM_FILE), R_OK)) data/mdk-doc-1.2.11/mixguile/mixguile.c:78:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (loadlocal && !access (lscmfile, R_OK)) data/mdk-doc-1.2.11/mixlib/completion.c:490:39: [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. g_list_foreach (result, (GFunc) printf, NULL); data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c:48:9: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if ( fscanf (file, "%s =%ld", sym, &val) != EOF ) data/mdk-doc-1.2.11/mixlib/mix_types.c:515:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s %02d %02d %02d %02d %02d", data/mdk-doc-1.2.11/mixlib/mix_types.c:590:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s %02d %02d", data/mdk-doc-1.2.11/mixlib/xmix_vm_command.c:41:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (dis->out, fmt, args); data/mdk-doc-1.2.11/mixlib/xmix_vm_command.c:59:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (dis->err, BUFFER, args); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:267:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system (cmd); data/mdk-doc-1.2.11/mixutils/mixasm.c:85:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, _(USAGE_), prog_name); data/mdk-doc-1.2.11/mixutils/mixvm.c:97:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, _(USAGE_), prog_name); data/mdk-doc-1.2.11/mixutils/mixvm_command.c:175:3: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system (arg); data/mdk-doc-1.2.11/intl/dcigettext.c:148: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/mdk-doc-1.2.11/intl/dcigettext.c:149: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/mdk-doc-1.2.11/intl/dcigettext.c:705: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/mdk-doc-1.2.11/intl/dcigettext.c:1136: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/mdk-doc-1.2.11/intl/loadmsgcat.c:830:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. outcharset = getenv ("OUTPUT_CHARSET"); data/mdk-doc-1.2.11/intl/localcharset.c:297: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/mdk-doc-1.2.11/intl/localcharset.c:300: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/mdk-doc-1.2.11/intl/localcharset.c:302: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/mdk-doc-1.2.11/intl/localcharset.c:330: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/mdk-doc-1.2.11/intl/localcharset.c:333: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/mdk-doc-1.2.11/intl/localcharset.c:335: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/mdk-doc-1.2.11/intl/localename.c:715: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/mdk-doc-1.2.11/intl/localename.c:719: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. retval = getenv (categoryname); data/mdk-doc-1.2.11/intl/localename.c:723: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. retval = getenv ("LANG"); data/mdk-doc-1.2.11/intl/localename.c:747: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/mdk-doc-1.2.11/intl/localename.c:750: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/mdk-doc-1.2.11/intl/localename.c:753: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/lib/getopt.h:102:12: [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. extern int getopt (int argc, char *const *argv, const char *shortopts); data/mdk-doc-1.2.11/lib/getopt.h:104:12: [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. extern int getopt (); data/mdk-doc-1.2.11/lib/getopt.h:106:12: [3] (buffer) getopt_long: 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. extern int getopt_long (int argc, char *const *argv, const char *shortopts, data/mdk-doc-1.2.11/lib/getopt.h:118:12: [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. extern int getopt (); data/mdk-doc-1.2.11/lib/getopt.h:119:12: [3] (buffer) getopt_long: 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. extern int getopt_long (); data/mdk-doc-1.2.11/lib/getopt_long.c:215: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. #ifndef getenv data/mdk-doc-1.2.11/lib/getopt_long.c:216: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. extern char *getenv (); data/mdk-doc-1.2.11/lib/getopt_long.c:408:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT"); data/mdk-doc-1.2.11/lib/getopt_long.c:973:1: [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. getopt (argc, argv, optstring) data/mdk-doc-1.2.11/lib/getopt_long.c:985:1: [3] (buffer) getopt_long: 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. getopt_long (argc, argv, options, long_options, opt_index) data/mdk-doc-1.2.11/lib/getopt_long.c:1031:11: [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. c = getopt (argc, argv, "abc:d:0123456789"); data/mdk-doc-1.2.11/mixgtk/gmixvm.c:86:11: [3] (buffer) getopt_long: 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. c = getopt_long (argc, argv, options_, long_options_, (int*)0); data/mdk-doc-1.2.11/mixgtk/mixgtk_config.c:46:34: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *cdir = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, data/mdk-doc-1.2.11/mixgtk/mixgtk_external.c:146:38: [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. while (!edit && ENV[k]) edit = getenv (ENV[k++]); data/mdk-doc-1.2.11/mixguile/mixguile.c:66:34: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *lscmfile = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, data/mdk-doc-1.2.11/mixguile/mixguile_main.c:65:11: [3] (buffer) getopt_long: 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. c = getopt_long (argc, argv, options_, long_options_, (int*)0); data/mdk-doc-1.2.11/mixlib/mix_config.c:61:33: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. DEF_DIRNAME_ = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, data/mdk-doc-1.2.11/mixlib/mix_scanner.c:1832:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. yy_flex_debug = getenv("FLEX_DEBUG"); data/mdk-doc-1.2.11/mixutils/mixasm.c:76:11: [3] (buffer) getopt_long: 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. c = getopt_long (argc, argv, "vhuo:lOg", long_options_, (int*)0); data/mdk-doc-1.2.11/mixutils/mixvm.c:88:11: [3] (buffer) getopt_long: 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. c = getopt_long (argc, argv, options_, long_options_, (int*)0); data/mdk-doc-1.2.11/mixutils/mixvm_command.c:202:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (editor = getenv (envars[k])) != NULL ) break; data/mdk-doc-1.2.11/intl/bindtextdom.c:157: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/mdk-doc-1.2.11/intl/bindtextdom.c:195: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/mdk-doc-1.2.11/intl/bindtextdom.c:231: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/mdk-doc-1.2.11/intl/bindtextdom.c:256: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/mdk-doc-1.2.11/intl/bindtextdom.c:287: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/mdk-doc-1.2.11/intl/dcigettext.c:240: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/mdk-doc-1.2.11/intl/dcigettext.c:367: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/mdk-doc-1.2.11/intl/dcigettext.c:483: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/mdk-doc-1.2.11/intl/dcigettext.c:657: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 (newp->domainname, domainname, domainname_len + 1); data/mdk-doc-1.2.11/intl/dcigettext.c:1181: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/mdk-doc-1.2.11/intl/finddomain.c:130: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/mdk-doc-1.2.11/intl/gettextP.h:145: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/mdk-doc-1.2.11/intl/l10nflist.c:219: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/mdk-doc-1.2.11/intl/loadmsgcat.c:460: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 __open data/mdk-doc-1.2.11/intl/loadmsgcat.c:817: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 (charset, charsetstr, len); data/mdk-doc-1.2.11/intl/loadmsgcat.c:864: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 (tmp, outcharset, len); data/mdk-doc-1.2.11/intl/loadmsgcat.c:865: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 (tmp + len, "//TRANSLIT", 10 + 1); data/mdk-doc-1.2.11/intl/loadmsgcat.c:940: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/mdk-doc-1.2.11/intl/loadmsgcat.c:1293: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/mdk-doc-1.2.11/intl/loadmsgcat.c:1302: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/mdk-doc-1.2.11/intl/localcharset.c:131: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/mdk-doc-1.2.11/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_len + add_slash, base, base_len + 1); data/mdk-doc-1.2.11/intl/localcharset.c:138: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/mdk-doc-1.2.11/intl/localcharset.c:145:4: [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/mdk-doc-1.2.11/intl/localcharset.c:146:4: [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/mdk-doc-1.2.11/intl/localcharset.c:315: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/mdk-doc-1.2.11/intl/localcharset.c:318: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/mdk-doc-1.2.11/intl/localcharset.c:324: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/mdk-doc-1.2.11/intl/localcharset.c:353: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/mdk-doc-1.2.11/intl/localcharset.c:369: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/mdk-doc-1.2.11/intl/localealias.c:229: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/mdk-doc-1.2.11/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_len], aliasfile, sizeof aliasfile); data/mdk-doc-1.2.11/intl/localealias.c:233: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/mdk-doc-1.2.11/intl/localealias.c:253: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/mdk-doc-1.2.11/intl/localealias.c:333:26: [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/mdk-doc-1.2.11/intl/localealias.c:337:26: [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/mdk-doc-1.2.11/intl/log.c:79: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/printf.c:191: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, maxlength - 1); data/mdk-doc-1.2.11/intl/printf.c:345: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, (maxlength - 1) * sizeof (wchar_t)); data/mdk-doc-1.2.11/intl/relocatable.c:124: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/mdk-doc-1.2.11/intl/relocatable.c:127: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/mdk-doc-1.2.11/intl/relocatable.c:208: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/mdk-doc-1.2.11/intl/relocatable.c:268: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/mdk-doc-1.2.11/intl/relocatable.c:295: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/mdk-doc-1.2.11/intl/relocatable.c:321: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/mdk-doc-1.2.11/intl/relocatable.c:439: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/vasnprintf.c:203: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/mdk-doc-1.2.11/intl/vasnprintf.c:215: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/mdk-doc-1.2.11/intl/vasnprintf.c:520: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/mdk-doc-1.2.11/intl/vasnprintf.c:526: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/mdk-doc-1.2.11/intl/vasnprintf.c:837: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/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:168:60: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (arg && strlen (arg)) mixgtk_mixal_update_bp_at_line (atoi (arg)); data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:175:63: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (arg && strlen (arg)) mixgtk_mixal_update_bp_at_address (atoi (arg)); data/mdk-doc-1.2.11/mixgtk/mixgtk_device.c:447:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). decs_ = atoi (mixgtk_config_get (DEV_FORMAT_KEY_)); data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:97:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gint val = atoi (txt); data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:118:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bytes[k] = mix_byte_new (atoi (text)); data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:137:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mix_word_new (atoi (gtk_entry_get_text (GTK_ENTRY (childs_[DEC_])))); data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:157:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mix_word_t w = mix_word_new (atoi (text)); data/mdk-doc-1.2.11/mixgtk/mixgtk_mixvm.c:436:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mix_short_t addr = mix_short_new (atoi (txt)); data/mdk-doc-1.2.11/mixlib/completion.c:470:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen (argv[1], "r"); data/mdk-doc-1.2.11/mixlib/mix_config.c:73: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). f = fopen (result->filename, "r"); data/mdk-doc-1.2.11/mixlib/mix_config.c:137:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi (val); data/mdk-doc-1.2.11/mixlib/mix_config.c:211: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). f = fopen (config->filename, "w"); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:530: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 yytext[YYLMAX]; data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:966:35: [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). wexpr_val_tmp = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:973:18: [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). glong val = atol (yytext); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:992:31: [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). wexpr_val = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:1047:38: [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). mix_word_t value = mix_word_new (atol (s)); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:1079:26: [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). expr_val = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_file.c:54:39: [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 (mode == mix_io_RDWRT && (file = fopen (name, "r"))) data/mdk-doc-1.2.11/mixlib/mix_file.c:61:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(name, fmode); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:1453: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 yytext[YYLMAX]; data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2183:38: [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). mix_word_t value = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2199:38: [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). mix_word_t value = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2216:42: [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). mix_word_t value = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2242:36: [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). parser->start = mix_short_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2300:49: [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). mix_parser_define_ls (parser, mix_word_new (atol (yytext))); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2326:34: [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). ins.address = mix_short_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2390:31: [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). ins.index = mix_byte_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2435:18: [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). glong val = atol (yytext); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2496:38: [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). mix_word_t value = mix_word_new (atol (s)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2529:26: [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). expr_val = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2560:35: [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). wexpr_val_tmp = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2567:18: [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). glong val = atol (yytext); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:2590:27: [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). wexpr_val = mix_word_new (atol (yytext)); data/mdk-doc-1.2.11/mixlib/xmix_io.c:28: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. const char *io_OPENTYPE_[5] = { "r", "w", "w+", "a", "a+" }; data/mdk-doc-1.2.11/mixlib/xmix_io.h:36: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. extern const char * io_OPENTYPE_[5]; data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:399:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ins_no = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:542:19: [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). begin = end = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:547:15: [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). begin = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:557:8: [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). end = atol (narg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:598:12: [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). value = atol (arg + i); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:706:11: [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). addr = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:712:12: [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). value = atol (arg + k); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:780:12: [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). lineno = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:812:13: [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). address = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:840:12: [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). lineno = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:874:13: [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). address = atol (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:963:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bytes[k++] = mix_byte_new (atoi (b)); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1185:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gint add = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1210:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gint add = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1313:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gint no = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1346:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gint no = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1416:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (arg && strlen (arg)) line = atoi (arg); data/mdk-doc-1.2.11/mixutils/mixvm_loop.c:64:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char PROMPT[PROMPT_LEN + 1] = {'M', 'I', 'X', '>', ' '}; data/mdk-doc-1.2.11/intl/bindtextdom.c:154: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/mdk-doc-1.2.11/intl/bindtextdom.c:192: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/mdk-doc-1.2.11/intl/bindtextdom.c:224: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/mdk-doc-1.2.11/intl/bindtextdom.c:252: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/mdk-doc-1.2.11/intl/bindtextdom.c:283: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/mdk-doc-1.2.11/intl/dcigettext.c:477: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/mdk-doc-1.2.11/intl/dcigettext.c:531:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dirname_len = strlen (binding->dirname) + 1; data/mdk-doc-1.2.11/intl/dcigettext.c:564: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/mdk-doc-1.2.11/intl/dcigettext.c:565: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/mdk-doc-1.2.11/intl/dcigettext.c:574: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/mdk-doc-1.2.11/intl/dcigettext.c:745: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/finddomain.c:89: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/mdk-doc-1.2.11/intl/finddomain.c:125: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/mdk-doc-1.2.11/intl/finddomain.c:144: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/mdk-doc-1.2.11/intl/l10nflist.c:93: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/mdk-doc-1.2.11/intl/l10nflist.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). size_t part_len = strlen (argz); data/mdk-doc-1.2.11/intl/l10nflist.c:192: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/mdk-doc-1.2.11/intl/l10nflist.c:194: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/mdk-doc-1.2.11/intl/l10nflist.c:196: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/mdk-doc-1.2.11/intl/l10nflist.c:198: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/mdk-doc-1.2.11/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 (modifier) + 1 : 0) data/mdk-doc-1.2.11/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 (special) + 1 : 0) data/mdk-doc-1.2.11/intl/l10nflist.c:207: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). ? strlen (sponsor) : 0) data/mdk-doc-1.2.11/intl/l10nflist.c:209: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 (revision) + 1 : 0)) : 0) data/mdk-doc-1.2.11/intl/l10nflist.c:210: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/mdk-doc-1.2.11/intl/l10nflist.c:346: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/mdk-doc-1.2.11/intl/loadmsgcat.c:462:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read __read data/mdk-doc-1.2.11/intl/loadmsgcat.c:810: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). charsetstr += strlen ("charset="); data/mdk-doc-1.2.11/intl/loadmsgcat.c:862:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (outcharset); data/mdk-doc-1.2.11/intl/loadmsgcat.c:988: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/mdk-doc-1.2.11/intl/loadmsgcat.c:1166: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/mdk-doc-1.2.11/intl/loadmsgcat.c:1301: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/mdk-doc-1.2.11/intl/localcharset.c:90:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/mdk-doc-1.2.11/intl/localcharset.c:91:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/mdk-doc-1.2.11/intl/localcharset.c:125: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/mdk-doc-1.2.11/intl/localcharset.c:126: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/mdk-doc-1.2.11/intl/localcharset.c:153:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/mdk-doc-1.2.11/intl/localcharset.c:162:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/mdk-doc-1.2.11/intl/localcharset.c:169: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/mdk-doc-1.2.11/intl/localcharset.c:171: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/mdk-doc-1.2.11/intl/localcharset.c:172: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/mdk-doc-1.2.11/intl/localcharset.c:383: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/mdk-doc-1.2.11/intl/localcharset.c:383: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/mdk-doc-1.2.11/intl/localcharset.c:387: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/mdk-doc-1.2.11/intl/localealias.c:305: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). alias_len = strlen (alias) + 1; data/mdk-doc-1.2.11/intl/localealias.c:306: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). value_len = strlen (value) + 1; data/mdk-doc-1.2.11/intl/log.c:75: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/plural.c:564: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/mdk-doc-1.2.11/intl/plural.c:1385: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/mdk-doc-1.2.11/intl/relocatable.c:117: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/mdk-doc-1.2.11/intl/relocatable.c:118: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/mdk-doc-1.2.11/intl/relocatable.c:184: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/mdk-doc-1.2.11/intl/relocatable.c:188: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/mdk-doc-1.2.11/intl/relocatable.c:193: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/mdk-doc-1.2.11/intl/relocatable.c:216: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/mdk-doc-1.2.11/intl/relocatable.c:217: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/mdk-doc-1.2.11/intl/relocatable.c:335: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/mdk-doc-1.2.11/intl/relocatable.c:354: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/mdk-doc-1.2.11/intl/relocatable.c:433: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/mdk-doc-1.2.11/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/mdk-doc-1.2.11/intl/vasnprintf.c:57: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/mdk-doc-1.2.11/intl/vasnprintf.c:463: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/mdk-doc-1.2.11/lib/getopt_long.c:238:51: [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 (!defined __STDC__ || !__STDC__) && !defined strlen data/mdk-doc-1.2.11/lib/getopt_long.c:241: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). extern int strlen (const char *); data/mdk-doc-1.2.11/lib/getopt_long.c:439:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = nonoption_flags_max_len = strlen (orig_str); data/mdk-doc-1.2.11/lib/getopt_long.c:660: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). == (unsigned int) strlen (p->name)) data/mdk-doc-1.2.11/lib/getopt_long.c:684:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:715: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:732: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:737:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:848:51: [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 ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/mdk-doc-1.2.11/lib/getopt_long.c:871: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:891: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:905: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/lib/getopt_long.c:909: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). nextchar += strlen (nextchar); data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:101:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((k = read (dis->fildes[0], BUFFER, BLKSIZE)) != 0) data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:168:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) mixgtk_mixal_update_bp_at_line (atoi (arg)); data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:175:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) mixgtk_mixal_update_bp_at_address (atoi (arg)); data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:305: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). if (command && command[0] == '(' && command[strlen (command) - 1] == ')') data/mdk-doc-1.2.11/mixgtk/mixgtk_cmd_dispatcher.c:398: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). gint pos = strlen (prefix); data/mdk-doc-1.2.11/mixgtk/mixgtk_device.c:262:58: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (dev->type != mix_dev_CONSOLE && !(DEF_DEV_VTABLE_->read)(dev, block)) data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:95: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 (txt) > 0) data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:108: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 (txt) > 0) data/mdk-doc-1.2.11/mixgtk/mixgtk_input.c:133: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 (txt) > 0) data/mdk-doc-1.2.11/mixguile/xmixguile_cmd_dispatcher.c:267: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 (val) == 1) data/mdk-doc-1.2.11/mixlib/completion.c:255:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmp->prefix); data/mdk-doc-1.2.11/mixlib/completion.c:259: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). plen = strlen (postfix); data/mdk-doc-1.2.11/mixlib/completion.c:276:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*new_prefix, cmp->prefix, len); data/mdk-doc-1.2.11/mixlib/completion.c:277:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*new_prefix + len, postfix, plen); data/mdk-doc-1.2.11/mixlib/completion.c:316: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). p = *new_prefix + strlen (*new_prefix); data/mdk-doc-1.2.11/mixlib/completion.c:363:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (prefix); data/mdk-doc-1.2.11/mixlib/completion.c:366:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (cmp->prefix); data/mdk-doc-1.2.11/mixlib/mix_code_file.c:181:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result->header.path_len = strlen (result->source_path); data/mdk-doc-1.2.11/mixlib/mix_device.c:147:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (dev->vtable->read) (dev, block); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:703:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:1833: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). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:2155: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 (op) > 1 && op[1] == '/' ) { data/mdk-doc-1.2.11/mixlib/mix_eval_scanner.c:2175: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). result = strlen (value); data/mdk-doc-1.2.11/mixlib/mix_file.c:32: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). ( strcmp(name + strlen(name) - strlen(defext), defext) != 0 ) data/mdk-doc-1.2.11/mixlib/mix_file.c:32: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). ( strcmp(name + strlen(name) - strlen(defext), defext) != 0 ) data/mdk-doc-1.2.11/mixlib/mix_file.c:109:41: [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). result->base_name = g_strndup(name, strlen(name) - strlen(defext)); data/mdk-doc-1.2.11/mixlib/mix_file.c:109: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). result->base_name = g_strndup(name, strlen(name) - strlen(defext)); data/mdk-doc-1.2.11/mixlib/mix_parser.c:483: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). if (NULL == name || strlen (name) == 0) return MIX_PERR_MIS_SYM; data/mdk-doc-1.2.11/mixlib/mix_parser.c:524: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). g_assert (strlen(name) == 2); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:1698:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/mdk-doc-1.2.11/mixlib/mix_scanner.c:3359: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). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/mdk-doc-1.2.11/mixlib/mix_scanner.c:3681: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 (op) > 1 && op[1] == '/' ) { data/mdk-doc-1.2.11/mixlib/mix_scanner.c:3701: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). for (k = strlen (value) - 1; k >= 0; --k) data/mdk-doc-1.2.11/mixlib/mix_src_file.c:44: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). if (line[0] == '*' || strlen(line) == 0) data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c:46:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( getc (file) == ',' ) data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c:120:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (sym) > MIX_SYM_MAX_LEN ) return MIX_SYM_LONG; data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c:140:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (sym) > MIX_SYM_MAX_LEN ) return MIX_SYM_LONG; data/mdk-doc-1.2.11/mixlib/mix_symbol_table.c:159:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((sym) && (strlen (sym)==2) && (sym[1] == 'B') && isdigit (sym[0])) data/mdk-doc-1.2.11/mixlib/xmix_device.h:42:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). mix_dev_read_func_t read; data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:184:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg) > 0) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:389:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (arg) != 0 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:466:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (arg) == 0 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:481: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 (arg) == 1 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:531:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (carg) == 0 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:591:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ok = strlen (arg) > 2 && isspace (arg[i]); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:642: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). gboolean ok = (strlen (arg) == 1); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:668: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). gboolean ok = (strlen (arg) == 1); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:691: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). gboolean ok = (strlen (carg) > 2 && isdigit (carg[0])); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:743: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). if (arg == NULL || strlen(arg) == 0) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:895: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 (arg) != 0) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:907:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (arg) == 0 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:924: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). gint k, len = strlen (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:939:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen (arg) == 0 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:955:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (b) != 2 || !isdigit(b[0]) || !isdigit(b[1])) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:993:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!arg || !strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1017:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!arg || !strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1057:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!arg || !strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1080:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!arg || !strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1092:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!arg || !strlen (arg)) log_error_ (dis, _("Missing argument")); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1125: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 (arg) == 2 ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1239:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1254:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1274:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1289:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1334: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). if ( (strlen (BUFFER) == 0) || !(strcmp(NULLSTR,BUFFER)) ) data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1349:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(arg) == 0 ) { data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1416:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) line = atoi (arg); data/mdk-doc-1.2.11/mixlib/xmix_vm_handlers.c:1432: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). if (txt == NULL || strlen (txt) == 0) txt = "No such line\n"; data/mdk-doc-1.2.11/mixutils/mixvm_command.c:52:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line[strlen (line) -1] != ')') return FALSE; data/mdk-doc-1.2.11/mixutils/mixvm_command.c:182:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (arg && strlen (arg)) mix_vmloop_set_prompt (arg); data/mdk-doc-1.2.11/mixutils/mixvm_command.c:261: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 (line) == 0) return TRUE; ANALYSIS SUMMARY: Hits = 346 Lines analyzed = 38518 in approximately 0.91 seconds (42432 lines/second) Physical Source Lines of Code (SLOC) = 26933 Hits@level = [0] 105 [1] 158 [2] 113 [3] 41 [4] 34 [5] 0 Hits@level+ = [0+] 451 [1+] 346 [2+] 188 [3+] 75 [4+] 34 [5+] 0 Hits/KSLOC@level+ = [0+] 16.7453 [1+] 12.8467 [2+] 6.98028 [3+] 2.78469 [4+] 1.26239 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.